Project

General

Profile

Actions

Bug #11935

closed

Installer fails when vlan interface is used

Added by Lukas Zapletal about 9 years ago. Updated over 1 year ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Installer
Target version:
Difficulty:
Triaged:
Yes
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.

Actions #1

Updated by Lukas Zapletal about 9 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
Actions #2

Updated by Eric Helms about 9 years ago

  • Triaged changed from No to Yes
Actions #3

Updated by Eric Helms almost 9 years ago

  • Translation missing: en.field_release set to 114
Actions #4

Updated by Ewoud Kohl van Wijngaarden over 1 year ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF