Bug 46703

Summary: univention-upgrade may exit with an error when upgrading certain Apps
Product: UCS Reporter: Dirk Wiesenthal <wiesenthal>
Component: App CenterAssignee: Dirk Wiesenthal <wiesenthal>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P5 CC: botner
Version: UCS 4.2   
Target Milestone: UCS 4.2-3-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: Bug Report What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains How will those affected feel about the bug?: 4: A User would return the product
User Pain: 0.229 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:
Bug Depends on: 46684    
Bug Blocks:    

Description Dirk Wiesenthal univentionstaff 2018-03-20 11:43:12 CET
Happened during 4.2 -> 4.3 upgrade. Backporting.

+++ This bug was initially created as a clone of Bug #46684 +++

The error is in docker_base.py (_execute_container_script):

with open(password_file.name, 'w') as f:
	f.write(password)

raises if password is None. This may happen on a DC Master with univention-upgrade, because the DC Master currently may _think_ a password is available because he always has an adminConnection.
Comment 1 Dirk Wiesenthal univentionstaff 2018-03-20 11:47:10 CET
Fixed in
  univention-appcenter 6.0.11-15A~4.2.0.201803201146
Comment 2 Felix Botner univentionstaff 2018-03-20 13:40:58 CET
OK - univention-appcenter
OK - YAML
Comment 3 Arvid Requate univentionstaff 2018-03-21 13:52:10 CET
<http://errata.software-univention.de/ucs/4.2/313.html>