Bug 1395820
Summary: | rolling_upgrade restarts services regardless of version | ||||||
---|---|---|---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Christina Meno <gmeno> | ||||
Component: | Ceph-Ansible | Assignee: | Sébastien Han <shan> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Vasishta <vashastr> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.0 | CC: | adeza, anharris, aschoen, ceph-eng-bugs, ceph-qe-bugs, gmeno, hnallurv, kdreyer, nthomas, sankarshan, seb, shan | ||||
Target Milestone: | rc | ||||||
Target Release: | 3.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | ceph-ansible-2.1.9-1.el7scon | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-06-29 14:06:02 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: | |||||||
Attachments: |
|
Description
Christina Meno
2016-11-16 18:33:35 UTC
Upstream seems to have another approach now, it first stops services, apply roles and then make sure the process is started. This makes sense since the package upgrade + the role will start the daemon already. There are no more restart calls. Sebastien, is this bug fixed as of v2.1.9? Yes Ken. Hi Ken,Seb, Is there any change that has gone into this fix? From comment #2 there is a new upstream approach. So could you let us know what is the expected behaviour now? Thanks What do you mean? There is nothing new to this BZ, IMHO this was fixed a couple of months ago. Hi, As per my understanding, Now ONLY services which undergoes version change will be stopped and started later and other osd services are untouched as per new approach followed in upstream. Is this the actual case ? Is my understating correct ? I got confused whether this particular fix followed the above mentioned upstream approach or just skipped restarting of services which didn't get upgraded. Regards, Vasishta Your understanding is correct, only selected services will be updated and thus restarted. Created attachment 1279679 [details]
Terminal log of rolling update
Hi all,
I could observe that osd services were 'stopped and started' even though there was no version change.
Attached file contains full terminal log.
(All are ubuntu nodes and only repos in node 106 was not replaced)
TASK [stop ceph osds with systemd] *********************************************
changed: [magna106] => (item=2)
changed: [magna106] => (item=5)
TASK [start ceph osds with systemd] ********************************************
ok: [magna106] => (item=2)
ok: [magna106] => (item=5)
$ for i in {068,071,106};do ssh magna$i 'ceph -v';done
ceph version 10.2.7-20redhat1xenial (8b2e41c074ec6b5053c9838b5e21239ba5d63443)
ceph version 10.2.7-20redhat1xenial (8b2e41c074ec6b5053c9838b5e21239ba5d63443)
ceph version 10.2.5-28redhat1xenial (033f137cde8573cfc5a4662b4ed6a63b8a8d1464)
Changing the status back to ASSIGNED state as service was stopped and started regardless of version change.
Please let me know if there are any concerns.
Regards,
Vasishta
Hi, Again tried a dry run of rolling update and observed that services were stopped and started though there were no version change. Moving back to ASSIGNED stated as mentioned in Comment 12. $ ps aux |grep ceph ceph 31780 0.2 0.1 891124 41224 ? Ssl 10:55 0:15 /usr/bin/ceph-osd -f --cluster temp --id 2 --setuser ceph --setgroup ceph ceph 31920 0.2 0.1 890048 41488 ? Ssl 10:55 0:15 /usr/bin/ceph-osd -f --cluster temp --id 5 --setuser ceph --setgroup ceph ubuntu 32486 0.0 0.0 16572 2148 pts/1 S+ 12:29 0:00 grep --color=auto ceph ubuntu@magna106:~$ ps aux |grep ceph ubuntu 32832 0.0 0.0 16572 2208 pts/1 S+ 12:31 0:00 grep --color=auto ceph $ ps aux| grep ceph ceph 34537 0.5 0.1 883068 36892 ? Ssl 12:31 0:00 /usr/bin/ceph-osd -f --cluster temp --id 2 --setuser ceph --setgroup ceph ceph 34675 0.5 0.1 884052 36908 ? Ssl 12:31 0:00 /usr/bin/ceph-osd -f --cluster temp --id 5 --setuser ceph --setgroup ceph ubuntu 34965 0.0 0.0 16572 2196 pts/1 S+ 12:33 0:00 grep --color=auto ceph Regards, Vasishta I'd say that if you run rolling_update, you're expecting to get a new version, even you don't then it will just assuming there is a new version available. I'd like to close this as "won't fix" since the behavior is expected. Do not run the playbook if there is nothing to update. Does that sound reasonable? discussed at program meeting, does not meeting blocker critera, moving to next release |