Created
November 16, 2022 15:52
-
-
Save thozza/0b5a9b5451f945bb49c5fd022de87486 to your computer and use it in GitHub Desktop.
osbuild-composer worker upgrade / downgrade issue reproducer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
source /etc/os-release | |
# well known setup | |
systemctl disable --now osbuild-composer.socket | |
systemctl stop 'osbuild*.socket' 'osbuild*.service' | |
# ensure the latest osbuild-composer is installed | |
dnf install -y osbuild-composer composer-cli | |
dnf upgrade -y osbuild-composer | |
# enable osbuild-composer | |
systemctl enable --now osbuild-composer.socket | |
composer-cli status show | |
systemctl status osbuild-composer.service [email protected] | |
# reproduce issue and get logs | |
date +"%Y-%m-%d %H:%M:%S" > debug_start_date.txt | |
systemd-analyze log-level debug | |
dnf downgrade -y osbuild-composer | |
systemd-analyze log-level info | |
date +"%Y-%m-%d %H:%M:%S" > debug_end_date.txt | |
journalctl -b --since="$(cat debug_start_date.txt)" --until="$(cat debug_end_date.txt)" _PID=1 > "$ID-$VERSION_ID-systemd-log.txt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment