Bug 1756310 - RHVH 4.4: "nodectl info" display error after RHVH installation
Summary: RHVH 4.4: "nodectl info" display error after RHVH installation
Keywords:
Status: CLOSED DUPLICATE of bug 1756783
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: redhat-virtualization-host
Version: 4.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Yuval Turgeman
QA Contact: cshao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-27 11:03 UTC by cshao
Modified: 2019-09-30 13:16 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-30 13:16:10 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
all log (614.90 KB, application/gzip)
2019-09-27 11:08 UTC, cshao
no flags Details

Description cshao 2019-09-27 11:03:10 UTC
Description of problem:
Command "nodectl info" display error after RHVH installation,

# nodectl info
/usr/lib64/python3.6/re.py:212: FutureWarning: split() requires a non-empty pattern match.
  return _compile(pattern, flags).split(string, maxsplit)
bootloader: 
  default: rhvh-4.4.0.3-0.20190926.0 (4.18.0-146.el8.x86_64)
  entries: 
Traceback (most recent call last):
  File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.6/site-packages/nodectl/__main__.py", line 42, in <module>
    CliApplication()
  File "/usr/lib/python3.6/site-packages/nodectl/__init__.py", line 200, in CliApplication
    return cmdmap.command(args)
  File "/usr/lib/python3.6/site-packages/nodectl/__init__.py", line 118, in command
    return self.commands[command](**kwargs)
  File "/usr/lib/python3.6/site-packages/nodectl/__init__.py", line 76, in info
    Info(self.imgbased, self.machine).write()
  File "/usr/lib/python3.6/site-packages/nodectl/info.py", line 102, in write
    pretty_print(k)
  File "/usr/lib/python3.6/site-packages/nodectl/info.py", line 87, in pretty_print
    pretty_print(item, indent+2)
  File "/usr/lib/python3.6/site-packages/nodectl/info.py", line 85, in pretty_print
    items.sort(key=lambda x: x[1]["index"])
AttributeError: 'dict_items' object has no attribute 'sort'



Version-Release number of selected component (if applicable):
redhat-virtualization-host-4.4.0-20190926.1.el8_1
imgbased-1.2.4-0.1.el8ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install RHVH-4.4-20190926.3-RHVH-x86_64-dvd1.iso via anaconda GUI.
2. Reboot
3. Login RHVH and check "nodectl info".

Actual results:
"nodectl info" display error after RHVH installation

Expected results:
"nodectl info" display correct.

Additional info:

Comment 1 cshao 2019-09-27 11:08:26 UTC
Created attachment 1620007 [details]
all log

Comment 2 Sandro Bonazzola 2019-09-30 13:16:10 UTC

*** This bug has been marked as a duplicate of bug 1756783 ***


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