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

Bug 1203144

Summary: Current RHEVH TUI crash can not switch to other TUI menu after interrupting hosted-engine configuration processing.
Product: Red Hat Enterprise Virtualization Manager Reporter: Ying Cui <ycui>
Component: ovirt-node-plugin-hosted-engineAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 3.5.1CC: cshao, dougsland, ecohen, fdeutsch, gklein, hadong, huiwa, leiwang, lsurette, nsednev, yaniwang, ycui
Target Milestone: ---   
Target Release: 3.5.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: node
Fixed In Version: ovirt-node-plugin-hosted-engine-0.2.0-11.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-18 13:07:40 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
varlog.tar.gz
none
screenshot for current TUI crash
none
TUI crash none

Description Ying Cui 2015-03-18 09:11:28 UTC
Description:
When setup Hosted-engine in RHEVH TUI, but select "No" to interrupt the hosted-engine configuration, back to rhevh TUI menu, then RHEVH TUI menu can not be switched, the current TUI crash.
But you still can open another ssh session to operate RHEVH TUI again.

-------------------------
[ INFO  ] Stage: Initializing
[ INFO  ] Generating a temporary VNC password.
[ INFO  ] Stage: Environment setup
          Continuing will configure this host for serving as hypervisor and create a VM where you have to install oVirt Engine afterwards.
          Are you sure you want to continue? (Yes, No)[Yes]: No
-------------------------

Notice: There selected "No"

Test version:
 # rpm -q ovirt-node-plugin-hosted-engine ovirt-node ovirt-hosted-engine-ha ovirt-hosted-engine-setup
 ovirt-node-plugin-hosted-engine-0.2.0-10.0.el6ev.x86_64
 ovirt-node-3.2.1-10.el6.noarch
 ovirt-hosted-engine-ha-1.2.5-1.el6ev.noarch
 ovirt-hosted-engine-setup-1.2.2-1.el6ev.noarch
 # cat /etc/redhat-release
 Red Hat Enterprise Virtualization Hypervisor 6.6 (20150312.0.el6ev)

Test steps:
 1. Installed RHEVH 6.6 successful.
 2. Set network done.
 3. Navigate to Hosted Engine TUI.
 4. Select PXE, then click on "Setup Hosted Engine"
 5. Select "No" to _not_ continue to configure the hosted-engine.
 6. Then back to RHEVH TUI.
 7. Try to switch RHEVH TUI menu, example: Status, network...
 
Actually result
1. step 7, current RHEV-H TUI crash, can not change correct tab, such as: Status, RHEVM

Expected result:
1. step 7, TUI not crash, still can change the menu smoothly.

Additional:
can open another ssh to access this RHEVH TUI again, no crash.

#for this action, tail to fetch the log generation
#tail -f ovirt-node.log
2015-03-18 09:00:01,442    WARNING No widget for path action.setupengine
2015-03-18 09:00:01,443    WARNING No widget for path action.setupengine
2015-03-18 09:00:01,445       INFO Saving Hosted Engine Config
2015-03-18 09:00:01,445       INFO Wrote hosted engine install configuration to /tmp/tmpLr9sYm
2015-03-18 09:00:01,445       INFO Exception on TUI!
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ovirt/node/setup/hostedengine/hosted_engine_page.py", line 219, in show_dialog
  File "/usr/lib/python2.6/site-packages/ovirt/node/plugins.py", line 564, in __getitem__
KeyError: 'download.progress'
2015-03-18 09:00:08,064       INFO Changes were merged successfully

Comment 1 Ying Cui 2015-03-18 09:12:35 UTC
Created attachment 1003102 [details]
varlog.tar.gz

Comment 2 Ying Cui 2015-03-18 09:13:32 UTC
Created attachment 1003104 [details]
screenshot for current TUI crash

Comment 3 Ying Cui 2015-03-18 09:16:06 UTC
Need to consider fix it in rhev 3.5.1. Thanks.

Comment 4 Ying Cui 2015-03-18 12:36:11 UTC
Created attachment 1003202 [details]
TUI crash

During more testing, RHEV-H TUI crash after interrupting hosted-engine configuration process no matter in which step to interrupt hosted-engine setup processing.
In other words, any interruption in place during hosted-engine configuration, will cause the TUI to crash.

Comment 5 Douglas Schilling Landgraf 2015-03-18 12:43:06 UTC
The last fix in ovirt-node-plugin-hosted-engine should fix this issue. I cannot reproduce the bug using ovirt-node-plugin-hosted-engine-0.2.0-11.0.

Comment 6 Fabian Deutsch 2015-03-18 13:07:40 UTC

*** This bug has been marked as a duplicate of bug 1201632 ***

Comment 7 Ying Cui 2015-03-30 03:53:40 UTC
Since this bug is closed as duplicate of bug 1201632 which is fixed yet.
And this bug is with different test steps to bug 1201632, so I retest this bug.

# rpm -q ovirt-node ovirt-node-plugin-hosted-engine 
ovirt-node-3.2.2-1.el6.noarch
ovirt-node-plugin-hosted-engine-0.2.0-13.0.el6ev.noarch
# cat /etc/system-release
Red Hat Enterprise Virtualization Hypervisor 6.6 (20150327.0.el6ev)

This bug is fixed. If interrupt in place during hosted-engine configuration, then return rhevh TUI, and UI will not crash, can switch the tui menu smoothly.