summaryrefslogtreecommitdiff
path: root/Debugging issues with updating Puppet dependency.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-04-18 20:58:54 +0200
committerJasper Ras <jras@hostnet.nl>2025-04-18 20:58:54 +0200
commitab409a3701bf59dd73dc1e0324376bdac8b6d74f (patch)
tree17fba0a6811534858300a550c06376b25f9644c6 /Debugging issues with updating Puppet dependency.md
parentc8c774ad7c0d98def2e83647d4f635ee275b66de (diff)
vault backup: 2025-04-18 20:58:54
Diffstat (limited to 'Debugging issues with updating Puppet dependency.md')
-rw-r--r--Debugging issues with updating Puppet dependency.md46
1 files changed, 46 insertions, 0 deletions
diff --git a/Debugging issues with updating Puppet dependency.md b/Debugging issues with updating Puppet dependency.md
new file mode 100644
index 0000000..da6e2f2
--- /dev/null
+++ b/Debugging issues with updating Puppet dependency.md
@@ -0,0 +1,46 @@
+---
+tags:
+ - puppet
+---
+Updated the ref in Puppetfile to yoga-eol instead of unmaintained/yoga.
+
+Stap 1: `librarian-puppet install --verbose`.
+Stap 2: `librarian-puppet update openstack-neutron --verbose`.
+
+Check puppet-neutron `metadata.json` This is where dependency information lives. According to the gitlab readme it is also possible that this lives in `Modulefile` or `Puppetfile`.
+
+Verbose info gives:
+```
+[Librarian] Failed to resolve puppetlabs-stdlib (>= 4.18.0, < 7.0.0) <(no source specified)> (from <nil>)
+```
+
+Erik determined this is due to `puppet-yum` by inspecting the lock file and checking who sets those requirements.
+```
+puppet master*​ ≡
+❯ rg '>= 4.18.0, < 7.0.0' Puppetfile.lock
+68: puppetlabs-stdlib (>= 4.18.0, < 7.0.0)
+```
+```
+ 1 │ puppet-yum (4.3.0)
+ 1 │ │ puppetlabs-concat (>= 1.2.5, < 7.0.0)
+ 68 │ │ puppetlabs-stdlib (>= 4.18.0, < 7.0.0)
+```
+
+It turns out that this version of `puppet-yum` came from `elastic-elastic_stack` which came in turn from `elastic-logstash`.
+We found that `elastic-logstash` has been deprecated, so we cannot upgrade this dependency. It is replaced by `puppet-logstash`.
+
+```
+puppet master ≡5s
+❯ rg puppet-yum Puppetfile.lock
+8: puppet-yum (>= 0.9.6, < 5.0.0)
+66: puppet-yum (4.3.0)
+
+hx Puppetfile.lock
+ elastic-elastic_stack (6.3.2)
+ puppet-yum (>= 0.9.6, < 5.0.0)
+
+```
+
+Changing the dependency from `elastic-logstash` to `puppet-logstash`, also brings issue.
+
+At the end our hacky resolution is to update the commit hash in `Puppetfile.lock` and push that. Possible only because we didn't change any dependencies in `openstack-neutron`.