While trying to reimage a Debian Buster instance with Puppet 5 to Debian Bookworm with Puppet 5 the reimage cookbook on the Puppet 5 instance (alert2001) failed with the following error:
Exception raised while initializing the Cookbook sre.hosts.reimage:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/spicerack/_menu.py", line 199, in run
runner = self.instance.get_runner(args)
File "/srv/deployment/spicerack/cookbooks/sre/hosts/reimage.py", line 101, in get_runner
return ReimageRunner(args, self.spicerack)
File "/srv/deployment/spicerack/cookbooks/sre/hosts/reimage.py", line 181, in __init__
self.new_puppet_server = self._get_puppet_server()
File "/srv/deployment/spicerack/cookbooks/sre/hosts/reimage.py", line 227, in _get_puppet_server
has_puppet7 = self.puppet_server.hiera_lookup(self.fqdn, "profile::puppet::agent::force_puppet7")
File "/usr/lib/python3/dist-packages/spicerack/puppet.py", line 591, in hiera_lookup
result = self.server_host.run_sync(command, is_safe=True, print_output=False, print_progress_bars=False)
File "/usr/lib/python3/dist-packages/spicerack/remote.py", line 514, in run_sync
return self._execute(
File "/usr/lib/python3/dist-packages/spicerack/remote.py", line 720, in _execute
raise RemoteExecutionError(ret, "Cumin execution failed", worker.get_results())
spicerack.remote.RemoteExecutionError: Cumin execution failed (exit_code=2)For additional context, we plan on doing the Debian version upgrade and then proceed with the Puppet 5 to Puppet 7 upgrade as suggested by the Foundations team.