calamari icon indicating copy to clipboard operation
calamari copied to clipboard

Execute salt '*' ceph.get_heartbeats,it return 'ceph.get_heartbeats' is not available.

Open heng-Yuan opened this issue 6 years ago • 4 comments

Guys

I am getting a problem on CentOS7 , Salt version 2015. after I installed all package and executed "salt-key -L" ,it was return ok.

[root@mon calamari]# salt-key -L
Accepted Keys:
mon
osd1
osd2
Denied Keys:
Unaccepted Keys:
Rejected Keys:

Then , when i was execute "salt '*' ceph.get_heartbeats", it was return error,

[root@mon calamari]# salt '*' ceph.get_heartbeats
osd1:
    'ceph.get_heartbeats' is not available.
osd2:
    'ceph.get_heartbeats' is not available.
mon:
    'ceph.get_heartbeats' is not available.
ERROR: Minions returned with non-zero exit code

My salt version:

[root@mon calamari]# salt --version
salt 2015.8.13 (Beryllium)

[root@mon calamari]# salt-minion --version
salt-minion 2015.8.13 (Beryllium)

could any one tell me what happened with this, and how to fix it .thanks.

heng-Yuan avatar Apr 11 '18 11:04 heng-Yuan

Please check whether files /var/cache/salt/minion/files/base/_modules/ceph.py existed on minion nodes.

syf-zsxm avatar Apr 12 '18 00:04 syf-zsxm

@syf-zsxm

[root@mon calamari]# ll /var/cache/salt/minion/files/base/_modules/ceph.py
ls: cannot access /var/cache/salt/minion/files/base/_modules/ceph.py: No such file or directory

It doesn't exist, and what should i do to get it.

heng-Yuan avatar Apr 12 '18 01:04 heng-Yuan

Does salt '*' test.ping work? if work well, please try to run salt '*' saltutil.sync_all or restart the salt-minion. if not, you have to re-establish the connection between salt-minion and salt-master.

PS: What's you calamari version? If 1.3, salt-2014.7 is a better choice.

syf-zsxm avatar Apr 12 '18 08:04 syf-zsxm

I also have this issue: [root@ceph44 salt]# salt-key -L
Accepted Keys: ceph44 ceph45 ceph46 Denied Keys: Unaccepted Keys: Rejected Keys: [root@ceph44 salt]# salt '' test.ping
ceph44: True ceph45: True ceph46: True [root@ceph44 salt]# salt '
' ceph.get_heartbeats ceph45: Module 'ceph' is not available. ceph44: Module 'ceph' is not available. ceph46: Module 'ceph' is not available. ERROR: Minions returned with non-zero exit code

chenqiao3199 avatar Oct 22 '18 06:10 chenqiao3199