cancel
Showing results for 
Search instead for 
Did you mean: 
RMB
Mission Specialist
Mission Specialist
  • 862 Views

ch10s04 - Error: SSL certificate verify failed when execute podman build command

Jump to solution

Hello,

I had an error with the SSL certificate when I tried to build the execution environment for the last lab in Chapter 10.

 

- Command executed: 

ansible-builder build --tag hub.lab.example.com/system/ee-review-rhel8:v1.0

or

podman build -f context/Containerfile -t hub.lab.example.com/system/ee-review-rhel8:v1.0 context

 

- Error

SSL certificate verify failed

RMB_0-1727354618105.png

 

- Solution

I added this parameter to the execution-environment.yml configuration file:

 

version: 1

build_arg_defaults:

  ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: "-c"

 

RMB_1-1727354808315.png

 

After adding this and rebuilding the environment, everything worked perfectly!

I hope this helps anyone who encounters the same problem!

RMB_2-1727354830584.png

 

1 Solution

Accepted Solutions
Chetan_Tiwary_
Community Manager
Community Manager
  • 805 Views

@RMB  I was unable to replicate this issue in my DO374 lab : ch10s04 step 8:

Chetan_Tiwary__0-1727380432606.png

Chetan_Tiwary__1-1727380474406.png

View solution in original post

6 Replies
rhnoname
Flight Engineer Flight Engineer
Flight Engineer
  • 849 Views

Hi,

I will keep it in mind.

Thanks for sharing!

Best Regards
Chetan_Tiwary_
Community Manager
Community Manager
  • 820 Views

@RMB Thanks for letting us know here. I will check and report it as well!

0 Kudos
Chetan_Tiwary_
Community Manager
Community Manager
  • 806 Views

@RMB  I was unable to replicate this issue in my DO374 lab : ch10s04 step 8:

Chetan_Tiwary__0-1727380432606.png

Chetan_Tiwary__1-1727380474406.png

RMB
Mission Specialist
Mission Specialist
  • 694 Views

Hi!,

I tried again, this time I just used the podman build command to see what would happen and it worked:

[student@workstation ee-build]$ podman build -f context/Containerfile \ > -t hub.lab.example.com/system/ee-review-rhel8:v1.0 context

 

Maybe the problem it was just not using podman build and using the ansible-builder build command instead.

RMB_0-1727785720290.png

 

Thanks!

Roberto 

Chetan_Tiwary_
Community Manager
Community Manager
  • 683 Views

@RMB glad that it is resolved for you!

0 Kudos
DeepakRamanath
Flight Engineer
Flight Engineer
  • 188 Views

I had the same issue and adding ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: "-c" worked, but had to clear the _build directory in the context/

 

Also, out of interest, where can we find these flags in the documentation?

 

Thanks you

Join the discussion
You must log in to join this conversation.