Hi,
I have problem with correct interpretation of facts.
I have server with 4 interfaces and 2 of them (eth0, eth1) are up and
bonded.
eth0 is "primary" and set to boot from it.
When there is no bond0 everything is OK. After bond0 is set, foreman can
not register host. bond0 has te same IP and MAC as eth0.
More details:
On start i have interface settings:
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen
1000
link/ether 00:07:43:30:34:f0 brd ff:ff:ff:ff:ff:ff
inet 172.xx.xx.134/24 brd 172.18.20.255 scope global dynamic eth0
valid_lft 43172sec preferred_lft 43172sec
inet6 fe80::207:43ff:fe30:34f0/64 scope link
valid_lft forever preferred_lft forever
5: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen
1000
link/ether 00:07:43:30:34:f8 brd ff:ff:ff:ff:ff:ff
Facts:
[root@fdi /]# facter
auto_negotiation_eno1 => true
auto_negotiation_eno2 => true
auto_negotiation_eth0 => true
auto_negotiation_eth1 => true
…
dhcp_servers => {"system"=>"172.xx.xx.4", "eth0"=>"172.xx.xx.4"}
discovery_bootif => 00:07:43:30:34:f0
discovery_bootip => 172.xx.xx.134
discovery_release => 20150825.1
…
interfaces => eno1,eno2,eth0,eth1,lo
ipaddress => 172.xx.xx.134
ipaddress_eth0 => 172.xx.xx.134
ipaddress_lo => 127.0.0.1
…
link_eno1 => false
link_eno2 => false
link_eth0 => true
link_eth1 => true
link_lo => true
macaddress => 0c:c4:7a:55:0c:5c
macaddress_eno1 => 0c:c4:7a:55:0c:5c
macaddress_eno2 => 0c:c4:7a:55:0c:5d
macaddress_eth0 => 00:07:43:30:34:f0
macaddress_eth1 => 00:07:43:30:34:f8
…
netmask => 255.255.255.0
netmask_eth0 => 255.255.255.0
netmask_lo => 255.0.0.0
network_eth0 => 172.xx.xx.0
network_lo => 127.0.0.0
In foreman host is discovered correctly. In Provisioning->Interfaces every
interfaces has correct settings.
Create bond0:
nmcli con add type bond con-name bond0 ifname bond0 mode active-backup
nmcli con add type bond-slave ifname eth0 master bond0
nmcli con add type bond-slave ifname eth1 master bond0
nmcli con up bond0
nmcli con up bond-slave-eth0
nmcli con up bond-slave-eth1
New interface stettings:
4: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master
bond0 state UP qlen 1000
link/ether 00:07:43:30:34:f0 brd ff:ff:ff:ff:ff:ff
5: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master
bond0 state UP qlen 1000
link/ether 00:07:43:30:34:f0 brd ff:ff:ff:ff:ff:ff
6: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue
state UP
link/ether 00:07:43:30:34:f0 brd ff:ff:ff:ff:ff:ff
inet 172.xx.xx.134/24 brd 172.18.20.255 scope global dynamic bond0
valid_lft 43176sec preferred_lft 43176sec
inet6 fe80::207:43ff:fe30:34f0/64 scope link
valid_lft forever preferred_lft forever
New facts:
[root@fdi /]# facter
auto_negotiation_bond0 => false
auto_negotiation_eno1 => true
auto_negotiation_eno2 => true
auto_negotiation_eth0 => true
auto_negotiation_eth1 => true
…
dhcp_servers => {"system"=>"172.xx.xx.4", "bond0"=>"172.xx.xx.4"}
discovery_bootif => 00:07:43:30:34:f0
discovery_bootip => 172.xx.xx.134
discovery_release => 20150825.1
…
interfaces => bond0,eno1,eno2,eth0,eth1,lo
ipaddress => 172.xx.xx.134
ipaddress_bond0 => 172.xx.xx.134
ipaddress_lo => 127.0.0.1
…
link_bond0 => true
link_eno1 => false
link_eno2 => false
link_eth0 => true
link_eth1 => true
link_lo => true
macaddress => 00:07:43:30:34:f0
macaddress_bond0 => 00:07:43:30:34:f0
macaddress_eno1 => 0c:c4:7a:55:0c:5c
macaddress_eno2 => 0c:c4:7a:55:0c:5d
macaddress_eth0 => 00:07:43:30:34:F0
macaddress_eth1 => 00:07:43:30:34:F8
…
netmask => 255.255.255.0
netmask_bond0 => 255.255.255.0
netmask_lo => 255.0.0.0
network_bond0 => 172.xx.xx.0
network_lo => 127.0.0.0
Everything seems to be OK.
And now in foreman -> discovered hosts I select "Refresh facts" and get:
"Warning!
Could not get facts from proxy http://:8443: the scheme http does not
accept registry part: :8443 (or bad hostname?)"
and in console i see:
"Response from Foreman 500: {
"error" : {"message": "address family must be specified"}
But when i go back to discovered host i see this server. Details are the
same as sent facts.
When i go to provisioning->interfaces i see 2 extra bond intefaces with
different MACs (I think that they are random) then eth0 (other interfaces
are there to).
I need to have in this place the same interface settings as facts but they
are different.
Do I something wrong or it's a bug?
Best Regards