Bug 1195597 - Deleting Hypervisor create by virt-who leave Satellite in inconsistent state
Summary: Deleting Hypervisor create by virt-who leave Satellite in inconsistent state
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Registration
Version: 6.0.8
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Tom McKay
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-24 07:19 UTC by Paul Armstrong
Modified: 2019-09-26 13:52 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-22 15:12:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
modified clean_backend_objects.rake (2.10 KB, patch)
2015-02-24 07:19 UTC, Paul Armstrong
no flags Details | Diff

Description Paul Armstrong 2015-02-24 07:19:22 UTC
Created attachment 994592 [details]
modified clean_backend_objects.rake

Description of problem:
Hypervisor (somehow) got created by virt-who - turns out to be a Red Hat Storage Node. This is new with RHEV 3.5 apparently...
Tried to delete. 
Delete was partially successful. Leaving hung task.
Unable to use Content Host UI until task cleared. Clear task.
Unable to provision new hosts until inconsistency in DB is fixed.
Unable to reindex.


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

How reproducible:
Unknown. Not willing to try :-)

Steps to Reproduce:
1. As above


Actual results:
Mess

Expected results:
Enable clean-up of hypervisor backend objects.
Do not register RHS nodes as Hypervisors (may be virt-who problem)

Additional info:
Fixed by writing code for clean_backend_objects.rake

/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/lib/katello/tasks/clean_backend_objects.rake

changed file attached.

Comment 1 RHEL Program Management 2015-02-24 08:15:54 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Paul Armstrong 2015-02-24 20:21:10 UTC
virt-who should not send Gluster Hosts as Hypervisors as they are currently not allowed to run Guests.

/usr/share/virt-who/virt/rhevm

       for host in hosts_xml.findall('host'):
            id = host.get('id')
            mapping[id] = []

Should filter hosts to eliminate Gluster hosts.

Comment 5 Paul Armstrong 2015-07-10 16:15:36 UTC
Comment 3 actually now covered.
https://bugzilla.redhat.com/show_bug.cgi?id=1195939
Status is ON_QA

Thanks for the catch Bryan. Cheers, PA

Comment 6 Stephen Benjamin 2016-02-22 15:12:52 UTC
Hypervisors are deletable, and clean_backend_objects was fixed upstream in http://projects.theforeman.org/issues/9915. 

Thanks!


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