libnss-libvirt does not include libnss_libvirt_guest.so for nsswitch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Medium
|
Unassigned | ||
Disco |
Fix Released
|
Medium
|
Unassigned | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Despite libvirt having been compiled with libnss_
it only includes libnss_libvirt.so.2 shared library. With that, one
that would like to use "libvirt_guest" as an entry in
/etc/
machine names) won't be able to.
[Test Case]
* Create a virtual machine called "test-guestname" with hostname
"test-hostname"
it is important that guestname and hostname differ.
* Make sure this virtual machine is attached to "default" network
(Default config)
* Make sure the "default" network offers DHCP addresses
(Default config)
* Edit /etc/nsswitch.conf:
...
# mode to resolve hostnames
hosts: files libvirt dns
...
* Confirm you're able to resolve "test-hostname": ping untested
* Edit /etc/nsswitch.conf and change to:
...
# mode to resolve guestnames
hosts: files libvirt_guest dns
...
* You won't be able to resolve "test-guestname" (virtual machine name)
* With the fix installed the latter will work as well
[Regression Potential]
* This change only includes a missing shared library in package libnss-
libvirt package. No code change: regressions could happen during
package building most likely. One might think "oh due to the install
now names will resolve differently", but they are not as the lib is not
used until you change nsswitch.conf as outlined above.
[Other Info]
Following the guidelines at:
I realized that we should be including libnss_libvirt.so.2 (as we are) and ALSO libnss_
With that file missing, we can't solve libvirt machine names when changing nsswitch.conf "hosts" entry to "libvirt_guest" and we rely only in solving the guest hostname with "libvirt" only.
Related branches
- Christian Ehrhardt (community): Approve
- Stefan Bader (community): Approve (delta review)
- Canonical Server: Pending requested
-
Diff: 27 lines (+7/-1)2 files modifieddebian/changelog (+6/-0)
debian/rules (+1/-1)
- Christian Ehrhardt (community): Approve
- Stefan Bader (community): Approve (delta review)
- Canonical Server: Pending requested
-
Diff: 27 lines (+7/-1)2 files modifieddebian/changelog (+6/-0)
debian/rules (+1/-1)
Changed in libvirt (Ubuntu Disco): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in libvirt (Ubuntu Bionic): | |
status: | New → Confirmed |
importance: | Undecided → High |
importance: | High → Medium |
description: | updated |
It was fixed in:
* [447dd58] libnss-libvirt: Install libnss_ libvirt- guest as well
(Closes: #910288)
upstream:
libvirt (5.2.0-2) experimental; urgency=medium
[ Guido Günther ] on-upgrade/ no-stop- on-upgrade/
libvirt- daemon- system. This makes sure we pull in recent enough
init-system- helpers systemd_ start is no longer used. libvirt- guest as well
* [1ec90c0] d/compat: Switch to debhelper level 12
* [fb6dd18] d/rules: s/no-restart-
* [3764b71] d/rules: --prallel not needed anymore
* [1d92095] d/control: Add ${misc:Pre-Depends} for
* [02a155b] d/rules: Switch to dh_installsystemd
dh_
* [bcad111] d/control: Fix typo
* [8609192] d/control: Drop Debian revision on iptables build-dep. Any
version greater than 1.8.1 will do.
* [447dd58] libnss-libvirt: Install libnss_
(Closes: #910288)
* [4fb7d11] d/control: Build-depend on libglusterfs-dev.
Since this is a recent addition we can drop the versioned dependency.
(Closes: #919663)
* [7b4ffeb] d/rules: Newer debhelper puts the libs into multi arch dirs.
There's no need to move them manually anymore.
[ Andrea Bolognani ] watch-uses- insecure- uri informational Lintian upstream- key-not- minimal informational Lintian control- field-duplicate s-source informational
* [dd9cdaa] Use HTTPS for all URLs.
This gets rid of the debian-
tag, and then some.
* [faaec12] Minimize upstream's signing key.
This gets rid of the public-
tag.
* [8a0e6f1] Remove Priority field from binary packages.
This gets rid of the binary-
Lintian tag.
[ Christian Ehrhardt ] clients. manpages: add virkeycode and virkeyname man
* [08f3a23] d/libvirt-
pages.
* [0f359de] d/rules: mv logrotate files to silence dh_missing
* [f36ca33] dh_missing: ignore warning on libtool .la file