fedora-iot / greenboot

Generic Health Checking Framework for systemd
GNU Lesser General Public License v2.1
101 stars 29 forks source link

Script '01_update_platforms_check.sh' FAILURE in greenboot-healthcheck.service log #147

Open yih-redhat opened 3 months ago

yih-redhat commented 3 months ago

Install greenboot in a bootc rhel9.5 image and provision a vm, boot vm and check greenboot log, found an error in log of greenboot-healthcheck.service.

● greenboot-healthcheck.service - greenboot Health Checks Runner Loaded: loaded (/usr/lib/systemd/system/greenboot-healthcheck.service; enabled; preset: enabled) Drop-In: /usr/lib/systemd/system/greenboot-healthcheck.service.d └─10-network-online.conf Active: active (exited) since Wed 2024-08-14 06:26:25 UTC; 5min ago Process: 853 ExecStart=/usr/libexec/greenboot/greenboot check (code=exited, status=0/SUCCESS) Main PID: 853 (code=exited, status=0/SUCCESS) CPU: 181ms

Aug 14 06:26:25 vm-2 greenboot[853]: Script '02_watchdog.sh' SUCCESS Aug 14 06:26:25 vm-2 greenboot[853]: Running Wanted Health Check Scripts... Aug 14 06:26:25 vm-2 00_wanted_scripts_start.sh[958]: Running greenboot Wanted Health Check Scripts Aug 14 06:26:25 vm-2 greenboot[853]: Script '00_wanted_scripts_start.sh' SUCCESS Aug 14 06:26:25 vm-2 01_update_platforms_check.sh[964]: grep: /etc/ostree/remotes.d/*: No such file or directory Aug 14 06:26:25 vm-2 01_update_platforms_check.sh[962]: No update platforms found, this can be a mistake Aug 14 06:26:25 vm-2 greenboot[853]: Script '01_update_platforms_check.sh' FAILURE (exit code '1'). Continuing... Aug 14 06:26:25 vm-2 greenboot[853]: Running Required Health Check Scripts... Aug 14 06:26:25 vm-2 greenboot[853]: Running Wanted Health Check Scripts... Aug 14 06:26:25 vm-2 systemd[1]: Finished greenboot Health Checks Runner.

say-paul commented 2 months ago

the above healthcheck may not work in image mode which points to a container, we may either need this to removed for both or use seperate approach for doing this.