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

Also available in: Atom PDF