'NoneType' error in 'remove_service_catalog'

Bug #1437575 reported by shihanzhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-keystoneclient
Invalid
Undecided
shihanzhang

Bug Description

when I use neutron 'l3-agent-router-add ' to add a l3 agent to router, I find a this error in keystoneclient as bellow:

ERROR: neutronclient.shell 'NoneType' object has no attribute '__getitem__'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py", line 731, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py", line 97, in run_command
    return cmd.run(known_args)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/agentscheduler.py", line 146, in run
    {'router_id': _id})
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1235, in add_router_to_l3_agent
    body=body)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 295, in post
    headers=headers, params=params)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 197, in do_request
    content_type=self.content_type())
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/client.py", line 301, in do_request
    return self.request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/client.py", line 296, in request
    resp = super(SessionClient, self).request(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 89, in request
    return self.session.request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/utils.py", line 318, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/session.py", line 369, in request
    resp = send(**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/session.py", line 428, in _send_request
    self._http_log_response(response=resp)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/utils.py", line 318, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/session.py", line 204, in _http_log_response
    text = remove_service_catalog(response.text)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/session.py", line 63, in remove_service_catalog
    if 'catalog' in data['token']:
TypeError: 'NoneType' object has no attribute '__getitem__'
'NoneType' object has no attribute '__getitem__'

Changed in python-keystoneclient:
assignee: nobody → shihanzhang (shihanzhang)
status: New → 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.