Bug 1220841
Summary: | [RFE] provide a better way to remove broken hosts/vms from the database | ||
---|---|---|---|
Product: | [Retired] oVirt | Reporter: | Sven Kieske <s.kieske> |
Component: | ovirt-engine-core | Assignee: | bugs <bugs> |
Status: | CLOSED NOTABUG | QA Contact: | Pavel Stehlik <pstehlik> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.5 | CC: | amureini, ecohen, gklein, lsurette, mgoldboi, ofrenkel, oourfali, rbalakri, s.kieske, yeylon |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-05-18 08:57:10 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sven Kieske
2015-05-12 15:20:52 UTC
Have you tried right clicking on the host and press on the "confirm host has been rebooted" option? That should get into a state that allows safe removal. in addition to comment 1 - this flow should allow you to clean up easily using the UI, this will clean the db, any storage on the host (if still exists) should be removed manually: again this flow relies on the user that the host is really down, because engine cannot verify this 1. right click the host and select "confirm host has been rebooted" - this will clean the "SPM" status of the host and will move all running vms to down. 2. assuming storage is not reachable: right click the Data Center and select "Force remove" - this will remove vm/templates related to this DC and also storage domains, finally the DC itself now you should be left with the cluster and the host: 3. move host to maintenance - now can be removed 4. remove cluster Based on the flow in Comment #2, and my comment, closing as NOTABUG. I'm 99% sure that the option "confirm host has been rebooted" was grayed out, thus could not be selected. afaik you can only select this option, if you are able to bring the host into maintenance state, which was not the case. I'd like to reopen therefore. I'll try to reproduce, but this could take some time.. (In reply to Sven Kieske from comment #4) > I'm 99% sure that the option "confirm host has been rebooted" was grayed > out, thus could not be selected. > > afaik you can only select this option, if you are able to bring the host into > maintenance state, which was not the case. > > I'd like to reopen therefore. > > I'll try to reproduce, but this could take some time.. It shouldn't be, so it it was then it could be a different bug Please open a new bug if you get to reproduce this. I can now confirm that this works almost as described here: (In reply to Omer Frenkel from comment #2) > in addition to comment 1 - this flow should allow you to clean up easily > using the UI, this will clean the db, any storage on the host (if still > exists) should be removed manually: > again this flow relies on the user that the host is really down, because > engine cannot verify this > > 1. right click the host and select "confirm host has been rebooted" - this > will clean the "SPM" status of the host and will move all running vms to > down. > > 2. assuming storage is not reachable: > right click the Data Center and select "Force remove" - this will remove > vm/templates related to this DC and also storage domains, finally the DC > itself > -> could not remove DC because of hosts in it which are not in maintenance! "Error while executing action: Cannot remove Data Center while there are Hosts that are not in Maintenance mode." --> I did put the host into maintenance, then it worked! > now you should be left with the cluster and the host: > 3. move host to maintenance - now can be removed > 4. remove cluster |