Instance doesn't get an address via DHCP (nova-network) because of issue with live migration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Timofey Durakov | ||
Kilo |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When instance is migrated to another compute node, it's dhcp lease is not removed from the first compute node even after instance termination.
If a new instance got the same IP which was present in the previous instance created on the the first compute node where dhcp lease for this IP remains, then the dnsmasq refuse DHCP request of the IP address for a new instance with different MAC.
Steps to reproduce:
Scenario:
1. Create cluster (CentOS, nova-network with Flat-DHCP , Ceph for images and volumes)
2. Add 1 node with controller and ceph OSD roles
3. Add 2 node with compute and ceph OSD roles
4. Deploy the cluster
5. Create a VM
6. Wait until the VM got IP address via DHCP (in VM console log)
7. Migrate the VM to another compute node.
8. Terminate the VM.
9. Repeat stages from 5 to 8 several times (in my case - 4..6 times was enough) until a new instance stops receiving IP address via DHCP.
10. Check dnsmasq-dhcp.log (/var/log/
=======
2014-11-
This means that:
I. An instance was created on the compute node-1 and got a dhcp lease:
==== nova-dhcpbridge.log
2014-11-09 20:12:03.811 27360 DEBUG nova.dhcpbridge [-] Called 'add' for mac 'fa:16:3e:65:70:be' with ip '10.0.0.2' main /usr/lib/
II. When the instance was migrating from compute node-1 to node-3, 'dhcp_release' was not performed on compute node-1, please check the time range in the logs : 2014-11-09 20:14:36-37
==== Running.log (node-1)
2014-11-
### But there is missing a command like: sudo nova-rootwrap /etc/nova/
III. On the compute node-3, DHCP lease was added and it was successfully removed when the instance was terminated:
==== Running.log (node-3)
2014-11-
IV. When an another instance got the same address '10.0.0.2' and was created on node-1, it didn't get IP address via DHCP:
==== Running.log (node-1)
2014-11-
Changed in nova: | |
status: | New → In Progress |
assignee: | nobody → Timofey Durakov (tdurakov) |
summary: |
Instance doesn't get an address via DHCP (nova-network) because of issue - with live migration Edit + with live migration |
Changed in nova: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
importance: | Undecided → Medium |
tags: | added: kilo-backport-potential |
Changed in nova: | |
milestone: | liberty-1 → 12.0.0 |
Fix proposed to branch: master /review. openstack. org/173913
Review: https:/