yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #73749
[Bug 1779717] Re: No ability to update consumer's project and/or user external ID
Reviewed: https://review.openstack.org/581139
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=4f9a7da5819b4cc2c181506c682a092caff40fb3
Submitter: Zuul
Branch: master
commit 4f9a7da5819b4cc2c181506c682a092caff40fb3
Author: Jay Pipes <jaypipes@xxxxxxxxx>
Date: Mon Jul 9 17:26:52 2018 -0400
update project/user for consumer in allocation
Adds code to the util.ensure_consumer() method that updates the
consumer's project and user foreign key identifiers when a user supplies
a different external project or user identifier in the paylod of PUT
/allocations/{consumer_uuid} or POST /allocations.
Change-Id: I9368ad2280551ffa9a011d3a30c4b45861305455
Closes-bug: #1779717
Related-Bug: #1781008
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1779717
Title:
No ability to update consumer's project and/or user external ID
Status in OpenStack Compute (nova):
Fix Released
Bug description:
Even though in Placement API microversion 1.12, we began requiring
project and user ID in the PUT /allocations request payload, the
project ID and user ID for an *existing* consumer are never actually
updated.
What this means is that if you created an allocation for consumer X
before 1.12, like so:
```
PUT /allocations/X
{
"allocations": ...
}
```
a consumer record will be created for the allocation and the project
and user ID for that consumer record will be the
CONF.placement.incomplete_consumer_project_id value (or user ID
value). If I want to set the project and user ID of the allocation's
consumer to some other value, there's no way I can do that.
If I do the following:
```
OpenStack-API-Version: placement 1.28
PUT /allocations/X
{
"allocations": ...
"consumer_generation": 1,
"project_id": $NEW_PROJECT_ID,
"user_id": $NEW_USER_ID
}
```
The $NEW_PROJECT_ID and $NEW_USER_ID values are merely ignored.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1779717/+subscriptions
References