Project

General

Profile

Bug #8978

ceph ping not working as expected

Added by Eric Eastman over 9 years ago. Updated over 9 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Reading the doc: http://ceph.com/docs/master/rados/troubleshooting/troubleshooting-mon/

I came across command: ceph ping

Trying the command does not give me anything but error messages:

ceph ping mon.0
Error connecting to cluster: ObjectNotFound

ceph ping mon.1
Error connecting to cluster: ObjectNotFound

Trying it without an option
ceph ping
"ping" requires a monitor name as argument: "ping mon.<id>"

Try the monitor name for the <id>
ceph ping mon.t11
Error connecting to cluster: ObjectNotFound

Maybe just the name
ceph ping t11
"ping" expects a monitor to ping; try "ping mon.<id>"

My cluster status shows

ceph -s
cluster 4488a472-e2f0-11e3-9a32-001e0b4843b4
health HEALTH_OK
monmap e1: 3 mons at {t10=172.16.30.10:6789/0,t11=172.16.30.11:6789/0,t12=172.16.30.12:6789/0}, election epoch 8, quorum 0,1,2 t10,t11,t12
osdmap e85: 9 osds: 9 up, 9 in
pgmap v5315: 192 pgs, 3 pools, 5000 MB data, 1253 objects
15395 MB used, 335 GB / 350 GB avail
192 active+clean
client io 14510 kB/s rd, 116 op/s

ceph --version
ceph version 0.80.5 (38b73c67d375a2552d8ed67843c8a65c2c0feba6)

History

#1 Updated by Kees Boogert over 9 years ago

I'm experiencing the same (on newly installed ceph-cluster via Ubuntu server 14.04.1):

ceph status
cluster b6136d9c-eaa6-45a9-85c7-677f27b82e2d
health HEALTH_WARN 88 pgs degraded; 192 pgs stale; 192 pgs stuck stale; 192 pgs stuck unclean
monmap e1: 2 mons at {server11S=10.103.1.11:6789/0,server13S=10.103.1.13:6789/0}, election epoch 14, quorum 0,1 server11S,server13S
osdmap e57: 2 osds: 2 up, 2 in
pgmap v113: 192 pgs, 3 pools, 0 bytes data, 0 objects
68296 kB used, 1862 GB / 1862 GB avail
104 stale+active+remapped
88 stale+active+degraded
ceph -v
ceph version 0.80.1 (a38fe1169b6d2ac98b427334c12d7cf81f809b74)

ceph ping mon.server11S
Error connecting to cluster: ObjectNotFound
ceph ping mon.1
Error connecting to cluster: ObjectNotFound
ceph ping mon.a
Error connecting to cluster: ObjectNotFound

#2 Updated by Joao Eduardo Luis over 9 years ago

  • Status changed from New to Can't reproduce

#3 Updated by Eric Eastman over 9 years ago

Can you give me an example of how you are running the ceph ping command and the output you are seeing. I just tested it again with Giant, and it does not work for me:

# ceph -v
ceph version 0.87 (c51c8f9d80fa4e0168aa52685b8de40e42758578)
# ceph -s
    cluster 3488a472-e2f0-11e3-9a32-001e0b4843b4
     health HEALTH_WARN pool ec01 has too few pgs
     monmap e1: 2 mons at {tcamon01=10.15.2.21:6789/0,tcamon02=10.15.2.42:6789/0}, election epoch 4, quorum 0,1 tcamon01,tcamon02
     osdmap e697: 72 osds: 72 up, 72 in
      pgmap v389219: 5312 pgs, 6 pools, 75696 GB data, 76216 objects
            118 TB used, 142 TB / 261 TB avail
                5312 active+clean
# ceph ping mon.0
Error connecting to cluster: ObjectNotFound
# ceph ping mon.1
Error connecting to cluster: ObjectNotFound
# ceph ping tcamon01
"ping" expects a monitor to ping; try "ping mon.<id>" 
# ceph ping tcamon01.0
"ping" expects a monitor to ping; try "ping mon.<id>" 
# ceph ping mon.tcamon01
Error connecting to cluster: ObjectNotFound

Also available in: Atom PDF