Ask Your Question
0

glance image-create not working

asked 2013-07-23 04:59:52 -0500

plaknas gravatar image

updated 2013-08-26 00:05:26 -0500

fifieldt gravatar image

I have been following the steps on this guide http://docs.openstack.org/grizzly/openstack-compute/install/apt/content/ch_installing-openstack-image.html and it's fine till I come to adding an image through glance image-create.

As per the guide, in the .conf file I enabled v2 for the API and set the attribute for v1 to False. And I even set the OS_IMAGE_API_VERSION to 2. Now, with this, it returns the error:

glance: error: argument <subcommand>: invalid choice: u'image-create' (choose from 'explain', 'image-delete', 'image-download', 'image-list', 'image-show', 'help')

On the other hand, when I set the OS_IMAGE_API_VERSION to 1, I get the error:

HTTPMultipleChoices (HTTP 300) Requested version of OpenStack Images API is notavailable.

Of course, when the api_version env variable is set to 1, I get the same error for image-list and other commands too.

Any thoughts on what could possibly be wrong with the image-create command in API v2? Is there anyway to flush the API and reinstall/rebuild it?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-07-24 01:13:43 -0500

plaknas gravatar image

For some reason image-create doesn't seem to be working for me with v2. Enabling v1 and disabling v2, restarting glance-api did the job for me. I can create images but I am using v1 now. I am not sure how it is going to affect me though.

edit flag offensive delete link more

Comments

I've run into the same issue, does anyone else have some more insight? EDIT: After inspecting the log file (/var/log/glance/api.log), I found complaints about schema-image.json missing. This seems to be the cause of the problem.

shsingh gravatar imageshsingh ( 2013-07-31 11:24:58 -0500 )edit
SGPJ gravatar imageSGPJ ( 2014-04-25 05:29:28 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-07-23 04:59:52 -0500

Seen: 1,501 times

Last updated: Jul 24 '13