Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to workaround glance timeout?

Hi,

I'm using packstack and get a glance timeout error. If I take the problem command and run it manually I also get the timeout. Following the advice on the workarounds page (linked below) I can edit the config file to change notifier_strategy to noop (Be careful of the spaces in the config file so the sed command show doesn't work) and after the edit and restart of the service I can successfully run the command without a timeout and the image is loaded. When I then rerun packstack the glance config file is returned to it's original state and the problem stops packstack with an error again. Workaround link - http://openstack.redhat.com/Workarounds#glance:_Error_communicating_with_http:.2F.2F192.168.8.96:9292_timed_out

So, how do I either, fix the timeout in the first place or make the workaround stick so packstack runs through?

Here is a walk through of the commands....(shorten sequence may be shown)

$ packstack --answer-file=packstack-answers
ERROR : Error appeared during Puppet run: 192.168.1.#_provision.pp
Error: Execution of '/usr/bin/glance -T services -I glance -K passwordhere -N http://192.168.1.#:35357/v2.0/ add 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: Error communicating with http://192.168.1.#:9292 timed out
$ /usr/bin/glance -T services -I glance -K passwordhere -N http://192.168.1.#:35357/v2.0/ add 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
Error communicating with http://192.168.1.#:9292 timed out
$ sudo vi /etc/glance/glance-api.conf
$ sudo /bin/systemctl restart openstack-glance-api.service
$ /usr/bin/glance -T services -I glance -K passwordhere -N http://192.168.1.#:35357/v2.0/ add 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
Added new image with ID: 241d422c-86da-4e78-bffd-47c0d47bf887
$ packstack --answer-file=packstack-answers
ERROR : Error appeared during Puppet run: 192.168.1.#_provision.pp
Error: Execution of '/usr/bin/glance -T services -I glance -K passwordhere -N http://192.168.1.#:35357/v2.0/ add 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: Error communicating with http://192.168.1.#:9292 timed out

Thanks, Mike

How to workaround glance timeout?

Hi,

I'm using packstack and get a glance timeout error. If I take the problem command and run it manually I also get the timeout. Following the advice on the workarounds page (linked below) I can edit the config file to change notifier_strategy to noop (Be careful of the spaces in the config file so the sed command show doesn't work) and after the edit and restart of the service I can successfully run the command without a timeout and the image is loaded. When I then rerun packstack the glance config file is returned to it's original state and the problem stops packstack with an error again. Workaround link - http://openstack.redhat.com/Workarounds#glance:_Error_communicating_with_http:.2F.2F192.168.8.96:9292_timed_out

So, how do I either, fix the timeout in the first place or make the workaround stick so packstack runs through?

Here is a walk through of the commands....(shorten sequence may be shown)

$ packstack --answer-file=packstack-answers
ERROR : Error appeared during Puppet run: 192.168.1.#_provision.pp
Error: Execution of '/usr/bin/glance -T services -I glance -K passwordhere -N http://192.168.1.#:35357/v2.0/ add 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: Error communicating with http://192.168.1.#:9292 timed out
$ /usr/bin/glance -T services -I glance -K passwordhere -N http://192.168.1.#:35357/v2.0/ add 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
Error communicating with http://192.168.1.#:9292 timed out
$ sudo vi /etc/glance/glance-api.conf
$ sudo /bin/systemctl restart openstack-glance-api.service
$ /usr/bin/glance -T services -I glance -K passwordhere -N http://192.168.1.#:35357/v2.0/ add 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
Added new image with ID: 241d422c-86da-4e78-bffd-47c0d47bf887
$ packstack --answer-file=packstack-answers
ERROR : Error appeared during Puppet run: 192.168.1.#_provision.pp
Error: Execution of '/usr/bin/glance -T services -I glance -K passwordhere -N http://192.168.1.#:35357/v2.0/ add 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: Error communicating with http://192.168.1.#:9292 timed out

This is seen on Fedora 20 using the standard packstack from the repos.

Thanks, Mike