← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1264483] [NEW] Multidomain support KO: return 401 on nova client

 

Public bug reported:

Hi all,

I've previously created a question on
https://ask.openstack.org/en/question/9163/horizon-error-500-after-
activating-multi-domains-support/?answer=9298#post-id-9298 but it seems
to be more a bug than a question...

To sum up:
I've actived the multidomain support in local_settings.py. 
I've set-up a new domain, with a project and a user (username=test-domaine).
As you can see in the Horizon logs below, the login process works well (Login successful for user "test-domaine"), but then I get a 500 error in Horizon. 
I can see in the log that the nova server returns a 401 error. According to me, this is normal because the request don't use the full token from X-Subject-Token.


REQ: curl -i -X POST http://192.168.248.12:5000/v3/auth/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient"
REQ BODY: {"auth": {"identity": {"methods": ["password"], "password": {"user": {"domain": {"name": "Domaine"}, "name": "test-domaine", "password": "test-domaine"}}}}}

Starting new HTTP connection (1): 192.168.248.12
"POST /v3/auth/tokens HTTP/1.1" 201 4712
RESP: [201] CaseInsensitiveDict({'x-subject-token': 'MIIUJQYJKoZIhvcNAQcCoIIUFjCCFBICAQExCTAHBgUrDgMCGjCCEnsGCSqGSIb3DQEHAaCCEmwEghJoeyJ0b2tlbiI6IHsibWV0aG9kcyI6IFsicGFzc3dvcmQiXSwgInJvbGVzIjogW3siaWQiOiAiMTk5MDA3OWQ0MjRkNGI1OWI0MmFhYjA2YjBmZGU0NjMiLCAibmFtZSI6ICJLZXlzdG9uZUFkbWluIn0sIHsiaWQiOiAiNWVhMzY0ZmQ4NTVlNDlmZmI2MzNjNTcwMDQ1OWM3ZDciLCAibmFtZSI6ICJNZW1iZXIifSwgeyJpZCI6ICI0Y2I0YjBmMzUxY2U0ODI1OWEzY2Q4Zjk0ZjVkOTEwOSIsICJuYW1lIjogImFkbWluIn1dLCAiZXhwaXJlc19hdCI6ICIyMDEzLTEyLTI4VDA5OjQ1OjQwLjc4NDY0MloiLCAicHJvamVjdCI6IHsiZG9tYWluIjogeyJpZCI6ICIzYTU2YjlkZTY3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Ubk9cYPJfh+fzEQUL8BifYx1zHtButN24akA==', 'vary': 'X-Auth-Token', 'content-length': '4712', 'content-type': 'application/json', 'date': 'Fri, 27 Dec 2013 09:45:40 GMT'})
RESP BODY: {"token": {"methods": ["password"], "roles": [{"id": "1990079d424d4b59b42aab06b0fde463", "name": "KeystoneAdmin"}, {"id": "5ea364fd855e49ffb633c5700459c7d7", "name": "Member"}, {"id": "4cb4b0f351ce48259a3cd8f94f5d9109", "name": "admin"}], "expires_at": "2013-12-28T09:45:40.784642Z", "project": {"domain": {"id": "3a56b9de675545da8edf8cc65dc0eb38", "name": "Domaine"}, "id": "d4df49cc3c7b4348950d56a0eabaade1", "name": "test2"}, "catalog": [{"endpoints": [{"url": "http://10.10.100.51:8776/v1/d4df49cc3c7b4348950d56a0eabaade1";, "region": "RegionOne", "legacy_endpoint_id": "f2285375549f45bb825292a69dbc9699", "interface": "internal", "id": "1265acd0381d4ea784967246c5967eea"}, {"url": "http://10.10.100.51:8776/v1/d4df49cc3c7b4348950d56a0eabaade1";, "region": "RegionOne", "legacy_endpoint_id": "f2285375549f45bb825292a69dbc9699", "interface": "admin", "id": "9172272294af402ba92733c79d503dfe"}, {"url": "http://192.168.248.12:8776/v1/d4df49cc3c7b4348950d56a0eabaade1";, "region": "RegionOne", "legacy_endpoint_id": "f2285375549f45bb825292a69dbc9699", "interface": "public", "id": "cfae413777f84175ba40fd56394be221"}], "type": "volume", "id": "0a0ff9444f7741248d7e0cae04c80d0a"}, {"endpoints": [{"url": "http://10.10.100.51:8774/v2/d4df49cc3c7b4348950d56a0eabaade1";, "region": "RegionOne", "legacy_endpoint_id": "ad3ac24375e84ec5a1ce76a8acef428a", "interface": "internal", "id": "926572f389014d5ba378c83b8a9a83aa"}, {"url": "http://10.10.100.51:8774/v2/d4df49cc3c7b4348950d56a0eabaade1";, "region": "RegionOne", "legacy_endpoint_id": "ad3ac24375e84ec5a1ce76a8acef428a", "interface": "admin", "id": "d24b56b4abb9423a9ab1a16284e5eadd"}, {"url": "http://192.168.248.12:8774/v2/d4df49cc3c7b4348950d56a0eabaade1";, "region": "RegionOne", "legacy_endpoint_id": "ad3ac24375e84ec5a1ce76a8acef428a", "interface": "public", "id": "ed3e667e1e4e45a19a29da377a755dff"}], "type": "compute", "id": "2ba93444e92043798040dc108bbe8ee8"}, {"endpoints": [{"url": "http://10.10.100.51:5000/v2.0";, "region": "RegionOne", "legacy_endpoint_id": "856e490423b64ccd95d85faa6991981f", "interface": "internal", "id": "896fb706d5874a378c5ce0b85c3ce574"}, {"url": "http://192.168.248.12:5000/v2.0";, "region": "RegionOne", "legacy_endpoint_id": "856e490423b64ccd95d85faa6991981f", "interface": "public", "id": "b10fd29648b54b3892b583e363dfef1a"}, {"url": "http://10.10.100.51:35357/v2.0";, "region": "RegionOne", "legacy_endpoint_id": "856e490423b64ccd95d85faa6991981f", "interface": "admin", "id": "c76a913c6c56431bac1224cc3f86eef9"}], "type": "identity", "id": "b035e22807de4b7e8375527837b0525e"}, {"endpoints": [{"url": "http://192.168.248.12:9696/";, "region": "RegionOne", "legacy_endpoint_id": "031cfcbeb7d44864b1322ddcb7efb51d", "interface": "public", "id": "7335e8ebf43d4d479c9bb6904f856a6d"}, {"url": "http://10.10.100.51:9696/";, "region": "RegionOne", "legacy_endpoint_id": "031cfcbeb7d44864b1322ddcb7efb51d", "interface": "admin", "id": "75d932b537d44771895d1fc0979d7ef1"}, {"url": "http://10.10.100.51:9696/";, "region": "RegionOne", "legacy_endpoint_id": "031cfcbeb7d44864b1322ddcb7efb51d", "interface": "internal", "id": "96065479ecb640db87899bde56adeb25"}], "type": "network", "id": "b36c9134f0124200a2b890e4cc0773a6"}, {"endpoints": [{"url": "http://10.10.100.51:9292/v2";, "region": "RegionOne", "legacy_endpoint_id": "d2f7769cd4ba498f86c5bf22012eaf55", "interface": "admin", "id": "67a14761e53e49bd95db12809d049d43"}, {"url": "http://10.10.100.51:9292/v2";, "region": "RegionOne", "legacy_endpoint_id": "d2f7769cd4ba498f86c5bf22012eaf55", "interface": "internal", "id": "a4aa0c023e8a48a1a998e9b2811241ed"}, {"url": "http://192.168.248.12:9292/v2";, "region": "RegionOne", "legacy_endpoint_id": "d2f7769cd4ba498f86c5bf22012eaf55", "interface": "public", "id": "c0f4c17856644d58888ff439de4be1ad"}], "type": "image", "id": "c05c18ceccbc42199bcc0bbe4891393d"}, {"endpoints": [{"url": "http://10.10.100.51:8773/services/Admin";, "region": "RegionOne", "legacy_endpoint_id": "f47135d386f14832951f3301c58ea0ee", "interface": "admin", "id": "815bd73616d844c8ac4adf649792beb5"}, {"url": "http://192.168.248.12:8773/services/Cloud";, "region": "RegionOne", "legacy_endpoint_id": "f47135d386f14832951f3301c58ea0ee", "interface": "public", "id": "c7c9f81ab0a74f14854c388ff3c70e91"}, {"url": "http://10.10.100.51:8773/services/Cloud";, "region": "RegionOne", "legacy_endpoint_id": "f47135d386f14832951f3301c58ea0ee", "interface": "internal", "id": "fab1cafb5d8f417e8b857f3b65e31ca8"}], "type": "ec2", "id": "edd867636b454206b3a5492de190dfb7"}], "extras": {}, "user": {"domain": {"id": "3a56b9de675545da8edf8cc65dc0eb38", "name": "Domaine"}, "id": "2bd568eab4294462856537c2520203a4", "name": "test-domaine"}, "issued_at": "2013-12-27T09:45:40.784712Z"}}

Login successful for user "test-domaine".
[27/Dec/2013 09:45:40] "POST /auth/login/ HTTP/1.1" 302 0
[27/Dec/2013 09:45:40] "GET / HTTP/1.1" 302 0

REQ: curl -i
http://192.168.248.12:8774/v2/d4df49cc3c7b4348950d56a0eabaade1/extensions
-X GET -H "X-Auth-Project-Id: d4df49cc3c7b4348950d56a0eabaade1" -H
"User-Agent: python-novaclient" -H "Accept: application/json" -H "X
-Auth-Token: 4de8c75a3006af94706162b5b17c7bc1"

RESP: [401] CaseInsensitiveDict({'date': 'Fri, 27 Dec 2013 09:45:41 GMT', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://10.10.100.51:35357'"})
RESP BODY: Authentication required


REQ: curl -i http://192.168.248.12:8774/v2/d4df49cc3c7b4348950d56a0eabaade1 -X GET -H "X-Auth-Project-Id: d4df49cc3c7b4348950d56a0eabaade1" -H "X-Auth-Key: 4de8c75a3006af94706162b5b17c7bc1" -H "Accept: application/json" -H "X-Auth-User: test-domaine" -H "User-Agent: python-novaclient"

RESP: [401] CaseInsensitiveDict({'date': 'Fri, 27 Dec 2013 09:45:41 GMT', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://10.10.100.51:35357'"})
RESP BODY: Authentication required

Internal Server Error: /admin/
Traceback (most recent call last):
  File "/home/ubuntu/Bureau/horizon-master/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/ubuntu/Bureau/horizon-master/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/Bureau/horizon-master/horizon/decorators.py", line 86, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/Bureau/horizon-master/horizon/decorators.py", line 54, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/Bureau/horizon-master/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/Bureau/horizon-master/horizon/decorators.py", line 86, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/Bureau/horizon-master/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/ubuntu/Bureau/horizon-master/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 86, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/ubuntu/Bureau/horizon-master/horizon/tables/views.py", line 154, in get
    handled = self.construct_tables()
  File "/home/ubuntu/Bureau/horizon-master/horizon/tables/views.py", line 145, in construct_tables
    handled = self.handle_table(table)
  File "/home/ubuntu/Bureau/horizon-master/horizon/tables/views.py", line 118, in handle_table
    data = self._get_data_dict()
  File "/home/ubuntu/Bureau/horizon-master/horizon/tables/views.py", line 181, in _get_data_dict
    self._data = {self.table_class._meta.name: self.get_data()}
  File "/home/ubuntu/Bureau/horizon-master/openstack_dashboard/dashboards/admin/overview/views.py", line 59, in get_data
    data = super(GlobalOverview, self).get_data()
  File "/home/ubuntu/Bureau/horizon-master/openstack_dashboard/usage/views.py", line 43, in get_data
    self.usage.summarize(*self.usage.get_date_range())
  File "/home/ubuntu/Bureau/horizon-master/openstack_dashboard/usage/base.py", line 208, in summarize
    if not api.nova.extension_supported('SimpleTenantUsage', self.request):
  File "/home/ubuntu/Bureau/horizon-master/horizon/utils/memoized.py", line 90, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/home/ubuntu/Bureau/horizon-master/openstack_dashboard/api/nova.py", line 704, in extension_supported
    extensions = list_extensions(request)
  File "/home/ubuntu/Bureau/horizon-master/horizon/utils/memoized.py", line 90, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/home/ubuntu/Bureau/horizon-master/openstack_dashboard/api/nova.py", line 695, in list_extensions
    return nova_list_extensions.ListExtManager(novaclient(request)).show_all()
  File "/home/ubuntu/Bureau/horizon-master/.venv/local/lib/python2.7/site-packages/novaclient/v1_1/contrib/list_extensions.py", line 37, in show_all
    return self._list("/extensions", 'extensions')
  File "/home/ubuntu/Bureau/horizon-master/.venv/local/lib/python2.7/site-packages/novaclient/base.py", line 61, in _list
    _resp, body = self.api.client.get(url)
  File "/home/ubuntu/Bureau/horizon-master/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 229, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/home/ubuntu/Bureau/horizon-master/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 226, in _cs_request
    raise e
Unauthorized: Unauthorized (HTTP 401)

** Affects: horizon
     Importance: Undecided
         Status: New


** Tags: multidomain

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1264483

Title:
  Multidomain support KO: return 401 on nova client

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Hi all,

  I've previously created a question on
  https://ask.openstack.org/en/question/9163/horizon-error-500-after-
  activating-multi-domains-support/?answer=9298#post-id-9298 but it
  seems to be more a bug than a question...

  To sum up:
  I've actived the multidomain support in local_settings.py. 
  I've set-up a new domain, with a project and a user (username=test-domaine).
  As you can see in the Horizon logs below, the login process works well (Login successful for user "test-domaine"), but then I get a 500 error in Horizon. 
  I can see in the log that the nova server returns a 401 error. According to me, this is normal because the request don't use the full token from X-Subject-Token.


  REQ: curl -i -X POST http://192.168.248.12:5000/v3/auth/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient"
  REQ BODY: {"auth": {"identity": {"methods": ["password"], "password": {"user": {"domain": {"name": "Domaine"}, "name": "test-domaine", "password": "test-domaine"}}}}}

  Starting new HTTP connection (1): 192.168.248.12
  "POST /v3/auth/tokens HTTP/1.1" 201 4712
  RESP: [201] CaseInsensitiveDict({'x-subject-token': 'MIIUJQYJKoZIhvcNAQcCoIIUFjCCFBICAQExCTAHBgUrDgMCGjCCEnsGCSqGSIb3DQEHAaCCEmwEghJoeyJ0b2tlbiI6IHsibWV0aG9kcyI6IFsicGFzc3dvcmQiXSwgInJvbGVzIjogW3siaWQiOiAiMTk5MDA3OWQ0MjRkNGI1OWI0MmFhYjA2YjBmZGU0NjMiLCAibmFtZSI6ICJLZXlzdG9uZUFkbWluIn0sIHsiaWQiOiAiNWVhMzY0ZmQ4NTVlNDlmZmI2MzNjNTcwMDQ1OWM3ZDciLCAibmFtZSI6ICJNZW1iZXIifSwgeyJpZCI6ICI0Y2I0YjBmMzUxY2U0ODI1OWEzY2Q4Zjk0ZjVkOTEwOSIsICJuYW1lIjogImFkbWluIn1dLCAiZXhwaXJlc19hdCI6ICIyMDEzLTEyLTI4VDA5OjQ1OjQwLjc4NDY0MloiLCAicHJvamVjdCI6IHsiZG9tYWluIjogeyJpZCI6ICIzYTU2YjlkZTY3NT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ubk9cYPJfh+fzEQUL8BifYx1zHtButN24akA==', 'vary': 'X-Auth-Token', 'content-length': '4712', 'content-type': 'application/json', 'date': 'Fri, 27 Dec 2013 09:45:40 GMT'})
  RESP BODY: {"token": {"methods": ["password"], "roles": [{"id": "1990079d424d4b59b42aab06b0fde463", "name": "KeystoneAdmin"}, {"id": "5ea364fd855e49ffb633c5700459c7d7", "name": "Member"}, {"id": "4cb4b0f351ce48259a3cd8f94f5d9109", "name": "admin"}], "expires_at": "2013-12-28T09:45:40.784642Z", "project": {"domain": {"id": "3a56b9de675545da8edf8cc65dc0eb38", "name": "Domaine"}, "id": "d4df49cc3c7b4348950d56a0eabaade1", "name": "test2"}, "catalog": [{"endpoints": [{"url": "http://10.10.100.51:8776/v1/d4df49cc3c7b4348950d56a0eabaade1";, "region": "RegionOne", "legacy_endpoint_id": "f2285375549f45bb825292a69dbc9699", "interface": "internal", "id": "1265acd0381d4ea784967246c5967eea"}, {"url": "http://10.10.100.51:8776/v1/d4df49cc3c7b4348950d56a0eabaade1";, "region": "RegionOne", "legacy_endpoint_id": "f2285375549f45bb825292a69dbc9699", "interface": "admin", "id": "9172272294af402ba92733c79d503dfe"}, {"url": "http://192.168.248.12:8776/v1/d4df49cc3c7b4348950d56a0eabaade1";, "region": "RegionOne", "legacy_endpoint_id": "f2285375549f45bb825292a69dbc9699", "interface": "public", "id": "cfae413777f84175ba40fd56394be221"}], "type": "volume", "id": "0a0ff9444f7741248d7e0cae04c80d0a"}, {"endpoints": [{"url": "http://10.10.100.51:8774/v2/d4df49cc3c7b4348950d56a0eabaade1";, "region": "RegionOne", "legacy_endpoint_id": "ad3ac24375e84ec5a1ce76a8acef428a", "interface": "internal", "id": "926572f389014d5ba378c83b8a9a83aa"}, {"url": "http://10.10.100.51:8774/v2/d4df49cc3c7b4348950d56a0eabaade1";, "region": "RegionOne", "legacy_endpoint_id": "ad3ac24375e84ec5a1ce76a8acef428a", "interface": "admin", "id": "d24b56b4abb9423a9ab1a16284e5eadd"}, {"url": "http://192.168.248.12:8774/v2/d4df49cc3c7b4348950d56a0eabaade1";, "region": "RegionOne", "legacy_endpoint_id": "ad3ac24375e84ec5a1ce76a8acef428a", "interface": "public", "id": "ed3e667e1e4e45a19a29da377a755dff"}], "type": "compute", "id": "2ba93444e92043798040dc108bbe8ee8"}, {"endpoints": [{"url": "http://10.10.100.51:5000/v2.0";, "region": "RegionOne", "legacy_endpoint_id": "856e490423b64ccd95d85faa6991981f", "interface": "internal", "id": "896fb706d5874a378c5ce0b85c3ce574"}, {"url": "http://192.168.248.12:5000/v2.0";, "region": "RegionOne", "legacy_endpoint_id": "856e490423b64ccd95d85faa6991981f", "interface": "public", "id": "b10fd29648b54b3892b583e363dfef1a"}, {"url": "http://10.10.100.51:35357/v2.0";, "region": "RegionOne", "legacy_endpoint_id": "856e490423b64ccd95d85faa6991981f", "interface": "admin", "id": "c76a913c6c56431bac1224cc3f86eef9"}], "type": "identity", "id": "b035e22807de4b7e8375527837b0525e"}, {"endpoints": [{"url": "http://192.168.248.12:9696/";, "region": "RegionOne", "legacy_endpoint_id": "031cfcbeb7d44864b1322ddcb7efb51d", "interface": "public", "id": "7335e8ebf43d4d479c9bb6904f856a6d"}, {"url": "http://10.10.100.51:9696/";, "region": "RegionOne", "legacy_endpoint_id": "031cfcbeb7d44864b1322ddcb7efb51d", "interface": "admin", "id": "75d932b537d44771895d1fc0979d7ef1"}, {"url": "http://10.10.100.51:9696/";, "region": "RegionOne", "legacy_endpoint_id": "031cfcbeb7d44864b1322ddcb7efb51d", "interface": "internal", "id": "96065479ecb640db87899bde56adeb25"}], "type": "network", "id": "b36c9134f0124200a2b890e4cc0773a6"}, {"endpoints": [{"url": "http://10.10.100.51:9292/v2";, "region": "RegionOne", "legacy_endpoint_id": "d2f7769cd4ba498f86c5bf22012eaf55", "interface": "admin", "id": "67a14761e53e49bd95db12809d049d43"}, {"url": "http://10.10.100.51:9292/v2";, "region": "RegionOne", "legacy_endpoint_id": "d2f7769cd4ba498f86c5bf22012eaf55", "interface": "internal", "id": "a4aa0c023e8a48a1a998e9b2811241ed"}, {"url": "http://192.168.248.12:9292/v2";, "region": "RegionOne", "legacy_endpoint_id": "d2f7769cd4ba498f86c5bf22012eaf55", "interface": "public", "id": "c0f4c17856644d58888ff439de4be1ad"}], "type": "image", "id": "c05c18ceccbc42199bcc0bbe4891393d"}, {"endpoints": [{"url": "http://10.10.100.51:8773/services/Admin";, "region": "RegionOne", "legacy_endpoint_id": "f47135d386f14832951f3301c58ea0ee", "interface": "admin", "id": "815bd73616d844c8ac4adf649792beb5"}, {"url": "http://192.168.248.12:8773/services/Cloud";, "region": "RegionOne", "legacy_endpoint_id": "f47135d386f14832951f3301c58ea0ee", "interface": "public", "id": "c7c9f81ab0a74f14854c388ff3c70e91"}, {"url": "http://10.10.100.51:8773/services/Cloud";, "region": "RegionOne", "legacy_endpoint_id": "f47135d386f14832951f3301c58ea0ee", "interface": "internal", "id": "fab1cafb5d8f417e8b857f3b65e31ca8"}], "type": "ec2", "id": "edd867636b454206b3a5492de190dfb7"}], "extras": {}, "user": {"domain": {"id": "3a56b9de675545da8edf8cc65dc0eb38", "name": "Domaine"}, "id": "2bd568eab4294462856537c2520203a4", "name": "test-domaine"}, "issued_at": "2013-12-27T09:45:40.784712Z"}}

  Login successful for user "test-domaine".
  [27/Dec/2013 09:45:40] "POST /auth/login/ HTTP/1.1" 302 0
  [27/Dec/2013 09:45:40] "GET / HTTP/1.1" 302 0

  REQ: curl -i
  http://192.168.248.12:8774/v2/d4df49cc3c7b4348950d56a0eabaade1/extensions
  -X GET -H "X-Auth-Project-Id: d4df49cc3c7b4348950d56a0eabaade1" -H
  "User-Agent: python-novaclient" -H "Accept: application/json" -H "X
  -Auth-Token: 4de8c75a3006af94706162b5b17c7bc1"

  RESP: [401] CaseInsensitiveDict({'date': 'Fri, 27 Dec 2013 09:45:41 GMT', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://10.10.100.51:35357'"})
  RESP BODY: Authentication required

  
  REQ: curl -i http://192.168.248.12:8774/v2/d4df49cc3c7b4348950d56a0eabaade1 -X GET -H "X-Auth-Project-Id: d4df49cc3c7b4348950d56a0eabaade1" -H "X-Auth-Key: 4de8c75a3006af94706162b5b17c7bc1" -H "Accept: application/json" -H "X-Auth-User: test-domaine" -H "User-Agent: python-novaclient"

  RESP: [401] CaseInsensitiveDict({'date': 'Fri, 27 Dec 2013 09:45:41 GMT', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://10.10.100.51:35357'"})
  RESP BODY: Authentication required

  Internal Server Error: /admin/
  Traceback (most recent call last):
    File "/home/ubuntu/Bureau/horizon-master/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
      response = callback(request, *callback_args, **callback_kwargs)
    File "/home/ubuntu/Bureau/horizon-master/horizon/decorators.py", line 38, in dec
      return view_func(request, *args, **kwargs)
    File "/home/ubuntu/Bureau/horizon-master/horizon/decorators.py", line 86, in dec
      return view_func(request, *args, **kwargs)
    File "/home/ubuntu/Bureau/horizon-master/horizon/decorators.py", line 54, in dec
      return view_func(request, *args, **kwargs)
    File "/home/ubuntu/Bureau/horizon-master/horizon/decorators.py", line 38, in dec
      return view_func(request, *args, **kwargs)
    File "/home/ubuntu/Bureau/horizon-master/horizon/decorators.py", line 86, in dec
      return view_func(request, *args, **kwargs)
    File "/home/ubuntu/Bureau/horizon-master/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
      return self.dispatch(request, *args, **kwargs)
    File "/home/ubuntu/Bureau/horizon-master/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 86, in dispatch
      return handler(request, *args, **kwargs)
    File "/home/ubuntu/Bureau/horizon-master/horizon/tables/views.py", line 154, in get
      handled = self.construct_tables()
    File "/home/ubuntu/Bureau/horizon-master/horizon/tables/views.py", line 145, in construct_tables
      handled = self.handle_table(table)
    File "/home/ubuntu/Bureau/horizon-master/horizon/tables/views.py", line 118, in handle_table
      data = self._get_data_dict()
    File "/home/ubuntu/Bureau/horizon-master/horizon/tables/views.py", line 181, in _get_data_dict
      self._data = {self.table_class._meta.name: self.get_data()}
    File "/home/ubuntu/Bureau/horizon-master/openstack_dashboard/dashboards/admin/overview/views.py", line 59, in get_data
      data = super(GlobalOverview, self).get_data()
    File "/home/ubuntu/Bureau/horizon-master/openstack_dashboard/usage/views.py", line 43, in get_data
      self.usage.summarize(*self.usage.get_date_range())
    File "/home/ubuntu/Bureau/horizon-master/openstack_dashboard/usage/base.py", line 208, in summarize
      if not api.nova.extension_supported('SimpleTenantUsage', self.request):
    File "/home/ubuntu/Bureau/horizon-master/horizon/utils/memoized.py", line 90, in wrapped
      value = cache[key] = func(*args, **kwargs)
    File "/home/ubuntu/Bureau/horizon-master/openstack_dashboard/api/nova.py", line 704, in extension_supported
      extensions = list_extensions(request)
    File "/home/ubuntu/Bureau/horizon-master/horizon/utils/memoized.py", line 90, in wrapped
      value = cache[key] = func(*args, **kwargs)
    File "/home/ubuntu/Bureau/horizon-master/openstack_dashboard/api/nova.py", line 695, in list_extensions
      return nova_list_extensions.ListExtManager(novaclient(request)).show_all()
    File "/home/ubuntu/Bureau/horizon-master/.venv/local/lib/python2.7/site-packages/novaclient/v1_1/contrib/list_extensions.py", line 37, in show_all
      return self._list("/extensions", 'extensions')
    File "/home/ubuntu/Bureau/horizon-master/.venv/local/lib/python2.7/site-packages/novaclient/base.py", line 61, in _list
      _resp, body = self.api.client.get(url)
    File "/home/ubuntu/Bureau/horizon-master/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 229, in get
      return self._cs_request(url, 'GET', **kwargs)
    File "/home/ubuntu/Bureau/horizon-master/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 226, in _cs_request
      raise e
  Unauthorized: Unauthorized (HTTP 401)

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1264483/+subscriptions


Follow ups

References