yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #79252
[Bug 1836439] [NEW] one extra_specs key still exist when delete one flavor's two extra_specs keys at same time
Public bug reported:
1、posts two requests at same time to delete same flavor's two extra_specs keys
2、the two requests all get success from nova
3、finds only one extra_specs keys be deleted
that seems when handles the first delete request, the delete function of /nova/api/openstack/compute/flavors_extraspecs.py gets target flavor's all extra_specs info, and then saves the all extra_specs info again except the deleted one. see [1][2][3]:
[1] https://github.com/openstack/nova/blob/master/nova/objects/flavor.py#L531
[2] https://github.com/openstack/nova/blob/master/nova/objects/flavor.py#L480
[3] https://github.com/openstack/nova/blob/master/nova/objects/flavor.py#L483
** Affects: nova
Importance: Undecided
Status: New
** Summary changed:
- one extra spec key still exist when delete one flavor two extra_specs keys at same time
+ one extra_specs key still exist when delete one flavor's two extra_specs keys at same time
--
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/1836439
Title:
one extra_specs key still exist when delete one flavor's two
extra_specs keys at same time
Status in OpenStack Compute (nova):
New
Bug description:
1、posts two requests at same time to delete same flavor's two extra_specs keys
2、the two requests all get success from nova
3、finds only one extra_specs keys be deleted
that seems when handles the first delete request, the delete function of /nova/api/openstack/compute/flavors_extraspecs.py gets target flavor's all extra_specs info, and then saves the all extra_specs info again except the deleted one. see [1][2][3]:
[1] https://github.com/openstack/nova/blob/master/nova/objects/flavor.py#L531
[2] https://github.com/openstack/nova/blob/master/nova/objects/flavor.py#L480
[3] https://github.com/openstack/nova/blob/master/nova/objects/flavor.py#L483
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1836439/+subscriptions