BastilleBSD / bastille

Bastille is an open-source system for automating deployment and management of containerized applications on FreeBSD.
https://bastillebsd.org
BSD 3-Clause "New" or "Revised" License
858 stars 140 forks source link

[BUG] bastille pkg ALL upgrade --dry-run : "Failed to apply on some jails, please check logs" #657

Open eoli3n opened 10 months ago

eoli3n commented 10 months ago

[MANDATORY] Describe the bug [MANDATORY] When I run pkg upgrade --dry-run on jails which has some pkg updates, the command fails and return "Failed to apply on some jails, please check logs"

[MANDATORY] Bastille and FreeBSD version (paste bastille -v && freebsd-version -kru output)

$ bastille -v && freebsd-version -kru
0.10.20231125
14.0-RELEASE-p3
14.0-RELEASE-p3
14.0-RELEASE-p3

[MANDATORY] How did you install bastille? (port/pkg/git) pkg

[optional] Steps to reproduce?

$ /usr/local/bin/bastille pkg soju upgrade --dry-run
[soju]:
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (1 candidates): 100%
Processing candidates (1 candidates): 100%
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        readline: 8.2.1 -> 8.2.7

Number of packages to be upgraded: 1

396 KiB to be downloaded.

Failed to apply on some jails, please check logs

The error is not triggered if there is no pkg update.

[optional] Expected behavior Return code 0, list all upgrade per jail, no error message