delete_instance_metadata and update_instance_metadata are permitted during an ongoing task

Bug #1669400 reported by Matthew Booth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Triaged
Low
Unassigned

Bug Description

Note: this is exclusively from code inspection.

delete_instance_metadata and update_instance_metadata in ComputeManager are both guarded by:

     @check_instance_state(vm_state=[vm_states.ACTIVE, vm_states.PAUSED,
                                     vm_states.SUSPENDED, vm_states.STOPPED],
                           task_state=None)

The problem is the task_state=None which, despite appearances, actually explicitly disables the task_state check, i.e. it does not explicitly check that task_state is None. This was introduced in change I70212879 and does not appear to have been deliberate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/440536

Changed in nova:
assignee: nobody → Matthew Booth (mbooth-9)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Balazs Gibizer (<email address hidden>) on branch: master
Review: https://review.opendev.org/440536
Reason: This is a pretty old patch with negative review. Feel free to restore it (or ask gibi on irc to restore it) if you still working on it.

Changed in nova:
status: In Progress → Triaged
assignee: Matthew Booth (mbooth-9) → nobody
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.