Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Boot Status is GREEN - Health Check SUCCESS" can't be find after rollback in ostree-ng.sh #3866

Open
henrywang opened this issue Aug 4, 2023 · 0 comments

Comments

@henrywang
Copy link
Contributor

TASK [fallback log should be found here] ***************************************
changed: [192.168.100.51] => {"changed": true, "cmd": ["journalctl", "-b", "-0", "-u", "greenboot", "-u", "greenboot-healthcheck", "-u", "greenboot-rpm-ostree-grub2-check-fallback", "-u", "greenboot-grub2-set-counter", "-u", "greenboot-grub2-set-success", "-u", "greenboot-status", "-u", "redboot", "-u", "redboot-auto-reboot", "-u", "redboot.target"], "delta": "0:00:00.028623", "end": "2023-08-04 06:06:50.959999", "msg": "", "rc": 0, "start": "2023-08-04 06:06:50.931376", "stderr": "", "stderr_lines": [], "stdout": "Aug 04 06:06:33 localhost.localdomain systemd[1]: Starting greenboot-rpm-ostree-grub2-check-fallback.service - Check for fallback boot...\nAug 04 06:06:33 localhost.localdomain greenboot-rpm-ostree-grub2-check-fallback[681]: Moving 'a74d782a85126e1c150c0995df193c8cbeacf2892e09bbd3ccf7bbb5ccf83ce8.0' to be first deployment\nAug 04 06:06:33 localhost.localdomain greenboot-rpm-ostree-grub2-check-fallback[681]: Transaction complete; bootconfig swap: no; bootversion: boot.1.1, deployment count change: 0\nAug 04 06:06:35 localhost.localdomain greenboot-rpm-ostree-grub2-check-fallback[681]: Changes queued for next boot. Run \"systemctl reboot\" to start a reboot\nAug 04 06:06:35 localhost.localdomain greenboot-rpm-ostree-grub2-check-fallback[666]: FALLBACK BOOT DETECTED! Default rpm-ostree deployment has been rolled back.\nAug 04 06:06:35 localhost.localdomain greenboot-rpm-ostree-grub2-check-fallback[666]: Health check logs from previous boot:\nAug 04 06:06:35 localhost.localdomain greenboot-rpm-ostree-grub2-check-fallback[666]: Script '10_failing_check.sh' FAILURE (exit code '1'). Continuing...\nAug 04 06:06:35 localhost.localdomain systemd[1]: Finished greenboot-rpm-ostree-grub2-check-fallback.service - Check for fallback boot.\nAug 04 06:06:35 localhost.localdomain systemd[1]: Starting greenboot-healthcheck.service - greenboot Health Checks Runner...\nAug 04 06:06:35 localhost.localdomain greenboot[860]: Running Required Health Check Scripts...\nAug 04 06:06:35 localhost.localdomain 00_required_scripts_start.sh[867]: Running greenboot Required Health Check Scripts\nAug 04 06:06:35 localhost.localdomain greenboot[860]: Script '00_required_scripts_start.sh' SUCCESS\nAug 04 06:06:35 localhost.localdomain 01_repository_dns_check.sh[871]: No domain names have been found\nAug 04 06:06:35 localhost.localdomain greenboot[860]: Script '01_repository_dns_check.sh' SUCCESS\nAug 04 06:06:35 localhost.localdomain greenboot[860]: Script '02_watchdog.sh' SUCCESS\nAug 04 06:06:35 localhost.localdomain greenboot[860]: Running Wanted Health Check Scripts...\nAug 04 06:06:35 localhost.localdomain 00_wanted_scripts_start.sh[912]: Running greenboot Wanted Health Check Scripts\nAug 04 06:06:35 localhost.localdomain greenboot[860]: Script '00_wanted_scripts_start.sh' SUCCESS\nAug 04 06:06:35 localhost.localdomain greenboot[860]: Script '01_update_platforms_check.sh' SUCCESS\nAug 04 06:06:35 localhost.localdomain greenboot[860]: Running Required Health Check Scripts...\nAug 04 06:06:35 localhost.localdomain greenboot[860]: Running Wanted Health Check Scripts...\nAug 04 06:06:35 localhost.localdomain greenboot-status[955]: WARNING: No greenboot logs were found!\nAug 04 06:06:35 localhost.localdomain greenboot-status[955]: FALLBACK BOOT DETECTED! Default rpm-ostree deployment has been rolled back.\nAug 04 06:06:35 localhost.localdomain greenboot-status[955]: Health check logs from previous boot:\nAug 04 06:06:35 localhost.localdomain greenboot-status[955]: Script '10_failing_check.sh' FAILURE (exit code '1'). Continuing...\nAug 04 06:06:35 localhost.localdomain systemd[1]: Finished greenboot-healthcheck.service - greenboot Health Checks Runner.\nAug 04 06:06:35 localhost.localdomain systemd[1]: Starting greenboot-grub2-set-success.service - Mark boot as successful in grubenv...\nAug 04 06:06:35 localhost.localdomain systemd[1]: Starting greenboot-status.service - greenboot MotD Generator...\nAug 04 06:06:35 localhost.localdomain systemd[1]: Finished greenboot-grub2-set-success.service - Mark boot as successful in grubenv.\nAug 04 06:06:35 localhost.localdomain systemd[1]: Finished greenboot-status.service - greenboot MotD Generator.", "stdout_lines": ["Aug 04 06:06:33 localhost.localdomain systemd[1]: Starting greenboot-rpm-ostree-grub2-check-fallback.service - Check for fallback boot...", "Aug 04 06:06:33 localhost.localdomain greenboot-rpm-ostree-grub2-check-fallback[681]: Moving 'a74d782a85126e1c150c0995df193c8cbeacf2892e09bbd3ccf7bbb5ccf83ce8.0' to be first deployment", "Aug 04 06:06:33 localhost.localdomain greenboot-rpm-ostree-grub2-check-fallback[681]: Transaction complete; bootconfig swap: no; bootversion: boot.1.1, deployment count change: 0", "Aug 04 06:06:35 localhost.localdomain greenboot-rpm-ostree-grub2-check-fallback[681]: Changes queued for next boot. Run \"systemctl reboot\" to start a reboot", "Aug 04 06:06:35 localhost.localdomain greenboot-rpm-ostree-grub2-check-fallback[666]: FALLBACK BOOT DETECTED! Default rpm-ostree deployment has been rolled back.", "Aug 04 06:06:35 localhost.localdomain greenboot-rpm-ostree-grub2-check-fallback[666]: Health check logs from previous boot:", "Aug 04 06:06:35 localhost.localdomain greenboot-rpm-ostree-grub2-check-fallback[666]: Script '10_failing_check.sh' FAILURE (exit code '1'). Continuing...", "Aug 04 06:06:35 localhost.localdomain systemd[1]: Finished greenboot-rpm-ostree-grub2-check-fallback.service - Check for fallback boot.", "Aug 04 06:06:35 localhost.localdomain systemd[1]: Starting greenboot-healthcheck.service - greenboot Health Checks Runner...", "Aug 04 06:06:35 localhost.localdomain greenboot[860]: Running Required Health Check Scripts...", "Aug 04 06:06:35 localhost.localdomain 00_required_scripts_start.sh[867]: Running greenboot Required Health Check Scripts", "Aug 04 06:06:35 localhost.localdomain greenboot[860]: Script '00_required_scripts_start.sh' SUCCESS", "Aug 04 06:06:35 localhost.localdomain 01_repository_dns_check.sh[871]: No domain names have been found", "Aug 04 06:06:35 localhost.localdomain greenboot[860]: Script '01_repository_dns_check.sh' SUCCESS", "Aug 04 06:06:35 localhost.localdomain greenboot[860]: Script '02_watchdog.sh' SUCCESS", "Aug 04 06:06:35 localhost.localdomain greenboot[860]: Running Wanted Health Check Scripts...", "Aug 04 06:06:35 localhost.localdomain 00_wanted_scripts_start.sh[912]: Running greenboot Wanted Health Check Scripts", "Aug 04 06:06:35 localhost.localdomain greenboot[860]: Script '00_wanted_scripts_start.sh' SUCCESS", "Aug 04 06:06:35 localhost.localdomain greenboot[860]: Script '01_update_platforms_check.sh' SUCCESS", "Aug 04 06:06:35 localhost.localdomain greenboot[860]: Running Required Health Check Scripts...", "Aug 04 06:06:35 localhost.localdomain greenboot[860]: Running Wanted Health Check Scripts...", "Aug 04 06:06:35 localhost.localdomain greenboot-status[955]: WARNING: No greenboot logs were found!", "Aug 04 06:06:35 localhost.localdomain greenboot-status[955]: FALLBACK BOOT DETECTED! Default rpm-ostree deployment has been rolled back.", "Aug 04 06:06:35 localhost.localdomain greenboot-status[955]: Health check logs from previous boot:", "Aug 04 06:06:35 localhost.localdomain greenboot-status[955]: Script '10_failing_check.sh' FAILURE (exit code '1'). Continuing...", "Aug 04 06:06:35 localhost.localdomain systemd[1]: Finished greenboot-healthcheck.service - greenboot Health Checks Runner.", "Aug 04 06:06:35 localhost.localdomain systemd[1]: Starting greenboot-grub2-set-success.service - Mark boot as successful in grubenv...", "Aug 04 06:06:35 localhost.localdomain systemd[1]: Starting greenboot-status.service - greenboot MotD Generator...", "Aug 04 06:06:35 localhost.localdomain systemd[1]: Finished greenboot-grub2-set-success.service - Mark boot as successful in grubenv.", "Aug 04 06:06:35 localhost.localdomain systemd[1]: Finished greenboot-status.service - greenboot MotD Generator."]}

TASK [assert] ******************************************************************
fatal: [192.168.100.51]: FAILED! => {
    "assertion": "'Boot Status is GREEN - Health Check SUCCESS' in result_greenboot_log.stdout",
    "changed": false,
    "evaluated_to": false,
    "msg": "Fallback log not found"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant