InternalServerError: 'module' object has no attribute 'Client'

Asked by rahul

I get this error while deploying a cluster using magnum.
POST call to container-infra for http://10.10.3.16:9511/v1/clustertemplates used request id req-5d0cba43-6f9d-41d6-ae47-185c1b935350
'module' object has no attribute 'Client' (HTTP 500) (Request-ID: req-5d0cba43-6f9d-41d6-ae47-185c1b935350)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/dist-packages/magnumclient/osc/v1/cluster_templates.py", line 263, in take_action
    ct = mag_client.cluster_templates.create(**args)
  File "/usr/lib/python2.7/dist-packages/magnumclient/v1/basemodels.py", line 112, in create
    return self._create(self._path(), new)
  File "/usr/lib/python2.7/dist-packages/magnumclient/common/base.py", line 49, in _create
    resp, body = self.api.json_request('POST', url, body=body)
  File "/usr/lib/python2.7/dist-packages/magnumclient/common/httpclient.py", line 368, in json_request
    resp = self._http_request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/magnumclient/common/httpclient.py", line 352, in _http_request
    error_json.get('debuginfo'), method, url)
InternalServerError: 'module' object has no attribute 'Client' (HTTP 500) (Request-ID: req-5d0cba43-6f9d-41d6-ae47-185c1b935350)
clean_up CreateClusterTemplate: 'module' object has no attribute 'Client' (HTTP 500) (Request-ID: req-5d0cba43-6f9d-41d6-ae47-185c1b935350)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 134, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 279, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 169, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/dist-packages/magnumclient/osc/v1/cluster_templates.py", line 263, in take_action
    ct = mag_client.cluster_templates.create(**args)
  File "/usr/lib/python2.7/dist-packages/magnumclient/v1/basemodels.py", line 112, in create
    return self._create(self._path(), new)
  File "/usr/lib/python2.7/dist-packages/magnumclient/common/base.py", line 49, in _create
    resp, body = self.api.json_request('POST', url, body=body)
  File "/usr/lib/python2.7/dist-packages/magnumclient/common/httpclient.py", line 368, in json_request
    resp = self._http_request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/magnumclient/common/httpclient.py", line 352, in _http_request
    error_json.get('debuginfo'), method, url)
InternalServerError: 'module' object has no attribute 'Client' (HTTP 500) (Request-ID: req-5d0cba43-6f9d-41d6-ae47-185c1b935350)

and

In magnum-api.log
File "/usr/lib/python2.7/dist-packages/magnum/drivers/swarm_fedora_atomic_v2/monitor.py", line 16, in <module>
    from magnum.common import docker_utils

  File "/usr/lib/python2.7/dist-packages/magnum/common/docker_utils.py", line 82, in <module>
    docker_client = docker.Client

AttributeError: 'module' object has no attribute 'Client'

How to fix this ?

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu magnum Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

No idea but something to test is that you can telnet to 10.10.3.16 on port 9511

If not then it's a network issue or there is a local firewall blocking the traffic on either end. If this connects then the traffic is allowed.

Something to check. Never done any of this so cannot advise further. Maybe othera can help

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.