Bug 1151906 - Thrown nameerror:global name 'Feature' is not defined when using "ovirt-node-features dumpxml"
Summary: Thrown nameerror:global name 'Feature' is not defined when using "ovirt-node-...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-node
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.6.0
Assignee: Anatoly Litovsky
QA Contact: Virtualization Bugs
URL:
Whiteboard: node
Depends On: 1118952
Blocks: 1120565
TreeView+ depends on / blocked
 
Reported: 2014-10-13 02:47 UTC by haiyang,dong
Modified: 2016-02-10 20:08 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1118952
Environment:
Last Closed: 2015-02-13 11:39:24 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


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

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.


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