Activity log for bug #1794252

Date Who What changed Old value New value Message
2018-09-25 08:17:59 Tao Li bug added bug
2018-09-25 08:18:06 Tao Li nova: assignee Tao Li (eric-litao)
2018-09-25 08:19:58 Tao Li description Description =========== We set CONF.allow_resize_to_same_host to True in nova.conf. Then I migrated an instance, unfortunately nova scheduler selects the host which the instance locates in. The pre_resize will raised the UnableToMigrateToSelf exception because of the restriction of libvirt driver. Then nova scheduler will select another host to migrate, after migrating successfully, the retried host will be saved in database. From then on, the instance cann't migrate to the host any more, because the nova scheduler will check the retried hosts and bypassed them. Steps to reproduce ================== Two compute nodes and set CONF.allow_resize_to_same_host to True in nova.conf on controller node * Create an instance * Migrate the instance and ensure the first selected host is the host which the instance in. * After migrate successfully, then migrate again. Expected result =============== The instance will migrate to the first host. Actual result ============= The instance migrated failed. Environment =========== 1. Openstack Pike version. [root@cdpm01 ~]# nova --version 9.1.1 2. libvirt driver. Logs & Configs ============== Description =========== We set CONF.allow_resize_to_same_host to True in nova.conf. Then I migrated an instance, unfortunately nova scheduler selects the host which the instance locates in. The pre_resize will raised the UnableToMigrateToSelf exception because of the restriction of libvirt driver. Then nova scheduler will select another host to migrate, after migrating successfully, the retried host will be saved in database. From then on, the instance cann't migrate to the host any more, because the nova scheduler will check the retried hosts and bypassed them. I check the latest code, there is still problem. Steps to reproduce ================== Two compute nodes and set CONF.allow_resize_to_same_host to True in nova.conf on controller node * Create an instance * Migrate the instance and ensure the first selected host is the host which the instance in. * After migrate successfully, then migrate again. Expected result =============== The instance will migrate to the first host. Actual result ============= The instance migrated failed. Environment =========== 1. Openstack Pike version. [root@cdpm01 ~]# nova --version 9.1.1 2. libvirt driver. Logs & Configs ==============
2018-09-25 08:20:06 Tao Li description Description =========== We set CONF.allow_resize_to_same_host to True in nova.conf. Then I migrated an instance, unfortunately nova scheduler selects the host which the instance locates in. The pre_resize will raised the UnableToMigrateToSelf exception because of the restriction of libvirt driver. Then nova scheduler will select another host to migrate, after migrating successfully, the retried host will be saved in database. From then on, the instance cann't migrate to the host any more, because the nova scheduler will check the retried hosts and bypassed them. I check the latest code, there is still problem. Steps to reproduce ================== Two compute nodes and set CONF.allow_resize_to_same_host to True in nova.conf on controller node * Create an instance * Migrate the instance and ensure the first selected host is the host which the instance in. * After migrate successfully, then migrate again. Expected result =============== The instance will migrate to the first host. Actual result ============= The instance migrated failed. Environment =========== 1. Openstack Pike version. [root@cdpm01 ~]# nova --version 9.1.1 2. libvirt driver. Logs & Configs ============== Description =========== We set CONF.allow_resize_to_same_host to True in nova.conf. Then I migrated an instance, unfortunately nova scheduler selects the host which the instance locates in. The pre_resize will raised the UnableToMigrateToSelf exception because of the restriction of libvirt driver. Then nova scheduler will select another host to migrate, after migrating successfully, the retried host will be saved in database. From then on, the instance cann't migrate to the host any more, because the nova scheduler will check the retried hosts and bypassed them. I check the latest code, there is still this problem. Steps to reproduce ================== Two compute nodes and set CONF.allow_resize_to_same_host to True in nova.conf on controller node * Create an instance * Migrate the instance and ensure the first selected host is the host which the instance in. * After migrate successfully, then migrate again. Expected result =============== The instance will migrate to the first host. Actual result ============= The instance migrated failed. Environment =========== 1. Openstack Pike version. [root@cdpm01 ~]# nova --version 9.1.1 2. libvirt driver. Logs & Configs ==============
2018-09-25 08:57:03 OpenStack Infra nova: status New In Progress
2018-10-09 00:09:41 melanie witt nova: status In Progress Incomplete
2019-06-13 16:45:06 Matt Riedemann marked as duplicate 1718512