Bug 988982 - oVirt 3.3 Node: 3.0.0-5.0.5 - TUI - No plugins installed throws IndexError('list index out of range')
Summary: oVirt 3.3 Node: 3.0.0-5.0.5 - TUI - No plugins installed throws IndexError('l...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-node
Version: 3.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.3
Assignee: Ryan Barry
QA Contact:
URL:
Whiteboard: node
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-26 20:34 UTC by Douglas Schilling Landgraf
Modified: 2013-11-27 09:58 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-11-27 09:58:15 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 17549 0 None None None Never

Description Douglas Schilling Landgraf 2013-07-26 20:34:29 UTC
Description of problem:

ovirt-node-iso-3.0.0-5.0.5.vdsm.fc19.iso

In TUI if users reach the option Plugins and there is no plugins installed it goes to shell with error IndexError('list index out of range').

How reproducible:

- Install ovirt-node-iso-3.0.0-5.0.5.vdsm.fc19.iso
- Go to plugins option in TUI

Comment 1 Mike Burns 2013-07-26 20:36:34 UTC
The problem here is that plugins were installed at the original iso boot time, rather than through edit-node.  The way we currently figure out the plugins is based on the files in /etc/ovirt-plugins.d.  

We need to be smarter about this and possibly check the plugin meta-data instead.

Comment 2 Ryan Barry 2013-08-01 15:30:02 UTC
A fix for this has been posted to oVirt Gerrit.

Instead of optimistically parsing files, we'll try to parse it as an edit-node-added plugin. If that fails, figure out which RPM owns the file. If that fails, fall through, but don't throw an exception.

Comment 3 Joey Boggs 2013-08-01 19:54:49 UTC
http://gerrit.ovirt.org/17549

Comment 4 Sandro Bonazzola 2013-11-27 09:58:15 UTC
A new node iso has been released with oVirt 3.3.1, closing.


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