EC2 API does not support InstanceInstantiatedShutdownBehavior

Bug #1131395 reported by Burt Holzman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Burt Holzman

Bug Description

The EC2 API allows the setting of the InstanceInstantiatedShutdownBehavior to either "stop" or "terminate".
This settings is ignored and all instances go to a stop state rather than termination.

From the comments, it looks like this was removed in I91845a64 -- maybe Vish can comment before I dive in?

Tags: ec2
Changed in nova:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Vish Ishaya (vishvananda) wrote :

I'm not opposed to this going back in, but it likely requires some tricky checks in sync_power_states to see if the instance should be deleted.

Changed in nova:
assignee: nobody → Burt Holzman (holzman)
Michael Still (mikal)
tags: added: ec2
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/38081

Changed in nova:
status: Triaged → In Progress
Revision history for this message
Joe Gordon (jogo) wrote :

previous patch was abandoned

Changed in nova:
status: In Progress → Triaged
assignee: Burt Holzman (holzman) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Burt Holzman (<email address hidden>) on branch: master
Review: https://review.openstack.org/106679
Reason: Whoops, missed the old change-id.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Burt Holzman (<email address hidden>) on branch: master
Review: https://review.openstack.org/106680
Reason: Whoops, missed the old change-id.

Burt Holzman (holzman)
Changed in nova:
assignee: nobody → Burt Holzman (holzman)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/106679
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=7a1e50772154b0b0907592582b91eb89407dfb8b
Submitter: Jenkins
Branch: master

commit 7a1e50772154b0b0907592582b91eb89407dfb8b
Author: Burt Holzman <email address hidden>
Date: Fri Jul 11 16:11:00 2014 -0500

    Make nova-api use quotas object for reservations

    This makes nova-api use the quotas object for reservations;
    more work needs to be done to convert the rest.

    Partial-Bug: #1131395
    Change-Id: I3e4d233278966c79019235ac8836a825c46c27ea

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/38081
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=6132f991bdc8515aa665db16fef260ff71a618e6
Submitter: Jenkins
Branch: master

commit 6132f991bdc8515aa665db16fef260ff71a618e6
Author: Burt Holzman <email address hidden>
Date: Fri Jul 11 16:31:57 2014 -0500

    Enable terminate for EC2 InstanceInitiatedShutdownBehavior

    The EC2 API supports an instance attribute called
    InstanceInitiatedShutdownBehavior (IISB) which can be set to
    'stop' or 'terminate' (default: 'stop'). When the instance
    initiates its own shutdown, this determines whether or not
    the instance hangs around in the Shutoff state or is
    terminated by the system.

    In nova, this is handled by the shutdown_terminate boolean.
    IISB = stop => shutdown_terminate = False
    IISB = terminate => shutdown_terminate = True

    sync_instance_power_state now invokes compute_api.delete if
    shutdown_terminate = True and we detect the instance power state
    has gone from Running to Shutdown.

    Closes-Bug: #1131395
    Change-Id: I284ae7a84384f19131703c4ad44e0e5f5b03f5d4

Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-3 → 2014.2
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.