Bug 46053 - Unjoined backup fails to install
Unjoined backup fails to install
Status: RESOLVED DUPLICATE of bug 45838
Product: UCS
Classification: Unclassified
Component: System setup
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks: 45341
  Show dependency treegraph
 
Reported: 2018-01-16 11:44 CET by Philipp Hahn
Modified: 2018-04-14 13:37 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.514
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 2018-01-16 11:44:47 CET
UCS 4.2-3 Generic-unsafe KVM template
IP=static 10.200.17.32/24, DNS=192.168.0.3
"Join into existing domain"
Backup
Unselect "Join during setup"
No components selected

> Ein Fehler ist aufgetreten
> Could not process the request
> Die Ausführung des Kommandos setup/validate wizard ist fehlgeschlagen:
>
>Traceback (most recent call last):
>  File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 250, in execute
>    function.__func__(self, request, *args, **kwargs)
>  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 318, in _response
>    result = _multi_response(self, request)
>  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 192, in _response
>    return function(self, request)
>  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 440, in _response
>    return list(function(self, iterator, *nones))
>  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 286, in _fake_func
>    yield function(self, *args)
>  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/__init__.py", line 398, in validate
>    _check('domainname', util.is_domainname, _("Please enter a valid fully qualified domain name (e.g. host.example.com)."))
>  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/__init__.py", line 379, in _check
>    if not check(values[key]):
>  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/util.py", line 851, in is_domainname
>    return all(is_domainname.RE.match(_) for _ in domainname.split('.'))
>AttributeError: 'bool' object has no attribute 'split'


curl 'http://localhost/univention/command/setup/validate' -H 'Host: localhost' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0' -H 'Accept: application/json; q=1.0, text/html; q=0.3; */*; q=0.1' -H 'Accept-Language: de-DE' --compressed -H 'X-XSRF-Protection: 5ade0a2f-0da2-42d1-90ac-175d1ff68002' -H 'Content-Type: application/json' -H 'X-Requested-With: XMLHttpRequest' -H 'Referer: http://localhost/univention/setup/?username=__systemsetup__&password=9cP9itASazH0PQU1VhBJNe8KavDgaR&lang=en_US' -H 'Content-Length: 539' -H 'Cookie: UMCSessionId=5ade0a2f-0da2-42d1-90ac-175d1ff68002' -H 'Connection: keep-alive'

{"options":{"values":{"interfaces":{"eth0":{"name":"eth0","interfaceType":"Ethernet","ip4dynamic":false,"ip4":[["10.200.17.32","24"]],"ip6":[]}},"interfaces/primary":"eth0","server/role":"domaincontroller_backup","components":[],"locale/default":"de_DE.UTF-8:UTF-8","timezone":"Europe/Berlin","xorg/keyboard/options/XkbLayout":"de","gateway":"10.200.17.1","nameserver1":"192.168.0.3","start/join":false,"hostname":"qa32","root_password":"univention","update/system/after/setup":true,"domainname":true,"ad/member":false}},"flavor":"wizard"}
Comment 1 Florian Best univentionstaff 2018-01-16 11:49:52 CET

*** This bug has been marked as a duplicate of bug 45838 ***
Comment 2 Philipp Hahn univentionstaff 2018-01-16 12:26:44 CET
usr/share/univention-system-setup/www/ApplianceWizard.js:
2718 »···»···»···if (pageName == 'credentials-ad' || pageName == 'credentials-nonmaster') {
                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ true
2719 »···»···»···»···return this.standbyDuring(this._checkCredentials().then(lang.hitch(this, function(domain) {
2720:»···»···»···»···»···this._domainName = domain;
                                            ^^^^^^ true
...
2982:»···»···»···»···if (this._domainName) {
2983:»···»···»···»···»··· vals.domainname = this._domainName;
2985:»···»···»···»···»···»···vals['ldap/base'] = this._computeLDAPBase(this._domainName);

Code changed by eedc7f933a96d8edaa4d620a4521b5ab49245680 for Bug #44448, so maybe already fixed?

By why is that darned thing checking credentials if I explicitly told it to NOT join sturing setup?
Comment 3 Florian Best univentionstaff 2018-01-16 12:31:00 CET
Yes, it was a typo in an interim version (Bug 45838 comment 6).
Bug #44448 fixed it.