Bug 1208780

Summary: [RFE]Provide a way through the Hosted-engine TUI to run necessary hosted-engine shell commands.
Product: Red Hat Enterprise Virtualization Manager Reporter: Ying Cui <ycui>
Component: ovirt-node-plugin-hosted-engineAssignee: Ryan Barry <rbarry>
Status: CLOSED ERRATA QA Contact: Huijuan Zhao <huzhao>
Severity: medium Docs Contact:
Priority: high    
Version: 3.5.1CC: cshao, dfediuck, dougsland, fdeutsch, gklein, huiwa, huzhao, juwu, leiwang, rbarry, yaniwang, ycui, ylavi
Target Milestone: ovirt-3.6.0-rcKeywords: FutureFeature
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-node-plugin-hosted-engine-0.3.0-1.el7ev Doc Type: Enhancement
Doc Text:
Users can now perform maintenance tasks on a RHEV-H self-hosted engine through the text user interface (TUI) without entering the rescue shell.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-09 14:21:25 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:
Bug Depends On: 1260470, 1276352    
Bug Blocks: 1059435, 1094719, 1250199    
Attachments:
Description Flags
deploy HE
none
new layout none

Description Ying Cui 2015-04-03 07:40:05 UTC
Description:
Currently rhevh do not support to let end-user drop to shell to run commands, but if running hosted-engine, some commands must to execute or execute frequently.
These cmd we have to F2 drop to shell to run.

We'd better to provide a TUI way to run them rather than let end-user F2 drop to shell directly to run them. 

Such as:
1. # screen -r -d
2. # hosted-engine --set-maintenance --mode=global
3. # hosted-engine --set-maintenance --mode=none
4. # hosted-engine --vm-start
5. # hosted-engine --vm-status

Comment 1 Doron Fediuck 2015-04-13 13:46:07 UTC
What we're going to support is the following functionalities:

1. Show HE status
This will have a button in the TUI similar to CPU info button.
Pressing it will show the output of the command.

2. Maintenance commands
a. Checkbox for global (VM) maintenance. Pressing it will show the output of the command.
b. Checkbox for local (host) maintenance. Pressing it will show the output of the command.

c. A button for resuming from maintenance.

Comment 2 Yaniv Lavi 2015-04-13 13:54:46 UTC
*** Bug 1151342 has been marked as a duplicate of this bug. ***

Comment 3 Yaniv Lavi 2015-04-13 13:57:46 UTC
*** Bug 1151393 has been marked as a duplicate of this bug. ***

Comment 4 Huijuan Zhao 2015-10-09 03:28:03 UTC
As Bug 1267437 block this issue verify, I have to verify this issue after Bug 1267437 fix.

Ryan Barry, Doron Fediuck, for this new feature, is there some buttons on Hosted Engine TUI like the screenshot in attachment(deploy HE)? And the buttons appear all the time or just appear after deploy Hosted Engine? Thanks.

Comment 5 Huijuan Zhao 2015-10-09 03:29:00 UTC
Created attachment 1081176 [details]
deploy HE

Comment 6 Ryan Barry 2015-10-09 04:51:15 UTC
Created attachment 1081179 [details]
new layout

If the engine is configured, the buttons (and engine status) will appear.

Example (from an unconfigured engine with the variables set) is attached.

Comment 8 Huijuan Zhao 2015-10-29 12:45:15 UTC
The issue verify is blocked by HE bug:
TUI Hosted Engine display is "Not configured" but HE already deployed on RHEV-H.

I will update bug ID tomorrow.

Comment 9 Huijuan Zhao 2015-11-11 05:34:19 UTC
The issue is fixed according Comment 1 on rhev-hypervisor-7-7.2-20151104.0.

Test version:
ovirt-node-plugin-hosted-engine-0.3.0-2.el7ev.noarch
Red Hat Enterprise Virtualization Hypervisor release 7.2 (20151104.0.el7ev)


Test Steps:
1. RHEV-H installed successful.
2. Login RHEV-H, change to Hosted Engine page, Deploy Hosted Engine.
3. Check Hosted Engine page.

Test Results:
After step3, there is < Hosted Engine VM status > and < Set Hosted Engine maintenance > on Hosted Engine page.

So I will change the status to VERIFIED.

Comment 11 errata-xmlrpc 2016-03-09 14:21:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0378.html