Skip to content

Commit

Permalink
add networkManager to disable dhcp on vfs
Browse files Browse the repository at this point in the history
disable dhcp on vfs for vanilly k8s CI.
if we don't disable it the device plugin will not use this devices

Signed-off-by: Sebastian Sch <sebassch@gmail.com>
  • Loading branch information
SchSeba committed Oct 2, 2023
1 parent 3241c2f commit f2489bb
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion hack/run-e2e-conformance-virtual-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,18 +130,66 @@ kcli ssh $cluster_name-ctlplane-0 << EOF
sudo su
echo '$insecure_registry' > /etc/containers/registries.conf.d/003-internal.conf
systemctl restart crio
echo '[connection]
id=multi
type=ethernet
[ethernet]
[match]
driver=igbvf;
[ipv4]
method=disabled
[ipv6]
addr-gen-mode=default
method=disabled
[proxy]' > /etc/NetworkManager/system-connections/multi.nmconnection
chmod 600 /etc/NetworkManager/system-connections/multi.nmconnection
systemctl restart NetworkManager
EOF

kcli ssh $cluster_name-worker-0 << EOF
sudo su
echo '$insecure_registry' > /etc/containers/registries.conf.d/003-internal.conf
systemctl restart crio
echo '[connection]
id=multi
type=ethernet
[ethernet]
[match]
driver=igbvf;
[ipv4]
method=disabled
[ipv6]
addr-gen-mode=default
method=disabled
[proxy]' > /etc/NetworkManager/system-connections/multi.nmconnection
chmod 600 /etc/NetworkManager/system-connections/multi.nmconnection
systemctl restart NetworkManager
EOF

kcli ssh $cluster_name-worker-1 << EOF
sudo su
echo '$insecure_registry' > /etc/containers/registries.conf.d/003-internal.conf
systemctl restart crio
echo '[connection]
id=multi
type=ethernet
[ethernet]
[match]
driver=igbvf;
[ipv4]
method=disabled
[ipv6]
addr-gen-mode=default
method=disabled
[proxy]' > /etc/NetworkManager/system-connections/multi.nmconnection
chmod 600 /etc/NetworkManager/system-connections/multi.nmconnection
systemctl restart NetworkManager
EOF

kubectl create namespace container-registry
Expand Down

0 comments on commit f2489bb

Please sign in to comment.