← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1657978] [NEW] Internal Server Error: KeyError: 'domain'

 

Public bug reported:

I get the following message in Horizon when trying to authenticate a
federated user with a misconfigured mapping (in Mitaka)

{"error": {"message": "An unexpected error prevented the server from
fulfilling your request: 'domain' (Disable insecure_debug mode to
suppress these details.)", "code": 500, "title": "Internal Server
Error"}}


This is my mapping.json. Notice no domain is part of the "group" parameter (even though there is one at one level higher). 
[
    {
        "local": [
            {
                "domain": {
                    "name": "Default"
                }, 
                "group": {
                    "name": "Federated Users"
                }, 
                "user": {
                    "name": "{0}", 
                    "email": "{1}"
                }, 
                "groups": "{2}"
            }
        ], 
        "remote": [
            {
                "type": "REMOTE_USER"
            }, 
            {
                "type": "MELLON_userEmail"
            }, 
            {
                "type": "MELLON_groups"
            }
        ]
    }
]


This is the log output of the keyerror containing the assertion.

http://paste.openstack.org/show/595730/

** Affects: keystone
     Importance: Undecided
     Assignee: Eric Brown (ericwb)
         Status: New

** Changed in: keystone
     Assignee: (unassigned) => Eric Brown (ericwb)

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

Title:
  Internal Server Error: KeyError: 'domain'

Status in OpenStack Identity (keystone):
  New

Bug description:
  I get the following message in Horizon when trying to authenticate a
  federated user with a misconfigured mapping (in Mitaka)

  {"error": {"message": "An unexpected error prevented the server from
  fulfilling your request: 'domain' (Disable insecure_debug mode to
  suppress these details.)", "code": 500, "title": "Internal Server
  Error"}}

  
  This is my mapping.json. Notice no domain is part of the "group" parameter (even though there is one at one level higher). 
  [
      {
          "local": [
              {
                  "domain": {
                      "name": "Default"
                  }, 
                  "group": {
                      "name": "Federated Users"
                  }, 
                  "user": {
                      "name": "{0}", 
                      "email": "{1}"
                  }, 
                  "groups": "{2}"
              }
          ], 
          "remote": [
              {
                  "type": "REMOTE_USER"
              }, 
              {
                  "type": "MELLON_userEmail"
              }, 
              {
                  "type": "MELLON_groups"
              }
          ]
      }
  ]

  
  This is the log output of the keyerror containing the assertion.

  http://paste.openstack.org/show/595730/

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


Follow ups