puppetlabs / puppetlabs/provision

dsa ssh keys no longer supported in centos stream 9

Open
#288 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Ruby
Stars
18
Forks
54
Avg merge
2d 1h
Merged PRs (30d)
2

Description

Describe the Bug

 pdk bundle exec rake 'litmus:provision_list[default]'
 pdk (INFO): Using Ruby 3.2.5
 pdk (INFO): Using Puppet 8.10.0
 Provisioning litmusimage/centos:stream9 using docker provisioner.
 ....rake aborted!
 provisioning of litmusimage/centos:stream9 failed.
 Results:
   localhost: {"_error"=>{"kind"=>"provision/docker_failure", "msg"=>"Attempted to run\ncommand:'docker exec 7f13a67869e4 ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N \"\"'\nstdout:\nstderr:unknown key type dsa\r\n", "backtrace"=>["/tmp/66478825-e43f-4df5-87f3-fb10233b4df8/provision/lib/task_helper.rb:7:in `run_local_command'", "/tmp/66478825-e43f-4df5-87f3-fb10233b4df8/provision/lib/docker_helper.rb:6:in `docker_exec'", "/tmp/66478825-e43f-4df5-87f3-fb10233b4df8/provision/tasks/docker.rb:38:in `install_ssh_components'", "/tmp/66478825-e43f-4df5-87f3-fb10233b4df8/provision/tasks/docker.rb:177:in `provision'", "/tmp/66478825-e43f-4df5-87f3-fb10233b4df8/provision/tasks/docker.rb:208:in `<main>'"], "details"=>{}}}}
 /home/jenkins/.pdk/cache/ruby/3.2.0/gems/puppet_litmus-1.6.1/lib/puppet_litmus/rake_helper.rb:332:in `raise_bolt_errors'
 /home/jenkins/.pdk/cache/ruby/3.2.0/gems/puppet_litmus-1.6.1/lib/puppet_litmus/rake_helper.rb:76:in `provision'
 /home/jenkins/.pdk/cache/ruby/3.2.0/gems/puppet_litmus-1.6.1/lib/puppet_litmus/rake_tasks.rb:54:in `block (3 levels) in <top (required)>'
 /home/jenkins/.pdk/cache/ruby/3.2.0/gems/puppet_litmus-1.6.1/lib/puppet_litmus/rake_tasks.rb:51:in `each'
 /home/jenkins/.pdk/cache/ruby/3.2.0/gems/puppet_litmus-1.6.1/lib/puppet_litmus/rake_tasks.rb:51:in `block (2 levels) in <top (required)>'
 /opt/puppetlabs/pdk/share/cache/ruby/3.2.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
 /opt/puppetlabs/pdk/private/ruby/3.2.5/bin/bundle:25:in `load'
 /opt/puppetlabs/pdk/private/ruby/3.2.5/bin/bundle:25:in `<main>'
 Tasks: TOP => litmus:provision_list
 (See full trace by running task with --trace)

Expected Behavior

provisioning to succeed

Steps to Reproduce

attempt to provision litmusimage/centos:stream9 using docker

Environment

  • c36abcfc6469278910c34b063d0e1fc98e4e93cc
  • centos stream 9

Additional Context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The failure points to provision/tasks/docker.rb:38 in install_ssh_components; start there and inspect how the Docker provisioner creates SSH host keys for CentOS Stream 9. Reproduce with the litmus:provision_list[default] task and confirm provisioning succeeds without the unsupported DSA-key command.

Written by the indexing model from the issue text.

Assessment

Tech stack
centos, docker, ruby
Domain
devops, infrastructure, operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.