openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #21313
Re: Grizzly-3 Keystone Domain Create Error
And this time with the screen data that was not sent previously:
REST POST data:
Method: POST
URL: http://15.253.59.37:35357/v3/domains
Header1: X-Auth-Token: 012345SECRET99TOKEN012345
Header2: Content-Type: application/json
Body:
{ "domain":
{"description": "My new Domain",
"name": "MyDomain"
}
}
Response:
<?xml version="1.0" encoding="UTF-8"?>
<error xmlns="http://docs.openstack.org/identity/api/v2.0"
message="Conflict occurred attempting to store domain. (1062, "Duplicate entry 'MyDomain' for key 'name'")" code="409" title="Conflict"/>
-----------------
Log File Entry:
(keystone.common.controller): 2013-02-26 15:02:22,057 WARNING RBAC: Bypassing authorization
(sqlalchemy.engine.base.Engine): 2013-02-26 15:02:22,059 INFO SELECT domain.id AS domain_id, domain.name AS domain_name, domain.enabled AS domain_enabled, domain.extra AS domain_extra
FROM domain
(sqlalchemy.engine.base.Engine): 2013-02-26 15:02:22,059 INFO ()
(root): 2013-02-26 15:02:22,061 ERROR %d format: a number is required, not str
Traceback (most recent call last):
File "/home/build/keystone-2013.1.g3/keystone-2013.1.g3/keystone/common/wsgi.py", line 231, in __call__
result = method(context, **params)
File "/home/build/keystone-2013.1.g3/keystone-2013.1.g3/keystone/common/controller.py", line 117, in wrapper
return f(self, context, filters, **kwargs)
File "/home/build/keystone-2013.1.g3/keystone-2013.1.g3/keystone/identity/controllers.py", line 416, in list_domains
return DomainV3.wrap_collection(context, refs, filters)
File "/home/build/keystone-2013.1.g3/keystone-2013.1.g3/keystone/common/controller.py", line 194, in wrap_collection
cls.wrap_member(context, ref)
File "/home/build/keystone-2013.1.g3/keystone-2013.1.g3/keystone/common/controller.py", line 183, in wrap_member
cls._add_self_referential_link(ref)
File "/home/build/keystone-2013.1.g3/keystone-2013.1.g3/keystone/common/controller.py", line 179, in _add_self_referential_link
ref['links']['self'] = cls.base_url() + '/' + ref['id']
File "/home/build/keystone-2013.1.g3/keystone-2013.1.g3/keystone/common/controller.py", line 163, in base_url
endpoint = CONF.public_endpoint % CONF
TypeError: %d format: a number is required, not str
(eventlet.wsgi.server): 2013-02-26 15:02:22,062 DEBUG 15.253.59.37 - - [26/Feb/2013 15:02:22] "GET /v3/domains HTTP/1.1" 400 343 0.009875
________________________________________
From: Jones, Richard (Mr. Netperf)
Sent: Tuesday, February 26, 2013 3:04 PM
To: Miller, Mark M (EB SW Cloud - R&D - Corvallis)
Subject: Re: [Openstack] Grizzly-3 Keystone Domain Create Error
On 02/26/2013 03:01 PM, Miller, Mark M (EB SW Cloud - R&D - Corvallis)
wrote:
> Hello,
>
> Now that I have a MySQL keystone database (> keystone-manage
> --config-file /etc/keystone/keystone.conf db_sync), I was able to
> create my first domain. At first I thought it did not get created
> because of the error seen below in the screen shot, however when I
> checked the database, the new entry was there. Anyone have any ideas
> why I am getting the Bad Request 400 error?
>
> Regards,
>
> Mark Miller
>
> [X]
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
Mark -
Your screen shot didn't make it through.
rick jones
References