Need a little help understanding whats what when ...
# continuous-delivery
j
Need a little help understanding whats what when it comes to cd4pe_jobs. When I perform a Puppet Module list from the command line... it lists this module in two places...one version in the modules directory under a "production" branch[etc/puppetlabs/puppetserver/code/environments/production/modules] and an older version under a modules directory under the base install (/opt/puppetlabs/puppet/modules] . We are talking PE2025.2 here. Is it possible that CD4PE is using the Base install version instead of the Production version? And is there a way to tell which version it is using?
m
Thinking about this one… I know we’ve told people before that they can upgrade the version of the module that is used by specifying it in their control repo’s puppetfile (which would place it in the environment dir). I think folks have had success with that, so I’m inclined to say the one the environment takes precedence. Are you seeing something that makes you think that’s not true?
j
I have upgraded from 1.6.3 to 1.7.1 because of the support for podman which is used on RHEL 8 in place of docker. But CD4PE at v5.10 is still looking to call docker when trying to pull down the dev container for running jobs. These two versions are ones I am referencing in my question.
m
Okay that’s helpful, thanks. It definitely sounds like it’s using the older one. You could try installing the newer version to the base module path directly.
puppet module install puppetlabs-cd4pe_jobs --modulepath /opt/puppetlabs/puppet/modules
I’d still like to understand whether it’s correct/expected that we use that one though. It depends a little on what the Orchestrator in PE is doing under the hood. I’d need to play around with it a bit. Other members of my team also thought that it should prefer the environment-level version.
The module is used on the primary by the orchestrator, for context. It provides the tasks that runs on the job hardware.
j
Well that makes sense because it is when I run a job that this is occurring. I run the base job control-repo pdk module validate and the resulting job runs into the issue.
m
We actually have docs that describe it that way, to use the puppetfile and install it into the environment: https://help.puppet.com/cdpe/current/Content/UserGuide/CDPE/getting_started.htm#Part4Configurejobhardware
Is there a chance that there is a docker shim on your RHEL box?
We might check for the presence of an executable to determine whether to use podman or docker. I’m checking that now…
If you’re not seeing logging about which runtime is detected, it’s definitely using the older version of the module
(this would be in the job output in the CD console)
j
Well I get a time out... A timeout because the Job Worker node does not have internet access and then tries to use Docker to pull down the dev container image it uses to run all jobs. There is a separate issue why it cannot find the local version of the dev container image. But I am thinking it may have to do with the version of cd4pe_jobs module it is using.
I think I am going to try and update the older module and see if that helps
m
Well you can tell which module version you’re using: if you see “Podman/docker runtime detected” you’re using the newer version. If you don’t, it’s using the older version.
okay 👍 I think we did have another case like this sorta recently, I’m trying to find it and see how we resolved things there
j
Updating the log from my latest test. It does show the podman runtime detected..but then it uses docker to to try and pull.
m
Ah, I don’t think it’s using docker, there’s just a fallback where it tries to use the docker protocol. But podman is still doing the pulling. But it can’t reach the image regardless because of the lack of internet
you are using the newer module version
Do you have a local copy of the image loaded into podman on the job hardware?
j
Yes...
but rather large to share
m
no that’s fine
This sounds very much like the issue we saw previously, one sec
Oh! I think those errors about pulling are a red herring
the job continues even when it can’t pull the image, you can see it proceeds and tries to run the job anyway, then has a different problem
I’m looking at that error now, about the “no such file or directory”
j
I am seeing that now as well..
m
Yeah for context we always attempt to pull the image, so that non-airgapped customers automatically get updates if there are any, but we allow the pull to fail and then assume that the image is present locally, which in your case it is
That error indicates that it can’t find the job script that it downloaded from the CD host to the job hardware. So either the download failed or the attempt to mount it into the container…
j
OK that helps me... I'm looking at the wrong problem... I am running 'podman events' on the job worker node
to see if it shows
m
If this dir
/cd4pe_job_working_dir/cd4pe_job_instance_20_1755019990837/cd4pe_job/jobs/unix
is still present on your job hardware you could check if there is anything in it. Not sure if we clean that up or not.
that’s where we downloaded the script to
j
That directory is empty
m
Side note: one thing I’m going to do as a result of this convo is add logging about us moving on to the local image if the pull fails. That should help future debugging.
j
drwxr-xr-x. 2 root root 6 Aug 12 17:41 cd4pe_job_working_dir Is this the right permissions?
I am logged in as root if that helps
m
Hm, interesting. It looks like we downloaded the
tar.gz
alright and unzipped it…
Copy code
2025-08-12 17:33:10 UTC: Downloading job scripts and control repo from CD4PE.
2025-08-12 17:33:10 UTC: cd4pe_client: requesting get https://vfdctlvcdp401.test.fdc.ibm/cd4pe/Automation/getJobScriptAndControlRepo?jobInstanceId=20 with read timeout: 1740 seconds
2025-08-12 17:33:14 UTC: Total request time: 3.831168613 seconds
2025-08-12 17:33:14 UTC: Unzipping /cd4pe_job_working_dir/cd4pe_job_instance_20_1755019990837/cd4pe_job.tar.gz to /cd4pe_job_working_dir/cd4pe_job_instance_20_1755019990837
And there should have been a script in there
has this failed repeatedly, or just once?
j
Yes repeatedly Just not sure how many times.
m
That’s fine, so it wasn’t just a fluke
Are there any errors in the CD backend logs?
Wondering if something is going wrong on the soruce end of the download
j
let me go take a look..
I'm not seeing any problems... Using the bolt plan to pull logs.. Is there anything specific I should look for
m
You could look for this endpoint that we hit
getJobScriptAndControlRepo
I think there’s some logging around the artifact that it puts together
At this point though, if you can’t find anything, it might be best for you to file a support case so we can dig into things with more context.
j
OK Thank you for all your help! I really appreciate it!
m
You’re welcome 🙂