Bug 1596061
| Summary: | ceph-osd container does not restart on option changes | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Sébastien Han <shan> | ||||
| Component: | Ceph-Ansible | Assignee: | Sébastien Han <shan> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Persona non grata <nobody+410372> | ||||
| Severity: | high | Docs Contact: | Bara Ancincova <bancinco> | ||||
| Priority: | high | ||||||
| Version: | 3.0 | CC: | agunn, anharris, aschoen, ceph-eng-bugs, ceph-qe-bugs, gcharot, gfidente, gmeno, hnallurv, jbrier, kdreyer, nobody+410372, nthomas, sankarshan, shan, tserlin, vumrao | ||||
| Target Milestone: | z1 | ||||||
| Target Release: | 3.1 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | RHEL: ceph-ansible-3.1.8-1.el7cp Ubuntu: ceph-ansible_3.1.8-2redhat1 | Doc Type: | Bug Fix | ||||
| Doc Text: |
.Containers are now restarted automatically when changing their options
Previously, when changing a container option, for example, `ceph_osd_docker_memory_limit`, the change did not trigger a restart of the container and a manual restart was required. With this update, containers are restarted automatically when changing their options.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-11-09 00:59:17 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1578730, 1584264 | ||||||
| Attachments: |
|
||||||
|
Description
Sébastien Han
2018-06-28 07:59:25 UTC
Steps followed: In osd.yaml, changed 'ceph_osd_docker_memory_limit' value to 1g once,6g in next time. Reran ansible-playbook, container did not restart, moving back to assigned logs? Created attachment 1478874 [details]
ansible log
Same behaviour when you try to change a value in ceph.conf
With TripleO:
CephConfigOverrides:
mon_max_pg_per_osd: 2048
(which uses ceph-ansible ceph_conf_overrides)
ceph.conf is updated on all nodes but OSD daemons are not restarted.
Please note that monitors are properly restarted and thus run with the proper configuration.
(In reply to Gregory Charot from comment #11) > Same behaviour when you try to change a value in ceph.conf > > With TripleO: > > CephConfigOverrides: > mon_max_pg_per_osd: 2048 > > (which uses ceph-ansible ceph_conf_overrides) > > ceph.conf is updated on all nodes but OSD daemons are not restarted. > > Please note that monitors are properly restarted and thus run with the > proper configuration. Maybe because you have chosen mon option *mon_*hence this is the behavior. Please use any option which starts from *osd_* these are OSD options so if you choose one of the osd_ it should help. (In reply to Vikhyat Umrao from comment #13) > (In reply to Gregory Charot from comment #11) > > Same behaviour when you try to change a value in ceph.conf > > > > With TripleO: > > > > CephConfigOverrides: > > mon_max_pg_per_osd: 2048 > > > > (which uses ceph-ansible ceph_conf_overrides) > > > > ceph.conf is updated on all nodes but OSD daemons are not restarted. > > > > Please note that monitors are properly restarted and thus run with the > > proper configuration. > > Maybe because you have chosen mon option *mon_*hence this is the behavior. > Please use any option which starts from *osd_* these are OSD options so if > you choose one of the osd_ it should help. The option lands in the global ceph.conf section on all nodes so the OSDs should be restarted, i don't think ceph-ansible actually looks at the variable name. When i applied the changes and tried to create new pools, the ceph osd pool create command worked but pgs creation were stuck. Restarting the OSDs solved the issue. Release Notes Doc Text update: replace contraction "won't" with "will not" per IBM Style Guide Release Notes Doc Text remove extra space inbetween "example," and "`ceph_osd_docker_memory_limit`" lgtm thanks Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:3530 |