Hey folks!
I've created elky-kfk-pgrd-kafka-test-03.kafka-infrastructure.eqiad1.wikimedia.cloud via Pontoon and I ended up in this problem:
Notice: Requesting catalog from elky-kfk-pgrd-puppet-01.kafka-infrastructure.eqiad1.wikimedia.cloud:8140 (172.16.20.168) Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Undefined variable '::hostname' (file: /etc/puppet/hiera.yaml, line: 4) on node elky-kfk-pgrd-kafka-test-03.kafka-infrastructure.eqiad1.wikimedia.cloud Warning: Not using cache on failed catalog
elukey@elky-kfk-pgrd-kafka-test-03:~$ dpkg -l puppet-agent Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-====================================== ii puppet-agent 8.10.0-5 all configuration management system, agent
After a chat with Filippo it seems the issue seems related to a race-condition between cloud-init and unattended upgrades:
2026-04-07T10:35:27.044388+00:00 elky-kfk-pgrd-kafka-test-03 cloud-init[627]: #033[1;31mError: /Stage[main]/Puppet::Agent/Package[puppet]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install puppet' returned 100: E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 5015 (unattended-upgr)
The problem gets fixed simply installing puppet-agent, that downgrades the package.