Bug 1151906

Summary: Thrown nameerror:global name 'Feature' is not defined when using "ovirt-node-features dumpxml"
Product: Red Hat Enterprise Virtualization Manager Reporter: haiyang,dong <hadong>
Component: ovirt-nodeAssignee: Anatoly Litovsky <tlitovsk>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.5.0CC: bugs, cshao, ecohen, fdeutsch, gklein, gouyang, hadong, huiwa, iheim, leiwang, lsurette, mgoldboi, ovirt-bugs, rbalakri, ycui, yeylon
Target Milestone: ---   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: node
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1118952 Environment:
Last Closed: 2015-02-13 11:39:24 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: 1118952    
Bug Blocks: 1120565    

Description haiyang,dong 2014-10-13 02:47:29 UTC
+++ This bug was initially created as a clone of Bug #1118952 +++

Description of problem:
when using "ovirt-node-features dumpxml" to dump all know ovirt-node features to stdout
failed with follow error info:
[root@dhcp-66-73-241 admin]# ovirt-node-features dumpxml
Traceback (most recent call last):
  File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
  File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code
  File "/usr/lib/python2.6/site-packages/ovirt/node/tools/features.py", line 94, in <module>
  File "/usr/lib/python2.6/site-packages/ovirt/node/setup/hostedengine/__init__.py", line 34, in createPluginFeatures
    application.register(Feature(owner=Owner(name=__package__),
NameError: global name 'Feature' is not defined

Version-Release number of selected component (if applicable):
ovirt-node-iso-3.5.0.ovirt35.20140707.el6.iso

How reproducible:
100%


Steps to Reproduce:


Actual results:


Expected results:


Additional info:

Comment 1 haiyang,dong 2014-10-13 02:49:37 UTC
This bug could be reproduced in the follow version:
rhevh-7.0-20141006.0.el7ev.iso
ovirt-node-3.1.0-0.20.20141006gitc421e04.el7.noarch

[root@dhcp-8-124 admin]# ovirt-node-features --help
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
  File "/usr/lib/python2.7/site-packages/ovirt/node/tools/features.py", line 94, in <module>
  File "/usr/lib/python2.7/site-packages/ovirt/node/setup/hostedengine/__init__.py", line 34, in createPluginFeatures
NameError: global name 'Feature' is not defined

so need clone it from upstream to track it in rhevh

Comment 2 Fabian Deutsch 2014-10-14 07:18:10 UTC
I believe there is just an import missing.

Comment 3 Fabian Deutsch 2014-10-22 12:41:41 UTC
Moving this out for now, because the command ovirt-node-features is currently not in use.

Comment 4 Fabian Deutsch 2015-02-13 11:39:24 UTC
The ovirt-node-features command was never announced and has no use for now, thus I close this bug for now.