Trying to run stage 1 on deepsea

89 views
Skip to first unread message

Valentin Atanassov

unread,
Nov 13, 2017, 6:28:59 AM11/13/17
to openATTIC Users
getting this error

Salt API is failing to authenticate - try 'systemctl restart salt-master

I have restarted master and no luck.Still getting

[ERROR   ] No highstate or sls specified, no execution made
admin_master:
----------
          ID: salt-api failed
    Function: salt.state
        Name: just.exit
      Result: False
     Comment: No highstate or sls specified, no execution made
     Started: 13:25:46.518626
    Duration: 0.883 ms
     Changes:

Eric Jackson

unread,
Nov 13, 2017, 8:39:37 AM11/13/17
to openatt...@googlegroups.com
You can run the state directly with

salt 'master*' state.apply ceph.salt-api

where 'master' is the name of your salt master. That should give you an error
message if an individual step is failing.

Did Stage 0 run successfully?
signature.asc

Valentin Atanassov

unread,
Nov 13, 2017, 10:26:57 AM11/13/17
to openATTIC Users
Hi, thanks,

No stage 0 failed with following:

   ID: restart
    Function: salt.state
      Result: False
     Comment: Run failed on minions: admin
              Failures:
                  admin:
                      Data failed to compile:
                  ----------
                      Rendering SLS 'base:ceph.updates.restart.default' failed: mapping values are not allowed here; line 9

                  ---
                  [...]

                  warning:
                    module.run:
                      - name: advise.reboot
                      - running: 4.4.92-31
                      - installed: rpm: -1: unknown option    <======================
                      - unless: "echo rpm: -1: unknown option | grep -q 4.4.92-31"

                  reboot:
                    cmd.run:
                      - name: "shutdown -r now"

Valentin Atanassov

unread,
Nov 13, 2017, 10:42:26 AM11/13/17
to openATTIC Users

Eric Jackson

unread,
Nov 13, 2017, 1:40:16 PM11/13/17
to openatt...@googlegroups.com
Does

rpm -q --last kernel-default

fail for you?
signature.asc

Valentin Atanassov

unread,
Nov 13, 2017, 1:58:50 PM11/13/17
to openATTIC Users
The output is :
kernel-default-4.4.92-31.1.x86_64             Fri Nov 10 19:08:55 2017
kernel-default-4.4.76-1.1.x86_64              Tue Nov  7 09:29:09 2017
But I have major problem with salt-api

salt-api                 : ["Salt API is failing to authenticate - try 'systemctl restart salt-master': No JSON object could be decoded"]
I have done so far two clean instalation of opensuse Leap 42.3 and I am geting same problem at stage 1. However if I do:

salt '*' test.ping
node1:
    True
node2:
    True
node4:
    True
node3:
    True
admin:
    True
Which mean everything is OK with minions.

So I don't know what to do.

Eric Jackson

unread,
Nov 13, 2017, 3:08:29 PM11/13/17
to openatt...@googlegroups.com
Did you try running

salt 'master*' state.apply ceph.salt-api

to see if you get a more specific error? The related files are in
/srv/salt/ceph/salt-api. Feel free to look through the sls files.

If the package failed to install, that would be one issue. If it successfully
installed, but the sharedsecret is not getting updated then that would be a
different issue. If the service is not starting, then that's another issue.
signature.asc

Valentin Atanassov

unread,
Nov 13, 2017, 3:26:30 PM11/13/17
to openATTIC Users
Yes I run it output is :
Summary for admin
------------
Succeeded: 4 (changed=1)
Failed:    0
Also when I do:
salt -a sharedsecret '*' test.ping
username: admin
admin:
    True
But still I am getting at stage1 :


salt-run state.orch ceph.stage.1
[WARNING ] /usr/lib/python2.7/site-packages/salt/client/__init__.py:705: DeprecationWarning: The target type should be passed using the 'tgt_type' argument instead of 'expr_form'. Support for using 'expr_form' will be removed in Salt Fluorine.
Reply all
Reply to author
Forward
0 new messages