Bug 1201632 - [3.5-6.6]Error appeared when not selected any options in RHEVH hosted engine TUI
Summary: [3.5-6.6]Error appeared when not selected any options in RHEVH hosted engine TUI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-node-plugin-hosted-engine
Version: 3.5.1
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ovirt-3.6.0-rc
: 3.6.0
Assignee: Douglas Schilling Landgraf
QA Contact: Ying Cui
URL:
Whiteboard:
: 1203144 (view as bug list)
Depends On:
Blocks: 1202964 1203087
TreeView+ depends on / blocked
 
Reported: 2015-03-13 07:16 UTC by Ying Cui
Modified: 2016-03-09 14:18 UTC (History)
8 users (show)

Fixed In Version: ovirt-node-plugin-hosted-engine-0.3.0-1.el7ev
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1202964 (view as bug list)
Environment:
Last Closed: 2016-03-09 14:18:03 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
ovirt-node.log (42.30 KB, text/plain)
2015-03-13 07:17 UTC, Ying Cui
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0378 0 normal SHIPPED_LIVE ovirt-node bug fix and enhancement update for RHEV 3.6 2016-03-09 19:06:36 UTC
oVirt gerrit 38756 0 master MERGED he_page: Add validation to self.temp_cfg_file and self._show_progressbar: Never
oVirt gerrit 38808 0 ovirt-3.5 MERGED he_page: Add validation to self.temp_cfg_file and self._show_progressbar: Never

Description Ying Cui 2015-03-13 07:16:56 UTC
Description:
When not selected any options in RHEVH HE TUI, just click on "Setup Hosted Engine" directly in HE TUI, then error occurred.

-----------
An error appeared in the UI: AttributeError("'Plugin' object has no attribute 'temp_cfg_file'",)
Press ENTER to logout ...
or enter 's' to drop to shell
-----------

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. _NOT_ selected any options in TUI, just click on "Setup Hosted Engine" directly.

Test result:
An error appeared.

Expected result:
no such error appeared.  

# ovirt-node.log
<snip>
2015-03-13 07:06:38,631    WARNING No widget for path action.setupengine
2015-03-13 07:06:38,632    WARNING No widget for path action.setupengine
2015-03-13 07:06:38,633       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-13 07:06:39,637      ERROR An error appeared in the UI: AttributeError("'Plugin' object has no attribute 'temp_cfg_file'",)
2015-03-13 07:06:39,637       INFO Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ovirt/node/app.py", line 304, in run
  File "/usr/lib/python2.6/site-packages/ovirt/node/ui/urwid_builder.py", line 441, in run
  File "/usr/lib64/python2.6/site-packages/urwid/main_loop.py", line 271, in run
  File "/usr/lib64/python2.6/site-packages/urwid/raw_display.py", line 241, in run_wrapper
  File "/usr/lib64/python2.6/site-packages/urwid/main_loop.py", line 336, in _run
  File "/usr/lib64/python2.6/site-packages/urwid/main_loop.py", line 707, in run
  File "/usr/lib64/python2.6/site-packages/urwid/main_loop.py", line 786, in _loop
  File "/usr/lib64/python2.6/site-packages/urwid/main_loop.py", line 387, in _update
  File "/usr/lib64/python2.6/site-packages/urwid/main_loop.py", line 487, in process_input
  File "/usr/lib64/python2.6/site-packages/urwid/container.py", line 1102, in keypress
  File "/usr/lib64/python2.6/site-packages/urwid/container.py", line 1559, in keypress
  File "/usr/lib64/python2.6/site-packages/urwid/container.py", line 2240, in keypress
  File "/usr/lib64/python2.6/site-packages/urwid/container.py", line 1102, in keypress
  File "/usr/lib64/python2.6/site-packages/urwid/decoration.py", line 618, in keypress
  File "/usr/lib64/python2.6/site-packages/urwid/container.py", line 1559, in keypress
  File "/usr/lib64/python2.6/site-packages/urwid/container.py", line 1559, in keypress
  File "/usr/lib64/python2.6/site-packages/urwid/decoration.py", line 618, in keypress
  File "/usr/lib64/python2.6/site-packages/urwid/container.py", line 1102, in keypress
  File "/usr/lib/python2.6/site-packages/ovirt/node/ui/widgets.py", line 759, in keypress
  File "/usr/lib64/python2.6/site-packages/urwid/container.py", line 1559, in keypress
  File "/usr/lib64/python2.6/site-packages/urwid/decoration.py", line 833, in keypress
  File "/usr/lib64/python2.6/site-packages/urwid/container.py", line 2240, in keypress
  File "/usr/lib64/python2.6/site-packages/urwid/container.py", line 1559, in keypress
  File "/usr/lib64/python2.6/site-packages/urwid/decoration.py", line 618, in keypress
  File "/usr/lib64/python2.6/site-packages/urwid/wimp.py", line 534, in keypress
  File "/usr/lib64/python2.6/site-packages/urwid/widget.py", line 463, in _emit
  File "/usr/lib64/python2.6/site-packages/urwid/signals.py", line 120, in emit
  File "/usr/lib/python2.6/site-packages/ovirt/node/ui/widgets.py", line 542, in on_click_cb
  File "/usr/lib64/python2.6/site-packages/urwid/signals.py", line 120, in emit
  File "/usr/lib/python2.6/site-packages/ovirt/node/ui/urwid_builder.py", line 111, in on_widget_click_cb
  File "/usr/lib/python2.6/site-packages/ovirt/node/base.py", line 103, in __call__
  File "/usr/lib/python2.6/site-packages/ovirt/node/base.py", line 85, in emit
  File "/usr/lib/python2.6/site-packages/ovirt/node/ui/__init__.py", line 201, in __call__
  File "/usr/lib/python2.6/site-packages/ovirt/node/app.py", line 176, in call_on_ui_save
  File "/usr/lib/python2.6/site-packages/ovirt/node/plugins.py", line 406, in _on_ui_save
  File "/usr/lib/python2.6/site-packages/ovirt/node/setup/hostedengine/hosted_engine_page.py", line 157, in on_merge
  File "/usr/lib/python2.6/site-packages/ovirt/node/setup/hostedengine/hosted_engine_page.py", line 256, in show_dialog
  File "/usr/lib/python2.6/site-packages/ovirt/node/setup/hostedengine/hosted_engine_page.py", line 208, in open_console
AttributeError: 'Plugin' object has no attribute 'temp_cfg_file'
2015-03-13 07:06:48,388       INFO Starting '<module 'ovirt.node.setup' from '/usr/lib/python2.6/site-packages/ovirt/node/setup/__init__.pyc'>' application with '<class 'ovirt.node.ui.urwid_builder.UrwidUIBuilder'>' UI

</snip>

Comment 1 Ying Cui 2015-03-13 07:17:28 UTC
Created attachment 1001282 [details]
ovirt-node.log

Comment 3 Fabian Deutsch 2015-03-18 13:07:40 UTC
*** Bug 1203144 has been marked as a duplicate of this bug. ***

Comment 5 Ying Cui 2015-10-12 06:15:17 UTC
Verified this bug on build:
# rpm -qa ovirt-node ovirt-node-plugin-hosted-engine
ovirt-node-plugin-hosted-engine-0.3.0-1.el7ev.noarch
ovirt-node-3.3.0-0.13.20151008git03eefb5.el7ev.noarch
# cat /etc/rhev-hypervisor-release 
Red Hat Enterprise Virtualization Hypervisor release 7.2 (20151009.0.el7ev)

Test steps:
1. Installed RHEVH 7.2 for 3.6.0 successful.
2. Set network done.
3. Navigate to Hosted Engine TUI.
4. "Deploy Hosted Engine" button
5. Not select any options in TUI, then click on "Deploy"

Here will promote message to ask to must one of options.

Comment 7 errata-xmlrpc 2016-03-09 14:18:03 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


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