Bug 50536 - AttributeError: 'NoneType' object has no attribute 'features'
AttributeError: 'NoneType' object has no attribute 'features'
Status: CLOSED WONTFIX
Product: UCS
Classification: Unclassified
Component: Virtualization - UVMM
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on: 48024
Blocks:
  Show dependency treegraph
 
Reported: 2019-11-23 20:17 CET by Florian Best
Modified: 2023-06-28 10:46 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2019-11-23 20:17:07 CET
We got a report about an error in UCS 4-2-errata374 when provisioning a VM on a DC Backup:

2019-11-23 10:48:48,625 - uvmmd.unix - ERROR - [228] Exception: 'NoneType' object has no attribute 'features'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/univention/uvmm/unix.py", line 148, in handle_command
    res = cmd(self, command)
  File "/usr/lib/python2.7/dist-packages/univention/uvmm/commands.py", line 399, in DOMAIN_DEFINE
    uuid, warnings = node.domain_define(request.uri, request.domain)
  File "/usr/lib/python2.7/dist-packages/univention/uvmm/node.py", line 1818, in domain_define
    new_xml, live_updates = _domain_edit(node, domain, old_xml)
  File "/usr/lib/python2.7/dist-packages/univention/uvmm/node.py", line 1574, in _domain_edit
    for f_name in template.features:
AttributeError: 'NoneType' object has no attribute 'features'
Comment 1 christoph.daxl 2019-11-25 17:05:55 CET
Hello Mr. Best,

if You want me to provide additional information or logs please feel free to contact me.

Best regards,

Christoph Daxl
Comment 2 Florian Best univentionstaff 2019-11-25 17:15:32 CET
Thank you Mr. Daxl,

I think the error is currently clear, so I think no further information are necessary.

It was introduced by git:fd41731ab2d74e5bf0d4d5be2894db374c8dfd91 at Bug #48024:

virtualization/univention-virtual-machine-manager-daemon/src/univention/uvmm/node.py
-       if defaults and template and template.features:
-               domain_features = _update_xml(domain, 'features', '')
+       domain_features = _update_xml(domain, 'features', '')
+       if defaults and template and template.features or dom_stat.hyperv:
                for f_name in template.features:
                        _update_xml(domain_features, f_name, '')
Comment 3 christoph.daxl 2019-12-13 16:14:49 CET
Hello Mr. Best, 

I would like to know if there are any updates on this issue. In the meantime UCS 4.4.3 has been released, maybe the issue is fixed in this one? 

Best regards,

Christoph Daxl
Comment 4 Florian Best univentionstaff 2019-12-13 16:16:49 CET
No, unfortionately the bug still persists. I can't tell when it's going to be fixed, as this is the decision by our product owner.
The bug is added to his backlog.
Comment 5 Philipp Hahn univentionstaff 2023-06-28 10:44:07 CEST
UVMM and virtualization with UCS is deprecated and will no longer be developed in UCS 4.4; they have already been removed from UCS 5.0.