Tempest resize test fails with kvm/libvirt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The following test fails because the vm gets stuck in RESIZE. Possibly related, an error is showing up in the nova-compute log. This is with current devstack running on real hardware. I know this did not work in diablo but the essex blueprint says the code is in.
def test_resize_
"""
The server's RAM and disk space should be modified to that of
the provided flavor
"""
resp, server = self.client.
resp, server = self.client.
2012-02-24 15:49:41 DEBUG nova.manager [-] Running periodic task ComputeManager.
2012-02-24 15:49:41 DEBUG nova.manager [-] Skipping ComputeManager.
2012-02-24 15:49:41 DEBUG nova.manager [-] Running periodic task ComputeManager.
2012-02-24 15:49:41 DEBUG nova.manager [-] Running periodic task ComputeManager.
2012-02-24 15:49:51 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:49:52 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:49:52 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:49:52 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:49:52 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:49:52 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:49:53 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:49:53 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:49:53 INFO nova.virt.
2012-02-24 15:49:53 DEBUG nova.manager [-] Running periodic task ComputeManager.
2012-02-24 15:49:53 DEBUG nova.manager [-] Skipping ComputeManager.
2012-02-24 15:49:53 DEBUG nova.manager [-] Running periodic task ComputeManager.
2012-02-24 15:49:53 DEBUG nova.rpc.common [-] Making asynchronous call on network ... from (pid=3967) multicall /opt/stack/
2012-02-24 15:49:53 DEBUG nova.rpc.common [-] MSG_ID is a8f54c24f0ab4cf
2012-02-24 15:49:53 DEBUG nova.compute.
2012-02-24 15:49:53 DEBUG nova.manager [-] Skipping ComputeManager.
2012-02-24 15:49:53 DEBUG nova.manager [-] Running periodic task ComputeManager.
2012-02-24 15:49:53 DEBUG nova.compute.
2012-02-24 15:49:53 DEBUG nova.manager [-] Running periodic task ComputeManager.
2012-02-24 15:49:53 DEBUG nova.manager [-] Running periodic task ComputeManager.
2012-02-24 15:50:53 DEBUG nova.manager [-] Running periodic task ComputeManager.
2012-02-24 15:50:53 DEBUG nova.manager [-] Notifying Schedulers of capabilities ... from (pid=3967) _publish_
2012-02-24 15:50:53 DEBUG nova.rpc.common [-] Making asynchronous fanout cast... from (pid=3967) fanout_cast /opt/stack/
2012-02-24 15:50:53 DEBUG nova.manager [-] Running periodic task ComputeManager.
2012-02-24 15:50:53 DEBUG nova.manager [-] Running periodic task ComputeManager.
2012-02-24 15:50:55 ERROR nova.manager [-] Error during ComputeManager.
(nova.manager): TRACE: Traceback (most recent call last):
(nova.manager): TRACE: File "/opt/stack/
(nova.manager): TRACE: task(self, context)
(nova.manager): TRACE: File "/opt/stack/
(nova.manager): TRACE: vm_power_state = vm_instance.state
(nova.manager): TRACE: AttributeError: 'dict' object has no attribute 'state'
(nova.manager): TRACE:
2012-02-24 15:50:55 DEBUG nova.manager [-] Running periodic task ComputeManager.
2012-02-24 15:50:55 DEBUG nova.manager [-] Running periodic task ComputeManager.
2012-02-24 15:51:05 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:51:05 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:51:06 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:51:06 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:51:06 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:51:06 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:51:07 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:51:07 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /opt/stack/
2012-02-24 15:51:07 INFO nova.virt.
2012-02-24 15:51:07 DEBUG nova.manager [-] Running periodic task ComputeManager.
2012-02-24 15:51:07 DEBUG nova.manager [-] Skipping ComputeManager.
2012-02-24 15:51:07 DEBUG nova.manager [-] Running periodic task ComputeManager.
2012-02-24 15:51:07 DEBUG nova.rpc.common [-] Making asynchronous call on network ... from (pid=3967) multicall /opt/stack/
2012-02-24 15:51:07 DEBUG nova.rpc.common [-] MSG_ID is 032f86856ced42b
2012-02-24 15:51:07 DEBUG nova.compute.
It turns out that this is a problem with the test. According to Vish, libvirt resize was fixed in Essex but requires the to_same_ host=True
allow_resize_
if using a single node, or the ability for nova user to scp between machines in multinode.