[Optional] Update Instance/Task status if instance stucks at BUILD status to ERROR

Registered by Denis M.

Taskmanager should perform complete rollback if instance stucks at BUILD status. It means that each component of instance should be deleted and quota should be updated.
Workflow is next:
1. If instance stacks at BUILDING status after poll_untill fells to timeout set TaskStatus to Error, set InstanceStatus to Error.
2. Update rows in DB.

All clean-up should be delegated to instance forceDelete API call

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
Denis M.
Definition:
Approved
Series goal:
Proposed for future
Implementation:
Implemented
Milestone target:
milestone icon next
Started by
Denis M.
Completed by
Denis M.

Whiteboard

[Illia Khudoshyn] I would rather have an ability to rollback stuff manually too.

[Haomai Wang ] Why not give the user force delete option?
I think the workflow you list is actually doing deleting instance.

[Denis M.] - My point is to perform complete rollback and report user that creation failed. I think allowing user deleting stucked instances is not so good idea. I'm suggesting to do rollback aumaticaly, without user. Or we could do it optionaly

Gerrit topic: https://review.openstack.org/#q,topic:bp/security-groups-workflow-update,n,z

Addressed by: https://review.openstack.org/45708
    Optional rollback

Gerrit topic: https://review.openstack.org/#q,topic:bp/complete-rollback-if-instance-stucks-at-build-status,n,z

Addressed by: https://review.openstack.org/45723
    Instance rollback

Gerrit topic: https://review.openstack.org/#q,topic:bp/update-instance-task-status-if-instance-stucks-at-build-status-to-error,n,z

Addressed by: https://review.openstack.org/48062
    Update statuses on GA timeout

Addressed by: https://review.openstack.org/50293
    Update statuses on GA timeout

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.