Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1434350

Summary: [BACKPORT] Tripleo needs to support whole disk overcloud images (OSP10)
Product: Red Hat OpenStack Reporter: Yolanda Robla <yroblamo>
Component: python-tripleoclientAssignee: RHOS Maint <rhos-maint>
Status: CLOSED ERRATA QA Contact: mlammon
Severity: high Docs Contact:
Priority: high    
Version: 10.0 (Newton)CC: atelang, brault, dcadzow, fzdarsky, hbrock, jjoyce, jslagle, mburns, mlammon, pmorey, racedoro, radoslaw.smigielski, rhel-osp-director-maint, segutier, sisadoun, skhodri, sputhenp, vcojot
Target Milestone: z3Keywords: FeatureBackport, FutureFeature, Triaged, ZStream
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-5.4.2-1.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-28 14:48:28 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: 1381508    
Bug Blocks: 1417231, 1494417    

Description Yolanda Robla 2017-03-21 10:35:41 UTC
Description of problem:

python-tripleoclient needs to support uploading whole disk images

Until the change landed on ocata, python-tripleoclient was only supporting uploading flat images. This is the default behaviour of TripleO, but supporting whole disk images is needed and being requested by several customers.
This is specially important in terms of security, because several partitions/volumes need to be created on the hosts.
Adding that support for python-tripleoclient to consume whole disk images, solves this problem, allowing the customers to create the partitions/volumes they need, for their security needs.

Version-Release number of selected component (if applicable):
python-tripleoclient 5.6.0

How reproducible:

Description on how it works -> http://teknoarticles.blogspot.com.es/2016/12/start-using-whole-disk-images-with.html

Actual patch that needs to be backported -> http://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?h=5.6.0&id=c212fbd065649b00ef07dfab625412dbcc811b68

Actual results:

python-tripleoclient does not support uploading whole disk imaes

Expected results:

python-tripleoclient will have the --whole-disk flag available, when using that it will upload whole disk images (just the qcow2 image without vmlinuz and initrd ones)

Additional info:

Comment 4 Yolanda Robla 2017-04-06 16:30:29 UTC
Upstream change was merged for stable/newton

Comment 6 Yolanda Robla 2017-04-11 15:48:43 UTC
From my side, I just did the backport to newton. The patch can be applied directly on python-tripleclient, as there are no other dependencies.

Comment 12 mlammon 2017-06-01 14:31:08 UTC
This has bene tested and verified against OSP 10 and utilized the whole-disk-image.py from blogpost [1]

[1] http://teknoarticles.blogspot.com.es/2016/12/start-using-whole-disk-images-with.html

Comment 14 errata-xmlrpc 2017-06-28 14:48:28 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-2017:1585