Bug #21512
deletion of CV fails when a content host is assigned
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1507384
Description of problem:
Version-Release number of selected component (if applicable):
How reproducible:
Always
Steps to Reproduce:
1.Remove content view environment and re-assign content host to
another environment and content view
2.
3.
Actual results:
LANG=en_US.UTF-8 hammer -v -u admin -p changeme content-view remove --system-content-view-id="20" --system-environment-id="20" --environment-ids="19" --id="19"
Error: undefined method `[]' for nil:NilClass
Expected results:
The CV should be deleted successfully
Additional info:
Associated revisions
History
#1
Updated by The Foreman Bot over 4 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/7044 added
#2
Updated by Brad Buckingham over 4 years ago
- Target version set to 225
- Subject changed from deletion of CV fails when a content host is assigned to deletion of CV fails when a content host is assigned
#3
Updated by Brad Buckingham over 4 years ago
- Target version changed from 225 to 232
#4
Updated by John Mitsch over 4 years ago
- % Done changed from 0 to 100
- Status changed from Ready For Testing to Closed
Applied in changeset katello|bb29e1ee65ac701cbf0e577f1b7cfd6c8c779ba7.
#5
Updated by Justin Sherrill over 4 years ago
- Legacy Backlogs Release (now unused) set to 250
Fixes #21512 - Make consumer_params optional on host update
To reproduce error:
1. Create a Org
2. Create 2 lifecycle env with 2 Cv's promoted
3. Create a host using 1st CV and lifecycle
4. Delete the 1st Lifecycle and CV and transfer the Created Content
host to 2nd Lifecycle and CV
hammer -v -u admin -p changeme content-view remove
--system-content-view-id="2nd CV id"
--system-environment-id="2nd Lifecycle ID"
--environment-ids="1st Lifecycle id "
--id="1st CV id"