After migration, instance doesnt have IP assigned
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Invalid
|
High
|
ChenjieXu |
Bug Description
Brief Description
-----------------
Performing a migration of an existing instance is causing the IP loose for that instance
Severity
--------
Major: System/Feature is usable but degraded
Steps to Reproduce
------------------
Boot and perform provisioning over a 2+2 configuration, standard storage
Create flavor with property = hw:mem_
Create 1 or 2 instances with this flavor and cirros image
Verify instance health with "openstack server list"
| 354f6dc6-
| 72cd8b21-
Verify that your instances shows the same IP that you have on active controller
ifconfig -a
eth0 Link encap:Ethernet HWaddr FA:16:3E:95:A4:E2
inet addr:192.168.201.45 Bcast:192.
inet6 addr: fe80::f816:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:6139 (5.9 KiB) TX bytes:9094 (8.8 KiB)
Perform migration for that instance to another compute with "openstack server migrate <instance-id>"
Confirm rezising/migration
Check instance health
Get in to the instance console to verify IP
Expected Behavior
------------------
IP4 should be the same
Actual Behavior
----------------
No IP is present on instance console:
ifconfig -a
eth0 Link encap:Ethernet HWaddr FA:16:3E:95:A4:E2
inet addr:192.168.201.45 Bcast:192.
inet6 addr: fe80::f816:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:6139 (5.9 KiB) TX bytes:9094 (8.8 KiB)
Reproducibility
---------------
I create 4 instances at the beginning , for those that were located on compute-0 , the ip was lost since the beginning. forcing ip. And then performing the migration from one compute to other, facing this problem every time that we go from compute-1 to compute-0, not vice versa. All the ips are saved on compute-1 but lost performing migration to compute-0.
System Configuration
-------
2+2 system , standard storage. ISO: 20190524. IPv4
Last Pass
---------
Not sure about last pass on this
Timestamp/Logs
--------------
Taking a look in to the instance console, i was observing the following errors on the instance that can not recover the IP
Initializing random number generator... [ 1.018463] random: dd urandom read with 5 bits of entropy available
done.
Starting acpid: OK
Starting network...
udhcpc (v1.23.2) started
Sending discover...
Sending discover...
Sending discover...
Usage: /sbin/cirros-dhcpc <up|down>
No lease, failing
WARN: /etc/rc3.
checking http://
Starting dropbear sshd: failed to get instance-id of datasource
An this is an example for the same instance on compute-1 where is recovering the ip address:
nitializing random number generator... [ 1.023211] random: dd urandom read with 5 bits of entropy available
done.
Starting acpid: OK
Starting network...
udhcpc (v1.23.2) started
Sending discover...
Sending select for 192.168.201.45...
Lease of 192.168.201.45 obtained, lease time 86400
route: SIOCADDRT: File exists
WARN: failed: route add -net "0.0.0.0/0" gw "192.168.201.1"
I just past the full log at paste.openstack.org Paste #752313
Test Activity
-------------
Feature testing
Changed in starlingx: | |
assignee: | Forrest Zhao (forrest.zhao) → ChenjieXu (midone) |
following down the logs, Usage: /sbin/cirros-dhcpc <up|down>, trying that after instance boots, i tried with the instruction and is not working, investigating nova and neutron logs