Bug 39224 - UVMM: 'NoneType' object has no attribute '__getitem__'
UVMM: 'NoneType' object has no attribute '__getitem__'
Status: CLOSED WONTFIX
Product: UCS
Classification: Unclassified
Component: UMC - Virtual machines (UVMM)
UCS 4.3
Other Linux
: P4 normal (vote)
: UCS 4.x
Assigned To: UMC maintainers
:
: 33932 42762 44439 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-20 08:37 CEST by Florian Best
Modified: 2023-06-28 10:51 CEST (History)
6 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
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.114
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2019022821000601, 2017012621000316, 2016102121000168, 2017040221000114
Bug group (optional): Error handling, External feedback
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 2015-08-20 08:37:28 CEST
We received the following traceback, 4.0-3 errata285 (Walle):

Execution of command 'uvmm/domain/put' has failed:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 282, in execute
    function(self, request)
  File "%PY2.7%/univention/management/console/modules/uvmm/domains.py", line 479, in domain_add
    for disk in domain['disks']
  File "%PY2.7%/univention/management/console/modules/uvmm/domains.py", line 322, in _create_disk
    pool_type = pool['type']
TypeError: 'NoneType' object has no attribute '__getitem__'
Comment 1 Florian Best univentionstaff 2015-10-14 12:06:39 CEST
Reported again, 4.0-3 errata336 (Walle)

Remark:
Es konnte einer virtuellen Maschine kein Netzwerkadapter vom Typ NAT hinzugefügt werden
Comment 2 Florian Best univentionstaff 2016-04-12 08:27:37 CEST
Reported again.

Version: 4.1-1 errata140 (Vahr)

Remark: zwei bridge adapter,  welche auf dem ucs host keine IP besitzen, einer VM zugeordnet (als virtio). die bridges zeigen direkt jeweils auf einen eth device (intel dual port adapter).
Comment 3 Florian Best univentionstaff 2016-07-25 13:52:00 CEST
Reported again, 4.1-2 errata211 (Vahr)
Comment 4 Jens Thorp-Hansen univentionstaff 2016-09-05 14:10:09 CEST
Happend again in our own testenvironment: Ticket#2016090521000478
Comment 5 Florian Best univentionstaff 2017-02-02 12:39:45 CET
Reported again, 4.1-4 errata380

1) steps to reproduce the failure
Change CD-ROM media on a running server to “None"

2) expected result
Ejected CD-ROM image

3) actual result
Error
Comment 6 Philipp Hahn univentionstaff 2018-05-30 10:29:08 CEST
Again 4.3-0 @ laiva

Killing the UMC-UVMM process helped after the pool was manually started using "virsh pool-start".

sudo pkill -f '/usr/bin/python2.7 /usr/sbin/univention-management-console-module -m uvmm'
Comment 7 Philipp Hahn univentionstaff 2018-05-30 10:29:36 CEST
*** Bug 42762 has been marked as a duplicate of this bug. ***
Comment 8 Philipp Hahn univentionstaff 2018-05-30 10:29:53 CEST
*** Bug 44439 has been marked as a duplicate of this bug. ***
Comment 9 Philipp Hahn univentionstaff 2018-09-27 10:20:59 CEST
*** Bug 33932 has been marked as a duplicate of this bug. ***
Comment 10 Johannes Keiser univentionstaff 2019-03-25 14:45:17 CET
Reported again: Version: 4.2-5 errata567 (Lesum)

Interner Server-Fehler in "uvmm/domain/put".
Request: uvmm/domain/put

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 253, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/uvmm/domains.py", line 439, in domain_add
    for disk in domain['disks']
  File "%PY2.7%/univention/management/console/modules/uvmm/domains.py", line 292, in _create_disk
    pool_type = pool['type']
TypeError: 'NoneType' object has no attribute '__getitem__'

Role: domaincontroller_backup
Comment 11 christoph.daxl 2019-11-23 12:19:54 CET
Hallo,

bekomme ähnlichen Fehler auf 4-2 errata374 bei der Provisionierung einer VM auf unserem Backup-DC.

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 12 Florian Best univentionstaff 2019-11-23 20:17:55 CET
(In reply to christoph.daxl from comment #11)
> Hallo,
> 
> bekomme ähnlichen Fehler auf 4-2 errata374 bei der Provisionierung einer VM
> auf unserem Backup-DC.
> AttributeError: 'NoneType' object has no attribute 'features'
Thanks, this is a different issue, I created Bug #50536 for it.
Comment 13 Ingo Steuwer univentionstaff 2021-05-14 13:48:00 CEST
This issue has been filed against UCS 4.3.

UCS 4.3 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.