Comment 5 for bug 1299333

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

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

commit ac236c2cd73c9d7e05ef9fbd22a4f8f099262082
Author: He Jie Xu <email address hidden>
Date: Sat Apr 12 19:30:12 2014 +0800

    Check instance state before attach/detach interface

    Currently there isn't any instance's status checking before
    attach/detach interface, It will fail when some status didn't
    support it. This patch add checking for it.

    This patch allow attach/detach interface for ACTIVE, PAUSED
    and STOPPED instance.

    * ACTIVE: The interface is hotplug to instance.
    * PAUSED: The interface can be hotpluged after instance unpaused.
    It's fixed by commit: a868fcedf8e46070cae6aa8e59e61934fa23db1c
    * STOPPED: In this status, the instance is destroyed. It just update
    the instance configuration with new interface. When the start
    instance, the instance will be recreated with new configuration.

    Change-Id: I3c038056085be1f655758ed8b6a44bcdbf70cdd5
    Closes-bug: #1299333