Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1127201

Summary: edit-node:Thrown NameError: global name 'options' is not defined in in _cleanup_editing
Product: Red Hat Enterprise Virtualization Manager Reporter: haiyang,dong <hadong>
Component: ovirt-nodeAssignee: Fabian Deutsch <fdeutsch>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 3.5.0CC: cshao, dfediuck, ecohen, gklein, gouyang, hadong, huiwa, iheim, leiwang, ycui
Target Milestone: ---Keywords: AutomationBlocker, TestBlocker
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: node
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-11 21:00:46 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:
Bug Depends On: 1097295    
Bug Blocks: 1094719, 1142923, 1147536, 1156165, 1164308, 1164311    

Description haiyang,dong 2014-08-06 11:36:09 UTC
Description of problem:
Thrown NameError: global name 'options' is not defined in  in _cleanup_editing:
[root@dhcp-8-228 edit-node]# edit-node --repo=edit-node.repo --install=ovirt-node-plugin-ipmi-3.1.0-0.7.20140806gitef5c5cb.el7.noarch.rpm rhev-hypervisor7-7.0-20140714.0.iso 
Warning: the state of SELinux is disabled
Installing Packages
Setting Up DNS For Chroot
Configuring Yum Repo
WARNING: rpm directory /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 does not exist
Running Yum Install
Examining /tmp/yumrepo/ovirt-node-plugin-ipmi-3.1.0-0.7.20140806gitef5c5cb.el7.noarch.rpm: ovirt-node-plugin-ipmi-3.1.0-0.7.20140806gitef5c5cb.el7.noarch
Marking /tmp/yumrepo/ovirt-node-plugin-ipmi-3.1.0-0.7.20140806gitef5c5cb.el7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check

Cleaning Up Yum Configuration
Traceback (most recent call last):
  File "/usr/sbin/edit-node", line 1753, in <module>
  File "/usr/sbin/edit-node", line 1558, in main
    if not editor._install_pkgs(options):
  File "/usr/sbin/edit-node", line 903, in _install_pkgs
  File "/usr/sbin/edit-node", line 1128, in _cleanup_editing
    if self.item and os.path.exists(options.repo):
NameError: global name 'options' is not defined

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Comment 4 haiyang,dong 2014-10-08 10:55:13 UTC
This bug has been fixed in the follow version:

so change the status into "VERIFIED".

Comment 7 errata-xmlrpc 2015-02-11 21:00:46 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.