Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1450754 - RHCS ceph-ansible rolling upgrade sets/unsets cluster flags between every OSD upgrade
RHCS ceph-ansible rolling upgrade sets/unsets cluster flags between every OSD...
Status: CLOSED ERRATA
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: Ceph-Ansible (Show other bugs)
3.0
x86_64 Linux
high Severity high
: rc
: 3.0
Assigned To: seb
Parikshith
Bara Ancincova
:
Depends On:
Blocks: 1494421
  Show dependency treegraph
 
Reported: 2017-05-15 02:33 EDT by Vimal Kumar
Modified: 2017-12-05 18:33 EST (History)
14 users (show)

See Also:
Fixed In Version: RHEL: ceph-ansible-3.0.0-0.1.rc4.el7cp Ubuntu: ceph-ansible_3.0.0~rc4-2redhat1
Doc Type: Bug Fix
Doc Text:
.`rolling_update` no longer sets and unsets flags in between each OSD upgrade The `rolling_update` playbook of the `ceph-ansible` utility set and unset the `noout`, `noscrub`, and `nodeep-scrub` flags in between each OSD upgrade. If a scrubbing process was scheduled to start shortly or was in progress, setting these flags did not stop scrubbing immediately, and `rolling_update` waited until scrubbing was finished. This process was repeated on each OSD with scheduled scrubbing or scrubbing in progress. This behavior caused the upgrade process to take considerable time to finish. This update ensures that the flags are set before upgrading all OSDs, and are unset after all OSDs are upgraded.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-12-05 18:33:43 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
rolling update log (1.09 MB, text/plain)
2017-10-06 04:34 EDT, Parikshith
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Github ceph/ceph-ansible/pull/1517 None None None 2017-05-15 09:18 EDT
Red Hat Product Errata RHBA-2017:3387 normal SHIPPED_LIVE Red Hat Ceph Storage 3.0 bug fix and enhancement update 2017-12-05 22:03:45 EST

  None (edit)
Description Vimal Kumar 2017-05-15 02:33:47 EDT
a) Description of problem:

The rolling upgrade rules in rolling_update.yml set and unset cluster flags (noout, noscrub, nodeep-scrub)) in between each OSD upgrade. This causes problems in case the PGs are on the verge of scrub or an ongoing scrub. 

If scrubbing is either happening or is supposed to start shortly, setting the cluster flags will not stop the scrub immediately, it will wait till the scrub finishes on the locked chunk. Once the upgrade of one OSD is finished, the flags are removed, which will trigger the pending scrub. The next OSD upgrade will require setting the flags again, but since the PGs are being scrubbed at that time, the upgrade process won't continue. It will have to wait till the scrub finishes.

The upgrade process can take considerable time in finishing in this situation. Setting the cluster flags once, upgrading all the OSDs properly, and removing the flags should be less intrusive in the upgrade process.

Upstream commit at https://github.com/ceph/ceph-ansible/pull/1517.

b) Version-Release number of selected component (if applicable):

RHCS 2.x

c) How reproducible:

Reproducible when the upgrade is done amidst scrubbing.
Comment 3 seb 2017-05-15 12:20:33 EDT
Thanks, PR here: https://github.com/ceph/ceph-ansible/pull/1517
Work in progress
Comment 8 Parikshith 2017-10-06 04:34 EDT
Created attachment 1335163 [details]
rolling update log
Comment 9 leseb 2017-10-06 16:54:30 EDT
Parikshith, the flags are set at the end of the mon upgrade and unset at the end of the OSDs upgrade, when the last one finishes.

So the behaviour is correct, please move this to VERIFIED.
Thanks.
Comment 11 leseb 2017-10-24 08:48:56 EDT
lgtm!
Comment 14 errata-xmlrpc 2017-12-05 18:33:43 EST
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-2017:3387

Note You need to log in before you can comment on or make changes to this bug.