Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1756310

Summary: RHVH 4.4: "nodectl info" display error after RHVH installation
Product: Red Hat Enterprise Virtualization Manager Reporter: cshao <cshao>
Component: redhat-virtualization-hostAssignee: Yuval Turgeman <yturgema>
Status: CLOSED DUPLICATE QA Contact: cshao <cshao>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.4.0CC: cshao, lsvaty, mavital, nlevy, peyu, qiyuan, sbonazzo, weiwang, yaniwang, yturgema
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-30 13:16:10 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:
Attachments:
Description Flags
all log none

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 ***