Bug 1562602
Summary: | VM with special characters failed to start | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Nisim Simsolo <nsimsolo> | ||||||
Component: | BLL.Virt | Assignee: | Andrej Krejcir <akrejcir> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | meital avital <mavital> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 4.2.2 | CC: | akrejcir, bugs, michal.skrivanek, mzamazal, nsimsolo, rbarry, tbaransk | ||||||
Target Milestone: | ovirt-4.3.0 | Flags: | rule-engine:
ovirt-4.3+
|
||||||
Target Release: | 4.3.0 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | ovirt-engine-4.3.0_alpha | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2019-02-13 07:46:48 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Nisim Simsolo
2018-04-01 11:52:09 UTC
Created attachment 1415790 [details]
engine.log
Created attachment 1415791 [details]
vdsm.log
can you try that? I could observe at least three problems: - libvirt doesn't permit `/' character in VM name. - `&' is not escaped when passed for the first time to libvirt, so an invalid XML is provided to libvirt. - The second libvirt defineXML call fails, apparently due to changed VM name, perhaps escaping is applied this time. So it looks like at least one XML escaping problem in Vdsm (XML received from Engine looks OK) and the libvirt constraint on `/'. we'll see if there is anything to backport, hopefully it's not going to be a problem After speaking with Milan/Michal, let's also run it through validation in the engine. Andrej, can you pick it up from there? I'm not sure what is the expected behavior now in order to verify this bug. The current behavior when trying to import VM named: RHEL7_2-invalid-name-44%/\&+=?!@#$^*()[]: is: the second import dialog rejects the action when clicking "ok" button with the next "operation canceled" pop-up message: Error while executing action: " RHEL7_2-invalid-name-44%/\&+=?!@#$^*()[]: Can not import VM. The given name contains special characters. Only lower-case and upper-case letters, numbers, '_', '-', '.' are allowed. Attribute: vm.vmStatic.name " Is that the expected behavior in such case? Yes, that is expected. It should not be possible to import a VM with invalid name, using UI or API. Maybe we could improve the UI, if the popup is too inconvenient, but it works. Referenced in vdsm v4.30.3 despite this bug is on ovirt-engine There were fixes in both Vdsm and Engine. Verified on: ovirt-engine-4.3.0-0.2.master.20181121071050.gita8fcd23.el7.noarch This bugzilla is included in oVirt 4.3.0 release, published on February 4th 2019. Since the problem described in this bug report should be resolved in oVirt 4.3.0 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |