Bug 1467397 - os-image modifier in python-tripleoclient causes conflict with OS_IMAGE from glance
Summary: os-image modifier in python-tripleoclient causes conflict with OS_IMAGE from ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 12.0 (Pike)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: Upstream M1
: 13.0 (Queens)
Assignee: Julie Pichon
QA Contact: Gurenko Alex
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-03 16:00 UTC by Yolanda Robla
Modified: 2018-01-22 14:42 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-22 14:42:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1693344 0 None None None 2017-07-03 16:00:51 UTC
OpenStack gerrit 480036 0 None None None 2018-01-22 14:42:17 UTC

Description Yolanda Robla 2017-07-03 16:00:14 UTC
When using the --os-image command from python-tripleoclient, that gets translated into the OS_IMAGE env var:

757 parser.add_argument(
758 "--os-image",
759 default=os.environ.get('OS_IMAGE', 'overcloud-full.qcow2'),
760 help=_("OpenStack disk image filename"),

But when we try to use it, we are getting this error:

image version overcloud-full.qcow2 is not in supported versions 1, 2
Invalid image client version 'overcloud-full.qcow2'. must be one of: 1, 2

That is actually because OS_IMAGE env var ends somehow being part of os_client_config in the openstackclient:

{'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'metrics_api_version': '1', 'data_proce
ssing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'http://192.168.24.1:5000/v2.0', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'imag
e_api_version': u'overcloud-full.qcow2' }

This bug has been tested with stable/newton

Comment 1 Red Hat Bugzilla Rules Engine 2017-07-03 16:00:58 UTC
This bugzilla has been removed from the release and needs to be reviewed and Triaged for another Target Release.

Comment 4 Julie Pichon 2018-01-22 14:42:18 UTC
Looking at the upstream bug, this was fixed in Pike / OSP12.


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