Ask Your Question

Glance api version

asked 2014-12-28 06:01:36 -0500

anonymous user


hi guy i get an error when i try to run this comment

glance image-create --name="Cirros" --disk-format=qcow2 \
--container-format=bare --is-public=true < cirros-0.3.3-x86_64-disk.img

the error is

"1" is not supported api version example values "1" or "2"

i don't understand what is that pls help me

edit retag flag offensive close merge delete


which version of openstack? what did the glance say when you add --d switch when executing the same command, like this glance --d image-create ...?

9lives gravatar image9lives ( 2014-12-31 08:18:33 -0500 )edit

Thank you 9lives I don't know which version of openstack install on my system just i know i use ubuntu server 14.04 and i fallow this video's to install that ( and for about --d commend i run it but i got that error again

RezaER gravatar imageRezaER ( 2014-12-31 13:52:59 -0500 )edit

To check the openstack version try this command on controller node

nova --version
9lives gravatar image9lives ( 2014-12-31 19:02:04 -0500 )edit

ImportError: No module named natifaces it's an error full test thank you again

RezaER gravatar imageRezaER ( 2015-01-01 08:39:39 -0500 )edit

seemed the python-novaclient not installed correctly, as a workaround you can check the version of openstack using

sudo dpkg -l | grep nova
9lives gravatar image9lives ( 2015-01-01 08:55:42 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-23 12:31:41 -0500

cloudsbyday gravatar image

I answered this here: []

But just for reference:

You don't have the netifaces installed since you're getting that error.

Fix this by installing it:

sudo pip install netifaces

Then verify:

glance --os-image-api-version 2 image-list

Should get back:

| ID   | Name|

Then rerun your glance image-create

edit flag offensive delete link more


Thank you sir but this command return me No module named netifaces

RezaER gravatar imageRezaER ( 2015-01-24 16:46:50 -0500 )edit

I fixed this problem for me by installing netifaces: sudo apt-get install python-netifaces thank you again

RezaER gravatar imageRezaER ( 2015-01-24 17:22:25 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2014-12-28 06:01:36 -0500

Seen: 1,295 times

Last updated: Jan 23 '15