Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1358716

Summary: Disable Hosted Engine Setup page after register RHVH to engine
Product: [oVirt] ovirt-node Reporter: cshao <cshao>
Component: UIAssignee: Ryan Barry <rbarry>
Status: CLOSED CURRENTRELEASE QA Contact: Yihui Zhao <yzhao>
Severity: high Docs Contact:
Priority: medium    
Version: 4.0CC: bugs, dguo, didi, huzhao, leiwang, mgoldboi, rbarry, trichard, weiwang, yaniwang, ycui
Target Milestone: ovirt-4.1.1Flags: rule-engine: ovirt-4.1+
mgoldboi: planning_ack+
fdeutsch: devel_ack+
cshao: testing_ack+
Target Release: 4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cockpit-ovirt-0.10.7-0.0.13.el7ev Doc Type: Enhancement
Doc Text:
The self-hosted engine setup wizard now warns users if the host is already registered to Red Hat Virtualization Manager. Previously, a host that was registered to the Manager but not running a self-hosted engine would present the option to set up a self-hosted engine, which ran the risk of unregistering the host. Now, hosts that are registered to the Manager present a "Redeploy" button in the Hosted Engine wizard in Cockpit, which must be selected in order to continue.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-21 09:29:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
all_log_info
none
he
none
cockpit.png none

Description cshao 2016-07-21 10:40:30 UTC
Created attachment 1182418 [details]
all_log_info

Description of problem:
Disable Hosted Engine Setup page after register RHVH to engine, due to RHVH should only managed by one engine.

Version-Release number of selected component (if applicable):
redhat-virtualization-host-4.0-20160714.3.x86_64
imgbased-0.7.2-0.1.el7ev.noarch
vdsm-4.18.6-1.el7ev.x86_64
RHEV-M-4.0.2-0.2.rc1.el7ev
cockpit-0.108-1.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Install RHVH via ISO(with default ks)
2. Add RHVH to engine.
3. Login cockpit. check hosted engine status.

Actual results:
Still can deploy HE after register RHVH to engine.

Expected results:
Disable Hosted Engine Setup page after register RHVH to engine, due to RHVH should only managed by one engine.

Additional info:

Comment 1 Yedidyah Bar David 2016-07-24 05:48:43 UTC
A solution to this bug should probably include the flow of removing the host from the engine - after that, deploy should be allowed again. I think we'd rather close this bug as wontfix (or even notabug) than not handle removal. AFAIK, trying deploy again on a deployed host is harmless.

Comment 2 cshao 2017-02-20 10:02:30 UTC
No 4.1.1 build available for testing now, we will verify this bug after got the new build.

Comment 3 cshao 2017-03-02 10:36:20 UTC
Test version:
redhat-virtualization-host-4.1-20170222.0 
imgbased-0.9.13-0.1.el7ev.noarch
ovirt-hosted-engine-setup-2.1.0.3-1.el7ev.noarch
ovirt-hosted-engine-ha-2.1.0.3-1.el7ev.noarch
rhevm-4.1.1.2-0.1.el7

Test steps:
1. Install RHVH via PXE
2. Add RHVH to engine.
3. Login cockpit. check hosted engine status.


According Doc Text:
Result: Hosts which are registered to RHV-M now present a "Redeploy" button in the Hosted Engine wizard in cockpit, which must be selected in order to continue.

Test result:
After register to RHVM, user can't deploy HE anymore, this is expected behavior. But according Doc Text, there is no "Redeploy" button in the Hosted Engine wizard in cockpit, there only have a running symbol always display(please see attachment "he.png").

So the bug is partial fix, change bug status to ASSIGNED.

Comment 4 Red Hat Bugzilla Rules Engine 2017-03-02 10:36:27 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 5 cshao 2017-03-02 10:37:00 UTC
Created attachment 1259079 [details]
he

Comment 7 Red Hat Bugzilla Rules Engine 2017-03-06 06:46:52 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 10 Yihui Zhao 2017-03-06 08:27:50 UTC
Created attachment 1260296 [details]
cockpit.png

Comment 11 Yihui Zhao 2017-03-06 08:32:51 UTC
Test version:
redhat-virtualization-host-4.1-20170222.0 
cockpit-ovirt-dashboard-0.10.7-0.0.11.el7ev.noarch upgrade to cockpit-ovirt-dashboard-0.10.7-0.0.13.el7ev.noarch

Test steps:
1. Install RHVH via PXE
2. Download the package "cockpit-ovirt-dashboard-0.10.7-0.0.13.el7ev.noarch.rpm", then use cmd "rpm -Uvh cockpit-ovirt-dashboard-0.10.7-0.0.13.el7ev.noarch.rpm" to upgrade to the fix version
2. Add RHVH to engine.
3. Login cockpit. check hosted engine status.

Result:
URL : https://bugzilla.redhat.com/attachment.cgi?id=1260296

It works well ,so the bug's status is verified.