NEC Plugin: the plugin exposes wrong status of resources
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Ryota Mibu |
Bug Description
There are several problems of exposing resource status in NEC Plugin; 1) a status in response body is not updated in the operation, and 2) the plugin might overwrite ERROR status to ACTIVE or DOWN without any operations to the backend (OFC) which make the plugin expose wrong status.
We have to make sure that the plugin exposes right status in response body, and does not overwrite ERROR status until another operation to the backend has succeeded.
I confirmed the following symptoms, so we also need unit tests to verify that these are fixed:
1-a) While creating a network and operation to the backend has failed, the plugin returns status='ACTIVE' in the response body. It must be 'ERROR'.
1-b) When updating a network from admin_state_
1-c) When creating a port, the plugin always returns status='ACTIVE' in a response body even though status='DOWN'.
1-d) When updating a port from admin_state_
2-a) When updating a port with admin_state_
Changed in neutron: | |
milestone: | none → havana-3 |
importance: | Undecided → High |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | havana-3 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/41405
Review: https:/