Bug 1397752 - "HostedEngine" can't be given as a VM name, but there is no proper warning or error shown in UI.
Summary: "HostedEngine" can't be given as a VM name, but there is no proper warning or...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.0.5.5
Hardware: x86_64
OS: Linux
low
low vote
Target Milestone: ---
: ---
Assignee: Denis Chaplygin
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-23 10:12 UTC by Nikolai Sednev
Modified: 2022-06-30 07:47 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-19 14:16:53 UTC
oVirt Team: SLA
sbonazzo: ovirt-4.2-


Attachments (Terms of Use)
Screenshot from 2016-11-23 12:05:13.png (185.56 KB, image/png)
2016-11-23 10:14 UTC, Nikolai Sednev
no flags Details
HostedEngine vm name is already in use (112.12 KB, image/png)
2017-04-19 14:17 UTC, Denis Chaplygin
no flags Details
Dupicate VM names are handler correctly (104.82 KB, image/png)
2017-04-19 14:18 UTC, Denis Chaplygin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-46737 0 None None None 2022-06-30 07:47:43 UTC

Description Nikolai Sednev 2016-11-23 10:12:52 UTC
Description of problem:
"HostedEngine" can't be given as a VM name, but there is no proper warning or error shown in UI. 


Version-Release number of selected component (if applicable):
Hosts:
ovirt-setup-lib-1.0.2-1.el7ev.noarch
ovirt-engine-sdk-python-3.6.9.1-1.el7ev.noarch
ovirt-imageio-common-0.3.0-0.el7ev.noarch
libvirt-client-2.0.0-10.el7.x86_64
ovirt-vmconsole-1.0.4-1.el7ev.noarch
mom-0.5.8-1.el7ev.noarch
ovirt-hosted-engine-setup-2.0.3-2.el7ev.noarch
ovirt-host-deploy-1.5.3-1.el7ev.noarch
ovirt-imageio-daemon-0.4.0-0.el7ev.noarch
ovirt-vmconsole-host-1.0.4-1.el7ev.noarch
qemu-kvm-rhev-2.6.0-27.el7.x86_64
ovirt-hosted-engine-ha-2.0.4-1.el7ev.noarch
rhev-release-4.0.5-7-001.noarch
vdsm-4.18.15.3-1.el7ev.x86_64
sanlock-3.4.0-1.el7.x86_64
Linux version 3.10.0-514.el7.x86_64 (mockbuild.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Wed Oct 19 11:24:13 EDT 2016
Linux 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 7.3 (Maipo)

Engine:
rhevm-spice-client-x64-msi-4.0-3.el7ev.noarch
rhevm-branding-rhev-4.0.0-5.el7ev.noarch
rhevm-dependencies-4.0.0-1.el7ev.noarch
rhevm-spice-client-x86-msi-4.0-3.el7ev.noarch
rhev-release-4.0.5-7-001.noarch
rhevm-guest-agent-common-1.0.12-3.el7ev.noarch
rhevm-setup-plugins-4.0.0.3-1.el7ev.noarch
rhev-guest-tools-iso-4.0-6.el7ev.noarch
rhevm-doc-4.0.5-1.el7ev.noarch
rhev-hypervisor7-7.2-20160209.2.bz1288237.el6ev.noarch
rhevm-4.0.5.5-0.1.el7ev.noarch
Linux version 3.10.0-514.el7.x86_64 (mockbuild.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Wed Oct 19 11:24:13 EDT 2016
Linux 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 7.3 (Maipo)

How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:
"HostedEngine" can't be given as a VM name, but there is no proper warning or error shown in UI. See screen shot as attached.

Expected results:
Error or warning message should be shown.

Additional info:
Screenshot from 2016-11-23 12:05:13.png

Comment 1 Nikolai Sednev 2016-11-23 10:14:54 UTC
Created attachment 1223130 [details]
Screenshot from 2016-11-23 12:05:13.png

Comment 2 Nikolai Sednev 2016-11-23 10:17:06 UTC
Adding reproduction steps here:
1.Deploy hosted-engine on at least one host.
2.Attach data storage domain to environment, so HE storage domain and HE-VM could get auto-imported.
3.Try creating guest-VM named the same as HostedEngine, as appears in the attachment.

Comment 3 Yaniv Lavi 2016-12-14 16:25:09 UTC
This bug had requires_doc_text flag, yet no documentation text was provided. Please add the documentation text and only then set this flag.

Comment 4 Denis Chaplygin 2017-04-19 14:16:53 UTC
HostedEngine is not special VM in that case. We already have a built-in support for checking for duplicate VM names and notifying user on that error. 

Users are notified by a)highlighting field with error b)tooltip on that field, telling user error details. That notifications work for all VMs, including HostedEngine VM (please, check attached screenshots)

Notification style, mentioned above, is widely used everywhere in ovirt UI (for example, in storage domain creation dialog) and it is considered to be good enough.

Comment 5 Denis Chaplygin 2017-04-19 14:17:28 UTC
Created attachment 1272636 [details]
HostedEngine vm name is already in use

Comment 6 Denis Chaplygin 2017-04-19 14:18:04 UTC
Created attachment 1272638 [details]
Dupicate VM names are handler correctly


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