Bug 988982

Summary: oVirt 3.3 Node: 3.0.0-5.0.5 - TUI - No plugins installed throws IndexError('list index out of range')
Product: [Retired] oVirt Reporter: Douglas Schilling Landgraf <dougsland>
Component: ovirt-nodeAssignee: Ryan Barry <rbarry>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3CC: acathrow, bazulay, iheim, jboggs, mburns, mgoldboi, ovirt-bugs, ovirt-maint, sbonazzo, yeylon
Target Milestone: ---   
Target Release: 3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: node
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-27 09:58:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.