Bug 1767885

Summary: [RFE] VMware guests are incorrectly marked as linked_clone true, remove attribute
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ProvidersAssignee: Adam Grare <agrare>
Status: CLOSED ERRATA QA Contact: Kedar Kulkarni <kkulkarn>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.9.0CC: cpelland, dmetzger, gblomqui, jfrey, jhardy, jocarter, jwong, kkulkarn, lavenel, mfeifer, mshriver, ngupta, obarenbo, smallamp
Target Milestone: GAKeywords: FutureFeature, RFE, ZStream
Target Release: 5.11.1Flags: simaishi: cfme-5.11.z+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.1.0 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1588908 Environment:
Last Closed: 2019-12-13 00:35:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: VMware Target Upstream Version:
Embargoed:
Bug Depends On: 1588908, 1769934    
Bug Blocks:    

Comment 2 CFME Bot 2019-11-01 19:43:54 UTC
New commit detected on ManageIQ/manageiq-providers-vmware/ivanchuk:

https://github.com/ManageIQ/manageiq-providers-vmware/commit/6d67e9433a6b25e07a287649bbf354b0b41823ea
commit 6d67e9433a6b25e07a287649bbf354b0b41823ea
Author:     Gregg Tanzillo <gtanzill>
AuthorDate: Mon Aug 12 15:08:52 2019 -0400
Commit:     Gregg Tanzillo <gtanzill>
CommitDate: Mon Aug 12 15:08:52 2019 -0400

    Merge pull request #435 from agrare/bz_1588908_remove_linked_clone_attribute

    Linked Clone cannot be accurately collected

    (cherry picked from commit c149148543a2f97595af172c22bdc552a0086c11)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1767885

 app/models/manageiq/providers/vmware/infra_manager/refresh_parser.rb | 5 -
 1 file changed, 5 deletions(-)

Comment 3 Kedar Kulkarni 2019-12-03 12:54:07 UTC
On 5.11.1.1, we no longer have attribute linked_clone set to True. Hence verified. Used PSQL Commands :

==>Check the total number of VMs present
   # psql -U postgres -d vmdb_production -c "select name from vms where vendor='vmware';" | wc -l

==>Now, check the total number of VMs having linked_clone set as True:
   # psql -U postgres -d vmdb_production -c "select name from vms where vendor='vmware' and linked_clone='t';" | wc -l

Comment 5 errata-xmlrpc 2019-12-13 00:35:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2019:4201