Comment 0 for bug 1836439

Revision history for this message
David Li (ldone) wrote : one extra spec key still exist when delete one flavor two extra_specs keys at same time

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