Fuel migration fails while starting data copying: 'ssh: connect to host 172.16.162.47 port 22: No route to host'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
Medium
|
Peter Zhurba |
Bug Description
Fuel version info (7.0 build #301): http://
Fuel migration fails on data sync step, because target VM is inaccessible via SSH from bare-metal master node just after reboot:
+ mv -f /root/fuel-
+ ifup eth0
Determining if ip address 172.16.162.36 is already in use for device eth0...
+ /etc/init.d/network start
Bringing up loopback interface: ESC[60G[ESC[0;32m OK ESC[0;39m]
Bringing up interface eth0: RTNETLINK answers: File exists
ESC[60G[ESC[0;32m OK ESC[0;39m]
+ /etc/init.d/sshd start
Starting sshd: ESC[60G[ESC[0;32m OK ESC[0;39m]
+ initctl start tty TTY=/dev/tty2
tty (/dev/tty2) start/running, process 1221
+ cecho 'You may login from tty2. Switch by Ctr-Alt-F2'
+ echo 'You may login from tty2. Switch by Ctr-Alt-F2'
+ rsync_data
+ dd if=/dev/sda1
+ ssh 172.16.162.47 'dd of=/dev/vda1'
ssh: connect to host 172.16.162.47 port 22: No route to host
Steps to reproduce:
1. Enable STP on all switch ports attached to master/slave nodes
2. Deploy environment with compute nodes using bare-metal servers
3. Run fuel master node migration to VM, for example: `fuel-migrate 172.16.162.42 --fvm_ram=4096`, where '172.16.162.42' is IP of some compute node
Expected result: Fuel master node is successfully migrated to VM
Actual result: migration fails
Migration fails because script is trying to access target VM via SSH just after network interface is turned on and there no re-tries. When STP is enabled on network switch there is could be some delay between bringing interface on (master node) and switching port to 'forwarding' state. So some re-tries or sleep should be added to fuel-migrate script.
Full fuel-migrate.log is attached. Note that it contains logs from few migrations, see the first one to check original error.
Changed in fuel: | |
assignee: | Artem Panchenko (apanchenko-8) → Peter Zhurba (pzhurba) |
tags: | added: area-library |
Fix proposed to branch: master /review. openstack. org/228362
Review: https:/