VNF in PENDING_SCALE_* status can't be deleted.
when VNF scale process is interrupted by some reasons,
it stays in PENDING_SCALE_IN or PENDING_SCALE_OUT status,
we cannot find it from db with _ACTIVE_UPDATE_ERROR_DEAD status.
Close-Bug:
@@ -43,7 +43,8 @@ LOG = logging.getLogger(__name__)
_ACTIVE_UPDATE = (constants.ACTIVE, constants.PENDING_UPDATE)
_ACTIVE_UPDATE_ERROR_DEAD = (
constants.PENDING_CREATE, constants.ACTIVE, constants.PENDING_UPDATE,
- constants.ERROR, constants.DEAD)
+ constants.PENDING_SCALE_IN, constants.PENDING_SCALE_OUT, constants.ERROR,
+ constants.DEAD)
CREATE_STATES = (constants.PENDING_CREATE, constants.DEAD)
