Red Hat Bugzilla – Bug 972442
15 character limit on NIC names is inadvertently restricting VM name field
Last modified: 2013-06-13 05:22:30 EDT
Description of problem:
A patch was committed into the latest build of oVirt to restrict NIC names at 15 characters.
This appears to have limited the "Name" field when creating a VM via the web interface. Previous hosts, created with > 15 character names are not flagged as incorrect.
Version-Release number of selected component (if applicable):
ovirt-engine-3.2.1-1.41.el6.noarch, CentOS 6.4 x86_64
Apply the latest updates via yum from the dreyou.org repository. Create a new VM with a name greater than 15 characters e.g. adfs.example.org
The OK button becomes unresponsive and no error is given if the user has traversed away from the "General" tab. Closer inspection, under "General" sees the name field turn yellow, and the name of the VM must be reduced to less than 15 characters in order to successfully create a guest.
A VM name such as adfs.example.com is entered, and the VM is created without issue.
MaxVmNameLengthWindows is set to 15 by default. What's your OS type?
(In reply to Michal Skrivanek from comment #1)
> MaxVmNameLengthWindows is set to 15 by default. What's your OS type?
Hi, as mentioned, the OS is CentOS 6.4 x86_64 with latest updates. The MaxVmNameLengthWindows restriction has only come into force in the latest update of ovirt-engine-setup-3.2.2-1.1.43.el6.noarch.
# cat /etc/centos-release
CentOS release 6.4 (Final)
# uname -a
Linux 2.6.32-358.6.2.el6.x86_64 #1 SMP Thu May 16 20:59:36 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
I have previous hosts that exceed this 15 character limit, created only weeks previously - such as shell.example.com. If I try and create shell.example.org post patch update, this restriction is enforced. Previous hosts are allowed to run without issue.
Recent RPM updates, after which restriction appears to be enforced:
May 30 10:46:10 Updated: ovirt-engine-sdk-18.104.22.168-1.el6.noarch
May 30 10:46:11 Updated: ovirt-engine-cli-22.214.171.124-1.el6.noarch
Jun 08 00:24:29 Updated: ovirt-engine-setup-3.2.2-1.1.43.el6.noarch
Jun 08 00:24:29 Updated: ovirt-engine-setup-plugin-allinone-3.2.2-1.1.43.el6.noarch
do you mean hosts names or VM names?
Created attachment 759212 [details]
15 character limitation
This shows the error message presented to the user. When entering a name > 15 characters, and clicking OK. The field turns yellow. Only when hovering does it describe the limitation.
James - are you sure the Operating System field used to be Windows before as well? as michal mentioned, the 15 characters limitation for VMs which operating system is windows*, has been in for a while (though probably should be changed into a warning)
The screenshot clearly shows OS type Windows 2008
seems you're confusing host name with VM name, Centos on your hypervisor host has nothing to do with guests - VMs name