Glance + Swift backend

asked 2016-06-17 09:16:48 -0500

r00t gravatar image

updated 2016-06-17 09:23:50 -0500

Hi guys. I need you help. I've tried to setup Glance to store images into Swift backend and config looking realy easy. I used this post like example http://www.unixarena.com/2015/10/openstack-re-configure-glance-to-use-swift-storage.html (http://www.unixarena.com/2015/10/open...) but after nesessary changes I faced with "Connection pool is full, discarding connection" issue. It's happend when I make new instance snapshot. As a result new snapshot haven't created, appears in DELETED status and disappears after refreshing the Horizon page.

Enviroment info: Solaris 11.3; Juno release; glance --version 0.15.0 nova --version 2.20.0 nova-manage --version 2014.2.2 swift --version swift 2.3.1

Also I have strange behavior: when I changed "glance-api.conf" "default_store = swift" and restart glance-api and glance-registry I anyway can use glance image-list and find my old images storied on filesystem.

Here is this more wider error log from nova-compute:

    2016-06-17 11:47:33.576 88910 INFO nova.virt.solariszones.driver [req-a7b2791c-187a-404e-9a10-e4569a8b9ee7 None] [instance: 8cd846d0-1016-4291-89b7-a131f6471421] Snapshot extracted, beginning image upload
    2016-06-17 11:47:44.040 88910 WARNING requests.packages.urllib3.connectionpool [req-a7b2791c-187a-404e-9a10-e4569a8b9ee7 ] Connection pool is full, discarding connection: ctl.MYHOST.net
    2016-06-17 11:47:44.321 88910 INFO nova.scheduler.client.report [req-a7b2791c-187a-404e-9a10-e4569a8b9ee7 None] Compute_service record updated for ('comp01.MYHOST.net', 'v-4-kp24-d6047-164.webazilla.com')
    2016-06-17 11:47:44.323 88910 ERROR oslo.messaging.rpc.dispatcher [req-a7b2791c-187a-404e-9a10-e4569a8b9ee7 ] Exception during message handling: <html>
     <head>
      <title>400 Bad Request</title>
     </head>
     <body>
      <h1>400 Bad Request</h1>
      Client disconnected before sending all data to backend<br /><br />

     </body>
    </html> (HTTP 400)
    2016-06-17 11:47:44.323 88910 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
    2016-06-17 11:47:44.323 88910 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/vendor-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
    2016-06-17 11:47:44.323 88910 TRACE oslo.messaging.rpc.dispatcher     incoming.message))
    2016-06-17 11:47:44.323 88910 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/vendor-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
    2016-06-17 11:47:44.323 88910 TRACE oslo.messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
    2016-06-17 11:47:44.323 88910 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/vendor-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
    2016-06-17 11:47:44.323 88910 TRACE oslo.messaging.rpc.dispatcher     result = getattr(endpoint, method)(ctxt, **new_args)
    2016-06-17 11:47:44.323 88910 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/vendor-packages/nova/exception.py", line 88, in wrapped
    2016-06-17 11:47:44.323 88910 TRACE oslo.messaging.rpc.dispatcher     payload)
    2016-06-17 11:47:44.323 88910 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/vendor-packages/nova/openstack/common/excutils.py", line 82, in __exit__
    2016-06-17 11:47:44.323 88910 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
    2016-06-17 11:47:44.323 88910 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2 ...
(more)
edit retag flag offensive close merge delete

Comments

Can you successfully upload a new image(not a snapshot) by glance to swift?

aric gravatar imagearic ( 2016-09-08 18:52:38 -0500 )edit