Bug 55865 - Handling package conflict during the univention-system-setup
Handling package conflict during the univention-system-setup
Status: NEW
Product: UCS
Classification: Unclassified
Component: System setup
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-03-09 09:27 CET by Lukas Rettler
Modified: 2023-03-09 11:25 CET (History)
0 users

See Also:
What kind of report is it?: ---
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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Rettler univentionstaff 2023-03-09 09:27:05 CET
### Environment
* Image: ucs503.qcow2
* OS version: UCS 5.0-3
* Account: root

### Description
The subject of this topic is to address the issue of package conflict that occurs during the installation process of univention-system-setup. When starting the univention-system-setup, the installation process stops due to package conflicts with one of the packages listed in /var/cache/univention-system-setup/packages/. The error occurs during the execution of step /usr/lib/univention-system-setup/scripts/05_role/10role.

### Precondition
Before attempting to install univention-system-setup, it is necessary to preprovision the image.

### Steps to reproduce
# Start the univention-system-setup.
# During the installation process, an error occurs due to package conflicts with one of the packages listed in /var/cache/univention-system-setup/packages/.
# Rerun the univention-system-setup, which will result in errors.

### Current behavior
When the package conflicts occur during the installation process, the packages in /var/cache/univention-system-setup/packages/ are removed. Consequently, rerunning the univention-system-setup will fail due to missing packages.

### Expected behavior
The packages in /var/cache/univention-system-setup/packages/ should not be removed when the execution of step /usr/lib/univention-system-setup/scripts/05_role/10role did not complete. Rerunning the univention-system-setup should install the missing packages to resolve the package conflict error.
Comment 1 Lukas Rettler univentionstaff 2023-03-09 09:50:14 CET
My problem I want to address is that the packages in `/var/cache/univention-system-setup/packages/` are deleted although the step `/usr/lib/univention-system-setup/scripts/05_role/10role` was not successful and running `univention-system-setup` again skips the step and then runs into unnecessary errors because packages are simply not installed.
Comment 2 Lukas Rettler univentionstaff 2023-03-09 11:25:53 CET
Affected Package
* when `ucrv online/repository=yes` --> `lbnss-ldap`
* when `ucrv online/repository=no` --> `univention-server-master`