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

Improvements to the systemd unit file #207

Merged
merged 5 commits into from
Apr 25, 2023

Conversation

cfergeau
Copy link
Contributor

This makes it more generic so that it can be installed by default.
This PR also gives a more descriptive name to the vm binary.

@baude
Copy link
Member

baude commented Apr 21, 2023

/approve

LGTM

When this is installed in /etc/systemd/system/, the very generic unit
name/description can be a problem.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
This will allow to always install gv-user-network.service system-wide.
After configuring a tap network device, gv-user-network.service
can be enabled/started with:
 # systemctl enable --now gv-user-network@vsock0

(if the device is named `vsock0`)

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
This ensures that the network device the systemd unit needs exists.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
gv-user-network@.service can be used with any network device, and is not
enabled by default, so we can always install it.
Once a tap device is configured (for example using
contrib/networkmanager/vsock0.nmconnection), user mode networking can be
enabled/started with `systemctl enable --now gv-user-network@vsock0'

If the service not explicitly enabled/started, the installed unit file
won't do anything.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
@baude
Copy link
Member

baude commented Apr 24, 2023

LGTM

@cfergeau
Copy link
Contributor Author

Trying to move this forward following Brent's review
/lgtm
/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 25, 2023

@cfergeau: you cannot LGTM your own PR.

In response to this:

Trying to move this forward following Brent's review
/lgtm
/approve

Instructions 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/test-infra repository.

@baude baude added the lgtm label Apr 25, 2023
This aligns the naming with 'gvproxy' and hopefully makes it a bit more
descriptive

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
@baude
Copy link
Member

baude commented Apr 25, 2023

/hold
/lgtm

@baude
Copy link
Member

baude commented Apr 25, 2023

/hold cancel

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 25, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baude, cfergeau

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit ee06501 into containers:main Apr 25, 2023
15 checks passed
cfergeau added a commit to cfergeau/snc that referenced this pull request Jun 6, 2023
cfergeau added a commit to cfergeau/snc that referenced this pull request Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants