Thanks for the report, however direct manipulation of the DB like this isn't something nova supports. Use the `nova evacuate` command to move the instance from the down tripoli node instead of hacking around in the DB.
** Changed in: nova
Status: New => 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/1644452
Title:
nova evacuation [manual process] is failed when the cinder is attached
to the VM instance
Status in OpenStack Compute (nova):
Invalid
Bug description:
openstack release is Mitaka. and following are the details about the each
module in the openstack.
=============================================
[root@~~~]# nova --version
6.0.0
[root@~~~]# neutron --version
6.0.0
[root@~~~]# cinder --version
1.9.0
[root@~~~]# glance --version
2.5.0
=============================================
setup model is like openstack controller+ 2 compute nodes + cinder volume
attached to the compute nodes. created the VM instance on one compute node
'tripoli' and trying to do the nova evacuate procedure to move the VM to
another compute node 'cobolt'.
[root@tripoli ~]# nova service-list
+----+------------------+---------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary | Host | Zone | Status | State | Updated_at
| Disabled Reason |
+----+------------------+---------+----------+---------+-------+----------------------------+-----------------+
| 1 | nova-scheduler | tripoli | internal | enabled | up |
2016-11-17T10:18:22.000000 | - |
| 2 | nova-consoleauth | tripoli | internal | enabled | up |
2016-11-17T10:18:24.000000 | - |
| 3 | nova-conductor | tripoli | internal | enabled | up |
2016-11-17T10:18:28.000000 | - |
| 14 | nova-compute | tripoli | nova | enabled | up |
2016-11-17T10:18:23.000000 | - |
| 15 | nova-compute | cobolt | cobolt | enabled | up |
2016-11-17T10:18:27.000000 |
performed the following tasks to evacuate the VM from tripoli to cobolt..
1. nova service-force-down tripoli nova-compute
2. mysql -u root -p nova
3. MariaDB [nova]> update instances set host='cobolt' where
uuid='77f60fa5-54cc-45b1-b094-57eafa6f9c14';
MariaDB [nova]> update instances set node='cobolt' where
uuid='77f60fa5-54cc-45b1-b094-57eafa6f9c14';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
4. [root@tripoli ~]# nova show 77f60fa5-54cc-45b1-b094-57eafa6f9c14
+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value
|
+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL
|
| OS-EXT-AZ:availability_zone | cobolt
|
| OS-EXT-SRV-ATTR:host | cobolt
|
| OS-EXT-SRV-ATTR:hostname | masterpsx-20719
|
| OS-EXT-SRV-ATTR:hypervisor_hostname | cobolt
|
| OS-EXT-SRV-ATTR:instance_name | instance-00000027
|
| OS-EXT-SRV-ATTR:kernel_id |
|
| OS-EXT-SRV-ATTR:launch_index | 0
|
| OS-EXT-SRV-ATTR:ramdisk_id |
|
| OS-EXT-SRV-ATTR:reservation_id | r-pfynf8h3
|
| OS-EXT-SRV-ATTR:root_device_name | /dev/vda
|
| OS-EXT-SRV-ATTR:user_data |
Q29udGVudC1UeXBlOiBtdWx0aXBhcnQvbWl4ZWQ7IGJvdW5kYXJ5PSI9PT09PT09PT09PT09PT0zMjY0NjIxMDA3NjkxOTY4OTgyPT0iCk1JTUUtVmVyc2lvbjogMS4wCgotLT09PT09PT09PT09PT09PTMyNjQ2MjEwMDc2OTE5Njg5ODI9PQpDb250ZW50LVR5cGU6IHRleHQvcGxhaW47IGNoYXJzZXQ9InVzLWFzY2lpIgpNSU1FLVZlcnNpb246IDEuMApDb250ZW50LVRyYW5zZmVyLUVuY29kaW5nOiA3Yml0CgojY2xvdWQtY29uZmlnCnVzZXJzOgotIG5hbWU6IHNzdXNlcgogIHNzaF9hdXRob3JpemVkX2tleXM6IFsnJ10KCi0tPT09PT09PT09PT09PT09MzI2NDYyMTAwNzY5MTk2ODk4Mj09LS0=
|
| OS-EXT-STS:power_state | 1
|
| OS-EXT-STS:task_state | -
|
| OS-EXT-STS:vm_state | active
|
| OS-SRV-USG:launched_at | 2016-11-17T10:09:01.000000
|
| OS-SRV-USG:terminated_at | -
|
| accessIPv4 |
|
| accessIPv6 |
|
| config_drive | True
|
| created | 2016-11-17T10:08:51Z
|
| description | masterpsx_20719
|
| flavor | SMALL (6)
|
| hostId |
29781d2fb23bd22883181ddeffc6a86123102272eac6f0fbc5cb82b8
|
| host_status | UP
|
| id | 77f60fa5-54cc-45b1-b094-57eafa6f9c14
|
| image | cPSX_410
(0ee1b8e5-4eed-4b2c-9634-13ce3b1400a8)
|
| key_name | -
|
| locked | False
|
| metadata | {"ProcessManagerId":
"DEFAULT_PROV_MASTER", "IF1": "{ \"Port\":\"eth0\", \"IPV4\":\"\",
\"GWV4\":\"\", \"FIPV4\":\"10.54.9.152\"}
|
| | ", "EmsPassword": "sonus123",
"EmsPrivateNodeParameters": "vnfc_id=masterpsx_new,cluster_id=masterpsx",
"SignalingInterface": "eth0", "Role": "Master", "EmsUsername": "restuser",
"EmsIP": "[\"10.54.49.224\", \"\"]
|
| | "}
|
| mgmt-net network | 192.168.1.11, 10.54.9.152
|
| name | masterpsx_20719
|
| os-extended-volumes:volumes_attached | [{"id":
"d8b1c05e-72c7-4480-8c98-0fe863bb14d7", "delete_on_termination": false}]
|
| progress | 0
|
| security_groups | SONUS
|
| status | ACTIVE
|
| tags | []
|
| tenant_id | d32e0403cf2f420a878630b8f7b35ae9
|
| updated | 2016-11-17T10:09:01Z
|
| user_id | b9702e97df804e3e986557bf2df92201
|
+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
[root@tripoli ~]# nova reboot 77f60fa5-54cc-45b1-b094-57eafa6f9c14
Request to reboot server <Server: masterpsx_20719> has been accepted.
[root@tripoli ~]# nova show 77f60fa5-54cc-45b1-b094-57eafa6f9c14
+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value
|
+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL
|
| OS-EXT-AZ:availability_zone | cobolt
|
| OS-EXT-SRV-ATTR:host | cobolt
|
| OS-EXT-SRV-ATTR:hostname | masterpsx-20719
|
| OS-EXT-SRV-ATTR:hypervisor_hostname | cobolt
|
| OS-EXT-SRV-ATTR:instance_name | instance-00000027
|
| OS-EXT-SRV-ATTR:kernel_id |
|
| OS-EXT-SRV-ATTR:launch_index | 0
|
| OS-EXT-SRV-ATTR:ramdisk_id |
|
| OS-EXT-SRV-ATTR:reservation_id | r-pfynf8h3
|
| OS-EXT-SRV-ATTR:root_device_name | /dev/vda
|
| OS-EXT-SRV-ATTR:user_data |
Q29udGVudC1UeXBlOiBtdWx0aXBhcnQvbWl4ZWQ7IGJvdW5kYXJ5PSI9PT09PT09PT09PT09PT0zMjY0NjIxMDA3NjkxOTY4OTgyPT0iCk1JTUUtVmVyc2lvbjogMS4wCgotLT09PT09PT09PT09PT09PTMyNjQ2MjEwMDc2OTE5Njg5ODI9PQpDb250ZW50LVR5cGU6IHRleHQvcGxhaW47IGNoYXJzZXQ9InVzLWFzY2lpIgpNSU1FLVZlcnNpb246IDEuMApDb250ZW50LVRyYW5zZmVyLUVuY29kaW5nOiA3Yml0CgojY2xvdWQtY29uZmlnCnVzZXJzOgotIG5hbWU6IHNzdXNlcgogIHNzaF9hdXRob3JpemVkX2tleXM6IFsnJ10KCi0tPT09PT09PT09PT09PT09MzI2NDYyMTAwNzY5MTk2ODk4Mj09LS0=
|
| OS-EXT-STS:power_state | 0
|
| OS-EXT-STS:task_state | -
|
| OS-EXT-STS:vm_state | error
|
| OS-SRV-USG:launched_at | 2016-11-17T10:09:01.000000
|
| OS-SRV-USG:terminated_at | -
|
| accessIPv4 |
|
| accessIPv6 |
|
| config_drive | True
|
| created | 2016-11-17T10:08:51Z
|
| description | masterpsx_20719
|
| fault | {"message": "Unavailable console
type serial.", "code": 400, "created": "2016-11-17T10:39:30Z"}
|
| flavor | SMALL (6)
|
| hostId |
29781d2fb23bd22883181ddeffc6a86123102272eac6f0fbc5cb82b8
|
| host_status | UP
|
| id | 77f60fa5-54cc-45b1-b094-57eafa6f9c14
|
| image | cPSX_410
(0ee1b8e5-4eed-4b2c-9634-13ce3b1400a8)
|
| key_name | -
|
| locked | False
|
| metadata | {"ProcessManagerId":
"DEFAULT_PROV_MASTER", "IF1": "{ \"Port\":\"eth0\", \"IPV4\":\"\",
\"GWV4\":\"\", \"FIPV4\":\"10.54.9.152\"}
|
| | ", "EmsPassword": "sonus123",
"EmsPrivateNodeParameters": "vnfc_id=masterpsx_new,cluster_id=masterpsx",
"SignalingInterface": "eth0", "Role": "Master", "EmsUsername": "restuser",
"EmsIP": "[\"10.54.49.224\", \"\"]
|
| | "}
|
| mgmt-net network | 192.168.1.11, 10.54.9.152
|
| name | masterpsx_20719
|
| os-extended-volumes:volumes_attached | [{"id":
"d8b1c05e-72c7-4480-8c98-0fe863bb14d7", "delete_on_termination": false}]
|
| security_groups | SONUS
|
| status | ERROR
|
| tags | []
|
| tenant_id | d32e0403cf2f420a878630b8f7b35ae9
|
| updated | 2016-11-17T10:38:21Z
|
| user_id | b9702e97df804e3e986557bf2df92201
|
+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1644452/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp

