Bug 23529 - traceback: AttributeError: 'NoneType' object has no attribute 'lookupByUUIDString'
traceback: AttributeError: 'NoneType' object has no attribute 'lookupByUUIDSt...
Status: CLOSED DUPLICATE of bug 35354
Product: UCS
Classification: Unclassified
Component: Virtualization - UVMM
UCS 2.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Bugzilla Mailingliste
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-06 12:54 CEST by Philipp Hahn
Modified: 2023-06-28 10:46 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
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 Philipp Hahn univentionstaff 2011-09-06 12:54:37 CEST
2011-09-06 11:46:05,368 - uvmmd.unix - ERROR - [9] Exception: Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/univention/uvmm/unix.py", line 150, in handle_command
    res = cmd(self, command)
  File "/usr/lib/python2.4/site-packages/univention/uvmm/commands.py", line 297, in DOMAIN_UPDATE
    node.domain_update(request.domain)
  File "/usr/lib/python2.4/site-packages/univention/uvmm/node.py", line 1427, in domain_update
    dom = conn.lookupByUUIDString(domain)
AttributeError: 'NoneType' object has no attribute 'lookupByUUIDString'


Ursache ist das nach einem Fehler mit der Verbindung Node.conn=None gesetzt wird, was dann trotzdem ohne Überprüfung von den ganzen domain_*()-Funktionen genutzt wird. Hier wäre folgendes zu ergänzen:
  if conn is None:
    raise NodeError(_('Node is currently unconnected.'))
Comment 1 Stefan Gohmann univentionstaff 2016-04-25 07:52:34 CEST
This issue has been filed against UCS 2.4.

UCS 2.4 is out of maintenance and many UCS components have vastly 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".
In this case please provide detailed information on how this issue is affecting
you.
Comment 2 Florian Best univentionstaff 2016-05-27 11:21:40 CEST

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