-
Bug
-
Resolution: Done
-
Minor
-
DO374 - RHAAP2.2-en-2-20240606
-
None
-
False
-
-
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: