Inconsistent XML config checks for domains with space in the name
Bug #672948 reported by
wodny
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
1) http://
"This name should consist only of alpha-numeric characters".
2) /usr/share/
<element name="name">
<ref name="domainName"/>
</element>
<define name="domainName">
<data type="string">
<param name="pattern"
</data>
</define>
3) Virsh accepts <name> with spaces, but then during a vm start some misguiding output is generated. It says aa_change_profile() fails. Virsh doesn't check the config with the schema as well.
To post a comment you must log in.
The aa_change_profile() meesage is due to the function virDomainDefPar seString( ) (from src/conf/ domain_ conf.c) failing to provide the name of the domain when the domain has a space in it. The name is required in order to setup the paths for the monitor, etc in the dynamic apparmor profile and virt-aa-helper exits with error when it doesn't have it.
The bug is in either virsh accepting a space in the name on define, etc, or in not handling the space properly. Either way, the documentation is correct for now: "This name should consist only of alpha-numeric characters" and therefore this bug does not have a high priority in Ubuntu. I suggest filing a bug with upstream (see http:// libvirt. org/bugs. html) if you would like this resolved in Ubuntu. If you do, please reference the upstream bug here.