Conversation
|
I've come across an implementation question. In python-keystoneclient, an I'm leaning to the latter and will propose an update to this patch doing that, but any feedback is welcome. |
|
related keystone bug https://bugs.launchpad.net/keystone/+bug/1615076 over a year old. |
|
Ew. This is a tricky one. So to confirm: if we only look at the API/server-side, the region will be disabled unless If so, I feel like the appropriate thing to do is not mimic Also, just saw your comment re the bug. To consider this behavior a bug makes sense, IMO. I would imagine the correct fix for the bug would be to make Let's just make sure this behavior is documented in I'm open to debate on this, though. |
|
@jtopjian Your reasoning seems sound. Adding magic always seems like a poor idea. I'm currently trying to verify the linked comment in keystoneclient regarding the role of |
|
Well now I feel foolish. I tested creating two regions one with |
|
Given my last finding, I think this can be reviewed as is. But I'm unsure why the CI is failing. |
|
thanks @jrperritt much better |
|
Looks good! |
For #583
Note region create is unique from most of the rest of the identity resources in that you can directly specify the ID, but providing the ID string is optional.
Links to the line numbers/files in the OpenStack source code that support the
code in this PR:
API:
https://developer.openstack.org/api-ref/identity/v3/#create-region
Schema:
https://github.com/openstack/keystone/blob/2764b49bc209245276da31693ef31f1525cf17d8/keystone/catalog/backends/sql.py#L161
https://github.com/openstack/keystone/blob/2764b49bc209245276da31693ef31f1525cf17d8/keystone/catalog/schema.py#L36
https://github.com/openstack/keystone/blob/2764b49bc209245276da31693ef31f1525cf17d8/keystone/catalog/schema.py#L22
Create:
https://github.com/openstack/keystone/blob/2764b49bc209245276da31693ef31f1525cf17d8/keystone/catalog/controllers.py#L54