[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] Valid characters in domain names?

I would like to associate this discussion with a bug I've submitted to
Ubuntu's Launchpad...


Inconsistent XML config checks for domains with space in the name

1) http://libvirt.org/formatdomain.html#elementsMetadata states:
"This name should consist only of alpha-numeric characters".

2) /usr/share/libvirt/schemas/domain.rng:
<element name="name">
  <ref name="domainName"/>

<define name="domainName">
    <data type="string">
      <param name="pattern">[A-Za-z0-9_\.\+\-&amp;:/]+</param>

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.

libvirt-bin 0.7.5-5ubuntu27.7

Marcin Szewczyk                       http://wodny.org
mailto:Marcin Szewczyk wodny borg  <- remove b / usuĊ„ b
xmpp:wodny ubuntu pl                  xmpp:wodny jabster pl

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]