Bug 1724981

Summary: nodectl info fails on python3 / fc29
Product: [oVirt] ovirt-node Reporter: Sandro Bonazzola <sbonazzo>
Component: GeneralAssignee: Nir Levy <nlevy>
Status: CLOSED DUPLICATE QA Contact: cshao <cshao>
Severity: urgent Docs Contact:
Priority: high    
Version: masterCC: bugs, cshao, lsvaty, mavital, nlevy, pasik, qiyuan, sbonazzo, weiwang, yaniwang, yturgema
Target Milestone: ovirt-4.4.0Keywords: Regression
Target Release: ---Flags: sbonazzo: ovirt-4.4?
sbonazzo: planning_ack?
sbonazzo: devel_ack+
cshao: testing_ack+
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-07-31 09:21:41 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:    
Bug Blocks: 1460625    

Description Sandro Bonazzola 2019-06-28 08:00:35 UTC
Installed fc29 iso from: https://jenkins.ovirt.org/job/ovirt-node-ng-image_standard-check-patch/61/artifact/check-patch.fc29.x86_64/ovirt-node-ng-installer-4.4.0-2019062608.fc29.iso

# rpm -qvf `which nodectl`
ovirt-node-ng-nodectl-4.4.0-0.20190614.0.fc29.noarch


# nodectl info
Traceback (most recent call last):
  File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.7/site-packages/nodectl/__main__.py", line 42, in <module>
    CliApplication()
  File "/usr/lib/python3.7/site-packages/nodectl/__init__.py", line 200, in CliApplication
    return cmdmap.command(args)
  File "/usr/lib/python3.7/site-packages/nodectl/__init__.py", line 118, in command
    return self.commands[command](**kwargs)
  File "/usr/lib/python3.7/site-packages/nodectl/__init__.py", line 76, in info
    Info(self.imgbased, self.machine).write()
  File "/usr/lib/python3.7/site-packages/nodectl/info.py", line 46, in __init__
    self._fetch_information()
  File "/usr/lib/python3.7/site-packages/nodectl/info.py", line 49, in _fetch_information
    self._get_bootloader_info()
  File "/usr/lib/python3.7/site-packages/nodectl/info.py", line 62, in _get_bootloader_info
    bootinfo["entries"][k] = v.__dict__
AttributeError: 'list' object has no attribute '__dict__'

Comment 1 Yuval Turgeman 2019-07-30 10:16:13 UTC
What version is this ? I think it was fixed in https://gerrit.ovirt.org/#/c/101731/

Comment 2 Yuval Turgeman 2019-07-30 10:25:45 UTC
yes pretty sure this is a duplicate of bug 1728998

Comment 3 Yuval Turgeman 2019-07-31 09:21:41 UTC

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

Comment 4 Sandro Bonazzola 2019-10-22 06:28:37 UTC
(In reply to Yuval Turgeman from comment #1)
> What version is this ? I think it was fixed in
> https://gerrit.ovirt.org/#/c/101731/

ovirt-node-ng-nodectl-4.4.0-0.20190614.0.fc29.noarch
fix was merged in July, so yes, it's fixed now.