nova can not stop a vm when using fake driver

Bug #1329192 reported by Feng Xi Yan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Wishlist
Noel Nelson Dsouza

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".

Feng Xi Yan (yanfengxi)
Changed in nova:
assignee: nobody → Feng Xi Yan (yanfengxi)
Changed in nova:
status: New → In Progress
Changed in nova:
status: In Progress → Confirmed
assignee: Feng Xi Yan (yanfengxi) → nobody
Revision history for this message
Feng Xi Yan (yanfengxi) wrote :

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

Sean Dague (sdague)
Changed in nova:
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https://review.openstack.org/99825
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Changed in nova:
assignee: nobody → Noel Nelson Dsouza (noelnelson)
Revision history for this message
Noel Nelson Dsouza (noelnelson) wrote :

Please provide the version of OpenStack used for above..

I am currently checking on Juno version of Openstack-devstack

Regards
Noel Nelson Dsouza

Revision history for this message
Noel Nelson Dsouza (noelnelson) wrote :

I have reproduced above bug in Juno version Openstack Devstack,

Steps I followed :

1) Launch the instance with proper compute_driver
2) Delete the instance . Command : nova delete InstanceName.
3) Change the content of file /etc/nova/nova.conf as : compute_driver = fake.FakeDriver
4) Restart only all nova services manually. ( Using screen option in devstack)
5) Launch the instance with fake compute driver ( Step 1 repeat).
6) Stop the instance. ( nova stop InstanceName)

Regards
Noel Nelson Dsouza

Changed in nova:
status: Confirmed → In Progress
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/174746

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

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Michael Still (<email address hidden>) on branch: master
Review: https://review.openstack.org/174746
Reason: This patch has been stalled for a long time, so I am abandoning it. Please feel free to restore it when the code is ready for review.

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

Change abandoned by Michael Still (<email address hidden>) on branch: master
Review: https://review.openstack.org/182650
Reason: This patch has been stalled for quite a while, so I am going to abandon it to keep the code review queue sane. Please restore the change when it is ready for review.

Revision history for this message
Noel Nelson Dsouza (noelnelson) wrote :

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
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.