resize does not migrate DHCP host information
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Jian Wen | ||
Folsom |
Fix Released
|
Medium
|
Mark McLoughlin | ||
nova (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In multi_host and multi-compute-node mode with allow_resize_
How to reproduce:
1. boot an instance
Its name is vm-26486
Its host is dev2.
On compute node dev2:
$ cat /opt/stack/
On compute node dev0:
$ cat /opt/stack/
# empty
2. resize and resize-confirm it
instance is migrated to compute node dev0
On compute node dev0:
$ cat /opt/stack/
# empty
On compute node dev2:
$ cat /opt/stack/
Expected:
On compute node dev0:
$ cat /opt/stack/
If an instance is created on compute node dev2 now, vm-26486's DHCP info would be totally gone.
That is :
On compute node dev0:
$ cat /opt/stack/
# empty
On compute node dev2:
$ cat /opt/stack/
# empty
If on dev0 /opt/stack/
Related branches
- Openstack Ubuntu Testers: Pending requested
-
Diff: 121 lines (+100/-4)1 file modifieddebian/changelog (+100/-4)
CVE References
Changed in nova: | |
assignee: | nobody → Jian Wen (wenjianhn) |
Changed in nova: | |
milestone: | none → grizzly-1 |
status: | Fix Committed → Fix Released |
tags: | removed: folsom-backport-potential |
Changed in nova (Ubuntu): | |
status: | New → Fix Released |
Changed in nova (Ubuntu Quantal): | |
status: | New → Confirmed |
Changed in nova: | |
milestone: | grizzly-1 → 2013.1 |
The reason is :
network_ api.setup_ networks_ on_host is called before _instance_ update( host=migration_ ref['dest_ compute' ]) in compute. manager. _finish_ resize, thus db.network_ get_associated_ fixed_ips( host='dest_ compute_ name') will not return this ._setup_ networks_ on_host( ).
instance's DHCP host info in FlatDHCPManager
Update instance's host to dest_compute_ node_name before setup_networks_ on_host would fix this.