Bug 43711 - school installer fails on typo (TypeError: not enough arguments for format string Execution of command 'schoolinstaller/get/schoolinfo)
school installer fails on typo (TypeError: not enough arguments for format st...
Status: CLOSED DUPLICATE of bug 43389
Product: UCS@school
Classification: Unclassified
Component: UMC - Installer
UCS@school 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks: 43712
  Show dependency treegraph
 
Reported: 2017-03-03 11:24 CET by Daniel Tröder
Modified: 2023-06-12 15:39 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?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.343
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 Daniel Tröder univentionstaff 2017-03-03 11:24:13 CET
When running the installer of UCS@school 4.2 v1 on a slave to create an educational server:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 247, in execute
    function.__func__(self, request, *args, **kwargs)
  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 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/schoolinstaller/__init__.py", line 405, in get_schoolinfo
    return self._umc_master(username, password, master, 'schoolinstaller/get/schoolinfo/master', {'school': school})
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/schoolinstaller/__init__.py", line 459, in _umc_master
    return umc(username, password, master, uri, data).result
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/schoolinstaller/__init__.py", line 138, in umc
    MODULE.info('Executing on %r: %r %r flavor=%r options=%r' % (master, path, flavor, options))
TypeError: not enough arguments for format string
 Execution of command 'schoolinstaller/get/schoolinfo' has failed:


Fix:

138c138
< 	MODULE.info('Executing on %r: %r %r flavor=%r options=%r' % (master, path, flavor, options))
---
> 	MODULE.info('Executing on %r as %r: %r flavor=%r options=%r' % (master, username, path, flavor, options))
Comment 1 Florian Best univentionstaff 2017-03-03 11:39:54 CET

*** This bug has been marked as a duplicate of bug 42408 ***
Comment 2 Florian Best univentionstaff 2017-03-03 13:03:17 CET

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