Bug 1498863

Summary: RFE: Expose Disks in the ServiceModel through Hardware
Product: Red Hat CloudForms Management Engine Reporter: Jeff Warnica <jwarnica>
Component: AutomateAssignee: William Fitzgerald <wfitzger>
Status: CLOSED CURRENTRELEASE QA Contact: Dmitry Misharov <dmisharo>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8.0CC: akarol, jhardy, jwarnica, mkanoor, obarenbo, simaishi, tfitzger
Target Milestone: GAKeywords: FutureFeature, TestOnly, ZStream
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.0.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1504199 (view as bug list) Environment:
Last Closed: 2018-03-06 14:49:04 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: 1504199    

Description Jeff Warnica 2017-10-05 12:43:07 UTC
in Automate, vm.hardware.disks fails as this link is not made in manageiq-automation_engine/lib/miq_automation_engine/service_models/miq_ae_service_hardware.rb

It should be.

Comment 2 Dave Johnson 2017-10-05 12:44:23 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 3 Greg McCullough 2017-10-05 12:54:46 UTC
Along with disks we should also expose partitions and volumes.

Model definition: https://github.com/ManageIQ/manageiq/blob/master/app/models/hardware.rb#L11-L17

Comment 5 CFME Bot 2017-10-16 22:09:13 UTC
New commit detected on ManageIQ/manageiq-automation_engine/master:
https://github.com/ManageIQ/manageiq-automation_engine/commit/b2b9b29aaa6c420957dc7307db36e5d6c309bb85

commit b2b9b29aaa6c420957dc7307db36e5d6c309bb85
Author:     william fitzgerald <wfitzger>
AuthorDate: Mon Oct 16 17:32:54 2017 -0400
Commit:     william fitzgerald <wfitzger>
CommitDate: Mon Oct 16 17:32:54 2017 -0400

    RFE - Expose disks and volumes in the ServiceModel through Hardware.
    
    Partitions were already exposed.
    https://bugzilla.redhat.com/show_bug.cgi?id=1498863

 lib/miq_automation_engine/service_models/miq_ae_service_hardware.rb | 2 ++
 1 file changed, 2 insertions(+)

Comment 8 Milan Falešník 2018-02-19 13:52:59 UTC
Verified in 5.9.0.21

I can do:
$evm.vmdb(:Vm).first.hardware.volumes
$evm.vmdb(:Vm).first.hardware.disks

and it works.