live-migration failed after re-add nova-compute unit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-cloud-controller (Juju Charms Collection) |
Fix Released
|
Medium
|
Xiang Hui |
Bug Description
[ENV]
trusty + icehouse
[DESCRIPTION]
If you re-add a nova-compute unit with the following steps, live-migration will fail, this is found at Maas + OpenStack, because it seems Maas will reinstall the system on nova-compute node when it's re-added.
[STEP]
2 compute-nodes, node-a and node-b.
1. Create an instance(ex. created on node-a)
2. live-migrate the instance to node-b
$ nova live-migrate <instance-id> node-b
3. after migration has completed, live-migrate back to node-a
$ nova live-migrate <instance-id> node-a
4. delete the nova-compute unit which is node-b
$ juju delete-unit nova-compute/1
5. add the nova-compute unit again to node-b
$ juju add-unit nova-compute
6. live-migrate once again to node-b
$ nova live-migrate <instance-id> node-b
7. check if the host has changed, however nothing changed and no error
$ nova show <instance-id>
8. from the log file in compute-node node-a, an error was shown.
Error message on compute-node:
2015-04-20 06:45:21.206 11564 ERROR nova.virt.
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
9a:4c:37:
Please contact your system administrator.
Add correct host key in /root/.
Offending RSA key in /root/.
remove with: ssh-keygen -f "/root/
RSA host key for node-b has changed and you have requested strict checking.
Host key verification failed.: Connection reset by peer
Related branches
- Billy Olsen: Approve
-
Diff: 2135 lines (+1496/-110)15 files modifiedhooks/charmhelpers/contrib/network/ip.py (+5/-3)
hooks/charmhelpers/contrib/openstack/amulet/deployment.py (+13/-6)
hooks/charmhelpers/contrib/openstack/amulet/utils.py (+359/-0)
hooks/charmhelpers/contrib/openstack/context.py (+60/-16)
hooks/charmhelpers/contrib/openstack/templating.py (+29/-2)
hooks/charmhelpers/contrib/openstack/utils.py (+221/-1)
hooks/charmhelpers/contrib/storage/linux/ceph.py (+226/-13)
hooks/charmhelpers/core/host.py (+3/-4)
hooks/charmhelpers/core/kernel.py (+68/-0)
hooks/charmhelpers/core/strutils.py (+30/-0)
hooks/nova_cc_utils.py (+17/-5)
tests/charmhelpers/contrib/amulet/deployment.py (+4/-2)
tests/charmhelpers/contrib/amulet/utils.py (+96/-52)
tests/charmhelpers/contrib/openstack/amulet/utils.py (+359/-0)
unit_tests/test_nova_cc_utils.py (+6/-6)
Changed in nova-cloud-controller (Juju Charms Collection): | |
assignee: | nobody → Xiang Hui (xianghui) |
importance: | Undecided → Critical |
importance: | Critical → High |
importance: | High → Medium |
status: | New → In Progress |
tags: | added: openstack sts |
Changed in nova-cloud-controller (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in nova-cloud-controller (Juju Charms Collection): | |
milestone: | none → 16.01 |
Changed in nova-cloud-controller (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |