[integration tests] CommunicationError: Error finding address for <glance image file upload url> Unable to establish connection to <glance image file upload url>

Bug #1584783 reported by Georgy Dyuldin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Invalid
High
MOS QA Team

Bug Description

Test result:

https://mirantis.testrail.com/index.php?/tests/view/6075768

Trace:

self = <mos_tests.windows.windows_compatibility_test.TestWindowCompatibility object at 0x7f3b70312790>
request = <FixtureRequest for <Function 'test_create_instance_with_windows_image[(634680)]'>>
floating_ip = <FloatingIP fixed_ip=None, id=304c25d4-788f-45e9-ae30-b54e03004456, instance_id=None, ip=10.109.10.132, pool=admin_floating_net>

    @pytest.mark.testrail_id('634680')
    def test_create_instance_with_windows_image(self, request, floating_ip):
        """This test checks that instance with Windows image could be created

            Steps:
            1. Upload Windows 2012 Server image to Glance
            2. Create VM with this Windows image
            3. Assign floating IP to this VM
            4. Ping this VM and verify that we can ping it
            """
> request.getfuncargvalue("instance")

mos_tests/windows/windows_compatibility_test.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/windows/local/lib/python2.7/site-packages/_pytest/python.py:1612: in getfuncargvalue
    return self._get_active_fixturedef(argname).cached_result[0]
.tox/windows/local/lib/python2.7/site-packages/_pytest/python.py:1629: in _get_active_fixturedef
    result = self._getfuncargvalue(fixturedef)
.tox/windows/local/lib/python2.7/site-packages/_pytest/python.py:1675: in _getfuncargvalue
    val = fixturedef.execute(request=subrequest)
.tox/windows/local/lib/python2.7/site-packages/_pytest/python.py:2099: in execute
    fixturedef = request._get_active_fixturedef(argname)
.tox/windows/local/lib/python2.7/site-packages/_pytest/python.py:1629: in _get_active_fixturedef
    result = self._getfuncargvalue(fixturedef)
.tox/windows/local/lib/python2.7/site-packages/_pytest/python.py:1675: in _getfuncargvalue
    val = fixturedef.execute(request=subrequest)
.tox/windows/local/lib/python2.7/site-packages/_pytest/python.py:2137: in execute
    self.yieldctx)
.tox/windows/local/lib/python2.7/site-packages/_pytest/python.py:2042: in call_fixture_func
    res = next()
mos_tests/windows/windows_compatibility_test.py:87: in image
    os_conn.glance.images.upload(image.id, f)
.tox/windows/local/lib/python2.7/site-packages/glanceclient/v2/images.py:217: in upload
    self.http_client.put(url, headers=hdrs, data=body)
.tox/windows/local/lib/python2.7/site-packages/keystoneclient/adapter.py:185: in put
    return self.request(url, 'PUT', **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <glanceclient.common.http.SessionClient object at 0x7f3b6771ea10>
url = '/v2/images/018dee69-1c9c-4d1f-84a9-96bf55565cf0/file', method = 'PUT'
kwargs = {'raise_exc': False, 'stream': True}
headers = {'Content-Type': 'application/octet-stream', 'User-Agent': 'python-glanceclient', 'X-Auth-Token': 'gAAAAABXPZ_fgOCB2PT...GVNwses6DGVrFXw3iJ0Fa-Wvw9DhAukdOnanxBFKKF9vIBq8M41AqKh_vev-YPARwHs80BrveNJfzMOqedwduO6glFzIC9CKbLlf05MWFACuRHb0tyWdk'}
data = <generator object _chunk_body at 0x7f3b6768d500>
e = ConnectFailure(u'Unable to establish connection to http://10.109.10.4:9292/v2/images/018dee69-1c9c-4d1f-84a9-96bf55565cf0/file',)
conn_url = 'http://10.109.10.4:9292/v2/images/018dee69-1c9c-4d1f-84a9-96bf55565cf0/file'
message = 'Error finding address for http://10.109.10.4:9292/v2/images/018dee69-1c9c-4d1f-84a9-96bf55565cf0/file: Unable to establish connection to http://10.109.10.4:9292/v2/images/018dee69-1c9c-4d1f-84a9-96bf55565cf0/file'

    def request(self, url, method, **kwargs):
        headers = kwargs.pop('headers', {})
        kwargs['raise_exc'] = False
        data = self._set_common_request_kwargs(headers, kwargs)

        try:
            resp = super(SessionClient, self).request(url,
                                                      method,
                                                      headers=headers,
                                                      data=data,
                                                      **kwargs)
        except ksc_exc.RequestTimeout as e:
            conn_url = self.get_endpoint(auth=kwargs.get('auth'))
            conn_url = "%s/%s" % (conn_url.rstrip('/'), url.lstrip('/'))
            message = ("Error communicating with %(url)s %(e)s" %
                       dict(url=conn_url, e=e))
            raise exc.InvalidEndpoint(message=message)
        except ksc_exc.ConnectionRefused as e:
            conn_url = self.get_endpoint(auth=kwargs.get('auth'))
            conn_url = "%s/%s" % (conn_url.rstrip('/'), url.lstrip('/'))
            message = ("Error finding address for %(url)s: %(e)s" %
                       dict(url=conn_url, e=e))
> raise exc.CommunicationError(message=message)
E CommunicationError: Error finding address for http://10.109.10.4:9292/v2/images/018dee69-1c9c-4d1f-84a9-96bf55565cf0/file: Unable to establish connection to http://10.109.10.4:9292/v2/images/018dee69-1c9c-4d1f-84a9-96bf55565cf0/file

.tox/windows/local/lib/python2.7/site-packages/glanceclient/common/http.py:330: CommunicationError

Tags: area-qa
Changed in mos:
milestone: 10.0 → 9.0
Revision history for this message
Ilya Menkov (imenkov) wrote :

Bug not reproduced on 9.0 mos iso #376 and later

Changed in mos:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.