Ask Your Question
0

Connection to glance host http://controller:9292 failed

asked 2016-09-05 01:41:43 -0500

Yuji gravatar image

updated 2016-09-05 04:49:53 -0500

sunnyarora gravatar image

when i want to Launch an instance on my openstack ,that comes:

Build of instance 687661c9-e010-4cf2-8b5b-e4388a7912a9 aborted: Connection to glance host http://controller:9292 failed: Error finding address for http://controller:9292/v1/images/440721e8-a13f-409b-a2f3-84f6763927a5: HTTPConnectionPool(host='controller',code:500
File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1926, in _do_build_and_run_instance filter_properties) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2083, in _build_and_run_instance 'create.error', fault=e) File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ self.force_reraise() File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise six.reraise(self.type_, self.value, self.tb) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2067, in _build_and_run_instance instance=instance) File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2244, in _build_resources reason=six.text_type(exc))

-

cat /var/log/glance/registry.log

2016-09-05 14:22:30.694 40910 INFO eventlet.wsgi.server [req-af018f59-3514-41ff-ae44-c2cea5a9709e ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] 127.0.0.1 - - [05/Sep/2016 14:22:30] "GET /images/440721e8-a13f-409b-a2f3-84f6763927a5 HTTP/1.1" 200 903 0.300862
2016-09-05 14:23:44.702 40911 INFO eventlet.wsgi.server [req-7da779ab-cdf8-4b6b-8936-4d4c7a8fdb18 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] 127.0.0.1 - - [05/Sep/2016 14:23:44] "GET /images/detail?sort_key=created_at&sort_dir=desc&limit=1000 HTTP/1.1" 200 3059 0.301075
2016-09-05 14:23:54.638 40909 INFO eventlet.wsgi.server [req-d446408a-f54c-4d56-bfb6-d88cd15e3678 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] 127.0.0.1 - - [05/Sep/2016 14:23:54] "GET /images/440721e8-a13f-409b-a2f3-84f6763927a5 HTTP/1.1" 200 903 0.559929

cat /var/log/nova/nova-compute.log

2016-09-05 15:24:14.544 26391 WARNING nova.virt.osinfo [req-8f5276f7-c77f-4be4-8622-3a2ab19ffd55 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] Cannot find OS information - Reason: (No configuration information found for operating system Empty)
2016-09-05 15:24:14.796 26391 WARNING nova.virt.osinfo [req-8f5276f7-c77f-4be4-8622-3a2ab19ffd55 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] Cannot find OS information - Reason: (No configuration information found for operating system Empty)
2016-09-05 15:24:14.798 26391 INFO nova.virt.libvirt.driver [req-8f5276f7-c77f-4be4-8622-3a2ab19ffd55 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] [instance: 7a2a8e8f-ce69-4088-ab5b-af3a248778e6] Creating image
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance [req-8f5276f7-c77f-4be4-8622-3a2ab19ffd55 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] Error contacting glance server 'http://controller:9292' for 'data', done trying.
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance Traceback (most recent call last):
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 250, in call
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance     result = getattr(client.images, method)(*args, **kwargs)
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance   File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 148, in data
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance     % urlparse.quote(str(image_id)))
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance   File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 275, in get
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance     return ...
(more)
edit retag flag offensive close merge delete

Comments

please check if Existing Threads can resolve your problem

Link1

Link2

sunnyarora gravatar imagesunnyarora ( 2016-09-05 04:53:10 -0500 )edit

Hey! I got the same error as you. Have you solved the problem?

JackLin gravatar imageJackLin ( 2016-09-05 10:30:54 -0500 )edit

I don't have the same error in these two link. I can create the image using glance api successfully, and the controller:9292 is start.

JackLin gravatar imageJackLin ( 2016-09-05 10:42:24 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-09-10 11:17:36 -0500

JackLin gravatar image

I solved my problem! I got the error because the firewall made rabbitmq.service failed. Try closed your firewall and restart your rabbitmq.service.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-09-05 01:41:43 -0500

Seen: 1,458 times

Last updated: Sep 10 '16