-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Labels
Description
Describe the Bug
When trying to provision a Vagrant box, I get an error message about missing gems.
Expected Behavior
I expect that the Vagrant machine would get provisioned.
Steps to Reproduce
In my provision.yaml
file:
---
default:
provisioner: docker
images: ['litmusimage/rockylinux:9']
vagrant:
provisioner: vagrant
images: ['almalinux/9']
$ pdk bundle exec rake 'litmus:provision_list[vagrant]'
pdk (INFO): Using Ruby 3.2.5
pdk (INFO): Using Puppet 8.10.0
Notice: Preparing to install into /home/person/puppet/modules/puppet-module/spec/fixtures/modules ...
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Installing -- do not interrupt ...
/home/person/puppet/modules/puppet-module/spec/fixtures/modules
└── puppetlabs-yumrepo_core (v2.1.0)
[✔] Provisioning almalinux/9 using vagrant provisioner.
rake aborted!
provisioning of almalinux/9 failed.
Results:
localhost: {"_error"=>{"kind"=>"provision/vagrant_failure", "msg"=>"Attempted to run\ncommand:'vagrant up --provider virtualbox'\nstdout:\nstderr:/opt/puppetlabs/pdk/private/ruby/3.2.5/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/definition.rb:524:in `materialize': Could not find json-2.6.3, deep_merge-1.2.2, voxpupuli-puppet-lint-plugins-5.0.0, facterdb-3.7.0, metadata-json-lint-4.2.1, json-schema-5.1.0, rspec-puppet-facts-5.2.0, dependency_checker-1.0.1, parallel_tests-3.12.1, pry-0.15.2, simplecov-console-0.9.3, puppet-debugger-1.5.0, rubocop-1.50.2, rubocop-performance-1.16.0, rubocop-rspec-2.19.0, puppet-strings-4.1.3, puppetlabs_spec_helper-8.0.0, puppet-blacksmith-7.1.0, puppet_litmus-1.6.1, serverspec-2.42.3, puppet-8.10.0, puppet-lint-4.3.0, puppet-lint-absolute_classname-check-4.0.0, puppet-lint-anchor-check-2.0.0, puppet-lint-file_ensure-check-2.0.0, puppet-lint-leading_zero-check-2.0.0, puppet-lint-lookup_in_parameter-check-2.0.0, puppet-lint-manifest_whitespace-check-0.3.0, puppet-lint-optional_default-check-2.0.0, puppet-lint-param-docs-2.0.0, puppet-lint-param-types-2.0.0, puppet-lint-params_empty_string-check-2.0.0, puppet-lint-resource_reference_syntax-2.0.0, puppet-lint-strict_indent-check-3.0.0, puppet-lint-topscope-variable-check-2.0.0, puppet-lint-trailing_comma-check-2.0.0, puppet-lint-unquoted_string-check-3.0.0, puppet-lint-variable_contains_upcase-2.0.0, puppet-lint-version_comparison-check-2.0.0, facter-4.10.0, jgrep-1.5.4, semantic_puppet-1.1.1, spdx-licenses-1.3.0, addressable-2.8.7, parallel-1.27.0, puppet_forge-5.0.4, rake-13.2.1, coderay-1.1.3, method_source-1.1.0, ansi-1.5.0, simplecov-0.22.0, terminal-table-3.0.2, awesome_print-1.9.2, pluginator-1.5.0, rb-readline-0.5.5, table_print-1.5.7, tty-pager-0.14.0, parser-3.3.8.0, rainbow-3.1.1, regexp_parser-2.10.0, rubocop-ast-1.44.1, ruby-progressbar-1.13.0, unicode-display_width-2.6.0, rubocop-capybara-2.21.0, rgen-0.10.2, yard-0.9.36, mocha-2.7.1, pathspec-2.1.0, puppet-syntax-4.1.1, rspec-github-2.4.0, rspec-puppet-5.0.0, puppet-modulebuilder-1.1.0, rest-client-2.1.0, bolt-4.0.0, docker-api-2.4.0, retryable-3.0.5, rspec-3.13.0, tty-spinner-0.9.3, rspec-its-2.0.0, specinfra-2.93.0, fast_gettext-2.4.0, locale-2.1.4, puppet-resource_api-1.9.0, scanf-1.0.0, hocon-1.4.0, thor-1.2.2, public_suffix-6.0.1, faraday-2.13.0, faraday-follow_redirects-0.3.0, minitar-0.12.1, docile-1.4.1, simplecov-html-0.13.1, simplecov_json_formatter-0.1.4, strings-0.2.1, tty-screen-0.8.2, ast-2.4.3, racc-1.8.1, prism-1.4.0, rspec-core-3.13.3, http-accept-1.7.0, http-cookie-1.0.8, mime-types-3.6.2, netrc-0.11.0, CFPropertyList-3.0.7, aws-sdk-ec2-1.515.0, hiera-eyaml-3.4.0, net-ssh-krb-0.5.1, orchestrator_client-0.7.1, puppetfile-resolver-0.6.3, r10k-4.1.0, ruby_smb-1.1.0, rspec-expectations-3.13.3, rspec-mocks-3.13.2, tty-cursor-0.7.1, net-telnet-0.2.0, sfl-2.3, prime-0.1.3, logger-1.7.0, strings-ansi-0.2.0, unicode_utils-1.4.0, rspec-support-3.13.2, domain_name-0.6.20240107, mime-types-data-3.2025.0415, nkf-0.2.0, aws-sdk-core-3.222.1, aws-sigv4-1.11.0, highline-3.1.2, optimist-3.2.1, faraday-net_http_persistent-2.3.0, molinillo-0.8.0, colored2-3.1.2, cri-2.15.12, gettext-setup-1.1.0, bindata-2.5.1, windows_error-0.1.5, rubyzip-2.4.1, diff-lcs-1.6.1, singleton-0.3.0, aws-eventstream-1.3.2, aws-partitions-1.1087.0, jmespath-1.6.2, reline-0.6.1, net-http-persistent-4.0.5, gettext-3.5.1, mutex_m-0.3.0, bigdecimal-3.1.9, uri-1.0.3, io-console-0.8.0, connection_pool-2.5.0, text-1.3.1 in locally installed gems (Bundler::GemNotFound)\n\tfrom /opt/puppetlabs/pdk/private/ruby/3.2.5/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/definition.rb:197:in `specs'\n\tfrom /opt/puppetlabs/pdk/private/ruby/3.2.5/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/definition.rb:254:in `specs_for'\n\tfrom /opt/puppetlabs/pdk/private/ruby/3.2.5/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/runtime.rb:18:in `setup'\n\tfrom /opt/puppetlabs/pdk/private/ruby/3.2.5/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler.rb:162:in `setup'\n\tfrom /opt/puppetlabs/pdk/private/ruby/3.2.5/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/setup.rb:23:in `block in <top (required)>'\n\tfrom /opt/puppetlabs/pdk/private/ruby/3.2.5/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/ui/shell.rb:159:in `with_level'\n\tfrom /opt/puppetlabs/pdk/private/ruby/3.2.5/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/ui/shell.rb:111:in `silence'\n\tfrom /opt/puppetlabs/pdk/private/ruby/3.2.5/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/setup.rb:23:in `<top (required)>'\n\tfrom <internal:/opt/vagrant/embedded/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'\n\tfrom <internal:/opt/vagrant/embedded/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'\n\tfrom /opt/vagrant/embedded/lib/ruby/3.3.0/rubygems.rb:1397:in `<top (required)>'\n\tfrom <internal:gem_prelude>:2:in `require'\n\tfrom <internal:gem_prelude>:2:in `<internal:gem_prelude>'\n", "details"=>{}}}}
/home/person/.pdk/cache/ruby/3.2.0/gems/puppet_litmus-1.6.1/lib/puppet_litmus/rake_helper.rb:332:in `raise_bolt_errors'
/home/person/.pdk/cache/ruby/3.2.0/gems/puppet_litmus-1.6.1/lib/puppet_litmus/rake_helper.rb:76:in `provision'
/home/person/.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/person/.pdk/cache/ruby/3.2.0/gems/puppet_litmus-1.6.1/lib/puppet_litmus/rake_tasks.rb:51:in `each'
/home/person/.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)
Environment
- Guest OS: Ubuntu 24.04
- PDK Version: 3.4.0
- puppet_litmus version: 1.6.1
- Vagrant: 2.4.6
- VirtualBox: 7.0.16