Bug 972442 - 15 character limit on NIC names is inadvertently restricting VM name field
Summary: 15 character limit on NIC names is inadvertently restricting VM name field
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: 3.2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-09 12:39 UTC by James Wilson
Modified: 2013-06-13 09:22 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-13 09:22:30 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)
15 character limitation (100.49 KB, image/png)
2013-06-10 14:03 UTC, James Wilson
no flags Details

Description James Wilson 2013-06-09 12:39:24 UTC
Description of problem:

A patch was committed into the latest build of oVirt to restrict NIC names at 15 characters.

http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commitdiff;h=218b506a65e1039481f14b837022d8155ecb1e02

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

How reproducible:

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

Actual results:

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.

Expected results:

A VM name such as adfs.example.com is entered, and the VM is created without issue.

Comment 1 Michal Skrivanek 2013-06-10 07:12:53 UTC
MaxVmNameLengthWindows is set to 15 by default. What's your OS type?

Comment 2 James Wilson 2013-06-10 07:52:01 UTC
(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.

Comment 3 James Wilson 2013-06-10 07:58:06 UTC
Recent RPM updates, after which restriction appears to be enforced:

May 30 10:46:10 Updated: ovirt-engine-sdk-3.2.0.11-1.el6.noarch
May 30 10:46:11 Updated: ovirt-engine-cli-3.2.0.12-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

Comment 4 Itamar Heim 2013-06-10 13:37:57 UTC
do you mean hosts names or VM names?

Comment 5 James Wilson 2013-06-10 14:03:01 UTC
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.

Comment 6 Itamar Heim 2013-06-10 17:48:36 UTC
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)

Comment 7 Michal Skrivanek 2013-06-13 09:22:30 UTC
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


Note You need to log in before you can comment on or make changes to this bug.