This message was deleted.
# forge-modules
s
This message was deleted.
b
do you have something like
forge 'https://forgeapi.puppetlabs.com'
at the top of the Puppetfile?
b
No. And also no r10k.yaml. Just a plain old Puppetfile.
b
do you have any proxy/environment variables and r10k traffic is routed differently?
or anything special in
r10k... --verbose=debug2
?
b
No. It is a local Vagrant box on Virtual box and I use Puppet masterless. I didn’t notice anything strange in the debugging log. Just that it doesn’t use the latest version
b
mhm. quite odd
b
Copy code
[2023-06-21 10:55:15 - DEBUG1] Downloading enterprisemodules-ora_profile-0.44.1 from https://forgeapi.puppet.com/ to /tmp/d20230621-15341-8oqv61/enterprisemodules-ora_profile-0.44.1.tar.gz
Indeed quite odd. I did’t have this issue before? So I guess something has changed
b
do you have a version or latest or nothing specified for that module in the Puppetfile?
b
The info above, shows the r10k debug showing version 0.44.1 and a listing of the forge that shows 0.44.2
It is about 20 minutes ago I published the new version. I guess after 30 minutes it is there
Now I get the correct version
r
You say it’s a vagrant box, but is it brand new or persistent? R10k does have caching.
b
It is a new one. I did remove the /root/.r10k cached files in bewtween of the tries. No differences
r
Hmmm, that's oftentimes it. Did you have it set to "latest" or "1.2.3" and then changed it to "1.2.4"?
b
I tried :latest but it didn’t make a difference. It really looks like somehow r10k is not using the latest forge data, or fetching it from a copy that is laging behind the primary data.
r
i'd try pinning to actual versions,
latest
is definitely a thing that might get cached somewhere locally or even on the forge.
could be that
latest
only gets updated every few hours, but PMT uses api calls to find the latest version and pulls that specifically.
(this is all supposition of course)
b
I have been using this CI setup for years and never had this before. So something must have changed somewhere. For now the immediate issue is solved, but this can really catch you of guard when you have just published a new version.
b
I can now reproduce this. There seems to be some caching/delay until r10k finds new versions. That worked immediately in the past
b
I’m glad you experienced this too. I thought it was just me ;-)
b
--verbose=debug2
is quite nice to get details about the git operations but it logs zero forge api calls 🤔
https://github.com/puppetlabs/r10k/blob/main/lib/r10k/forge/module_release.rb#L102-L104 ah it's logging to debug1 level. but I don't see the output always
b
This cannot explain all of the behaviour I had. I removed the r10k cache (~/root/.r10k and still it did not fetch the latest version.
b
was that also used as cache, or maybe
/opt/puppetlabs/puppet/cache/r10k
?
b
I didn’t check that one. But…. like I explained, we use it in our CI and then every node is a newly spun up VirtualBox environment. That doen’t have anything in any cache.
b
mhm okay
I've
mod 'puppet/unattended_upgrades', :latest
in my Puppetfile, released 8.0.0.
curl 'https://forgeapi.puppet.com/v3/releases?module=puppet-unattended_upgrades&author=puppet' | jq .
also lists the 8.0.0 release. Installed is 7.1.0. r10k output: https://gist.github.com/bastelfreak/b62b60af6cdab06f816b40229c717b9d#file-gistfile1-txt-L328 . r10k lists the module only in this line. there's no information about cache access or forge api access
d
b
and the debug output from https://github.com/puppetlabs/r10k/blob/main/lib/r10k/forge/module_release.rb#L102-L104 is missing. so that method isn't even executed
b
I had the issue today again when downloading augeasproviders_grub.
b
[2023-06-23 12:00:28 - DEBUG1] Downloading puppet-unattended_upgrades-8.0.0 from https://forgeapi.puppet.com/ to /tmp/d20230623-264697-rjto65/puppet-unattended_upgrades-8.0.0.tar.gz
now it worked
b
It is not downloading the latest one
b
~32min after publishing it
b
Can it be that puppet has (multiple) cache servers in front of a physical forge server, causing this. Maybe some sort of round-robin schedule to spread the load?
b
I know that the forge team is working on the infra but I don't know the architecture 😞
and it's tricky to find a responsible person and talk to them 😄
I need to release ~140 modules, so some time to debug this...
r
@bastelfreak when you have it set to latest and it’s not downloading the latest, I’d be curious if setting the specific version finds it or not.
b
I can try that during the next release
and I could reproduce this with r10k 3.15.0 and 4.16.4 (latest)
r
One thing if it’s getting the wrong version for latest, another if it can’t see the new version at all.
b
Is there any news on this?
b
I had no time yet to debug it further
b
I understand. Had the same problem…. 😉
I was just curious. It is not biting me right now.