Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 952451 Details for
Bug 1159265
glance-api get ECONNREFUSED when connecting to glance registy when using bind_host in glance-registry.conf
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Extended information
glance-err.txt (text/plain), 13.94 KB, created by
Daniel
on 2014-10-31 10:36:01 UTC
(
hide
)
Description:
Extended information
Filename:
MIME Type:
Creator:
Daniel
Created:
2014-10-31 10:36:01 UTC
Size:
13.94 KB
patch
obsolete
>VERSIONS: > >openstack-nova-novncproxy-2014.1.2-1.el6.noarch >openstack-cinder-2014.1.3-1.el6.noarch >openstack-keystone-2014.1.2.1-1.el6.noarch >openstack-glance-2014.1.2-5.el6.noarch >openstack-nova-api-2014.1.2-1.el6.noarch >openstack-nova-scheduler-2014.1.2-1.el6.noarch >openstack-dashboard-2014.1.3-1.el6.noarch >openstack-nova-cert-2014.1.2-1.el6.noarch >openstack-nova-console-2014.1.2-1.el6.noarch >openstack-neutron-2014.1.3-1.el6.noarch >openstack-utils-2014.1-3.el6.noarch >openstack-nova-conductor-2014.1.2-1.el6.noarch >openstack-neutron-ml2-2014.1.3-1.el6.noarch >python-django-openstack-auth-1.1.5-1.el6.noarch >openstack-selinux-0.1.5-1.el6ost.noarch >openstack-nova-common-2014.1.2-1.el6.noarch > >WORKING CONFIG: > >[root@controller glance]# cat glance-api.conf | grep -v ^# | grep -v ^$ >[DEFAULT] >bind_host=192.168.124.2 >[database] >connection = mysql://glance:Amena2006@mysql-vip/glance >[keystone_authtoken] >auth_uri = http://openapi-vip:5000 >auth_host = openapi-vip >auth_port = 35357 >auth_protocol = http >admin_tenant_name = service >admin_user = glance >admin_password = Amena2006 >[paste_deploy] >flavor = keystone >[store_type_location_strategy] > >[root@controller glance]# cat glance-registry.conf | grep -v ^# | grep -v ^$ >[DEFAULT] >bind_host=0.0.0.0 >[database] >connection = mysql://glance:Amena2006@mysql-vip/glance >[keystone_authtoken] >auth_uri = http://openapi-vip:5000 >auth_host = openapi-vip >auth_port = 35357 >auth_protocol = http >admin_tenant_name = service >admin_user = glance >admin_password = Amena2006 >[paste_deploy] >flavor = keystone > >[root@controller glance]# glance index >ID Name Disk Format Container Format Size >------------------------------------ ------------------------------ -------------------- -------------------- -------------- >7de9fe2c-09e2-4fad-ae72-65ce9812ccd8 cirros qcow2 bare 12268032 >1ac068c9-e23d-444d-a5ee-c199be298671 openwrt raw bare 55008768 >ac41bc3a-fe05-4822-a16a-8778e54cd851 fedora20-x86_64 qcow2 bare 210829312 >a657b515-0d96-439d-a856-03fa8d6d6cb4 cirros-0.3.2-x86_64 qcow2 bare 13167616 > >NON WORKING CONFIG: > >[root@controller glance]# cat glance-api.conf | grep -v ^# | grep -v ^$ >[DEFAULT] >bind_host=192.168.124.2 >[database] >connection = mysql://glance:Amena2006@mysql-vip/glance >[keystone_authtoken] >auth_uri = http://openapi-vip:5000 >auth_host = openapi-vip >auth_port = 35357 >auth_protocol = http >admin_tenant_name = service >admin_user = glance >admin_password = Amena2006 >[paste_deploy] >flavor = keystone >[store_type_location_strategy] > >[root@controller glance]# cat glance-registry.conf | grep -v ^# | grep -v ^$ >[DEFAULT] >bind_host=192.168.124.2 >[database] >connection = mysql://glance:Amena2006@mysql-vip/glance >[keystone_authtoken] >auth_uri = http://openapi-vip:5000 >auth_host = openapi-vip >auth_port = 35357 >auth_protocol = http >admin_tenant_name = service >admin_user = glance >admin_password = Amena2006 >[paste_deploy] >flavor = keystone > >[root@controller glance]# /etc/init.d/openstack-glance-registry restart >Stopping openstack-glance-registry: [ OK ] >Starting openstack-glance-registry: [ OK ] >[root@controller glance]# netstat -nalopt | grep -i 9191 >tcp 0 0 192.168.124.2:9191 0.0.0.0:* LISTEN 14614/python off (0.00/0/0) >[root@controller glance]# glance index >ID Name Disk Format Container Format Size >------------------------------------ ------------------------------ -------------------- -------------------- -------------- >Request returned failure status. >HTTPInternalServerError (HTTP 500) > >ERROR LOGS: > >API.LOG: > >2014-10-31 11:26:40.358 25576 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): openapi-vip >2014-10-31 11:26:40.990 25576 INFO glance.wsgi.server [c1df5720-770b-4669-b55b-77b03e860e3f 2b365609fe694e33a2f3cefe273c6a4d d4bdc8fee3c648ceb86c5d8b2a310d4a - - -] 192.168.124.2 - - [31/Oct/2014 11:26:40] "GET /v1/images/detail?limit=10 HTTP/1.1" 200 2101 0.633740 >2014-10-31 11:28:18.177 25576 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): openapi-vip >2014-10-31 11:28:18.292 25576 INFO glance.registry.client.v1.client [e9b88c36-1580-40cb-8e0a-3f2dbe622e50 2b365609fe694e33a2f3cefe273c6a4d d4bdc8fee3c648ceb86c5d8b2a310d4a - - -] Registry client request GET /images/detail raised ClientConnectionError >2014-10-31 11:28:18.293 25576 INFO glance.wsgi.server [e9b88c36-1580-40cb-8e0a-3f2dbe622e50 2b365609fe694e33a2f3cefe273c6a4d d4bdc8fee3c648ceb86c5d8b2a310d4a - - -] Traceback (most recent call last): > File "/usr/lib/python2.6/site-packages/eventlet/wsgi.py", line 433, in handle_one_response > result = self.application(self.environ, start_response) > File "/usr/lib/python2.6/site-packages/webob/dec.py", line 130, in __call__ > resp = self.call_func(req, *args, **self.kwargs) > File "/usr/lib/python2.6/site-packages/webob/dec.py", line 195, in call_func > return self.func(req, *args, **kwargs) > File "/usr/lib/python2.6/site-packages/glance/common/wsgi.py", line 378, in __call__ > response = req.get_response(self.application) > File "/usr/lib/python2.6/site-packages/webob/request.py", line 1296, in send > application, catch_exc_info=False) > File "/usr/lib/python2.6/site-packages/webob/request.py", line 1260, in call_application > app_iter = application(self.environ, start_response) > File "/usr/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py", line 679, in __call__ > return self.app(env, start_response) > File "/usr/lib/python2.6/site-packages/webob/dec.py", line 130, in __call__ > resp = self.call_func(req, *args, **self.kwargs) > File "/usr/lib/python2.6/site-packages/webob/dec.py", line 195, in call_func > return self.func(req, *args, **kwargs) > File "/usr/lib/python2.6/site-packages/glance/common/wsgi.py", line 378, in __call__ > response = req.get_response(self.application) > File "/usr/lib/python2.6/site-packages/webob/request.py", line 1296, in send > application, catch_exc_info=False) > File "/usr/lib/python2.6/site-packages/webob/request.py", line 1260, in call_application > app_iter = application(self.environ, start_response) > File "/usr/lib/python2.6/site-packages/paste/urlmap.py", line 203, in __call__ > return app(environ, start_response) > File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__ > return resp(environ, start_response) > File "/usr/lib/python2.6/site-packages/routes/middleware.py", line 131, in __call__ > response = self.app(environ, start_response) > File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__ > return resp(environ, start_response) > File "/usr/lib/python2.6/site-packages/webob/dec.py", line 130, in __call__ > resp = self.call_func(req, *args, **self.kwargs) > File "/usr/lib/python2.6/site-packages/webob/dec.py", line 195, in call_func > return self.func(req, *args, **kwargs) > File "/usr/lib/python2.6/site-packages/glance/common/wsgi.py", line 644, in __call__ > request, **action_args) > File "/usr/lib/python2.6/site-packages/glance/common/wsgi.py", line 668, in dispatch > return method(*args, **kwargs) > File "/usr/lib/python2.6/site-packages/glance/api/v1/images.py", line 337, in detail > images = registry.get_images_detail(req.context, **params) > File "/usr/lib/python2.6/site-packages/glance/registry/client/v1/api.py", line 150, in get_images_detail > return c.get_images_detailed(**kwargs) > File "/usr/lib/python2.6/site-packages/glance/registry/client/v1/client.py", line 136, in get_images_detailed > res = self.do_request("GET", "/images/detail", params=params) > File "/usr/lib/python2.6/site-packages/glance/registry/client/v1/client.py", line 107, in do_request > **kwargs) > File "/usr/lib/python2.6/site-packages/glance/common/client.py", line 66, in wrapped > return func(self, *args, **kwargs) > File "/usr/lib/python2.6/site-packages/glance/common/client.py", line 386, in do_request > headers=copy.deepcopy(headers)) > File "/usr/lib/python2.6/site-packages/glance/common/client.py", line 83, in wrapped > return func(self, method, url, body, headers) > File "/usr/lib/python2.6/site-packages/glance/common/client.py", line 550, in _do_request > raise exception.ClientConnectionError(e) >ClientConnectionError: [Errno 111] ECONNREFUSED >2014-10-31 11:28:18.298 25576 INFO glance.wsgi.server [e9b88c36-1580-40cb-8e0a-3f2dbe622e50 2b365609fe694e33a2f3cefe273c6a4d d4bdc8fee3c648ceb86c5d8b2a310d4a - - -] 192.168.124.2 - - [31/Oct/2014 11:28:18] "GET /v1/images/detail?limit=10 HTTP/1.1" 500 139 0.122996 > > >REGISTRY.LOG you get no errors: > >2014-10-31 11:28:02.207 14614 INFO keystoneclient.middleware.auth_token [-] Starting keystone auth_token middleware >2014-10-31 11:28:02.207 14614 WARNING keystoneclient.middleware.auth_token [-] Configuring admin URI using auth fragments. This is deprecated, use 'identity_uri' instead. >2014-10-31 11:28:02.208 14614 INFO keystoneclient.middleware.auth_token [-] Using /tmp/keystone-signing-sB89j4 as cache directory for signing certificate >2014-10-31 11:28:02.210 14614 INFO glance.wsgi.server [-] Starting 1 workers >2014-10-31 11:28:02.211 14614 INFO glance.wsgi.server [-] Started child 14620 >2014-10-31 11:28:02.219 14620 INFO glance.wsgi.server [-] (14620) wsgi starting up on http://192.168.124.2:9191/ > >OTHER INFO: > >[root@controller glance]# ip addr >1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > inet 127.0.0.1/8 scope host lo >2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 > link/ether 52:54:00:96:c6:a4 brd ff:ff:ff:ff:ff:ff > inet 192.168.124.2/24 brd 192.168.124.255 scope global eth0 > inet 192.168.124.100/24 brd 192.168.124.255 scope global secondary eth0 > inet 192.168.124.102/24 brd 192.168.124.255 scope global secondary eth0 >3: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP qlen 1000 > link/ether 52:54:00:81:86:62 brd ff:ff:ff:ff:ff:ff >4: eth2: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP qlen 1000 > link/ether 52:54:00:02:cd:86 brd ff:ff:ff:ff:ff:ff >5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 > link/ether 52:54:00:43:e3:7a brd ff:ff:ff:ff:ff:ff > inet 192.168.122.8/24 brd 192.168.122.255 scope global eth3 >6: eth4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 > link/ether 52:54:00:60:45:a5 brd ff:ff:ff:ff:ff:ff > inet 1.1.1.2/24 brd 1.1.1.255 scope global eth4 >7: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP > link/ether 52:54:00:81:86:62 brd ff:ff:ff:ff:ff:ff > inet 192.168.123.2/24 brd 192.168.123.255 scope global bond0 > >[root@controller glance]# keystone endpoint-list >+----------------------------------+-----------+------------------------------------------+------------------------------------------+------------------------------------------+----------------------------------+ >| id | region | publicurl | internalurl | adminurl | service_id | >+----------------------------------+-----------+------------------------------------------+------------------------------------------+------------------------------------------+----------------------------------+ >| 2d395f4061014ceb9fac3bda2ad069ec | regionOne | http://openapi-vip:8776/v1/%(tenant_id)s | http://openapi-vip:8776/v1/%(tenant_id)s | http://openapi-vip:8776/v1/%(tenant_id)s | e585f5c9e9504d06886d9692653ab312 | >| 54e9d1e8d0e645428cd93e91f196cda0 | regionOne | http://openapi-vip:9696 | http://openapi-vip:9696 | http://openapi-vip:9696 | d2cd6eead8aa4562a1ffd6bf2c750794 | >| 7d68e058e0f84d10845ff9532c8ed6dc | regionOne | http://openapi-vip:8776/v2/%(tenant_id)s | http://openapi-vip:8776/v2/%(tenant_id)s | http://openapi-vip:8776/v2/%(tenant_id)s | 7bdefa8ca9324d8ab85ed87267d6111a | >| bfe38735ea944462a309baff7ee170e4 | regionOne | http://controller:9292 | http://controller:9292 | http://controller:9292 | 0842c327028f414ea5a4b46188614f28 | >| d5e9602e014c46a689ce6a6ec1cf8afc | regionOne | http://openapi-vip:8776/v1/%(tenant_id)s | http://openapi-vip:8776/v1/%(tenant_id)s | http://openapi-vip:8776/v1/%(tenant_id)s | e585f5c9e9504d06886d9692653ab312 | >| f95b08a73311416fad04a013e52eb07f | regionOne | http://openapi-vip:5000/v2.0 | http://openapi-vip:5000/v2.0 | http://openapi-vip:35357/v2.0 | 41ec39ff807f41aaa66899201e403368 | >+----------------------------------+-----------+------------------------------------------+------------------------------------------+------------------------------------------+----------------------------------+ >[root@controller glance]# keystone service-list >+----------------------------------+----------+----------+----------------------------+ >| id | name | type | description | >+----------------------------------+----------+----------+----------------------------+ >| e585f5c9e9504d06886d9692653ab312 | cinder | volume | OpenStack Block Storage | >| 7bdefa8ca9324d8ab85ed87267d6111a | cinderv2 | volumev2 | OpenStack Block Storage v2 | >| 0842c327028f414ea5a4b46188614f28 | glance | image | OpenStack Image Service | >| 41ec39ff807f41aaa66899201e403368 | keystone | identity | OpenStack Identity | >| d2cd6eead8aa4562a1ffd6bf2c750794 | neutron | network | OpenStack Networking | >| 74146cada5984ac69e9a4d2e32250b24 | nova | compute | OpenStack Compute | >+----------------------------------+----------+----------+----------------------------+ > > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1159265
: 952451