Project

General

Profile

Bug #21512

deletion of CV fails when a content host is assigned

Added by John Mitsch over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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

Revision bb29e1ee (diff)
Added by John Mitsch over 4 years ago

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"

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

#5 Updated by Justin Sherrill over 4 years ago

  • Legacy Backlogs Release (now unused) set to 250

Also available in: Atom PDF