Ask Your Question

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

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

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

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):


Any help would be extremely appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

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

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 \

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

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

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-10-15 04:27:32 -0600

Seen: 4,723 times

Last updated: Oct 15 '15