Skip to contentSkip to conversation

cmon silently fails if addr is wrong in ceph.conf (0.20.1)

DISCUSSION Thomas Mueller 2 participants 2 messages May 28, 2010

lore
Share & tools
lore
#0 lore raw

hi

i missconfigured the mon addr in ceph.conf. /etc/init.d/ceph did not show any errors - seemd to start. but cmon did not start.

i've "straced" cmon:

bind(6, {sa_family=AF_INET, sin_port=htons(6789), sin_addr=inet_addr ("192.168.32.61")}, 16) = -1 EADDRNOTAVAbind(6, {sa_family=AF_INET, sin_port=htons(6789), sin_addr=inet_addr("192.168.32.61")}, 16) = -1 EADDRNOTAVAIL (Cannot assign requested address)IL (Cannot assign requested address)

A descriptive error message would be cool.

- Thomas

#1 lore raw

Hi Thomas,

Quoted 5 lines · Thomas Mueller

i missconfigured the mon addr in ceph.conf. /etc/init.d/ceph did not show any errors - seemd to start. but cmon did not start.

i've "straced" cmon:

Quoted 7 lines

bind(6, {sa_family=AF_INET, sin_port=htons(6789), sin_addr=inet_addr ("192.168.32.61")}, 16) = -1 EADDRNOTAVAbind(6, {sa_family=AF_INET, sin_port=htons(6789), sin_addr=inet_addr("192.168.32.61")}, 16) = -1 EADDRNOTAVAIL (Cannot assign requested address)IL (Cannot assign requested address)

A descriptive error message would be cool.

I pushed a fix to the unstable and testing branches.5D

Thanks!
sage