Bug 1483461

Summary: glance image convert does not produce output in containerized environment
Product: Red Hat OpenStack Reporter: Mike Abrams <mabrams>
Component: openstack-glanceAssignee: Pranali Deore <pdeore>
Status: CLOSED NOTABUG QA Contact: Mike Abrams <mabrams>
Severity: high Docs Contact:
Priority: unspecified    
Version: 12.0 (Pike)CC: eglynn, fpercoco, mabrams, pdeore, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-03 06:58:56 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:

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: