Bug 1790409
Summary: | Provisioning of VM fails with "ERROR (cli:257) Invalid machine name" | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Radek Vykydal <rvykydal> | ||||||
Component: | libvirt | Assignee: | Ján Tomko <jtomko> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 32 | CC: | agedosier, berrange, clalancette, crobinso, itamar, jforbes, jtomko, laine, libvirt-maint, veillard, virt-maint | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2020-05-27 21:39:32 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Radek Vykydal
2020-01-13 10:27:22 UTC
Created attachment 1651812 [details]
virt-install.log from /root/.cache/virt-manager/
Attaching the other log - the references to the log names in the Description are correct, but unlike promised in the Description, virt-install.log is attached in this comment while virt-install.log.1 is attached in the Description.
Interesting - it seems systemd does not accept machine names ending with a hyphen. (This happens because the maximum machine name length is 64 characters so libvirt has to truncate it.) Upstream patches removing the hyphens: https://www.redhat.com/archives/libvir-list/2020-January/msg00623.html Pushed upstream right after the 6.0.0 release as: commit 45464db8ba502764cf37ec9335770248bdb3d9a8 Author: Ján Tomko <jtomko> CommitDate: 2020-01-15 17:10:20 +0100 conf: do not generate machine names ending with a dash As of systemd commit: commit d65652f1f21a4b0c59711320f34266c635393c89 Author: Zbigniew Jędrzejewski-Szmek <zbyszek.pl> CommitDate: 2018-12-10 09:56:56 +0100 Partially unify hostname_is_valid() and dns_name_is_valid() Dashes are no longer allowed at the end of machine names. Trim the trailing dashes from the generated name before passing it to machined. https://bugzilla.redhat.com/show_bug.cgi?id=1790409 Signed-off-by: Ján Tomko <jtomko> Reviewed-by: Erik Skultety <eskultet> git describe: v6.0.0-8-g45464db8ba Backporting this is a bit of a pain because it requires new virbuffer.c infrastructure that was added on top of other cleanups. It's fixed in f32 though. Option is to use virt-preview repo to get newer libvirt, or rework the VM name length to not tickle this issue. Closing against F32 (In reply to Cole Robinson from comment #5) > Backporting this is a bit of a pain because it requires new virbuffer.c > infrastructure that was added on top of other cleanups. It's fixed in f32 > though. Option is to use virt-preview repo to get newer libvirt, or rework > the VM name length to not tickle this issue. Closing against F32 Thank you for the fix. We have just switched to using F32 hosts so it seems not to be problem for us. Also I can confirm the problem is fixed for us with F32. |