Univention Bugzilla – Full Text Bug Listing |
Summary: | Docker Apps: store /etc/machine.secret during image update | ||
---|---|---|---|
Product: | UCS | Reporter: | Felix Botner <botner> |
Component: | App Center | Assignee: | Felix Botner <botner> |
Status: | CLOSED FIXED | QA Contact: | Dirk Wiesenthal <wiesenthal> |
Severity: | normal | ||
Priority: | P5 | CC: | damrose, mai, requate, wiesenthal |
Version: | UCS 4.1 | ||
Target Milestone: | UCS 4.2-2-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | Bug Report | What type of bug is this?: | 2: Improvement: Would be a product improvement |
Who will be affected by this bug?: | 1: Will affect a very few installed domains | How will those affected feel about the bug?: | 2: A Pain – users won’t like this once they notice it |
User Pain: | 0.023 | Enterprise Customer affected?: | |
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | 2017011221000324 | Bug group (optional): | |
Max CVSS v3 score: | |||
Bug Depends on: | |||
Bug Blocks: | 45290, 45565 |
Description
Felix Botner
2017-03-13 11:58:29 CET
It can be done with the "store_data" and "restore_data_before_setup" app life cycle scripts, but i think this should be done by the appcenter. Package: univention-appcenter Version: 6.0.8-20A~4.2.0.201708101305 Branch: ucs_4.2-0 univention-appcenter (6.0.8-20): r81987 | Bug #43823: yaml r81984 | Bug #43823: don't use a new machine secret on container upgrades Reverted with r81994 due to conflicting errata. Recommitted with r82054. (In reply to Eduard Mai from comment #3) > Reverted with r81994 due to conflicting errata. Recommitted with r82054. As discussed, slightly changed: docker_cp() to docker.cp_from_container() I am getting 'Register' object has no attribute '_get_docker' Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/__init__.py", line 245, in call_with_namespace result = self.main(namespace) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/register.py", line 82, in main self._register_host_for_apps(apps, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/register.py", line 249, in _register_host_for_apps self._register_host(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/register.py", line 262, in _register_host docker = self._get_docker(self.old_app) AttributeError: 'Register' object has no attribute '_get_docker' _get_docker is defined in DockerActionMixin (python/appcenter-docker/actions/docker_base.py). Better do a manual from univention.appcenter.docker import Docker docker = Docker(app, self.logger) Catch ImportError, though, univention-appcenter-docker might not be installed moved docker cp machine.secret to docker_upgrade.py._upgrade_image() univention-appcenter r82518 errata4.2-1 Works fine YAML: OK |