Bug 1726289 - Failed to remove lifecycle environments during capsules dissociation phase.
Summary: Failed to remove lifecycle environments during capsules dissociation phase.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Clone
Version: 6.5.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: 6.5.2
Assignee: Justin Sherrill
QA Contact: Devendra Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-02 13:53 UTC by Devendra Singh
Modified: 2019-10-30 17:02 UTC (History)
6 users (show)

Fixed In Version: satellite-clone-1.4.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1734095 (view as bug list)
Environment:
Last Closed: 2019-08-06 14:33:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:2364 0 None None None 2019-08-06 14:33:57 UTC

Description Devendra Singh 2019-07-02 13:53:44 UTC
Description of problem:

Failed to remove lifecycle environments during capsules dissociation phase.

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

How reproducible:

This issue observed with specific user's DB upgrade

Steps to Reproduce:

1. Start Satellite clone operation for the specific user.
2. Observed some failed message's of lifecycle environments during capsule dissociation phase.
3. Satellite clone operation completed successfully.
4. Triggered foreman-maintain upgrade(foreman-maintain upgrade run --whitelist="disk-performance" --target-version 6.6 -y) to upgrade system from 6.5 to 6.6 and that was completed successfully.

Actual results:
Failed to remove lifecycle environments during capsules dissociation phase.

[satellite-clone : Disassociate capsules with lifecycle environments (to avoid the cloned Satellite server talking with live capsules)] ***
stdout: Could not remove the lifecycle environment from the capsule:
Lifecycle environment was not attached to the capsule; therefore, no changes were made.
Could not remove the lifecycle environment from the capsule:
Lifecycle environment was not attached to the capsule; therefore, no changes were made.
Could not remove the lifecycle environment from the capsule:
Lifecycle environment was not attached to the capsule; therefore, no changes were made.
Could not remove the lifecycle environment from the capsule:
Lifecycle environment was not attached to the capsule; therefore, no changes were made.
Could not remove the lifecycle environment from the capsule:
Lifecycle environment was not attached to the capsule; therefore, no changes were made.
Could not remove the lifecycle environment from the capsule:
Lifecycle environment was not attached to the capsule; therefore, no changes were made.
Could not remove the lifecycle environment from the capsule:
Lifecycle environment was not attached to the capsule; therefore, no changes were made.
Could not remove the lifecycle environment from the capsule:
Lifecycle environment was not attached to the capsule; therefore, no changes were made.
Could not remove the lifecycle environment from the capsule:
Lifecycle environment was not attached to the capsule; therefore, no changes were made.
Could not remove the lifecycle environment from the capsule:
Lifecycle environment was not attached to the capsule; therefore, no changes were made.
Could not remove the lifecycle environment from the capsule:
Lifecycle environment was not attached to the capsule; therefore, no changes were made.
Could not remove the lifecycle environment from the capsule:
Lifecycle environment was not attached to the capsule; therefore, no changes were made.

All Capsules are unassociated with any lifecycle environments. This is to avoid any syncing errors with your original Satellite and any interference with existing infrastructure. To reverse these changes, run the following commands, making sure to replace the credentials with your own.
hammer -u admin -p ******* --csv capsule content add-lifecycle-environment --id 11 --environment Library --organization XY_Z
hammer -u admin -p ******* --csv capsule content add-lifecycle-environment --id 11 --environment Library --organization XY_Z
hammer -u admin -p ******* --csv capsule content add-lifecycle-environment --id 12 --environment Library --organization XY_Z
hammer -u admin -p ******* --csv capsule content add-lifecycle-environment --id 12 --environment Library --organization XY_Z
hammer -u admin -p ******* --csv capsule content add-lifecycle-environment --id 9 --environment Library --organization XY_Z
hammer -u admin -p ******* --csv capsule content add-lifecycle-environment --id 9 --environment Library --organization XY_Z
hammer -u admin -p ******* --csv capsule content add-lifecycle-environment --id 7 --environment Library --organization XY_Z
hammer -u admin -p ******* --csv capsule content add-lifecycle-environment --id 7 --environment Library --organization XY_Z
hammer -u admin -p ******* --csv capsule content add-lifecycle-environment --id 10 --environment Library --organization XY_Z
hammer -u admin -p ******* --csv capsule content add-lifecycle-environment --id 10 --environment Library --organization XY_Z
hammer -u admin -p ******* --csv capsule content add-lifecycle-environment --id 8 --environment Library --organization XY_Z
hammer -u admin -p ******* --csv capsule content add-lifecycle-environment --id 8 --environment Library --organization XY_Z

Expected results:

lifecycle environments should be removed successfully during capsules dissociation phase

Additional info:
This issue observed in very specific user DB upgrade.

Comment 7 John Mitsch 2019-07-08 19:21:56 UTC
merged in https://github.com/RedHatSatellite/satellite-clone/pull/363, but still needs to be released in a version

Comment 8 Devendra Singh 2019-07-16 11:38:09 UTC
This bug has successfully verified in Sanp11. Capsule lifecycle environment properly dissociates during Satellite cloning.

Comment 10 Devendra Singh 2019-08-02 07:56:43 UTC
Hi All, 

This Bugzilla has been successfully verified with 6.5.2.
Logs are attached in the attachment.

Thanks
Devendra

Comment 13 errata-xmlrpc 2019-08-06 14:33:55 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, 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-2019:2364


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