Ask Your Question
0

glance: error: unrecognized arguments: --name --disk-format qcow2 --container-format bare --visibility public --debug

asked 2015-10-15 04:27:32 -0500

updated 2015-10-15 04:29:00 -0500

Hello, While trying to install OpenStack Kilo on Ubuntu Sever 14.04, in the "Verify operation" section of the "Add the Image service" chapter, I tried to create an image with glance:

    glance image-create --name "cirros-0.3.4-x86_64" --file /tmp/images/cirros-0.3.4-x86_64-disk.img \ --disk-format qcow2 --container-format bare --visibility public --progress

And the system replies with :

glance: error: unrecognized arguments: --name --disk-format qcow2 --container-format bare --visibility public

What does that mean ?

Checking the logs: /var/log/glance/glance-api.log

2015-10-15 11:14:03.555 26808 WARNING oslo_config.cfg [-] Option "username" from group "keystone_authtoken" is deprecated. Use option "username" from group "keystone_authtoken".

My current possibly-related environment variables are (by printenv command):

OS_PROJECT_DOMAIN_ID=default
OS_IMAGE_API_VERSION=2
OS_USER_DOMAIN_ID=default
OS_PASSWORD=ADMIN_PASS
OS_AUTH_URL=http://controller:35357/v3
OS_USERNAME=admin
OS_TENANT_NAME=admin

Any help would be extremely appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-10-15 04:56:55 -0500

I solved by myself. I discovered I was having multiple glance services with the same name and no glance public endpoint. Solved by doing:

openstack service list

and then I saw I was having multiple glance services with same name, so:

openstack service delete <id>

you can copy the id from the result of the previous command, be sure to leave just one glance service. Then I carried on by

openstack endpoint create \
  --publicurl http://controller:9292 \
  --internalurl http://controller:9292 \
  --adminurl http://controller:9292 \
  --region RegionOne \
  image

(be always careful sending commands from the correct user).

After recreating the endpoint and setting the environment variable by source admin-openrc.sh, I was in the end able to carry on.

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: 2015-10-15 04:27:32 -0500

Seen: 3,946 times

Last updated: Oct 15 '15