yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #10200
[Bug 1284422] [NEW] v3 endpoint create should require url
Public bug reported:
When create a endpoint, if I do not specify "service_id" I will get the following reponse:
curl -i -H "X-Auth-Token:admin" -H "Content-Type:application/json" http://127.0.0.1:35357/v3/endpoints -d '{"endpoint":{"interface":"test"}}'
{"error": {"message": "service_id field is required and cannot be
empty", "code": 400, "title": "Bad Request"}}openstack@openstack-HP-
Compaq-8100-Elite-CMT-PC:~/devstack$
But, if I do not specify "url" I will get another reponse as following:
curl -i -H "X-Auth-Token:admin" -H "Content-Type:application/json" http://127.0.0.1:35357/v3/endpoints -d '{"endpoint":{"interface":"test","service_id":"d893b85ae4f842d5bb1727e271cf5be3"}}'
{"error": {"message": "An unexpected error prevented the server from
fulfilling your request. (OperationalError) (1048, \"Column 'url' cannot
be null\") 'INSERT INTO endpoint (id, legacy_endpoint_id, interface,
region, service_id, url, extra) VALUES (%s, %s, %s, %s, %s, %s, %s)'
('57b1f66ed22f45c3ba43812d7eabac69', None, 'test', None,
'd893b85ae4f842d5bb1727e271cf5be3', None, '{}')", "code": 500, "title":
"Internal Server Error"}}
The url parameter should be required too.
** Affects: keystone
Importance: Undecided
Assignee: wanghong (w-wanghong)
Status: New
** Changed in: keystone
Assignee: (unassigned) => wanghong (w-wanghong)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1284422
Title:
v3 endpoint create should require url
Status in OpenStack Identity (Keystone):
New
Bug description:
When create a endpoint, if I do not specify "service_id" I will get the following reponse:
curl -i -H "X-Auth-Token:admin" -H "Content-Type:application/json" http://127.0.0.1:35357/v3/endpoints -d '{"endpoint":{"interface":"test"}}'
{"error": {"message": "service_id field is required and cannot be
empty", "code": 400, "title": "Bad Request"}}openstack@openstack-HP-
Compaq-8100-Elite-CMT-PC:~/devstack$
But, if I do not specify "url" I will get another reponse as following:
curl -i -H "X-Auth-Token:admin" -H "Content-Type:application/json" http://127.0.0.1:35357/v3/endpoints -d '{"endpoint":{"interface":"test","service_id":"d893b85ae4f842d5bb1727e271cf5be3"}}'
{"error": {"message": "An unexpected error prevented the server from
fulfilling your request. (OperationalError) (1048, \"Column 'url'
cannot be null\") 'INSERT INTO endpoint (id, legacy_endpoint_id,
interface, region, service_id, url, extra) VALUES (%s, %s, %s, %s, %s,
%s, %s)' ('57b1f66ed22f45c3ba43812d7eabac69', None, 'test', None,
'd893b85ae4f842d5bb1727e271cf5be3', None, '{}')", "code": 500,
"title": "Internal Server Error"}}
The url parameter should be required too.
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1284422/+subscriptions
Follow ups
References