Reviewed: https://review.openstack.org/304489 Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=3039e6c4bc9b1d721ecd2dc95d949072866ec8f1 Submitter: Jenkins Branch: master
commit 3039e6c4bc9b1d721ecd2dc95d949072866ec8f1 Author: Kanika Singh <[email protected]> Date: Tue Apr 12 15:18:30 2016 +0530 Handling of 'region' parameter as None In V2 Endpoint creation it returns 500 error due to missing 'region'. So, changed the way of fetching the same parameter to handle None case. Change-Id: I5c9ef206193072da73d3990d5f77003124db8265 Closes-Bug: #1557166 ** Changed in: keystone Status: In Progress => Fix Released -- 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/1557166 Title: V2 Endpoint creation with missing region returns 500 Status in OpenStack Identity (keystone): Fix Released Bug description: Keystone returns a 500 if optional attribute region is not passed in on endpoint creation. Curl: export SERVICE_ID=1234 export PUBLIC_URL='https://publicurl/v1' export ADMIN_URL='https://adminurl/v1' export INTERNAL_URL='https://internalurl/v1' #Create endpoint curl -X POST $ENDPOINT/v2.0/endpoints -d '{ "endpoint": {"service_id": "'$SERVICE_ID'", "publicurl": "'$PUBLIC_URL'", "adminurl": "'$ADMIN_URL'", "internalurl": "'$INTERNAL_URL'"}}' -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: $ADMIN_TOKEN" -k -v | json Response: < HTTP/1.1 500 Internal Server Error [264/1952] < Vary: X-Auth-Token < Content-Type: application/json < Content-Length: 143 < X-Openstack-Request-Id: req-f0006f4e-25b5-47ae-acb8-5072967b0778 < Date: Mon, 14 Mar 2016 21:24:48 GMT < { [data not shown] 100 348 100 143 100 205 2097 3007 --:--:-- --:--:-- --:--:-- 3059 * Connection #0 to host 127.0.0.1 left intact { "error": { "code": 500, "message": "An unexpected error prevented the server from fulfilling your request.", "title": "Internal Server Error" } } Attempting to pop attribute that does not exist. https://github.com/openstack/keystone/blob/a2a06d05310ab9bd8d0360a59f769563a1393e03/keystone/catalog/controllers.py#L180 To manage notifications about this bug go to: https://bugs.launchpad.net/keystone/+bug/1557166/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

