Re: Failed to apply 1 service(s): mon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

how does your mon section of the myservice.yaml look? Could you please paste it?
How did you configure the public network? Can you share

# ceph config get mon public_network

It sounds like you have 192.168.119.1/24 but you wanted 192.168.119.0/24 configured (no host bits set), can you verify?

Regards,
Eugen

Zitat von Johan <johan@xxxxxxxx>:

Im quite new to ceph and is changing a lot in my teststorage (Debian 11, 4 hosts in total, ceph 17.2.5) as I learn and find out better ways to arrange things.

Now I must have done something wrong and cant find a way to get rid of this error.

  ceph -s
gives HEALTH_WARN, Failed to apply 1 service(s): mon

Using the Dashboard I find the error below showing up every minute. I have mon-service running on 3 servers. A few days ago a mon-service gave errors and I removed it. Im not sure if the error showed up before or after I removed the troublesome service. The error can have showed up as I tried to move a mon-daemon from one host to another.

I have tried to use
  ceph orch ls --service_name=mon --export > myservice.yaml
in order to find a possible error and correct it, but with no success.

Is it this informatin in the error-message that gives me trouble?
  192.168.119.1/24 has host bits set

What have I done wrong and how can I correct it?

/Johan

Failed to apply mon spec ServiceSpec.from_json(yaml.safe_load('''service_type: mon service_name: mon placement: count: 3 ''')): 192.168.119.1/24 has host bits set Traceback (most recent call last): File "/usr/share/ceph/mgr/cephadm/serve.py", line 508, in _apply_all_services if self._apply_service(spec): File "/usr/share/ceph/mgr/cephadm/serve.py", line 650, in _apply_service all_slots, slots_to_add, daemons_to_remove = ha.place() File "/usr/share/ceph/mgr/cephadm/schedule.py", line 262, in place candidates = self.get_candidates() # type: List[DaemonPlacement] File "/usr/share/ceph/mgr/cephadm/schedule.py", line 431, in get_candidates if self.filter_new_host(h.hostname): File "/usr/share/ceph/mgr/cephadm/serve.py", line 614, in matches_network public_network = ipaddress.ip_network(pn) File "/lib64/python3.6/ipaddress.py", line 74, in ip_network return IPv4Network(address, strict) File "/lib64/python3.6/ipaddress.py", line 1519, in __init__ raise ValueError('%s has host bits set' % self) ValueError: 192.168.119.1/24 has host bits set
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux