Bug 1205393 - Cannot delete a CV because it thinks a Host Group is dependent on it (it isn't).
Summary: Cannot delete a CV because it thinks a Host Group is dependent on it (it isn't).
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Partha Aji
QA Contact: Tazim Kolhar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-24 20:30 UTC by Corey Welton
Modified: 2017-02-23 20:15 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 13:58:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
dynflow trace (10.69 KB, text/plain)
2015-03-24 20:31 UTC, Corey Welton
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 9902 0 None None None 2016-04-22 16:20:30 UTC

Description Corey Welton 2015-03-24 20:30:29 UTC
Description of problem:
Trying to delete a host group, it (somewhat silently) fails. Viewing dynflow, user is told that the CV cannot be deleted because a host group is dependent on the CV.  However, checking the CV, there is zero reference to said CV.



Version-Release number of selected component (if applicable):
Satellite-6.1.0-RHEL-7-20150320.1

How reproducible:
Unsure.... jsherrill has an idea.

Steps to Reproduce:
1.  Go through content cycle for RHEL6 (sync, cv pub/promote, ak, etc.)
2.  Register RHEL6 system (maybe?)
3.  Repeat above for RHEL7
4.  Create a hostgroupfor RHEL7 that specifically points to RHEL7 content
5.  Attempt to remove CV for RHEL6
6.  View Dynflow to see failure (nothing really shows up in CV UI)


Actual results:
Failure to remove CV listed in dynflow (see forthcoming attached trace from dynflow)


Expected results:
Can remove 
Things are not misassociated!

Additional info:

jsherrill probably has more reliable steps

Comment 1 Corey Welton 2015-03-24 20:31:29 UTC
Created attachment 1005984 [details]
dynflow trace

Comment 3 Justin Sherrill 2015-03-24 20:36:13 UTC
So the key to reproducing here involves making sure you have a lifecycle environment and content view with the same ID.

So!

Steps to reproduce:

1) On a freshly provisioned Satellite, Create a new Lifecycle Environment (with ID 2)
2) Create and publish ContentViewA (with ID 2)
3) Create and Publish ContentViewB (with ID 3)
4) Create a hostgroup and associate it to the created Lifecycle Environment With ID 2, and the ContentViewB with ID 3
5) Attempt to Delete the Content View with ID 2

It is not associated to the hostgroup and thus should delete fine, however it will fail.

Comment 4 Justin Sherrill 2015-03-25 19:02:58 UTC
Created redmine issue http://projects.theforeman.org/issues/9902 from this bug

Comment 5 Bryan Kearney 2015-03-25 22:05:35 UTC
Upstream bug assigned to jsherril

Comment 6 Partha Aji 2015-03-25 23:16:47 UTC
Should be fixed when https://github.com/Katello/katello/pull/5143/files gets merged.

Comment 8 Tazim Kolhar 2015-04-24 09:49:37 UTC
VERIFIED :

# rpm -qa | grep foreman
foreman-libvirt-1.7.2.17-1.el6_6sat.noarch
ruby193-rubygem-foreman_bootdisk-4.0.2.10-1.el6_6sat.noarch
ruby193-rubygem-foreman_hooks-0.3.7-2.el6_6sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3.3-1.el6_6sat.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2.5-1.el6_6sat.noarch
foreman-postgresql-1.7.2.17-1.el6_6sat.noarch
foreman-debug-1.7.2.17-1.el6_6sat.noarch
foreman-1.7.2.17-1.el6_6sat.noarch
foreman-ovirt-1.7.2.17-1.el6_6sat.noarch
ruby193-rubygem-foreman-tasks-0.6.12.3-1.el6_6sat.noarch
foreman-proxy-1.7.2.4-1.el6_6sat.noarch
qe-sat6-rhel66.usersys.redhat.com-foreman-client-1.0-1.noarch
qe-sat6-rhel66.usersys.redhat.com-foreman-proxy-client-1.0-1.noarch
foreman-selinux-1.7.2.13-1.el6_6sat.noarch
rubygem-hammer_cli_foreman-0.1.4.9-1.el6_6sat.noarch
foreman-compute-1.7.2.17-1.el6_6sat.noarch
foreman-vmware-1.7.2.17-1.el6_6sat.noarch
ruby193-rubygem-foreman-redhat_access-0.1.0-1.el6_6sat.noarch
ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el6_6sat.noarch
qe-sat6-rhel66.usersys.redhat.com-foreman-proxy-1.0-2.noarch
ruby193-rubygem-foreman_docker-1.2.0.9-1.el6_6sat.noarch
rubygem-hammer_cli_foreman_discovery-0.0.1.7-1.el6_6sat.noarch
foreman-gce-1.7.2.17-1.el6_6sat.noarch
ruby193-rubygem-foreman_discovery-2.0.0.9-1.el6_6sat.noarch

steps:

1) On a freshly provisioned Satellite, Create a new Lifecycle Environment (with ID 2)
2) Create and publish ContentViewA (with ID 2)
3) Create and Publish ContentViewB (with ID 3)
4) Create a hostgroup and associate it to the created Lifecycle Environment With ID 2, and the ContentViewB with ID 3
5) Attempt to Delete the Content View with ID 2
6) Delete works fine for content View with ID 2

Comment 9 Bryan Kearney 2015-08-11 13:32:38 UTC
This bug is slated to be released with Satellite 6.1.

Comment 10 Bryan Kearney 2015-08-12 13:58:11 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.


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