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

Setting a static IP on Fedora 36 fails, uses DHCP instead #12762

Open
der-eismann opened this issue May 11, 2022 · 3 comments
Open

Setting a static IP on Fedora 36 fails, uses DHCP instead #12762

der-eismann opened this issue May 11, 2022 · 3 comments

Comments

@der-eismann
Copy link

Starting with version 36 Fedora stopped supporting ifcfg files by default. Support can be restored by installing the NetworkManager-initscripts-ifcfg-rh package, but depending on the scenario this might not be possible. You can see this in the debug output:

mv -f '/tmp/vagrant-network-entry-enp5s0-1652284350-0' '/etc/sysconfig/network-scripts/ifcfg-enp5s0'
...
DEBUG ssh: stderr: mv: cannot move '/tmp/vagrant-network-entry-enp5s0-1652284350-0' to
  '/etc/sysconfig/network-scripts/ifcfg-enp5s0': No such file or directory

NetworkManager managed systems should use keyfiles instead.

Vagrant version

Vagrant 2.2.19

Host operating system

Fedora 35

Guest operating system

Fedora 36

Vagrantfile

Vagrant.configure("2") do |config|
    config.vm.box = system_config['basebox']
    config.vm.boot_timeout = 3000

    config.ssh.username = "dev"
    config.ssh.private_key_path = "config/ssh/dev"
    config.ssh.forward_agent = true

    config.vm.provider :libvirt do |libvirt|
        libvirt.cpus = configuration["cpus"]
        libvirt.memory = configuration['ram']
        libvirt.nic_model_type = 'virtio'
        libvirt.disk_bus = 'virtio'
        libvirt.keymap = 'de'
        libvirt.qemu_use_session = false
        libvirt.machine_type = 'q35'
    end

    config.vm.network :private_network, ip: configuration['guest_ip'], nic_type: "virtio"

Debug output

https://gist.github.com/der-eismann/e9165908def8df95574c8e67ab3f102b

Expected behavior

The guest should receive a static IP as usual

Actual behavior

The guest receives a dynamic IP via DHCP instead

Steps to reproduce

  1. Create Fedora 36 guest with simple Vagrantfile
@rmsc
Copy link

rmsc commented Jul 27, 2022

I'm also experiencing a this but in MicroOS (#12777). In the case of MicroOS there's no way of installing a working version of ifup or ifdown, so there's no workaround possible.

From what I understood, Vagrant lets the VM OS configure the interface (using dhcp) before trying to set a the static address.

I naively tried this, but it didn't work as expected (vagrant also tries to use ifup/ifdown):

  config.vm.network "private_network", :type => 'dhcp', ip: 10.0.0.123

Since the dhcp server is there anyway, couldn't we just use it to assign our "static" IP? And perhaps even set the hostname?

sudoBash418 added a commit to club-eh/ctf-2023-infrastructure-old that referenced this issue Aug 1, 2022
Vagrant's static IP configuration of guest machines is broken, so this is a hack to fix it during initial provision
Molter73 added a commit to Molter73/collector-devenv that referenced this issue Nov 7, 2022
Install the NetworkManager-initscripts-ifcfg-rh as suggested by
hashicorp/vagrant#12762
e-carlin pushed a commit to radiasoft/download that referenced this issue Mar 31, 2023
The root cause of the problems is that vagrant doesn't support
NetworkManager which is used in Fedora 36
hashicorp/vagrant#12762. So, the
private_network we define in the Vagrantfile gets setup on the host
but not in the guest. We fix this by using vagrant_dev_provision_eth1
(set the interface ourselves). But, this provisioner runs after the
sync_folder(s) are created. So, the synced_folders fail when using nfs
because networking isn't setup right.

There is no way to run a provisioner before a synced_folder,
hashicorp/vagrant#936. So, we must set
`disabled: true`, bring the vm up, set `disabled: false`, and reload
the vm.

In addition, git introduced checking of owners for directories
git/git@8959555.
In the NFS case the UID/GID from the host likely doesn't match the
UID/GID of the user in the vm. This causes git to complain. So, we
need to set safe.directory to '*'. This configuration is set inside of
the vm and we only have one user inside of vms so it is safe.
robnagler pushed a commit to radiasoft/download that referenced this issue Apr 5, 2023
* Fix #350: Fix nfs mounts for fedora 36.

The root cause of the problems is that vagrant doesn't support
NetworkManager which is used in Fedora 36
hashicorp/vagrant#12762. So, the
private_network we define in the Vagrantfile gets setup on the host
but not in the guest. We fix this by using vagrant_dev_provision_eth1
(set the interface ourselves). But, this provisioner runs after the
sync_folder(s) are created. So, the synced_folders fail when using nfs
because networking isn't setup right.

There is no way to run a provisioner before a synced_folder,
hashicorp/vagrant#936. So, we must set
`disabled: true`, bring the vm up, set `disabled: false`, and reload
the vm.

In addition, git introduced checking of owners for directories
git/git@8959555.
In the NFS case the UID/GID from the host likely doesn't match the
UID/GID of the user in the vm. This causes git to complain. So, we
need to set safe.directory to '*'. This configuration is set inside of
the vm and we only have one user inside of vms so it is safe.
@CDFN
Copy link

CDFN commented May 4, 2023

Having same issue. I've found out that recently Fedora deprecated usage of /etc/sysconfig/network-scripts/* scripts. Instead keyfiles are used, they are stored under /etc/NetworkManager/system-connections/. Example configuration for static IP:

[connection]
id=Wired connection 2
uuid=0fc877a1-e3a9-30d3-951b-aa05544ff3e6
type=ethernet
autoconnect-priority=-999
interface-name=eth1
timestamp=1683239079

[ethernet]

[ipv4]
address1=10.0.1.3/32
method=manual

[ipv6]
addr-gen-mode=default
method=auto

which works perfectly for me.

Here's note left in /etc/sysconfig/network-scripts/readme-ifcfg-rh.txt:

NetworkManager stores new network profiles in keyfile format in the
/etc/NetworkManager/system-connections/ directory.

Previously, NetworkManager stored network profiles in ifcfg format
in this directory (/etc/sysconfig/network-scripts/). However, the ifcfg
format is deprecated. By default, NetworkManager no longer creates
new profiles in this format.

Connection profiles in keyfile format have many benefits. For example,
this format is INI file-based and can easily be parsed and generated.

Each section in NetworkManager keyfiles corresponds to a NetworkManager
setting name as described in the nm-settings(5) and nm-settings-keyfile(5)
man pages. Each key-value-pair in a section is one of the properties
listed in the settings specification of the man page.

If you still use network profiles in ifcfg format, consider migrating
them to keyfile format. To migrate all profiles at once, enter:

# nmcli connection migrate

This command migrates all profiles from ifcfg format to keyfile
format and stores them in /etc/NetworkManager/system-connections/.

Alternatively, to migrate only a specific profile, enter:

# nmcli connection migrate <profile_name|UUID|D-Bus_path>

For further details, see:
* nm-settings-keyfile(5)
* nmcli(1)

@CDFN
Copy link

CDFN commented May 5, 2023

If someone needs ad-hoc workaround, you can add following provisioner for your VM:

  config.vm.provision "shell", inline: <<-SHELL
    nmcli conn modify 'Wired connection 2' ipv4.addresses $(cat /etc/sysconfig/network-scripts/ifcfg-eth1 | grep IPADDR | cut -d "=" -f2)
    nmcli conn modify 'Wired connection 2' ipv4.method manual
    service NetworkManager restart
  SHELL

This is likely to break when using more interfaces than just one for private network.

larsks added a commit to larsks/container-networking-slides that referenced this issue Jun 13, 2023
Vagrant isn't able to properly configure modern Fedora images [1], so
handle network configuration for eth1 in the provisioning playbook.

[1]: hashicorp/vagrant#12762
larsks added a commit to larsks/container-networking-slides that referenced this issue Jun 13, 2023
Vagrant isn't able to properly configure modern Fedora images [1], so
handle network configuration for eth1 in the provisioning playbook.

[1]: hashicorp/vagrant#12762
larsks added a commit to larsks/container-networking-slides that referenced this issue Jun 13, 2023
Vagrant isn't able to properly configure modern Fedora images [1], so
handle network configuration for eth1 in the provisioning playbook.

[1]: hashicorp/vagrant#12762
larsks added a commit to larsks/container-networking-slides that referenced this issue Jun 13, 2023
Vagrant isn't able to properly configure modern Fedora images [1], so
handle network configuration for eth1 in the provisioning playbook.

[1]: hashicorp/vagrant#12762
larsks added a commit to larsks/container-networking-slides that referenced this issue Jun 13, 2023
Vagrant isn't able to properly configure modern Fedora images [1], so
handle network configuration for eth1 in the provisioning playbook.

[1]: hashicorp/vagrant#12762
larsks added a commit to larsks/container-networking-slides that referenced this issue Jun 13, 2023
Vagrant isn't able to properly configure modern Fedora images [1], so
handle network configuration for eth1 in the provisioning playbook.

[1]: hashicorp/vagrant#12762
MrFreezeex added a commit to MrFreezeex/kubespray that referenced this issue Aug 1, 2023
Fedora stop supporting syconfig network script so we added a workaround
here
hashicorp/vagrant#12762 (comment)
to fix it.
MrFreezeex added a commit to MrFreezeex/kubespray that referenced this issue Aug 1, 2023
Fedora stop supporting syconfig network script so we added a workaround
here
hashicorp/vagrant#12762 (comment)
to fix it.
k8s-ci-robot pushed a commit to kubernetes-sigs/kubespray that referenced this issue Aug 8, 2023
* tests: replace fedora35 with fedora37

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: replace fedora36 with fedora38

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* docs: update fedora version in docs

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* molecule: upgrade fedora version

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: upgrade fedora images for vagrant and kubevirt

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* vagrant: workaround to fix private network ip address in fedora

Fedora stop supporting syconfig network script so we added a workaround
here
hashicorp/vagrant#12762 (comment)
to fix it.

* netowrkmanager: do not configure dns if using systemd-resolved

We should not configure dns if we point to systemd-resolved.
Systemd-resolved is using NetworkManager to infer the upstream DNS
server so if we set NetworkManager to 127.0.0.53 it will prevent
systemd-resolved to get the correct network DNS server.

Thus if we are in this case we just don't set this setting.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* image-builder: update centos7 image

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* gitlab-ci: mark fedora packet jobs as allow failure

Fedora networking is still broken on Packet, let's mark it as allow
failure for now.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

---------

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>
ErikJiang pushed a commit to ErikJiang/kubespray that referenced this issue Nov 30, 2023
* tests: replace fedora35 with fedora37

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: replace fedora36 with fedora38

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* docs: update fedora version in docs

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* molecule: upgrade fedora version

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: upgrade fedora images for vagrant and kubevirt

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* vagrant: workaround to fix private network ip address in fedora

Fedora stop supporting syconfig network script so we added a workaround
here
hashicorp/vagrant#12762 (comment)
to fix it.

* netowrkmanager: do not configure dns if using systemd-resolved

We should not configure dns if we point to systemd-resolved.
Systemd-resolved is using NetworkManager to infer the upstream DNS
server so if we set NetworkManager to 127.0.0.53 it will prevent
systemd-resolved to get the correct network DNS server.

Thus if we are in this case we just don't set this setting.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* image-builder: update centos7 image

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* gitlab-ci: mark fedora packet jobs as allow failure

Fedora networking is still broken on Packet, let's mark it as allow
failure for now.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

---------

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>
k8s-ci-robot pushed a commit to kubernetes-sigs/kubespray that referenced this issue Dec 1, 2023
* Convert exoscale tf provider to new version (#10646)

This is untested. It passes terraform validate to un-broke the CI.

* specify pyyaml version to 5.3.1

Signed-off-by: bo.jiang <[email protected]>

* Migrate CI_BUILD_ID to CI_JOB_ID and CI_BUILD_REF to CI_COMMIT_SHA (#10063)

* Use supported version of fedora in CI (#10108)

* tests: replace fedora35 with fedora37

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: replace fedora36 with fedora38

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* docs: update fedora version in docs

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* molecule: upgrade fedora version

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: upgrade fedora images for vagrant and kubevirt

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* vagrant: workaround to fix private network ip address in fedora

Fedora stop supporting syconfig network script so we added a workaround
here
hashicorp/vagrant#12762 (comment)
to fix it.

* netowrkmanager: do not configure dns if using systemd-resolved

We should not configure dns if we point to systemd-resolved.
Systemd-resolved is using NetworkManager to infer the upstream DNS
server so if we set NetworkManager to 127.0.0.53 it will prevent
systemd-resolved to get the correct network DNS server.

Thus if we are in this case we just don't set this setting.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* image-builder: update centos7 image

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* gitlab-ci: mark fedora packet jobs as allow failure

Fedora networking is still broken on Packet, let's mark it as allow
failure for now.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

---------

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

---------

Signed-off-by: bo.jiang <[email protected]>
Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>
Co-authored-by: Max Gautier <[email protected]>
Co-authored-by: Florian Ruynat <[email protected]>
Co-authored-by: Arthur Outhenin-Chalandre <[email protected]>
VannTen pushed a commit to VannTen/kubespray that referenced this issue Dec 11, 2023
* tests: replace fedora35 with fedora37

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: replace fedora36 with fedora38

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* docs: update fedora version in docs

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* molecule: upgrade fedora version

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: upgrade fedora images for vagrant and kubevirt

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* vagrant: workaround to fix private network ip address in fedora

Fedora stop supporting syconfig network script so we added a workaround
here
hashicorp/vagrant#12762 (comment)
to fix it.

* netowrkmanager: do not configure dns if using systemd-resolved

We should not configure dns if we point to systemd-resolved.
Systemd-resolved is using NetworkManager to infer the upstream DNS
server so if we set NetworkManager to 127.0.0.53 it will prevent
systemd-resolved to get the correct network DNS server.

Thus if we are in this case we just don't set this setting.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* image-builder: update centos7 image

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* gitlab-ci: mark fedora packet jobs as allow failure

Fedora networking is still broken on Packet, let's mark it as allow
failure for now.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

---------

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>
VannTen pushed a commit to VannTen/kubespray that referenced this issue Dec 11, 2023
* tests: replace fedora35 with fedora37

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: replace fedora36 with fedora38

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* docs: update fedora version in docs

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* molecule: upgrade fedora version

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: upgrade fedora images for vagrant and kubevirt

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* vagrant: workaround to fix private network ip address in fedora

Fedora stop supporting syconfig network script so we added a workaround
here
hashicorp/vagrant#12762 (comment)
to fix it.

* netowrkmanager: do not configure dns if using systemd-resolved

We should not configure dns if we point to systemd-resolved.
Systemd-resolved is using NetworkManager to infer the upstream DNS
server so if we set NetworkManager to 127.0.0.53 it will prevent
systemd-resolved to get the correct network DNS server.

Thus if we are in this case we just don't set this setting.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* image-builder: update centos7 image

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* gitlab-ci: mark fedora packet jobs as allow failure

Fedora networking is still broken on Packet, let's mark it as allow
failure for now.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

---------

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>
VannTen pushed a commit to VannTen/kubespray that referenced this issue Dec 11, 2023
* tests: replace fedora35 with fedora37

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: replace fedora36 with fedora38

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* docs: update fedora version in docs

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* molecule: upgrade fedora version

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: upgrade fedora images for vagrant and kubevirt

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* vagrant: workaround to fix private network ip address in fedora

Fedora stop supporting syconfig network script so we added a workaround
here
hashicorp/vagrant#12762 (comment)
to fix it.

* netowrkmanager: do not configure dns if using systemd-resolved

We should not configure dns if we point to systemd-resolved.
Systemd-resolved is using NetworkManager to infer the upstream DNS
server so if we set NetworkManager to 127.0.0.53 it will prevent
systemd-resolved to get the correct network DNS server.

Thus if we are in this case we just don't set this setting.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* image-builder: update centos7 image

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* gitlab-ci: mark fedora packet jobs as allow failure

Fedora networking is still broken on Packet, let's mark it as allow
failure for now.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

---------

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>
VannTen pushed a commit to VannTen/kubespray that referenced this issue Dec 11, 2023
* tests: replace fedora35 with fedora37

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: replace fedora36 with fedora38

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* docs: update fedora version in docs

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* molecule: upgrade fedora version

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: upgrade fedora images for vagrant and kubevirt

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* vagrant: workaround to fix private network ip address in fedora

Fedora stop supporting syconfig network script so we added a workaround
here
hashicorp/vagrant#12762 (comment)
to fix it.

* netowrkmanager: do not configure dns if using systemd-resolved

We should not configure dns if we point to systemd-resolved.
Systemd-resolved is using NetworkManager to infer the upstream DNS
server so if we set NetworkManager to 127.0.0.53 it will prevent
systemd-resolved to get the correct network DNS server.

Thus if we are in this case we just don't set this setting.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* image-builder: update centos7 image

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* gitlab-ci: mark fedora packet jobs as allow failure

Fedora networking is still broken on Packet, let's mark it as allow
failure for now.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

---------

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>
k8s-ci-robot pushed a commit to kubernetes-sigs/kubespray that referenced this issue Dec 12, 2023
* [kubernetes] Add hashes for kubernetes 1.26.11, 1.26.10

Make kubernetes 1.26.11 default

* Workaround for yaml/pyyaml#601

* Convert exoscale tf provider to new version (#10646)

This is untested. It passes terraform validate to un-broke the CI.

* Update 0040-verify-settings.yml (#10699)

remove embedded template

* Use supported version of fedora in CI (#10108)

* tests: replace fedora35 with fedora37

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: replace fedora36 with fedora38

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* docs: update fedora version in docs

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* molecule: upgrade fedora version

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: upgrade fedora images for vagrant and kubevirt

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* vagrant: workaround to fix private network ip address in fedora

Fedora stop supporting syconfig network script so we added a workaround
here
hashicorp/vagrant#12762 (comment)
to fix it.

* netowrkmanager: do not configure dns if using systemd-resolved

We should not configure dns if we point to systemd-resolved.
Systemd-resolved is using NetworkManager to infer the upstream DNS
server so if we set NetworkManager to 127.0.0.53 it will prevent
systemd-resolved to get the correct network DNS server.

Thus if we are in this case we just don't set this setting.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* image-builder: update centos7 image

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* gitlab-ci: mark fedora packet jobs as allow failure

Fedora networking is still broken on Packet, let's mark it as allow
failure for now.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

---------

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

---------

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>
Co-authored-by: piwinkler <[email protected]>
Co-authored-by: Arthur Outhenin-Chalandre <[email protected]>
pedro-peter pushed a commit to pedro-peter/kubespray that referenced this issue May 8, 2024
* tests: replace fedora35 with fedora37

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: replace fedora36 with fedora38

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* docs: update fedora version in docs

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* molecule: upgrade fedora version

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* tests: upgrade fedora images for vagrant and kubevirt

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* vagrant: workaround to fix private network ip address in fedora

Fedora stop supporting syconfig network script so we added a workaround
here
hashicorp/vagrant#12762 (comment)
to fix it.

* netowrkmanager: do not configure dns if using systemd-resolved

We should not configure dns if we point to systemd-resolved.
Systemd-resolved is using NetworkManager to infer the upstream DNS
server so if we set NetworkManager to 127.0.0.53 it will prevent
systemd-resolved to get the correct network DNS server.

Thus if we are in this case we just don't set this setting.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* image-builder: update centos7 image

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

* gitlab-ci: mark fedora packet jobs as allow failure

Fedora networking is still broken on Packet, let's mark it as allow
failure for now.

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>

---------

Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>
xinkecf35 added a commit to xinkecf35/vagrant-k8s-experiments that referenced this issue Nov 17, 2024
doing this as hashicorp/vagrant#12762 mentioned that Fedora 36 and later doesn't use ifconfig-rh anymore which is why we're getting dhcp addreses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants