openstack image create fails to support qcow2 conatiner format

Bug #1710436 reported by Prakash Ramchandran
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Invalid
Undecided
Gleb Zimin

Bug Description

<email address hidden>:~/devstack$ openstack image create --container-format qcow2 --disk-format raw --file Fedora-Cloud-Base-25-1.3.x86_64.qcow2 Fedora-Cloud-Base-25-1.3.x86_64.qcow2
openstack image create: error: argument --container-format: invalid choice: u'qcow2' (choose from 'ami', 'ari', 'aki', 'bare', 'docker', 'ova', 'ovf')
0)

tried bare as syntax claimed support for
<email address hidden>:~/devstack$ openstack image create --container-format bare --disk-format raw --file Fedora-Cloud-Base-25-1.3.x86_64.qcow2 Fedora-Cloud-Base-25-1.3.x86_64.qcow2
500 Internal Server Error
The server has either erred or is incapable of performing the requested operation.
    (HTTP 500)

This is an ubutntu xenial
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 8
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 45
Model name: Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
Stepping: 7
CPU MHz: 2593.540
BogoMIPS: 5265.10
Hypervisor vendor: Xen
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 20480K
NUMA node0 CPU(s): 0-7
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc rep_good nopl pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes hypervisor lahf_lm

Any Rackspace folks can possibly point since Hypervisor vendor is Xen does it mean qemu can not support qcow2 conatiner format, if so are there any pointers to fix this?

Revision history for this message
Prakash Ramchandran (pramchan-5) wrote :

Thinking this could work with ubuntu 14.04LTS image met the same fate
openstack image create --container-format bare --disk-format raw --file trusty-server-cloudimg-amd64-disk1.img trusty-server-cloudimg-amd64-disk1.img
500 Internal Server Error
The server has either erred or is incapable of performing the requested operation.
    (HTTP 500)
stack@server-04

Revision history for this message
Gleb Zimin (gzimin) wrote :

You make mistake in container-format argument. As you can see in documentation - https://docs.openstack.org/image-guide/image-formats.html
Container format can be one of the following formats:
aki, ami, ari, bare, docker, ova, ovf.
Disk format can be raw or qcow2.

So, try command like this -
$ openstack image create --disk-format qcow2 --file Fedora-Cloud-Base-25-1.3.x86_64.qcow2 Fedora-Cloud-Base-25-1.3.x86_64.qcow2

Gleb Zimin (gzimin)
Changed in glance:
assignee: nobody → Gleb Zimin (glathor)
Gleb Zimin (gzimin)
Changed in glance:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.