How to workaround glance timeout? [closed]

asked 2014-01-27 17:15:29 -0600

mikelancuk gravatar image

updated 2014-01-27 17:18:53 -0600

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

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by rbowen
close date 2014-04-21 09:24:04.295528

Comments

1

What is your glance endpoint ? At one place in logs I see http://192.168.1.#:9292 and in some other place I see the IPV6 address. What is the endpoint defined in keystone ? Is the glance service running when you make request. Looks like your glance service is getting to some internal issue and return error.

dheeru gravatar imagedheeru ( 2014-01-27 20:27:49 -0600 )edit

I'm using the defaults provided by packstack so I'm assuming all the components are integrated to use the same values. I would guess it's the IP address. How do I check? The glance service is running when the timeout occurs.

mikelancuk gravatar imagemikelancuk ( 2014-01-28 03:46:11 -0600 )edit

Are you still experiencing this problem with more recent releases of packstack? If so, can you provide more information from the glance logs?

rbowen gravatar imagerbowen ( 2014-03-24 12:53:37 -0600 )edit

Closing as abandoned

rbowen gravatar imagerbowen ( 2014-04-21 09:23:49 -0600 )edit