← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1056297] Re: Instance states are reported incorrectly after stop/destroy operation

 

Feel free to reopen the bug by providing the requested information (See
Mark's comment) and set the bug status back to ''New''.

** Changed in: nova
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1056297

Title:
  Instance states are reported incorrectly after stop/destroy operation

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  Hi,

  Today we have discovered a bug in the OpenStack Nova API where executing a 'stop' or 'destroy' operation does not make the effect on the Instance state immediately.
  Instance state is reported as 'RUNNING' for the short period of time, which unfortunately force clients to pool the Instance state to be sure that the instance is STOPPED.

  Log from Deltacloud API:

  127.0.0.1 - - [25/Sep/2012 16:09:37] "POST /api/instances/28caf43f-
  96b2-4ba5-bf3e-17e745500fcd/stop HTTP/1.1" 202 1356 0.5069

  127.0.0.1 - - [25/Sep/2012 16:09:38] "GET /api/instances/28caf43f-
  96b2-4ba5-bf3e-17e745500fcd HTTP/1.1" 200 1356 0.2876

  [#<Instance:0x007fcf5352e098 @id="28caf43f-96b2-4ba5-bf3e-
  17e745500fcd", @image_id="41d25563-7d09-45eb-8717-f6fe01dff66f",
  @actions=[:reboot, :stop], @public_addresses=[],
  @private_addresses=[192.168.0.2], @realm_id="default",
  @owner_id="mfojtik", @name="test-repro", @state="RUNNING",
  @instance_profile=1, @username="root", @password="", @keyname="",
  @create_image=true>]

  The instance state should be reported as 'STOPPING' or 'PENDING' rather than RUNNING. Note, the state attribute is reported directly from the Nova API, Deltacloud is just forwarding that.
  If this is not possible OpenStack should provide a link to 'monitor' or 'task' to monitor progress of that operation in the response after the action, or at least return 202 rather than 200.

  Environment:

  OpenStack Essex (2012.1.1)
  Fedora 17

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1056297/+subscriptions