Bug 1301660

Summary: ISO provisioning always fails because it can't start the VM while the disk is locked
Product: Red Hat CloudForms Management Engine Reporter: Drew Bomhof <dbomhof>
Component: AutomateAssignee: Drew Bomhof <dbomhof>
Status: CLOSED ERRATA QA Contact: Shveta <sshveta>
Severity: medium Docs Contact:
Priority: high    
Version: 5.5.0CC: cpelland, dajohnso, gmccullo, jhardy, jocarter, jprause, mfeifer, mkanoor, obarenbo, tfitzger
Target Milestone: GAKeywords: ZStream
Target Release: 5.5.3   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 5.5.3.2 Doc Type: Bug Fix
Doc Text:
When provisioning from an ISO in Red Hat CloudForms 4.0, the automation state machine previously exited with an oVirt error reporting locked disks. This was caused due to the destination_image_locked? method only being called on native Red Hat Enterprise Virtualization provisioning. This release adds a destination_image_locked? check for all Red Hat Enterprise Virtualization ISO and PXE provisioning.
Story Points: ---
Clone Of: 1298748 Environment:
Last Closed: 2016-04-13 18:41:52 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: 1298748, 1301662    
Bug Blocks:    

Comment 2 CFME Bot 2016-02-10 19:54:54 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=8dae5301ab421df2303ac37c75a34f4892c4a2fe

commit 8dae5301ab421df2303ac37c75a34f4892c4a2fe
Merge: 0b8f8d7 d547fbc
Author:     Greg McCullough <gmccullo>
AuthorDate: Wed Feb 10 14:28:56 2016 -0500
Commit:     Greg McCullough <gmccullo>
CommitDate: Wed Feb 10 14:28:56 2016 -0500

    Merge branch '5.5.z_cannot_provision_iso' into '5.5.z'
    
    Added destination_image_locked? check to RHEV iso/pxe provisioning
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1301660
    
    The destination_image_locked? method was only being
    called on native RHEV provisioning.  This change slightly
    refactors the customize_destination method to enable
    the destination_image_locked? check for all RHEV
    provisioning types
    
    PR: https://github.com/ManageIQ/manageiq/pull/6251
    
    Cherry Pick was not clean. Conflicts showed up in spec ..infra_manager/provision/state_machine_spec.rb
    
    See merge request !747

 .../infra_manager/provision/state_machine.rb       |  9 +++--
 .../provision_via_iso/state_machine.rb             |  8 +---
 .../provision_via_pxe/state_machine.rb             |  7 +---
 .../infra_manager/provision/state_machine_spec.rb  | 44 ++++++++++++----------
 .../provision_via_iso/state_machine_spec.rb        | 15 +++++---
 .../provision_via_pxe/state_machine_spec.rb        | 29 ++++++++++++++
 6 files changed, 72 insertions(+), 40 deletions(-)

Comment 4 Shveta 2016-03-29 23:49:33 UTC
Tested ISO provisioning . No disc locked error observed in logs .
Provisioning failed due to other ISO bug https://bugzilla.redhat.com/show_bug.cgi?id=1316735

Verified in 5.5.3.2.20160318152106_92d2d67

Comment 6 errata-xmlrpc 2016-04-13 18:41:52 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/RHBA-2016:0616