Bug 1456245 - CFME Reports->Operations->Online VMs show VMs, that no onger exist in DB
Summary: CFME Reports->Operations->Online VMs show VMs, that no onger exist in DB
Keywords:
Status: CLOSED DUPLICATE of bug 1504010
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: GA
: cfme-future
Assignee: Piotr Kliczewski
QA Contact: Ilanit Stein
URL:
Whiteboard: rhev
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-28 10:43 UTC by Ilanit Stein
Modified: 2017-12-05 15:45 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-19 15:59:53 UTC
Category: Bug
Cloudforms Team: RHEVM
Target Upstream Version:
Embargoed:
istein: needinfo+


Attachments (Terms of Use)
Reports_UP_VMs_with_same_name.png (210.81 KB, image/png)
2017-05-28 10:44 UTC, Ilanit Stein
no flags Details
Online_VMs_report.png (167.26 KB, image/png)
2017-09-06 07:07 UTC, Ilanit Stein
no flags Details
Duplicate VMs in report (254.55 KB, image/png)
2017-10-18 15:13 UTC, Jan Zmeskal
no flags Details

Description Ilanit Stein 2017-05-28 10:43:38 UTC
Description of problem:
CFME reports display items from duplicate names.
For example, in 
Reports Datastores, or Online VMs (Powered On) - see attached Reports_UP_VMs_with_same_name.png
The duplication comes from having the history kept in the CFME Database.

Version-Release number of selected component (if applicable):
CFME-5.8.0.17
RHV-4.1.1.8

Comment 2 Ilanit Stein 2017-05-28 10:44:07 UTC
Created attachment 1282977 [details]
Reports_UP_VMs_with_same_name.png

Comment 5 Ilanit Stein 2017-08-07 11:22:27 UTC
I'm afraid I do not have this report anymore.
and in my current CFME machine, I do not have a reproduce of it.
The report screen shot is attached.

Comment 6 Ilanit Stein 2017-09-06 07:05:03 UTC
Occasionally, automation operations vm online test fail on that
Reports->Operations->Online VMs show VMs, that no longer exist in DB.
That is, the number of online VMs displayed in the Reports is larger than the one in the DB.

Attaching Reports screenshot, from a recent test failing on this.
CFME-5.8.2/RHV-4.1.6

Comment 7 Ilanit Stein 2017-09-06 07:07:54 UTC
Created attachment 1322522 [details]
Online_VMs_report.png

Comment 8 Piotr Kliczewski 2017-10-11 09:30:07 UTC
I tested reports with the latest 58 based on c59f3dbe2692fbf98f91ee05725aebc336b0f612 commit. I run following steps:

1. I added ovirt provider based on latest engine 4.2 (master)
2. I run started 2 vms out of 5
3. Queued "Online VMs (Powered On)" report
4. Saw no duplicates
5. I stopped one of the vms
6. Cloned template with the same name
7. Started it again
8. Queued "Online VMs (Powered On)" report

Both reports contained no duplicates.

Please provide the steps how to reproduce the issue.

Comment 9 Ilanit Stein 2017-10-15 10:58:29 UTC
Such up VMs duplicate is seen from time to time in automation.
It may appear since to same CFME appliance, same RHV envs are connected/removed.
When it will reproduce, I shall contact you.

Comment 10 Ilanit Stein 2017-10-17 10:55:04 UTC
Dave,
Could you please help us check if this bug a general issue in CFME? 

In order to reproduce (or any provider), 
there might be a need to add & remove providers, to the same CFME appliance,
so that history VMs will be displayed in the online VMs report.

Comment 11 Jan Zmeskal 2017-10-18 15:13:44 UTC
Created attachment 1340255 [details]
Duplicate VMs in report

Comment 12 Jan Zmeskal 2017-10-18 15:15:23 UTC
I think I've encountered the reported behaviour during testing. See "Duplicate VMs in report" attachment. Ilanit, is that the symptom of the issues?

Comment 13 Ilanit Stein 2017-10-19 15:59:53 UTC
Jan,
yes.

Seems this bug is not RHV provider specific, but rather CFME Core issue. 
Closing this bug as duplicate on same CFME bug 1504010 - "Online VMs (Powered On) report lists Orphaned and Archived VMs/Instances"

*** This bug has been marked as a duplicate of bug 1504010 ***


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