pergamon: broken puppet agent run
I had forgotten ever since i added the new kafka node [1], the puppet agent on pergamon won't run anymore [2]. I worked around it last time i needed to and then forgot to fix it. So reference it to have another incentive to fix it.
afaiui, it's broken since the resource collection uses the hostname of the machine which is no longer unique. Now we have 2 hostnames kafka1 (with respective fqdn .internal.softwareheritage.org & .internal.staging.swh.network).
I'll need to adapt the resource collection to use the fqdn instead.
[2]
root@pergamon:~# puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: A duplicate resource was found while collecting exported resources, with the type and title Profile::Prometheus::Scrape_config[kafka1_node] on node pergamon.softwareheritage.org
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Edited by Antoine R. Dumont