Bug 38861 - /etc/issue shows a traceback when no interface is set up
/etc/issue shows a traceback when no interface is set up
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Docker
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.1
Assigned To: Daniel Tröder
Florian Best
: interim-2
Depends on:
Blocks: 38887
  Show dependency treegraph
 
Reported: 2015-07-08 15:16 CEST by Dirk Wiesenthal
Modified: 2015-11-17 12:12 CET (History)
2 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 Dirk Wiesenthal univentionstaff 2015-07-08 15:16:09 CEST
Traceback (most recent call last):
  File "<stdin>", line 48, in <module>
AttributeError: 'NoneType' object has no attribute 'ip'

comes from

from univention.config_registry.interfaces import Interfaces
ip = str(Interfaces(configRegistry).get_default_ip_address().ip)

It should test for get_default_ip_address(). In a minimal docker image, a default ip address is not given during start time.
Comment 1 Dirk Wiesenthal univentionstaff 2015-07-08 15:24:58 CEST
Fixed in
  univention-base-files 4.0.7-3.190.201507081521
Comment 2 Florian Best univentionstaff 2015-07-10 13:07:57 CEST
Is it purpose that it is only in the docker scope? Then the TM should be changed to UCS 4.1.?!
Comment 3 Florian Best univentionstaff 2015-09-09 08:34:00 CEST
Please merge to 4.1
Comment 4 Daniel Tröder univentionstaff 2015-09-16 16:57:33 CEST
Merged to 4.1: 63779
Comment 5 Florian Best univentionstaff 2015-10-17 20:55:11 CEST
Merge: OK, Fix: OK
Changelog missing
Comment 6 Daniel Tröder univentionstaff 2015-10-20 12:20:17 CEST
4.1 changelog entry added in r64622.
Comment 7 Florian Best univentionstaff 2015-11-02 12:24:56 CET
OK
Comment 8 Stefan Gohmann univentionstaff 2015-11-17 12:12:01 CET
UCS 4.1 has been released:
 https://docs.software-univention.de/release-notes-4.1-0-en.html
 https://docs.software-univention.de/release-notes-4.1-0-de.html

If this error occurs again, please use "Clone This Bug".