Bug 1498863 - RFE: Expose Disks in the ServiceModel through Hardware
Summary: RFE: Expose Disks in the ServiceModel through Hardware
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.9.0
Assignee: William Fitzgerald
QA Contact: Dmitry Misharov
URL:
Whiteboard:
Depends On:
Blocks: 1504199
TreeView+ depends on / blocked
 
Reported: 2017-10-05 12:43 UTC by Jeff Warnica
Modified: 2018-05-29 08:05 UTC (History)
7 users (show)

Fixed In Version: 5.9.0.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1504199 (view as bug list)
Environment:
Last Closed: 2018-03-06 14:49:04 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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