Created attachment 1340651 [details] Orphaned & Archived VMs displayed Description of problem: Version-Release number of selected component (if applicable): 5.8.2.0 How reproducible: Always Steps to Reproduce: 1. Have some orphaned and/or archived VMs 2. Go to Compute -> Infrastructure -> VMs 3. Select Status / Running filter Actual results: Orphaned and archived VMs are also displayed in running vms filter. Expected results: Only really running VMs that are active should be displayed. Additional info:
Can not duplicate it. Works as expected on upstream master and on fine branches (using 5_8_dc_MBU_demo_07152017.backup database). Having db dump with reported issue would help to investigate.
I investigated this issue and found out that the problem is somewhere else. When I delete provider with running Instances then running instances are archived, but still act like they are running and are displayed in running filter.
Also I got database dump from appliance having this issue.
https://github.com/ManageIQ/manageiq/pull/17183
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/74bb8182b4ad38f82cc881be838a09df0f6682dc commit 74bb8182b4ad38f82cc881be838a09df0f6682dc Author: Yuri Rudman <yrudman> AuthorDate: Tue Mar 20 18:14:17 2018 -0400 Commit: Yuri Rudman <yrudman> CommitDate: Tue Mar 20 18:14:17 2018 -0400 filter out archived and orphaned VMs in 'Running VMs' filter https://bugzilla.redhat.com/show_bug.cgi?id=1504006 db/fixtures/miq_searches.yml | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-)
Verified in 5.10.0.8. Orphaned/archived VMs are not displayed when using Running filter.