Bug 1918424 - [RFE] [ceph-ansible] cephadm-adopt - Playbook needs to be idempotent
Summary: [RFE] [ceph-ansible] cephadm-adopt - Playbook needs to be idempotent
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 5.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 5.0
Assignee: Dimitri Savineau
QA Contact: Vasishta
Ranjini M N
URL:
Whiteboard:
Depends On: 1927685
Blocks: 1959686
TreeView+ depends on / blocked
 
Reported: 2021-01-20 17:03 UTC by Vasishta
Modified: 2021-08-30 08:28 UTC (History)
11 users (show)

Fixed In Version: ceph-ansible-6.0.0-0.1.alpha7.el8cp
Doc Type: Enhancement
Doc Text:
.The `cephadm-adopt.yml` playbook is idempotent With this release, the `cephadm-adopt.yml` playbook is idempotent, that is the playbook can be run multiple times. If the playbook fails for any reason in the first attempt, you can rerun the playbook and it works as expected. For more information, see the link:{install-guide}#upgrading-from-rhcs-4-to-rhcs-5-using-ceph-ansible_install[_Upgrading from {storage-product} 4 to {storage-product} 5 using `ceph-ansible`_] section in the _{storage-product} Installation Guide_.
Clone Of:
Environment:
Last Closed: 2021-08-30 08:27:54 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 6204 0 None closed make the cephadm-adopt.yml playbook idempotent 2021-02-07 17:39:37 UTC
Red Hat Issue Tracker RHCEPH-1226 0 None None None 2021-08-30 00:17:48 UTC
Red Hat Product Errata RHBA-2021:3294 0 None None None 2021-08-30 08:28:10 UTC

Description Vasishta 2021-01-20 17:03:29 UTC
Description of problem:
cephadm-adopt had failed because of Bug 1917530
We tried again on the same cluster once we had the fix, to complete cephadm adoption
Playbook failed at task get current fsid saying that monitor container

It would be nice if we can fix this to support users for those who might have a unsuccessful initial run for any reason


Version-Release number of selected component (if applicable):
ceph-ansible-6.0.0-0.1.alpha6.el8cp.noarch

How reproducible:
Tried once

Steps to Reproduce:
1. Configure rhcs 4.x 
2. upgrade the cluster to 5.x and run cephadm-adopt playbook, induce playbook failure
3. Re-run cephadm-adopt playbook again

Actual results:
  stderr: 'Error: no container with name or ID ceph-mon-pluto002 found: no such container'


Expected results:
Playbook could be idempotent

Additional info:

Comment 6 Vasishta 2021-03-19 13:07:09 UTC
Tried with 6.0.1-1.el8cp
Including task mentioned in description, all tasks did not fail when initiated second time after a failure almost end of the playbook.
Moving to Verified state.

Comment 10 errata-xmlrpc 2021-08-30 08:27:54 UTC
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 (Red Hat Ceph Storage 5.0 bug fix and enhancement), 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-2021:3294


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