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:
Embargoed:
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 
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
['ovirt-node-plugin-ipmi-3.1.0-0.7.20140806gitef5c5cb.el7.noarch.rpm']
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
.....
Complete!

Cleaning Up Yum Configuration
Traceback (most recent call last):
  File "/usr/sbin/edit-node", line 1753, in <module>
    sys.exit(main())
  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
    self._cleanup_editing()
  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):
ovirt-node-tools-3.1.0-0.7.20140806gitef5c5cb.el7.noarch.rpm
ovirt-node-minimizer-3.1.0-0.7.20140806gitef5c5cb.el7.noarch.rpm

How reproducible:
100%


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:
rhev-hypervisor7-7.0-20141006.0.el7ev.noarch
ovirt-node-3.1.0-0.20.20141006gitc421e04.el7.noarch
ovirt-node-tools-3.1.0-0.20.20141006gitc421e04.el7.noarch

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.

https://rhn.redhat.com/errata/RHEA-2015-0160.html