Bug 1186415

Summary: [fog] Booting block_device_mapping_v2 from image fails
Product: Red Hat CloudForms Management Engine Reporter: Brandon Dunne <bdunne>
Component: ApplianceAssignee: Brandon Dunne <bdunne>
Status: CLOSED ERRATA QA Contact: Dave Johnson <dajohnso>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 5.3.0CC: dajohnso, drieden, jhardy, jocarter, jprause, mfeifer, obarenbo, ssainkar, xlecauch
Target Milestone: GAKeywords: ZStream
Target Release: 5.3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.3.3 Doc Type: Bug Fix
Doc Text:
Fog gem was missing functionality, wherein volume_size was not being passed to the API in the fog gem. As a result, CloudForms could not provision and boot a VM via volume in OpenStack. The required functionality has been added to the Fog gem. CloudForms can now provision and boot a VM via volume in OpenStack.
Story Points: ---
Clone Of: 1186413 Environment:
Last Closed: 2015-02-25 16:12:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1186413    
Bug Blocks:    

Comment 2 Dave Johnson 2015-01-28 20:14:58 UTC
I copied the openstack_preprovision method in the automate explorer under ManageIQ domain / Cloud / VM / Provisioning / StateMachines / Methods and added the following option to provision a existing image and attach a extra volume to it with a specified size.  It did honor the size, created a vm, created a volume with the size specified, and attached it to the instance.  Success  \o/

prov = $evm.root['miq_provision']

prov.set_option(
  :clone_options, {
    :image_ref => nil,
    :block_device_mapping_v2 => [{
      :boot_index => 0,
      :uuid => "c269b145-6b70-4793-a797-5a4eaceec08b",
      :device_name => "vda",
      :source_type => "image",
      :destination_type => "volume",
      :volume_size => 3,
      :delete_on_termination => false
    }]
  }
)

Comment 3 Dave Johnson 2015-02-23 17:44:22 UTC
good 2 go in 5.3.3.2

Comment 5 errata-xmlrpc 2015-02-25 16:12:45 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://rhn.redhat.com/errata/RHBA-2015-0261.html