[master] gvforwarder as a systemd service#1061
Conversation
- Create a tap device using nmcli with a hardcoded mac address - Start gvforwarder systemd service which will use this device Signed-off-by: vyasgun <vyasgun20@gmail.com>
Signed-off-by: Praveen Kumar <kumarpraveen.nitdgp@gmail.com>
Reviewer's GuideThis PR automates deployment of gvisor’s tap-vsock forwarder by extending createdisk.sh: it installs the new package, configures a tap interface on the VM via nmcli, defines a systemd unit that runs podman’s gvforwarder, and enables it at boot. Sequence Diagram: Setup of gvforwarder Service by createdisk.shsequenceDiagram
actor ScriptRunner as "User/CI"
participant CSH as "createdisk.sh"
participant VM
participant NM as "NetworkManager (on VM)"
participant SD as "systemd (on VM)"
ScriptRunner ->> CSH: Execute script
CSH ->> VM: SSH: Install 'gvisor-tap-vsock-gvforwarder' package
activate VM
VM -->> CSH: Package installed
deactivate VM
CSH ->> VM: SSH: 'nmcli connection add type tun ifname tap0 ...'
activate VM
VM ->> NM: Create & Configure tap0 interface
activate NM
NM -->> VM: tap0 configured
deactivate NM
VM -->> CSH: tap0 setup complete
deactivate VM
CSH ->> VM: SSH: Write '/etc/systemd/system/gv-user-network@.service' file
activate VM
VM -->> CSH: Service file created
deactivate VM
CSH ->> VM: SSH: 'systemctl daemon-reload'
activate VM
VM ->> SD: Reload unit files
activate SD
SD -->> VM: Units reloaded
deactivate SD
VM -->> CSH: Daemon reloaded
deactivate VM
CSH ->> VM: SSH: 'systemctl enable gv-user-network@tap0.service'
activate VM
VM ->> SD: Enable service for tap0 device
activate SD
SD -->> VM: Service enabled for boot
deactivate SD
VM -->> CSH: Service enabled
deactivate VM
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @openshift-cherrypick-robot. Thanks for your PR. I'm waiting for a crc-org member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
|
@openshift-cherrypick-robot: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This is an automated cherry-pick of #1052
/assign praveenkumar
Summary by Sourcery
Enable gvforwarder as a systemd-managed service by installing the required package, creating a tap network device, and configuring and enabling a systemd service template
New Features:
Enhancements: