Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#60570 - [libvirt] 4.8.0 missing user and group "tss"
Attached to Project:
Community Packages
Opened by Uwe Sauter (UweSauter) - Tuesday, 23 October 2018, 21:27 GMT
Last edited by Christian Rebischke (Shibumi) - Saturday, 09 February 2019, 13:59 GMT
Opened by Uwe Sauter (UweSauter) - Tuesday, 23 October 2018, 21:27 GMT
Last edited by Christian Rebischke (Shibumi) - Saturday, 09 February 2019, 13:59 GMT
|
Detailsjournalctl:
Oct 23 23:03:54 t400 libvirtd[917]: 994: info : libvirt version: 4.8.0 Oct 23 23:03:54 t400 libvirtd[917]: 994: info : hostname: t400 Oct 23 23:03:54 t400 libvirtd[917]: 994: error : virGetUserID:1042 : invalid argument: Failed to parse user 'tss' Oct 23 23:03:54 t400 libvirtd[917]: libvirt version: 4.8.0 Oct 23 23:03:54 t400 libvirtd[917]: hostname: t400 Oct 23 23:03:54 t400 libvirtd[917]: invalid argument: Failed to parse user 'tss' Oct 23 23:03:54 t400 libvirtd[917]: 994: error : virGetGroupID:1125 : invalid argument: Failed to parse group 'tss' Oct 23 23:03:54 t400 libvirtd[917]: invalid argument: Failed to parse group 'tss' Don't know what this user/group is but should this be created upon installation? |
This task depends upon
Closed by Christian Rebischke (Shibumi)
Saturday, 09 February 2019, 13:59 GMT
Reason for closing: Fixed
Saturday, 09 February 2019, 13:59 GMT
Reason for closing: Fixed
What effect does the tss user and group not being present have on libvirt on your system?
https://www.archlinux.org/packages/community-testing/x86_64/libvirt/download/ although I would suggest enabling both testing and community-testing and pulling all updated packages is preferable.
I was going to cherry pick the necessary packages as I don't want to run my system on testing. It seems that libvirt-4.9.0-1-x86_64.pkg.tar.xz has no dependencies to other packages in community-testing so this is the only one I installed.
After restarting libvirtd I can see the error message has changed a bit but is still present:
Nov 11 10:25:58 t400 libvirtd[2691]: 2711: info : libvirt version: 4.9.0
Nov 11 10:25:58 t400 libvirtd[2691]: 2711: info : hostname: t400
Nov 11 10:25:58 t400 libvirtd[2691]: 2711: error : virGetUserID:1041 : invalid argument: Failed to parse user 'tss'
Nov 11 10:25:58 t400 libvirtd[2691]: libvirt version: 4.9.0
Nov 11 10:25:58 t400 libvirtd[2691]: hostname: t400
Nov 11 10:25:58 t400 libvirtd[2691]: invalid argument: Failed to parse user 'tss'
For comparison the log before the update:
Nov 11 10:21:32 t400 libvirtd[1122]: 1198: info : libvirt version: 4.8.0
Nov 11 10:21:32 t400 libvirtd[1122]: 1198: info : hostname: t400
Nov 11 10:21:32 t400 libvirtd[1122]: libvirt version: 4.8.0
Nov 11 10:21:32 t400 libvirtd[1122]: 1198: error : virGetUserID:1042 : invalid argument: Failed to parse user 'tss'
Nov 11 10:21:32 t400 libvirtd[1122]: hostname: t400
Nov 11 10:21:32 t400 libvirtd[1122]: invalid argument: Failed to parse user 'tss'
Nov 11 10:21:32 t400 libvirtd[1122]: 1198: error : virGetGroupID:1125 : invalid argument: Failed to parse group 'tss'
Nov 11 10:21:32 t400 libvirtd[1122]: invalid argument: Failed to parse group 'tss'
Thanks.
# User for the swtpm TPM Emulator
#
# Default is 'tss'; this is the same user that tcsd (TrouSerS) installs
# and uses; alternative is 'root'
#
#swtpm_user = "tss"
#swtpm_group = "tss"
I think you need to either create a tss user or just set another one.
Btw this is something which should be done by package maintainers.
Are you saying this is the wrong place for this and I should open a bug upstream? I thought I could reach the Arch package maintainer with this ticket.
I totally agree that this is something the package maintainer should/could. I don't agree that I should create a separate user just to silence an error that shouldn't be an error (at least if want to help the community).
After the user and group tss exist please check libvirt can still use the software TPM.
As I have never (consciously) used a TPM before (neither software nor hardware) I have no idea how I should test that.
Edit:
What upstream describes as a warning is the error message. From the commit message the message is harmless but should not be produced but the commit does not achieve that.
I would class this as an upstream issue.
Edit2:
if (virDoesUserExist(&cfg->swtpm_user) != 0)
cfg->swtpm_user = 0; /* fall back to root */
if (virDoesGroupExist(&cfg->swtpm_group) != 0)
cfg->swtpm_group = 0; /* fall back to root */
I think something like the above should silence the message although still printing a message when the value is not set to the default tss and does not exist might be appropriate but that would be for upstream.
In such a case the root user and group will be used unless overridden in qemu.conf which is the original behavior.
If the tss user or group does exist it will be used unless overridden in qemu.conf which is the original behavior.
If a swtpm_user or swtpm_group is defined in /etc/libvirt/qemu.conf and does not exist that will still generate the message no change in behavior.
In the previous version if tss user/group existed and the id mapping succeeded then the fallback would be used.