Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-14496

ch09s09 SSL certificate errors when running 'podman build'.

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • en-US (English)

      Please fill in the following information:


      URL: https://rol.redhat.com/rol/app/courses/do374-2.2/pages/ch09s09
      Reporter RHNID: ssanyal@redhat.com 
      Section Title:Lab: Creating Content Collections and Execution Environments                                                                        

      Issue description
      as provided by the reporting external user :

      The final lab in Chapter 9 has a bug where you get SSL certificate errors when you run 'podman build'. Several people reported the same issue I had in the Chapter 9 and 10 labs here:
      https://learn.redhat.com/t5/DO374-Developing-Advanced/ch10s04-Error-SSL-certificate-verify-failed-when-execute-podman/m-p/46262#M168
      Someone in that forum post included a fix that can be used as a workaround

      the SSL certificate that the Hub uses is not trusted. You are going to run into this any time you are trying to download collections from the Hub.
       

      Steps to reproduce:

       

      Workaround:
      workaround provided by reporter :
      --------------------------------------------

      The fix is to add the following into execution-environment.yml which seems to force ansible-galaxy to ignore SSL errors when connecting to https://hub.lab.example.com:

      build_arg_defaults:
      ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: "-c"

      After you add the above and run ansible-builder, it adds that option into context/Containerfile and runs successfully.
       

      Expected result:

        1. ZiVPUBXj3K.png
          447 kB
          samik sanyal
        2. image-2025-01-15-05-49-23-300.png
          158 kB
          Michael Phillips
        3. image-2025-01-15-05-49-54-691.png
          130 kB
          Michael Phillips
        4. image-2025-01-15-05-50-47-766.png
          261 kB
          Michael Phillips
        5. image-2025-01-15-05-51-53-631.png
          64 kB
          Michael Phillips

              glsbugs-automation@redhat.com PTL - Ansible Team
              ssanyal@redhat.com samik sanyal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: