The primary slave fails to get set in netplan bonding configuration:
network: version: 2 ethernets: e1p1: addresses: - x.x.x.x/x gateway4: x.x.x.x match: macaddress: xyz mtu: 9000 nameservers: addresses: - x.x.x.x set-name: e1p1 p1p1: match: macaddress: xx mtu: 1500 set-name: p1p1 p1p2: match: macaddress: xx mtu: 1500 set-name: p1p2
bonds: bond0: mtu: 9000 interfaces: [p1p1, p1p2] parameters: mode: active-backup mii-monitor-interval: 100 primary: p1p2
~$ sudo netplan --debug apply sudo netplan --debug apply ** (generate:7353): DEBUG: 13:22:31.480: Processing input file /etc/netplan/50-cloud-init.yaml.. ** (generate:7353): DEBUG: 13:22:31.480: starting new processing pass ** (generate:7353): DEBUG: 13:22:31.480: Processing input file /etc/netplan/60-puppet-netplan.yaml.. ** (generate:7353): DEBUG: 13:22:31.480: starting new processing pass ** (generate:7353): DEBUG: 13:22:31.480: recording missing yaml_node_t bond0 ** (generate:7353): DEBUG: 13:22:31.480: recording missing yaml_node_t bond0 ** (generate:7353): DEBUG: 13:22:31.480: recording missing yaml_node_t bond0 ** (generate:7353): DEBUG: 13:22:31.480: recording missing yaml_node_t bond0 ** (generate:7353): DEBUG: 13:22:31.480: recording missing yaml_node_t bond0 ** (generate:7353): DEBUG: 13:22:31.480: starting new processing pass Error in network definition /etc/netplan/60-puppet-netplan.yaml line 68 column 17: bond0: bond already has a primary slave: p1p2
What's wrong here??
#apt-cache policy netplan.io netplan.io: Installed: 0.40.1~18.04.4 Candidate: 0.40.1~18.04.4 Version table: *** 0.40.1~18.04.4 500 500 http://mirrors.rc.nectar.org.au/ubuntu bionic-security/main amd64 Packages 500 http://mirrors.rc.nectar.org.au/ubuntu bionic-updates/main amd64 Packages 100 /var/lib/dpkg/status 0.36.1 500 500 http://mirrors.rc.nectar.org.au/ubuntu bionic/main amd64 Packages
#cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS"
regards,
Shahaan
The primary slave fails to get set in netplan bonding configuration:
network:
addresses:
gateway4: x.x.x.x
macaddress: xyz
nameserver s:
addresses:
set- name: e1p1
macaddress: xx
set- name: p1p1
macaddress: xx
set- name: p1p2
version: 2
ethernets:
e1p1:
- x.x.x.x/x
match:
mtu: 9000
- x.x.x.x
p1p1:
match:
mtu: 1500
p1p2:
match:
mtu: 1500
bonds:
mii-monitor- interval: 100
bond0:
mtu: 9000
interfaces: [p1p1, p1p2]
parameters:
mode: active-backup
primary: p1p2
~$ sudo netplan --debug apply 50-cloud- init.yaml. . 60-puppet- netplan. yaml.. 60-puppet- netplan. yaml line 68 column 17: bond0: bond already has a primary slave: p1p2
sudo netplan --debug apply
** (generate:7353): DEBUG: 13:22:31.480: Processing input file /etc/netplan/
** (generate:7353): DEBUG: 13:22:31.480: starting new processing pass
** (generate:7353): DEBUG: 13:22:31.480: Processing input file /etc/netplan/
** (generate:7353): DEBUG: 13:22:31.480: starting new processing pass
** (generate:7353): DEBUG: 13:22:31.480: recording missing yaml_node_t bond0
** (generate:7353): DEBUG: 13:22:31.480: recording missing yaml_node_t bond0
** (generate:7353): DEBUG: 13:22:31.480: recording missing yaml_node_t bond0
** (generate:7353): DEBUG: 13:22:31.480: recording missing yaml_node_t bond0
** (generate:7353): DEBUG: 13:22:31.480: recording missing yaml_node_t bond0
** (generate:7353): DEBUG: 13:22:31.480: starting new processing pass
Error in network definition /etc/netplan/
What's wrong here??
#apt-cache policy netplan.io mirrors. rc.nectar. org.au/ ubuntu bionic- security/ main amd64 Packages mirrors. rc.nectar. org.au/ ubuntu bionic-updates/main amd64 Packages dpkg/status mirrors. rc.nectar. org.au/ ubuntu bionic/main amd64 Packages
netplan.io:
Installed: 0.40.1~18.04.4
Candidate: 0.40.1~18.04.4
Version table:
*** 0.40.1~18.04.4 500
500 http://
500 http://
100 /var/lib/
0.36.1 500
500 http://
#cat /etc/lsb-release RELEASE= 18.04 CODENAME= bionic DESCRIPTION= "Ubuntu 18.04.2 LTS"
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
regards,
Shahaan