Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be unavailable on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 1483461 - glance image convert does not produce output in containerized environment
Summary: glance image convert does not produce output in containerized environment
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-glance
Version: 12.0 (Pike)
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Pranali Deore
QA Contact: Mike Abrams
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-21 07:55 UTC by Mike Abrams
Modified: 2017-09-03 06:58 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-03 06:58:56 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Mike Abrams 2017-08-21 07:55:04 UTC
Description of problem:
image convert does not produce output in containerized environment

Version-Release number of selected component (if applicable):
openstack-glance-15.0.0-0.20170807160730.9204583.el7ost.noarch

How reproducible:
always

Steps to Reproduce:
1. set work_dir in OC:/var/lib/config-data/puppet-generated/glance_api/etc/glance/glance-api.conf to /tmp/image_convert/
2. on each controller, docker restart glance_api
3. from the UC sourcing overcloudrc, do:  glance --os-image-api-version 2  task-create --type import --input '{"import_from_format": "qcow2", "import_from": "`pwd`/cirros-0.3.4-x86_64-disk.img", "image_properties": {"disk_format": "raw", "container_format": "bare"}}'

Actual results:
(overcloud) [stack@undercloud-0 ~]$ glance --os-image-api-version 2  task-create --type import --input '{"import_from_format": "qcow2", "import_from": "`pwd`/cirros-0.3.4-x86_64-disk.img", "image_properties": {"disk_format": "raw", "container_format": "bare"}}'
+------------+----------------------------------------------------------------------------------+
| Property   | Value                                                                            |
+------------+----------------------------------------------------------------------------------+
| created_at | 2017-08-21T07:26:46Z                                                             |
| id         | fdb02e38-f928-4a93-9192-79f29333a268                                             |
| input      | {"image_properties": {"container_format": "bare", "disk_format": "raw"},         |
|            | "import_from_format": "qcow2", "import_from":                                    |
|            | "`pwd`/cirros-0.3.4-x86_64-disk.img"}                                            |
| message    |                                                                                  |
| owner      | 2278672dfc934a9baeff75e9549322ab                                                 |
| result     | None                                                                             |
| status     | pending                                                                          |
| type       | import                                                                           |
| updated_at | 2017-08-21T07:26:46Z                                                             |
+------------+----------------------------------------------------------------------------------+
(overcloud) [stack@undercloud-0 ~]$

Expected results:
i expect to find the converted image on either the uc/oc/or containerized /tmp/image_convert/ locations but it is not in any of those; and the image is 'pending'.  please advise

Additional info:


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