nailgun-agent reports wrong _master_ip_and_mac on multirack envs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
High
|
Sergey Vasilenko | ||
7.0.x |
Won't Fix
|
High
|
Fuel Library (Deprecated) |
Bug Description
When we use multi L3 topology then we have several admin networks (one for each nodegroup). For example:
default nodegroup: 10.145.0.0/24
rack1 nodegroup: 10.144.0.0/24
rack2 nodegroup: 10.146.0.0/24
So during deployment (after network configuration) nodes will have several interfaces configured with different IPs on them (mgmt, admin, storage, private). And the following condition will work only for nodes from default nodegroup:
https:/
Because only nodes from default nodegroup have admin IPs from the same network as fuel master node IP.
Thus nailgun-agent will report random IP/mac, because _master_ip_and_mac will return random IP/mac. Like this (see node-5 IP):
http://
We need to refactor _master_ip_and_mac method - nailgin-agent should get all the available admin networks from Fuel master node (as separate method, I guess) and check if intinfo[:addresses] matches any of those networks. If it matches, then it's master IP and mac.
How to reproduce:
1) deploy multirack env with 2+ nodegroups without L3 connectivity between their networks and with different admin network CIDR
2) check 'fuel node' list on fuel node
Expected result:
all nodes should have IPs from admin networks
Actual result:
nodes from non-default nodegroup have IPs not from admin network
Found on 6.1, but it should also affect 7.0 and master (8.0).
tags: | added: feature-nodegroup |
no longer affects: | fuel/8.0.x |
tags: | added: area-library |
tags: | added: on-verification |
Fix proposed to branch: master /review. openstack. org/227052
Review: https:/