Bug 36873 - setup basesystem without FQDN: "NoneType object has no attribute split"
setup basesystem without FQDN: "NoneType object has no attribute split"
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: System setup
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-0-errata
Assigned To: Erik Damrose
Stefan Gohmann
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-19 13:42 CET by Erik Damrose
Modified: 2014-12-04 12:23 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 Erik Damrose univentionstaff 2014-11-19 13:42:49 CET
In appliance mode i chose basesystem and wanted to start the provisioning.
The hostname textfield has the description "Enter hostname or FQDN". I just entered a hostname "basesystem".
However, i received the error "NoneType object has no attribute split" when trying to start the provisioning

When entering "basesystem.ucs.local" everything works fine.
Comment 1 Erik Damrose univentionstaff 2014-11-19 13:47:54 CET
This happened in appliance mode
Comment 2 Erik Damrose univentionstaff 2014-11-20 11:02:28 CET
Traceback from management-console-module-setup.log:

20.11.14 05:47:37.541  MODULE      ( WARN    ) : Lookup for nameserver 208.67.222.222 timed out: 
20.11.14 05:47:37.625  MODULE      ( WARN    ) : Exception during saving the settings: 'NoneType' object has no attribute 'split'
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "/usr/lib/pymodules/python2.7/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/__init__.py", line 244, in _thread
    util.auto_complete_values_for_join(values, self._very_first_locale)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/util.py", line 150, in auto_complete_values_for_join
    newValues['domainname'] = get_ucs_domain(newValues.get(nameserver, ucr.get(nameserver)))
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/util.py", line 792, in get_ucs_domain
    domain = get_domain(nameserver)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/util.py", line 798, in get_domain
    master = get_master(nameserver)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/util.py", line 808, in get_master
    reverse_address = dns.reversename.from_address(nameserver)
  File "/usr/lib/python2.7/dist-packages/dns/reversename.py", line 43, in from_address
    parts = ['%d' % ord(byte) for byte in dns.ipv4.inet_aton(text)]
  File "/usr/lib/python2.7/dist-packages/dns/ipv4.py", line 41, in inet_aton
    parts = text.split('.')
AttributeError: 'NoneType' object has no attribute 'split'
Comment 3 Erik Damrose univentionstaff 2014-11-26 16:23:09 CET
r56190 univention-system-setup 8.1.65-10.797.201411261607
r56194 2014-11-21-univention-system-setup.yaml

- Let a basesystem be configured without a valid domainname
- A new script in cleanup-post removes u-s-s-boot and other unnecessary packages at this late stage to not uninstall umc-server while setup is running. I did not move around things to much for other roles to prevent regressions.
Comment 4 Stefan Gohmann univentionstaff 2014-11-28 08:26:01 CET
Tests Appliance: OK

Tests Installation: OK

Code review: OK

Upgrade: OK

YAML: OK
Comment 5 Moritz Muehlenhoff univentionstaff 2014-12-04 12:23:09 CET
http://errata.univention.de/ucs/4.0/2.html