neoave / mrack

Multicloud use-case based multihost async provisioner for CIs and testing during development
Apache License 2.0
12 stars 14 forks source link

traceback seen when openstack server is down when validating requirements #124

Closed Tiboris closed 3 years ago

Tiboris commented 3 years ago

traceback is present when openstack server is down when validating requirements

    OpenStack: Initializing provider
    OpenStack: Login duration 0:00:00.401090
    ('operation=server_error, response=Response(url=\'https://openstack.example.com:13774/v2.1/flavors/detail\', method=\'GET\', body=\'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\\n<html><head>\\n<title>503 Service Unavailable</title>\\n</head><body>\\n<h1>Service Unavailable</h1>\\n<p>The server is temporarily unable to service your\\nrequest due to maintenance downtime or capacity\\nproblems. Please try again later.</p>\\n</body></html>\\n\', headers={\'Date\': \'Wed, 16 Jun 2021 07:53:05 GMT\', \'Server\': \'Apache\', \'Content-Length\': \'299\', \'Content-Type\': \'text/html; charset=iso-8859-1\'}, status_code=503, client_response=<ClientResponse(https://openstack.example.com:13774/v2.1/flavors/detail) [503 Service Unavailable]>\n<CIMultiDictProxy(\'Date\': \'Wed, 16 Jun 2021 07:53:05 GMT\', \'Server\': \'Apache\', \'Content-Length\': \'299\', \'Content-Type\': \'text/html; charset=iso-8859-1\')>\n)', Response(url='https://openstack.example.com:13774/v2.1/flavors/detail', method='GET', body='<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>503 Service Unavailable</title>\n</head><body>\n<h1>Service Unavailable</h1>\n<p>The server is temporarily unable to service your\nrequest due to maintenance downtime or capacity\nproblems. Please try again later.</p>\n</body></html>\n', headers={'Date': 'Wed, 16 Jun 2021 07:53:05 GMT', 'Server': 'Apache', 'Content-Length': '299', 'Content-Type': 'text/html; charset=iso-8859-1'}, status_code=503, client_response=<ClientResponse(https://openstack.example.com:13774/v2.1/flavors/detail) [503 Service Unavailable]>
    <CIMultiDictProxy('Date': 'Wed, 16 Jun 2021 07:53:05 GMT', 'Server': 'Apache', 'Content-Length': '299', 'Content-Type': 'text/html; charset=iso-8859-1')>
    ))
    Traceback (most recent call last):
      File "/usr/lib/python3.9/site-packages/mrack/run.py", line 250, in handle
        ret_code = func(*args, **kwargs)
      File "/usr/lib/python3.9/site-packages/mrack/run.py", line 274, in run
        mrackcli(obj={})  # pylint: disable=no-value-for-parameter,unexpected-keyword-arg
      File "/usr/lib/python3.9/site-packages/click/core.py", line 829, in __call__
        return self.main(*args, **kwargs)
      File "/usr/lib/python3.9/site-packages/click/core.py", line 782, in main
        rv = self.invoke(ctx)
      File "/usr/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
      File "/usr/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File "/usr/lib/python3.9/site-packages/click/core.py", line 610, in invoke
        return callback(*args, **kwargs)
      File "/usr/lib/python3.9/site-packages/click/decorators.py", line 21, in new_func
        return f(get_current_context(), *args, **kwargs)
      File "/usr/lib/python3.9/site-packages/mrack/run.py", line 65, in wrapper
        return loop.run_until_complete(func(*args, **kwargs))
      File "/usr/lib64/python3.9/asyncio/base_events.py", line 642, in run_until_complete
        return future.result()
      File "/usr/lib/python3.9/site-packages/mrack/run.py", line 167, in up
        await up_action.init(ctx.obj[PROV_CONFIG], ctx.obj[METADATA], provider, ctx.obj[DB])
      File "/usr/lib/python3.9/site-packages/mrack/actions/up.py", line 62, in init
        transformer = await self._get_transformer(provider_name)
      File "/usr/lib/python3.9/site-packages/mrack/actions/up.py", line 71, in _get_transformer
        await transformer.init(self._config, self._metadata)
      File "/usr/lib/python3.9/site-packages/mrack/transformers/transformer.py", line 44, in init
        await self.init_provider()
      File "/usr/lib/python3.9/site-packages/mrack/transformers/openstack.py", line 35, in init_provider
        await self._provider.init(
      File "/usr/lib/python3.9/site-packages/mrack/providers/openstack.py", line 125, in init
        _, _, limits, _, _ = await asyncio.gather(
      File "/usr/lib/python3.9/site-packages/mrack/providers/openstack.py", line 295, in load_flavors
        resp = await self.nova.flavors.list()
      File "/usr/lib/python3.9/site-packages/asyncopenstackclient/proxy.py", line 27, in get_result
        result = await method_awaitable
      File "/usr/lib/python3.9/site-packages/simple_rest_client/resource.py", line 141, in action_method
        return await make_async_request(session, request)
      File "/usr/lib/python3.9/site-packages/simple_rest_client/decorators.py", line 50, in wrapper
        validate_response(response)
      File "/usr/lib/python3.9/site-packages/simple_rest_client/decorators.py", line 23, in validate_response
        raise ServerError('operation=server_error,' + error_suffix, response)
    simple_rest_client.exceptions.ServerError: ('operation=server_error, response=Response(url=\'https://openstack.example.com:13774/v2.1/flavors/detail\', method=\'GET\', body=\'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\\n<html><head>\\n<title>503 Service Unavailable</title>\\n</head><body>\\n<h1>Service Unavailable</h1>\\n<p>The server is temporarily unable to service your\\nrequest due to maintenance downtime or capacity\\nproblems. Please try again later.</p>\\n</body></html>\\n\', headers={\'Date\': \'Wed, 16 Jun 2021 07:53:05 GMT\', \'Server\': \'Apache\', \'Content-Length\': \'299\', \'Content-Type\': \'text/html; charset=iso-8859-1\'}, status_code=503, client_response=<ClientResponse(https://openstack.example.com:13774/v2.1/flavors/detail) [503 Service Unavailable]>\n<CIMultiDictProxy(\'Date\': \'Wed, 16 Jun 2021 07:53:05 GMT\', \'Server\': \'Apache\', \'Content-Length\': \'299\', \'Content-Type\': \'text/html; charset=iso-8859-1\')>\n)', Response(url='https://openstack.example.com:13774/v2.1/flavors/detail', method='GET', body='<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>503 Service Unavailable</title>\n</head><body>\n<h1>Service Unavailable</h1>\n<p>The server is temporarily unable to service your\nrequest due to maintenance downtime or capacity\nproblems. Please try again later.</p>\n</body></html>\n', headers={'Date': 'Wed, 16 Jun 2021 07:53:05 GMT', 'Server': 'Apache', 'Content-Length': '299', 'Content-Type': 'text/html; charset=iso-8859-1'}, status_code=503, client_response=<ClientResponse(https://openstack.example.com:13774/v2.1/flavors/detail) [503 Service Unavailable]>