Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combustion fails configuring network when bonding is used #105

Open
fdegir opened this issue Sep 13, 2024 · 0 comments
Open

Combustion fails configuring network when bonding is used #105

fdegir opened this issue Sep 13, 2024 · 0 comments

Comments

@fdegir
Copy link

fdegir commented Sep 13, 2024

While booting a node which uses bonded interfaces, combustion errors out and when checked on the node, it is observed that the network configuration is not properly applied.
Most visible issues caused by this is that the node hostname is not set correctly and DNS resolving does not work. However, the bond setup and IPs look correct.

This issue can be reproduced using EIB 1.1 RC2, SL Micro 6.0 ISO, the definition and the network configuration files below.
Additional logs are available further down below.

EIB definition file.

apiVersion: 1.1
image:
  arch: x86_64
  imageType: iso
  baseImage: SL-Micro.x86_64-6.0-Default-SelfInstall-GM.install.iso
  outputImageName: iso-image.iso
operatingSystem:
  isoConfiguration:
    installDevice: /dev/vda
  users:
    - username: root
      encryptedPassword: $6$jHugJNNd3HElGsUZ$eodjVe4te5ps44SVcWshdfWizrP.xAyd71CVEXazBJ/.v799/WRCBXxfYmunlBO2yp1hm/zb4r8EmnrrNCF.P/

Network configuration.

routes:
  config:
    - destination: 0.0.0.0/0
      metric: 100
      next-hop-address: 192.168.122.1
      next-hop-interface: bond99
      table-id: 254
    - destination: 192.168.122.0/24
      metric: 100
      next-hop-address:
      next-hop-interface: bond99
      table-id: 254
dns-resolver:
  config:
    server:
      - 192.168.122.1
      - 8.8.8.8
interfaces:
  - name: bond99
    type: bond
    state: up
    ipv4:
      address:
        - ip: 192.168.122.50
          prefix-length: 24
      enabled: true
    link-aggregation:
      mode: balance-rr
      options:
        miimon: '140'
      port:
        - eth0
        - eth1
  - name: eth1
    type: ethernet
    state: up
    mac-address: 34:8A:B1:4B:16:E7
    ipv4:
      enabled: false
    ipv6:
      enabled: false
  - name: eth0
    type: ethernet
    state: up
    mac-address: 34:8A:B1:4B:16:E8
    ipv4:
      enabled: false
    ipv6:
      enabled: false

nmcli command output.

# nmcli -f NAME,UUID,TYPE,DEVICE,FILENAME con show
NAME                UUID                                  TYPE      DEVICE  FILENAME
lo                  b2df564a-346f-4d61-a577-80ecfa018f69  loopback  lo      /var/run/NetworkManager/system-connections/lo.nmconnection
bond99              571c474c-20dc-45ad-a147-5ff0f4fb0600  bond      bond99  /var/run/NetworkManager/system-connections/bond99.nmconnection
eth0                1b7cb6d4-fdc6-473f-bb27-2e4ba968cda1  ethernet  eth0    /var/run/NetworkManager/system-connections/eth0.nmconnection
eth1                7ea1c44a-ee56-4716-bf41-03fb909e6734  ethernet  eth1    /var/run/NetworkManager/system-connections/eth1.nmconnection
Wired connection 1  8fc50062-b724-30df-9404-1177265cb985  ethernet  --      /var/run/NetworkManager/system-connections/Wired connection 1.nmconnection
Wired connection 2  4716f604-0f85-302f-b836-fbbdf0ac56cb  ethernet  --      /var/run/NetworkManager/system-connections/Wired connection 2.nmconnection

ip command output.

# ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
  link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  inet 127.0.0.1/8 scope host lo
    valid_lft forever preferred_lft forever
  inet6 ::1/128 scope host noprefixroute
    valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond99 state UP group default qlen 1000
  link/ether 72:0e:1b:8c:14:f2 brd ff:ff:ff:ff:ff:ff permaddr 34:8a:b1:4b:16:e8
  altname enp1s0
3: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond99 state UP group default qlen 1000
  link/ether 72:0e:1b:8c:14:f2 brd ff:ff:ff:ff:ff:ff permaddr 34:8a:b1:4b:16:e7
  altname enp7s0
4: bond99: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
  link/ether 72:0e:1b:8c:14:f2 brd ff:ff:ff:ff:ff:ff
  inet 192.168.122.50/24 brd 192.168.122.255 scope global noprefixroute bond99
    valid_lft forever preferred_lft forever

combustion-prepare log.

# journalctl -u combustion-prepare
Sep 09 10:56:54 localhost systemd[1]: Starting Combustion (preparations)...
Sep 09 10:56:55 localhost combustion[737]: ./nmc: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
Sep 09 10:56:55 localhost systemd[1]: combustion-prepare.service: Deactivated successfully.
Sep 09 10:56:55 localhost systemd[1]: Finished Combustion (preparations).

combustion log.

# journalctl -u combustion
Sep 09 10:57:08 localhost.localdomain systemd[1]: Starting Combustion...
Sep 09 10:57:25 localhost.localdomain combustion[1422]: /sbin/setfiles: conflicting specifications for /etc/passwd and /etc, using system_u:object_r:etc_t:s0.
Sep 09 10:57:25 localhost.localdomain combustion[1442]: Checking for newer version.
Sep 09 10:57:26 localhost.localdomain combustion[1442]: transactional-update 4.6.6 started
Sep 09 10:57:26 localhost.localdomain combustion[1442]: Options: shell
Sep 09 10:57:26 localhost.localdomain combustion[1442]: Separate /var detected.
Sep 09 10:57:26 localhost.localdomain combustion[1442]: 2024-09-09 10:57:26 tukit 4.6.6 started
Sep 09 10:57:26 localhost.localdomain combustion[1442]: 2024-09-09 10:57:26 Options: -c1 open
Sep 09 10:57:26 localhost.localdomain combustion[1442]: 2024-09-09 10:57:26 Using snapshot 1 as base for new snapshot 2.
Sep 09 10:57:26 localhost.localdomain combustion[1442]: 2024-09-09 10:57:26 /var/lib/overlay/1/etc
Sep 09 10:57:26 localhost.localdomain combustion[1442]: 2024-09-09 10:57:26 No previous snapshot to sync with - skipping
Sep 09 10:57:26 localhost.localdomain combustion[1442]: 2024-09-09 10:57:26 Not bind mounting directory '/run/salt-tmp' as it doesn't exist.
Sep 09 10:57:26 localhost.localdomain combustion[1442]: ID: 2
Sep 09 10:57:26 localhost.localdomain combustion[1442]: 2024-09-09 10:57:26 Transaction completed.
Sep 09 10:57:26 localhost.localdomain combustion[1442]: Opening chroot in snapshot 2, continue with 'exit'
Sep 09 10:57:26 localhost.localdomain combustion[1539]: 2024-09-09 10:57:26 tukit 4.6.6 started
Sep 09 10:57:26 localhost.localdomain combustion[1539]: 2024-09-09 10:57:26 Options: call 2 bash
Sep 09 10:57:26 localhost.localdomain combustion[1539]: 2024-09-09 10:57:26 Not bind mounting directory '/run/salt-tmp' as it doesn't exist.
Sep 09 10:57:26 localhost.localdomain combustion[1539]: 2024-09-09 10:57:26 Executing `bash`:
Sep 09 10:57:26 localhost.localdomain combustion[1543]: Running 05-configure-network.sh
Sep 09 10:57:26 localhost.localdomain combustion[1543]: [2024-09-09T10:57:26Z INFO nmc::apply_conf] Identified host: node1.suse.com
Sep 09 10:57:26 localhost.localdomain combustion[1543]: [2024-09-09T10:57:26Z INFO nmc::apply_conf] Set hostname: node1.suse.com
Sep 09 10:57:26 localhost.localdomain combustion[1543]: [2024-09-09T10:57:26Z INFO nmc::apply_conf] Processing interface 'bond99'...
Sep 09 10:57:26 localhost.localdomain combustion[1543]: [2024-09-09T10:57:26Z INFO nmc::apply_conf] Processing interface 'eth1'...
Sep 09 10:57:26 localhost.localdomain combustion[1543]: [2024-09-09T10:57:26Z INFO nmc::apply_conf] Processing interface 'eth0'...
Sep 09 10:57:26 localhost.localdomain combustion[1543]: [2024-09-09T10:57:26Z INFO nmc] Successfully applied config
Sep 09 10:57:26 localhost.localdomain combustion[1543]: Running 12-keymap-setup.sh
Sep 09 10:57:26 localhost.localdomain combustion[1543]: Running 13b-add-users.sh
Sep 09 10:57:26 localhost.localdomain combustion[1543]: Running 48-message.sh
Sep 09 10:57:26 localhost.localdomain combustion[1539]: 2024-09-09 10:57:26 Application returned with exit status 0.
Sep 09 10:57:26 localhost.localdomain combustion[1539]: 2024-09-09 10:57:26 Transaction completed.
Sep 09 10:57:26 localhost.localdomain combustion[1564]: 2024-09-09 10:57:26 tukit 4.6.6 started
Sep 09 10:57:26 localhost.localdomain combustion[1564]: 2024-09-09 10:57:26 Options: close 2
Sep 09 10:57:26 localhost.localdomain combustion[1564]: 2024-09-09 10:57:26 Not bind mounting directory '/run/salt-tmp' as it doesn't exist.
Sep 09 10:57:27 localhost.localdomain combustion[1564]: 2024-09-09 10:57:27 New default snapshot is #2 (/.snapshots/2/snapshot).
Sep 09 10:57:27 localhost.localdomain combustion[1564]: 2024-09-09 10:57:27 Transaction completed.
Sep 09 10:57:27 localhost.localdomain combustion[1442]: Please reboot your machine to activate the changes and avoid data loss.
Sep 09 10:57:27 localhost.localdomain combustion[1442]: New default snapshot is #2 (/.snapshots/2/snapshot).
Sep 09 10:57:27 localhost.localdomain combustion[1442]: transactional-update finished
Sep 09 10:57:27 localhost.localdomain systemd[1]: combustion.service: Deactivated successfully.
Sep 09 10:57:27 localhost.localdomain systemd[1]: Finished Combustion.
Sep 09 10:57:27 localhost.localdomain systemd[1]: combustion.service: Consumed 16.953s CPU time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant