-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit add the support for virtio interfaces like vhostuser for openstack virtual workers. implementation details: * on first run (after a reboot) we get all the information we need when the devices are visible to the kernel * we match the mac address to the openstack network ID * if the sriov-network-config-daemon gets reboot it will use the initial file on the node so even if the nics are in vfio the node state will be right * introduce a new system service to remove the initial state file after a reboot to support nic changes both for virtual and BM environments Signed-off-by: Sebastian Sch <[email protected]>
- Loading branch information
Showing
4 changed files
with
225 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
contents: | | ||
[Unit] | ||
Description=Remove the initial SR-IOV state file | ||
# Removal of this file signals firstboot completion | ||
ConditionPathExists=!/etc/ignition-machine-config-encapsulated.json | ||
Before=kubelet.service | ||
[Service] | ||
Type=oneshot | ||
ExecStart=rm -f /etc/sno-initial-node-state.json | true | ||
StandardOutput=journal+console | ||
StandardError=journal+console | ||
[Install] | ||
WantedBy=default.target | ||
enabled: true | ||
name: sriov-operator-initial-configuration-reset.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters