Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-22858

error printed greenboot-healthcheck output if system is non ostree-based

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • 4.15.0
    • 4.14
    • MicroShift
    • None
    • No
    • 2
    • uShift Sprint 245
    • 1
    • False
    • Hide

      None

      Show
      None
    • Hide
      Previously, the Greenboot health check script printed an error message when installed on a non `rpm-ostree` system. The installation was still successful with MicroShift starting normally. Now, the error message is not present in the `greenboot-healthcheck` output on non `rpm-ostree`-based systems.
      Show
      Previously, the Greenboot health check script printed an error message when installed on a non `rpm-ostree` system. The installation was still successful with MicroShift starting normally. Now, the error message is not present in the `greenboot-healthcheck` output on non `rpm-ostree`-based systems.

      Description of problem:

      When the print_boot_status function runs in the packaging/greenboot/functions.sh script on non ostree-based host systems, it produces an error in the output of 
      
      journalctl -o cat -u greenboot-healthcheck
      
      specifically, the command $(ostree admin status) produces the error
       
      microshift does start properly

      Version-Release number of selected component (if applicable):

       

      How reproducible:

      100%

      Steps to Reproduce:

      1. install RHEL 9.2
      2. install microshift rpm package
      3. reboot
      4. check output of journalctl -o cat -u greenboot-healthcheck

      Actual results:

      error: loading sysroot: opendir(ostree/repo): No such file or directory
      

      Expected results:

      error should not be present in greenboot-healthcheck output on non ostree-based systems

      Additional info:

       

            ggiguash@redhat.com Gregory Giguashvili
            rh-ee-dhensel Douglas Hensel
            Douglas Hensel Douglas Hensel
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: