Bug 1422145 - Adding disk to a VM in RHV provider, via VM reconfigure, does not activate it
Summary: Adding disk to a VM in RHV provider, via VM reconfigure, does not activate it
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: GA
: 5.8.0
Assignee: Moti Asayag
QA Contact: Ilanit Stein
URL:
Whiteboard: rhev
Depends On:
Blocks: 1422178
TreeView+ depends on / blocked
 
Reported: 2017-02-14 15:09 UTC by Ilanit Stein
Modified: 2017-06-12 16:43 UTC (History)
5 users (show)

Fixed In Version: 5.8.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1422178 (view as bug list)
Environment:
Last Closed: 2017-06-12 16:43:13 UTC
Category: ---
Cloudforms Team: RHEVM
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ilanit Stein 2017-02-14 15:09:40 UTC
Description of problem:


Version-Release number of selected component (if applicable):
CFME-5.7.1.1.20170206165110_3c42361 & RHV-4.0.5

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 CFME Bot 2017-02-14 16:16:09 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/8fdeaad475143da463d3cb88097c09d78e7c3b49

commit 8fdeaad475143da463d3cb88097c09d78e7c3b49
Author:     Moti Asayag <masayag>
AuthorDate: Tue Feb 14 17:22:46 2017 +0200
Commit:     Moti Asayag <masayag>
CommitDate: Tue Feb 14 17:35:27 2017 +0200

    Disks should be added as 'active' in RHV
    
    PR https://github.com/ManageIQ/manageiq/pull/13318 introduced a new
    class to handle disk attachments. A disk should be added to RHV as
    'active' since there is no method to modify it afterward.
    
    DiskAttachmentBuilder class will set the 'active' as the default
    status of the new disk, so any scenario which adds disks (vm
    reconfigure, automation request, provision request) will share the same
    behavior.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1422145

 .../providers/redhat/infra_manager/disk_attachment_builder.rb         | 3 +--
 .../providers/redhat/infra_manager/disk_attachment_builder_spec.rb    | 4 ++--
 .../manageiq/providers/redhat/infra_manager/provision/disk_spec.rb    | 2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)

Comment 5 Ilanit Stein 2017-04-23 11:23:42 UTC
Verified on CFME-5.8.0.1/RHV-4.0.7

VM reconfigure-> Hot added disk to a VM that already had a bootable disk.
The disk was added & activated as expected.


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