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

cidata: Metric not respected with fedora template #3124

Open
nirs opened this issue Jan 18, 2025 · 0 comments
Open

cidata: Metric not respected with fedora template #3124

nirs opened this issue Jan 18, 2025 · 0 comments
Labels
bug Something isn't working guest/fedora Guest: Fedora

Comments

@nirs
Copy link
Member

nirs commented Jan 18, 2025

Description

We specify route-metric: N in network-config, but the settings is not respected in Fedora.

Test yaml:

vmType: vz
images:
- location: "https://download.fedoraproject.org/pub/fedora/linux/releases/41/Cloud/x86_64/images/Fedora-Cloud-Base-Generic-41-1.4.x86_64.qcow2"
  arch: "x86_64"
  digest: "sha256:6205ae0c524b4d1816dbd3573ce29b5c44ed26c9fbc874fbe48c41c89dd0bac2"
- location: "https://download.fedoraproject.org/pub/fedora/linux/releases/41/Cloud/aarch64/images/Fedora-Cloud-Base-Generic-41-1.4.aarch64.qcow2"
  arch: "aarch64"
  digest: "sha256:085883b42c7e3b980e366a1fe006cd0ff15877f7e6e984426f3c6c67c7cc2faa"
cpus: 2
memory: 2g
plain: true
networks:
- socket: /var/run/socket_vmnet

network-config generated by lima:

# cat /mnt/lima-cidata/network-config 
version: 2
ethernets:
  eth0:
    match:
      macaddress: '52:55:55:b9:4a:44'
    dhcp4: true
    set-name: eth0
    dhcp4-overrides:
      route-metric: 200
    dhcp-identifier: mac
    nameservers:
      addresses:
      - 192.168.5.2
  lima0:
    match:
      macaddress: '52:55:55:2c:25:d8'
    dhcp4: true
    set-name: lima0
    dhcp4-overrides:
      route-metric: 100
    dhcp-identifier: mac

Actual routes:

# ip r
default via 192.168.5.2 dev eth0 proto dhcp src 192.168.5.15 metric 100 
default via 192.168.105.1 dev lima0 proto dhcp src 192.168.105.3 metric 101 
...

Expected routes:

default via 192.168.105.1 dev lima0 proto dhcp src 192.168.105.3 metric 100 
default via 192.168.5.2 dev eth0 proto dhcp src 192.168.5.15 metric 200 
...
@nirs nirs added bug Something isn't working guest/fedora Guest: Fedora labels Jan 18, 2025
@nirs nirs changed the title cidata: Metric not repected with fedora template cidata: Metric not respected with fedora template Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working guest/fedora Guest: Fedora
Projects
None yet
Development

No branches or pull requests

1 participant