Bug 50082

Summary: univention-app reinitialize does not work on non-master roles
Product: UCS Reporter: Johannes Keiser <keiser>
Component: App CenterAssignee: Dirk Wiesenthal <wiesenthal>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P5 CC: botner, wiesenthal
Version: UCS 4.4   
Target Milestone: UCS 4.4-1-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: Development Internal What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
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:

Description Johannes Keiser univentionstaff 2019-08-29 12:02:13 CEST
univention-app reinitialize does not work on non-master roles due to missing credentials
Comment 1 Dirk Wiesenthal univentionstaff 2019-08-29 12:05:10 CEST
Fixed in
  univention-appcenter 8.0.11-54A~4.4.0.201908291203
Comment 2 Felix Botner univentionstaff 2019-09-02 12:24:25 CEST
(1)

Reinitialize removes the old containers AND the images. Only to (re) pull the image in the next step. Please do not remove the image during "Reinitialize".

(2)

The test in my member server succeeds, but i get 

 Digest: sha256:5fe9719aca95e32fd7243b9ae5623a52896aa33cea3513e420dcb3ca993102f8
Status: Image is up to date for docker-test.software-univention.de/alpine:3.6
Initializing app image
list index out of range
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace
    result = self.main(namespace)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/reinitialize.py", line 79, in main
    self._upgrade_image(app, _args)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/docker_upgrade.py", line 184, in _upgrade_image
    self._install_new_app(app, args)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/docker_upgrade.py", line 68, in _install_new_app
    return Install._do_it(self, app, args)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/docker_install.py", line 71, in _do_it
    ret = super(Install, self)._do_it(app, args)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/install.py", line 111, in _do_it
    if self._install_app(app, args):
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/docker_install.py", line 65, in _install_app
    self._start_docker_image(app, hostdn, password, args)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/docker_base.py", line 160, in _start_docker_image
    hostname = explode_dn(hostdn, 1)[0]
IndexError: list index out of range
Traceback (most recent call last):

in the output, what is that?
Comment 3 Dirk Wiesenthal univentionstaff 2019-09-03 14:49:07 CEST
Fixed in
  univention-appcenter 8.0.11-56A~4.4.0.201909021453

univention-app upgrade now has --do-not-remove-images (and reinitialize uses it)
Comment 4 Felix Botner univentionstaff 2019-09-03 18:09:35 CEST
OK - (1)
OK - (2)
OK - test
OK - yaml
Comment 5 Arvid Requate univentionstaff 2019-09-04 15:48:15 CEST
<http://errata.software-univention.de/ucs/4.4/248.html>