Project

General

Profile

Bug #11935

Installer fails when vlan interface is used

Added by Lukas Zapletal almost 4 years ago. Updated 12 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Installer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

It looks like vlan interfaces with different names then "eth0.X" do not work:

[ERROR 2015-09-23 09:09:16 verbose]  Could not get the ip address from fact ipaddress_eth0_228@eth0 at /usr/share/katello-installer/modules/foreman_proxy/manifests/proxydhcp.pp:8 on node fsat.zzz.lan

This is how I configured:

  export VLANID1=42
  nmcli con add type vlan con-name v$VLANID1 dev eth0 id $VLANID1 ip4 192.168.$VLANID1.1/24
  export OAUTH_SECRET=$(grep oauth_consumer_secret /etc/foreman/settings.yaml | cut -d ' ' -f 2)
  katello-installer -v \
    --capsule-parent-fqdn $(hostname -f) \
    --capsule-dns true \
    --capsule-dns-interface eth0.$VLANID1@eth0 \
    $(for i in $(cat /etc/resolv.conf |grep nameserver|awk '{print $2}'); do echo --capsule-dns-forwarders $i;done) \
    --capsule-dns-zone v.lan \
    --capsule-dns-reverse "$VLANID1.168.192.in-addr.arpa" \
    --capsule-dhcp true \
    --capsule-dhcp-interface eth0.$VLANID1@eth0 \
    --capsule-dhcp-gateway 192.168.$VLANID1.1 \
    --capsule-dhcp-range "192.168.$VLANID1.100 192.168.$VLANID1.240" \
    --capsule-dhcp-nameservers 192.168.$VLANID1.1 \
    --capsule-tftp true \
    --capsule-puppet true \
    --capsule-puppetca true \
    --capsule-register-in-foreman true \
    --capsule-foreman-oauth-secret $OAUTH_SECRET

The device name that NetworkManager creates is "eth0.42@eth0" and I don't think one can even change this via nmcli. This is how facter reports this:

ipaddress => 192.168.122.174
ipaddress_eth0 => 192.168.122.174
ipaddress_eth0_42 => 192.168.42.1

This is a regression I believe, it was working in 6.0.

History

#1 Updated by Lukas Zapletal almost 4 years ago

Wait, device is named correctly, the "@eth0" was added by "ip address" tool:

[root@fsat ~]# nmcli con
NAME UUID TYPE DEVICE
v123 9f64dd46-3c3c-45b5-a2a0-c44b153cb275 vlan eth0.123
v228 6b424172-08b1-4d2e-baab-87940f4beb16 vlan eth0.228
eth0 d25cc61f-c83b-4a83-bee6-50cd137b65a0 802-3-ethernet eth0

But still it does not work, I get the error. This is how I configure now:

  export OAUTH_SECRET=$(grep oauth_consumer_secret /etc/foreman/settings.yaml | cut -d ' ' -f 2)
  katello-installer -v \
    --capsule-parent-fqdn $(hostname -f) \
    --capsule-dns true \
    --capsule-dns-interface eth0.$VLANID1 \
    $(for i in $(cat /etc/resolv.conf |grep nameserver|awk '{print $2}'); do echo --capsule-dns-forwarders $i;done) \
    --capsule-dns-zone v.lan \
    --capsule-dns-reverse "$VLANID1.168.192.in-addr.arpa" \
    --capsule-dhcp true \
    --capsule-dhcp-interface eth0.$VLANID1 \
    --capsule-dhcp-gateway 192.168.$VLANID1.1 \
    --capsule-dhcp-range "192.168.$VLANID1.100 192.168.$VLANID1.240" \
    --capsule-dhcp-nameservers 192.168.$VLANID1.1 \
    --capsule-tftp true \
    --capsule-puppet true \
    --capsule-puppetca true \
    --capsule-register-in-foreman true \
    --capsule-foreman-oauth-secret $OAUTH_SECRET

#2 Updated by Eric Helms over 3 years ago

  • Triaged changed from No to Yes

#3 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) set to 114

Also available in: Atom PDF