Bug 57210 - Prevent to create docker networks when they are already in use by docker loop
Summary: Prevent to create docker networks when they are already in use by docker loop
Status: CLOSED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: App Center
Version: UCS 5.2
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 5.2
Assignee: Iván.Delgado
QA Contact: Arvid Requate
URL: https://git.knut.univention.de/univen...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-05 14:18 CEST by Iván.Delgado
Modified: 2025-02-05 15:08 CET (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
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):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iván.Delgado univentionstaff 2024-04-05 14:18:48 CEST
Currently, the appcenter only checks the networks that exist in the applications managed by the appcenter. 

If a network is created manually on the same subnet as the app center, the appcenter will fail.

It might be worth to think a about a check which prevents the creation of the docker networks when they are already in use in the current environment.
Comment 2 Iván.Delgado univentionstaff 2024-04-08 08:19:02 CEST
univention-appcenter.yaml
811457812530 | fixup! feat(appcenter): get networks from docker loop not managed by the appcenter

univention-appcenter (11.0.7)
9fba718a2f91 | feat(appcenter): get networks from docker loop not managed by the appcenter

ucs-test (12.0.37)
6d756fb9e627 | fix(test): get the correct subnet when there are already other networks created in docker.
uv 


Package: ucs-test
Version: 12.0.37
Branch: ucs_5.2-0

Package: univention-appcenter
Version: 11.0.7
Branch: ucs_5.2-0
Comment 3 Iván.Delgado univentionstaff 2024-04-15 15:08:01 CEST
ucs-test (12.0.49)
a6736125d3cb | fix(test): get the correct subnet when there are already other networks created in docker.

univention-appcenter (11.0.8)
8988f109cb76 | fixup! feat(appcenter): get networks from docker loop not managed by the appcenter

Successful build
Package: ucs-test
Version: 12.0.49
Branch: 5.2-0

Successful build
Package: univention-appcenter
Version: 11.0.8
Branch: 5.2-0
Comment 4 Arvid Requate univentionstaff 2024-04-17 11:27:59 CEST
Verified:
* Code
* Functionality
* Testcase

Added:
7639c6ca27 | Entry for release changelog