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

Libvirtd setup instructions unclear #3604

Closed
jmontleon opened this issue May 14, 2020 · 6 comments
Closed

Libvirtd setup instructions unclear #3604

jmontleon opened this issue May 14, 2020 · 6 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@jmontleon
Copy link

jmontleon commented May 14, 2020

Version

N/A

Platform:

libvirt

What happened?

Following the libvirt instructions here led to a broken libvirt install on Fedora 32. They are very unclear:
https://github.com/openshift/installer/blob/master/docs/dev/libvirt/README.md#configure-libvirt-to-accept-tcp-connections

These changes have no effect with systemd sockets:
https://github.com/openshift/installer/blob/master/docs/dev/libvirt/README.md#configure-libvirtdconf

Nor does this:
https://github.com/openshift/installer/blob/master/docs/dev/libvirt/README.md#configure-the-service-runner-to-pass---listen-to-libvirtd

This is sort of accurate but libvirtd must be stopped before trying to start it:

On Fedora 31, you also need to enable and start the libvirtd TCP socket, which is managed by systemd:

sudo systemctl enable libvirtd-tcp.socket
sudo systemctl start libvirtd-tcp.socket
# systemctl start libvirtd
# systemctl start libvirtd-tcp.socket
Job failed. See "journalctl -xe" for details.
# systemctl stop libvirtd
Warning: Stopping libvirtd.service, but it can still be activated by:
  libvirtd-ro.socket
  libvirtd.socket
# systemctl start libvirtd-tcp.socket
# systemctl start libvirtd

I came across https://bugzilla.redhat.com/show_bug.cgi?id=1741403#c4 while trying to figure out what the right steps were and the above appears to be expected:

libvirtd is now using systemd socket activation by default. When systemd activation is used, the --listen parameter no longer has any effect. The demo  /etc/sysconfig/libvirtd file provided by the libvirt RPM contains a warning to this effect.

Instead you need to activate the appropriate socket unit file eg

$  systemctl start libvirtd-tls.socket

or

$ systemctl start libvirtd-tcp.socket

NB, you must start these sockets, *before* libvirtd itself is started.

For the same reason the listen_tcp and listen_tls params in /etc/libvirt/libvirtd.conf also have no effect when systemd activation is used. Again the default config file contains warnings about this.

@jmontleon jmontleon changed the title Libvirtd Libvirtd setup instructions unclear May 14, 2020
@cfergeau
Copy link
Contributor

cfergeau commented Jun 8, 2020

See #3677

@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 19, 2020
@openshift-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci-robot openshift-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 18, 2020
@cfergeau
Copy link
Contributor

The documentation now takes into account libvirtd socket activation. Is this good enough, or does this still need more improvements?

@openshift-bot
Copy link
Contributor

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci-robot
Copy link
Contributor

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

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.

wmfgerrit pushed a commit to wikimedia/operations-puppet that referenced this issue Feb 5, 2022
The necessary (by hand) order for this is:

- stop libvirtd
- start libvirtd-tls.socket
- start libvirtd

https: //github.com/openshift/installer/issues/3604

I'm hoping this will approximate that; otherwise
we might need to script things somehow.

Change-Id: Iba27a483c73f7165580d20fabf8de479fa332f58
wmfgerrit pushed a commit to wikimedia/operations-puppet that referenced this issue Feb 5, 2022
Again, referring to openshift/installer#3604

Change-Id: I5c08a7733d621a1073dba67222c25804b7bad749
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

4 participants