• Icon: Story Story
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • None
    • 3
    • False
    • None
    • False
    • WINC - Sprint 265

      Description

      Currently, the check-payload script gives 2 errors when scanning our operator image:

      [mohashai@mohashai check-payload]$ ./check-payload scan local --path ../windows-machine-config-operator/build/_output/bin/ --verbose -p
      I1111 12:15:22.297727   56815 main.go:103] "scan" version="0.3.1-189-g454f59f3"
      I1111 12:15:22.395388   56815 validations.go:402] can't find rpmdb under "../windows-machine-config-operator/build/_output/bin"
      I1111 12:15:22.395426   56815 scan.go:460] "scanning failed" image="" path="/windows-machine-config-operator" error="go binary does not contain required symbol(s)" component="" tag="" rpm="" status="failed"
      ---- Failure Report
      +---------------------------+
      STATUS                                   
      +---------------------------+
      openssl library not present
      go binary does not contain required symbol(s)
      
      
      [[ignore]]
      error = "ErrGoMissingSymbols"
      files = [ "/windows-machine-config-operator" ]

       
      Both may be solved by moving to using a golang image with openssl like MCO has done. These are builder images published by ART

      Acceptance Criteria

      The above subset of errors in check-payload script (in the CI job and manually) are fixed

            [WINC-1350] Fix error outputs of check-payload script

            sudo ./check-payload scan image --spec registry-proxy.engineering.redhat.com/rh-osbs/iib:884107
            [sudo] password for mankulka: 
            I0106 15:20:43.733107  130399 main.go:308] using config file: config.toml
            I0106 15:20:43.733229  130399 main.go:103] "scan" version="0.3.2-0-gda4f77e8"
            ---- Successful run

            Mansi Kulkarni added a comment - sudo ./check-payload scan image --spec registry-proxy.engineering.redhat.com/rh-osbs/iib:884107 [sudo] password for mankulka:  I0106 15:20:43.733107  130399 main.go:308] using config file: config.toml I0106 15:20:43.733229  130399 main.go:103] "scan" version="0.3.2-0-gda4f77e8" ---- Successful run

              rh-ee-mankulka Mansi Kulkarni
              mohashai Mohammad Shaikh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: