Changing osd-devices config restarts all OSD daemons and attempts to upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph OSD Charm |
New
|
Undecided
|
Unassigned |
Bug Description
# Problems
1. When changing the `osd-devices` config flag for example when adding disks, the charm uncontrollably restarts all OSD daemons which is not recommended as it can impact cluster performance under traffic load. This should not happen for most normal config changes.
2. The charm also apparently attempts to upgrade Ceph packages when looking at source code (https:/
3. Finally there are many WARNING messages as the charm attempts to read the OSD daemon state which fails (https:/
# /var/log/
https:/
# version
juju 2.9.27
ceph-mon rev 73
ceph-osd rev 513
Generally regarding control of restarts it feels like Ceph charms could use same approach as Openstack charms are using:
https:/ /docs.openstack .org/charm- guide/latest/ admin/deferred- events. html
Option to disable restarts and having control over what is restarted and when restarts happen is super important when running production grade cluster. The whole big bang approach used currently introduces too much uncertainty.
Question to Openstack charmers: is there any interest/plan to implement some of these points? If so I would be willing to help out.
1. Enable/disable auto restarts: auto-restarts= False
juju config <charm-name> enable-
2. Deferred events. events/ run-deferred- hooks actions on specific units
Possibility to run show-deferred-