Univention Bugzilla – Bug 50536
AttributeError: 'NoneType' object has no attribute 'features'
Last modified: 2023-06-28 10:46:22 CEST
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'
Hello Mr. Best, if You want me to provide additional information or logs please feel free to contact me. Best regards, Christoph Daxl
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, '')
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
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.
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.