[Openstack-operators] i got a problem when i upload kernel file to glance api

Jay Pipes jaypipes at gmail.com
Tue Jun 5 18:45:55 UTC 2012


On 06/05/2012 03:58 AM, Yan Lu wrote:
> root at kickseed:~# glance --os_username=adminUser --os_password=adminUser
> --os_tenant=openstackDemo  --os_auth_url=http://127.0.0.1:5000/v2.0 add
> name="tty-linux-kernel" disk_format=aki container_format=aki <
> ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz  --verbose --host=127.0.0.1
> Failed to connect to the Glance API server 127.0.0.1:9292
> <http://127.0.0.1:9292>. Is the server running?
> There was an error connecting to a server
> Details: [Errno 111] Connection refused

Couple things...

1) Make sure you put your command line args for the glance CLI tool on 
the left side of your file redirection :) The --verbose and --host flags 
in your command line above are ignored...

2) If you curl the glance server, do you get anything? Do this:

curl -v http://127.0.0.1:9292/v1/images

You should get a 401 Unauthorized.

3) Is the keystone server running? Try curling that, too:

curl -v http://127.0.0.1:5000/v2.0

best,
-jay



More information about the Openstack-operators mailing list