Ask Your Question

Glance image-create ERROR [closed]

asked 2014-11-19 07:31:53 -0500

Pablo Revuelta gravatar image

updated 2014-11-19 10:21:43 -0500

While installing openstack icehouse in my CentOs 6.5 I got the following error:

tar --dereference -cpzf - apache ceilometer certmonger cinder concat firewall glance heat horizon inifile keystone memcached mongodb mysql neutron nova nssdb openstack packstack qpid rabbitmq remote rsync ssh stdlib swift sysctl tempest vcsrepo vlan vswitch xinetd | ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@ tar -C /var/tmp/packstack/e6d2c26823584aa19249a5936c97d141/modules -xpzf -
2014-11-19 12:22:58::ERROR::run_setup::921::root:: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/packstack/installer/", line 902, in main
  File "/usr/lib/python2.6/site-packages/packstack/installer/", line 688, in single_step_aio_install
  File "/usr/lib/python2.6/site-packages/packstack/installer/", line 718, in single_step_install
  File "/usr/lib/python2.6/site-packages/packstack/installer/", line 605, in _main
  File "/usr/lib/python2.6/site-packages/packstack/installer/", line 584, in runSequences
  File "/usr/lib/python2.6/site-packages/packstack/installer/", line 68, in runAllSequences, messages=self.MESSAGES)
  File "/usr/lib/python2.6/site-packages/packstack/installer/core/", line 98, in run, messages=messages)
  File "/usr/lib/python2.6/site-packages/packstack/installer/core/", line 44, in run
    raise SequenceError(str(ex))
SequenceError: Error appeared during Puppet run:
Error: Execution of '/usr/bin/glance -T services -I glance -K 4043aece5fe34b31 -N image-create --name=cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=' returned 1: Request returned failure status.

Any idea how to solve this?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Pablo Revuelta
close date 2014-11-20 02:00:11.983048


I think that the problem is that my net uses a proxy and glance is not able to download


which outputs

returned 1: Request returned failure status.
400 Bad Request
The HTTP URL is invalid.
Pablo Revuelta gravatar imagePablo Revuelta ( 2014-11-19 10:02:22 -0500 )edit

The problem is that I do not know how yo set up glance to use my proxy :S Help pls!!!

Pablo Revuelta gravatar imagePablo Revuelta ( 2014-11-19 10:02:51 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2014-11-19 13:06:32 -0500

dbaxps gravatar image

updated 2014-11-19 13:18:08 -0500

Setting the proxy inside /etc/yum.conf works immediately.

Add the following line to /etc/yum.conf: proxy=http://Proxy-IP:Port

Also if you need to setup proxy env variables for general external HTTP access, you might need to adjust openstack settings to avoid the proxy for internal openstack services. Add to $HOME/.bashrc

http_proxy=http://IP-PROXY:PORT-PROXY; export http_proxy
no_proxy="localhost,"; export no_proxy
edit flag offensive delete link more


This solved my problem!! thx a lot!

Pablo Revuelta gravatar imagePablo Revuelta ( 2014-11-20 01:56:04 -0500 )edit

answered 2014-11-19 14:56:45 -0500

echiu gravatar image

You can set up your /etc/environment so the proxy configuration will apply to all users, this is useful since you may need to run as 'root' for the install.

Add this content in /etc/environment http_proxy=http://HOST:PORT https_proxy=https://HOST:PORT no_proxy="localhost,, <local_ip_list>

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-11-19 07:31:53 -0500

Seen: 2,843 times

Last updated: Nov 19 '14