Ask Your Question
0

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@180.133.140.69 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/run_setup.py", line 902, in main
    single_step_aio_install(options)
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 688, in single_step_aio_install
    single_step_install(options)
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 718, in single_step_install
    _main(answerfilepath)
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 605, in _main
    runSequences()
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 584, in runSequences
    controller.runAllSequences()
  File "/usr/lib/python2.6/site-packages/packstack/installer/setup_controller.py", line 68, in runAllSequences
    sequence.run(config=self.CONF, messages=self.MESSAGES)
  File "/usr/lib/python2.6/site-packages/packstack/installer/core/sequences.py", line 98, in run
    step.run(config=config, messages=messages)
  File "/usr/lib/python2.6/site-packages/packstack/installer/core/sequences.py", line 44, in run
    raise SequenceError(str(ex))
SequenceError: Error appeared during Puppet run: 180.133.140.69_provision_glance.pp
Error: Execution of '/usr/bin/glance -T services -I glance -K 4043aece5fe34b31 -N http://180.133.140.69:35357/v2.0/ image-create --name=cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img' 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

Comments

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

`--copy-from=http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img`

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
2

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,127.0.0.1"; export no_proxy
edit flag offensive delete link more

Comments

This solved my problem!! thx a lot!

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

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,127.0.0.1, <local_ip_list>

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 2,646 times

Last updated: Nov 19 '14