Ask Your Question
1

403 Forbidden using glance image-create

asked 2016-02-26 10:53:00 -0500

jafar gravatar image

I just used wget to download a fedora atomic image to apply to containers once I install magnum. I'm trying to create a glance image using the following command:

glance image-create --name fedora-21-atomic-5 --visibility public --disk-format qcow2 --os-distro fedora-atomic --container-format bare < fedora-21-atomic-5.qcow2

And I get the following error:

403 Forbidden: You are not authorized to complete this action. (HTTP 403)

As far as I know, I'm running as admin. What else could be the issue?

edit retag flag offensive close merge delete

Comments

Could you try to add 'export OS_IMAGE_API_VERSION=2' to your open-rc.sh file?

cheers, hauke

haukebruno gravatar imagehaukebruno ( 2016-02-27 22:37:30 -0500 )edit

I don't think I have an open-rc.sh file

jafar gravatar imagejafar ( 2016-02-29 13:32:43 -0500 )edit

4 answers

Sort by ยป oldest newest most voted
0

answered 2016-02-28 10:47:29 -0500

phuongnh gravatar image

You should set default user and tennant for Openstack by following command:

~/devstack/source openrc admin admin

edit flag offensive delete link more

Comments

Tried this, got a new error: Error finding address for http://controller:9292

jafar gravatar imagejafar ( 2016-02-29 09:02:42 -0500 )edit

Have your /etc/hosts an entry for controller node or a DNS server on which resolve the address?

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-02-29 14:54:32 -0500 )edit
0

answered 2016-04-26 09:02:26 -0500

Make sure glance-api is running. I got the same problem and I found my glance-api was dead.

edit flag offensive delete link more
0

answered 2016-02-29 15:01:55 -0500

jafar gravatar image

Unstacking and restacking fixed all issues I was having.

edit flag offensive delete link more
0

answered 2017-10-03 12:20:57 -0500

donmasters755 gravatar image

@jafar,

May I ask what "unstacking and restacking" means?

Regards, Don

edit flag offensive delete link more

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: 2016-02-26 10:53:00 -0500

Seen: 2,023 times

Last updated: Oct 03 '17