Incorrect admin iface auto-assignment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
High
|
Aleksey Kasatkin | ||
7.0.x |
Fix Released
|
High
|
Alexey Stupnikov | ||
8.0.x |
Fix Released
|
High
|
Alexey Stupnikov |
Bug Description
Nodes from non-default nodegroup that are connected to DHCP/PXE network not via first interface ($interfaces[0], which in Fuel-7.0 and older is "eth0") are misconfigured during provisioning. This is happening because nailgun sends wrong provisioning info to fuel-agent via astute. Example:
Node meta where we can see eth4 is used for PXE
"bus_info": "0000:02:00.0",
"driver": "tg3",
"ip": "192.168.1.53",
"mac": "99:55:
"name": "eth4",
"netmask": "255.255.255.0",
Provisioning info:
2016-03-15T08:37:51 debug: [732] 9f1764ce-
...
"eth4":
"eth0":
It looks like this is happening because of double network assignment in DB, fuelweb_admin network from non-default nodegroup gets assigned to eth4 and eth0 in the example:
network_groups
id | name
24 | fuelweb_admin
node_nic_interfaces
id | node_id | name | mac
384 | 51 | eth0 | 55:bb:00:99:55:44
380 | 51 | eth4 | 99:55:aa:55:dd:cc
net_nic_assignments
id | network_id | interface_id
413 | 24 | 380
418 | 24 | 384
Steps to reproduce:
1. Create new env with one additional node group
2. Setup virtual machines in that second node group (virtual rack) to use non-eth0 (not first) interface for PXE
3. Setup dhcrelay to bootstrap nodes from non-default node group
4. Add 1 controller and 1 compute from non-default nodegroup
5. Deploy changes
Expected result:
Deployment successfull
Actual result:
Nodes stuck on provisioning and then timeout/errror
Found on Fuel-7.0 GA, but should affect 8.0 and master as well.
description: | updated |
tags: | added: customer-found |
tags: | added: on-verification |
summary: |
- Wrong admin interface for nodes from non-default nodegroup and non-eth0 - PXE interface + Incorrect admin iface auto-assignment |
tags: | added: on-verification |
tags: | removed: on-verification |
tags: | added: on-verification |
tags: | removed: on-verification |
tags: | added: on-verification |
Fix proposed to branch: master /review. openstack. org/292994
Review: https:/