trove needs a --force-delete option or allow to delete BUILD instances

Bug #1579141 reported by Matt Fischer
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
In Progress
Undecided
Ali Asgar Adil

Bug Description

For various reasons instances can get stuck in a BUILD state forever. When this happens the instances are undeleteable as the CLI won't let you remove instances in the BUILD state.

To fix this trove should add a --force-delete option like nova has or allow instances in BUILD to be deleted.

Revision history for this message
Amrith Kumar (amrith) wrote :

This should extend to cluster delete as well.

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

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

Changed in trove:
assignee: nobody → Ali Asgar Adil (aadil-b)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/343931
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=cee1f8e6c7e89558191b244395e50a7657a0f240
Submitter: Jenkins
Branch: master

commit cee1f8e6c7e89558191b244395e50a7657a0f240
Author: Ali Adil <email address hidden>
Date: Mon Jul 18 21:23:48 2016 +0000

    Add command to delete BUILD instances and clusters

    Sometimes an instance/cluster can be stuck in BUILD state forever.
    Attempting to delete the instance in this state is currently not
    allowed. Add force-delete and reset-status command. Reset-status
    will reset the status of an instance to ERROR and cluster to NONE.

    The reset-status command can only be used if the instance/cluster
    is in BUILD or ERROR state. Resetting the status of an instance in
    ERROR state can be useful as an instance might go ACTIVE after the
    specified timeout. Once the status has been reset it is possible
    for an instance to go ACTIVE if it receives a hearbeat from the
    guestagent.

    Force-delete will combine functionality of reset-status and delete.

    Change-Id: I83f6cdcdd884e51d002295b0d1f07341990e512c
    Depends-On: I957b4be5030e493e0eb8c6b6855d41b942b2823c
    Partial-Bug: #1579141

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.