2015-02-27 16:12:23 |
Lorenzo Affetti |
bug |
|
|
added bug |
2015-02-27 16:13:45 |
Lorenzo Affetti |
description |
In FakeDrivers, when live-migrating an instance everything goes ok.
So, resources are allocated the correct way and instance's host has been changed, but instance Power State goes to NOSTATE.
This seems to be caused by get_info method which programmatically raises InstanceNotFound exception.
Instances list inside FakeDriver seems not to be updated accordingly.
I actually fixed the problem in my local code (nova.virt.fake.FakeDriver) with:
def live_migration(self, context, instance, dest,
post_method, recover_method, block_migration=False,
migrate_data=None):
post_method(context, instance, dest, block_migration,
migrate_data)
++ name = instance['name']
++ del self.instances[name]
return
and
def post_live_migration_at_destination(self, context, instance,
network_info,
block_migration=False,
block_device_info=None):
++ name = instance['name']
++ state = power_state.RUNNING
++ fake_instance = FakeInstance(name, state, instance['uuid'])
++ self.instances[name] = fake_instance
But I don't know if it is a satisfying solution.
With this solution the instance is live_migrated and in state ACTIVE and power state RUNNING after the operation.
Thank you |
[nova branch master]
In FakeDrivers, when live-migrating an instance everything goes ok.
So, resources are allocated the correct way and instance's host has been changed, but instance Power State goes to NOSTATE.
This seems to be caused by get_info method which programmatically raises InstanceNotFound exception.
Instances list inside FakeDriver seems not to be updated accordingly.
I actually fixed the problem in my local code (nova.virt.fake.FakeDriver) with:
def live_migration(self, context, instance, dest,
post_method, recover_method, block_migration=False,
migrate_data=None):
post_method(context, instance, dest, block_migration,
migrate_data)
++ name = instance['name']
++ del self.instances[name]
return
and
def post_live_migration_at_destination(self, context, instance,
network_info,
block_migration=False,
block_device_info=None):
++ name = instance['name']
++ state = power_state.RUNNING
++ fake_instance = FakeInstance(name, state, instance['uuid'])
++ self.instances[name] = fake_instance
But I don't know if it is a satisfying solution.
With this solution the instance is live_migrated and in state ACTIVE and power state RUNNING after the operation.
Thank you |
|
2015-02-27 16:21:34 |
Lorenzo Affetti |
description |
[nova branch master]
In FakeDrivers, when live-migrating an instance everything goes ok.
So, resources are allocated the correct way and instance's host has been changed, but instance Power State goes to NOSTATE.
This seems to be caused by get_info method which programmatically raises InstanceNotFound exception.
Instances list inside FakeDriver seems not to be updated accordingly.
I actually fixed the problem in my local code (nova.virt.fake.FakeDriver) with:
def live_migration(self, context, instance, dest,
post_method, recover_method, block_migration=False,
migrate_data=None):
post_method(context, instance, dest, block_migration,
migrate_data)
++ name = instance['name']
++ del self.instances[name]
return
and
def post_live_migration_at_destination(self, context, instance,
network_info,
block_migration=False,
block_device_info=None):
++ name = instance['name']
++ state = power_state.RUNNING
++ fake_instance = FakeInstance(name, state, instance['uuid'])
++ self.instances[name] = fake_instance
But I don't know if it is a satisfying solution.
With this solution the instance is live_migrated and in state ACTIVE and power state RUNNING after the operation.
Thank you |
[nova master]
In FakeDrivers, when live-migrating an instance everything goes ok.
So, resources are allocated the correct way and instance's host has been changed, but instance Power State goes to NOSTATE.
This seems to be caused by get_info method which programmatically raises InstanceNotFound exception.
Instances list inside FakeDriver seems not to be updated accordingly.
I actually fixed the problem in my local code (nova.virt.fake.FakeDriver) with:
def live_migration(self, context, instance, dest,
post_method, recover_method, block_migration=False,
migrate_data=None):
post_method(context, instance, dest, block_migration,
migrate_data)
++ name = instance['name']
++ del self.instances[name]
return
and
def post_live_migration_at_destination(self, context, instance,
network_info,
block_migration=False,
block_device_info=None):
++ name = instance['name']
++ state = power_state.RUNNING
++ fake_instance = FakeInstance(name, state, instance['uuid'])
++ self.instances[name] = fake_instance
But I don't know if it is a satisfying solution.
With this solution the instance is live_migrated and in state ACTIVE and power state RUNNING after the operation.
Thank you |
|
2015-03-06 02:08:54 |
Joe Gordon |
nova: status |
New |
Confirmed |
|
2015-03-06 02:08:59 |
Joe Gordon |
tags |
|
low-hanging-fruit |
|
2015-03-06 02:09:03 |
Joe Gordon |
nova: importance |
Undecided |
Low |
|
2015-03-07 11:24:53 |
Lorenzo Affetti |
nova: assignee |
|
Lorenzo Affetti (affox90) |
|
2015-11-06 15:30:47 |
Andrea Rosa |
bug |
|
|
added subscriber Andrea Rosa |
2015-11-10 14:13:40 |
OpenStack Infra |
nova: status |
Confirmed |
In Progress |
|
2015-11-11 16:45:30 |
OpenStack Infra |
nova: assignee |
Lorenzo Affetti (affox90) |
Stephen Finucane (sfinucan) |
|
2016-04-29 22:07:31 |
Markus Zoeller (markus_z) |
tags |
low-hanging-fruit |
testing |
|
2016-09-02 09:59:21 |
Stephen Finucane |
nova: assignee |
Stephen Finucane (stephenfinucane) |
|
|
2016-11-16 21:04:48 |
Sivasathurappan Radhakrishnan |
nova: status |
In Progress |
Confirmed |
|
2018-08-08 19:09:29 |
OpenStack Infra |
nova: status |
Confirmed |
In Progress |
|
2018-08-08 19:09:29 |
OpenStack Infra |
nova: assignee |
|
Matt Riedemann (mriedem) |
|
2018-08-08 19:11:16 |
Matt Riedemann |
nova: assignee |
Matt Riedemann (mriedem) |
Lorenzo Affetti (affox90) |
|
2019-10-22 18:42:28 |
OpenStack Infra |
nova: assignee |
Lorenzo Affetti (affox90) |
Matt Riedemann (mriedem) |
|
2019-10-22 18:46:27 |
Matt Riedemann |
nova: assignee |
Matt Riedemann (mriedem) |
Lorenzo Affetti (affox90) |
|
2019-12-20 10:59:17 |
OpenStack Infra |
nova: assignee |
Lorenzo Affetti (affox90) |
Stephen Finucane (stephenfinucane) |
|
2019-12-20 21:18:13 |
OpenStack Infra |
nova: status |
In Progress |
Fix Released |
|