← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1329192] Re: nova can not stop a vm when using fake driver

 

Using Fake driver not able to launch instances. If we launch also it
should be in error state.

** Changed in: nova
       Status: In Progress => 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/1329192

Title:
  nova can not stop a vm when using fake driver

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  When using fake driver, "nova stop" command did not change the
  instance's power state.

  Steps to reproduce the bug:
  (1) Config nova to use fake drive
  vim /etc/nova/nova.conf
  compute_driver = fake.FakeDriver

  (2) Boot a VM
  +----------------------------------------------+-------+------------+--------------+--------------+------------------------+
  | ID                                                                         | Name  |      Status   |  Task State   | Power State |  Networks                    |
  +----------------------------------------------+-------+------------+--------------+--------------+------------------------+
  | 23f4abf8-664b-4aff-bf9e-fdad35cc7a9d | test     |       ACTIVE |            -          | Running         | test-net=55.0.0.125  |
  +----------------------------------------------+-------+------------+--------------+--------------+------------------------+

  (3) Stop this instance with "nova stop" command
  $> nova stop test
  $> nova list
  +----------------------------------------------+-------+------------+--------------+--------------+------------------------+
  | ID                                                                         | Name  |      Status   |  Task State   | Power State |  Networks                    |
  +----------------------------------------------+-------+------------+--------------+--------------+------------------------+
  | 23f4abf8-664b-4aff-bf9e-fdad35cc7a9d | test     |  SHUTOFF  |            -          | Running         | test-net=55.0.0.125  |
  +----------------------------------------------+-------+------------+--------------+--------------+------------------------+

  (4) We can see the power state is still "Running", while it should be
  “Showdown".

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


References