Bug 1504006

Summary: Orphaned and Archived VMs displayed in running vms filter
Product: Red Hat CloudForms Management Engine Reporter: Matouš Mojžíš <mmojzis>
Component: ReportingAssignee: Yuri Rudman <yrudman>
Status: CLOSED CURRENTRELEASE QA Contact: Angelina Vasileva <anikifor>
Severity: low Docs Contact:
Priority: medium    
Version: 5.8.0CC: hkataria, jhardy, mmojzis, mpovolny, obarenbo, smallamp, yrudman
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:filter:vm
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1569099 1569100 (view as bug list) Environment:
Last Closed: 2019-02-11 13:53:32 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:
Bug Depends On:    
Bug Blocks: 1569099, 1569100    
Attachments:
Description Flags
Orphaned & Archived VMs displayed none

Description Matouš Mojžíš 2017-10-19 09:37:40 UTC
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:

Comment 2 Yuri Rudman 2017-11-02 13:18:58 UTC
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.

Comment 3 Matouš Mojžíš 2017-11-06 14:17:16 UTC
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.

Comment 4 Matouš Mojžíš 2017-11-06 14:17:49 UTC
Also I got database dump from appliance having this issue.

Comment 9 CFME Bot 2018-04-10 14:42:23 UTC
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(-)

Comment 12 Matouš Mojžíš 2018-08-06 16:40:59 UTC
Verified in 5.10.0.8. Orphaned/archived VMs are not displayed when using Running filter.