Skip to content

Create pki_dir structure only when deployed #1176

Create pki_dir structure only when deployed

Create pki_dir structure only when deployed #1176

Triggered via pull request November 7, 2023 12:21
Status Failure
Total duration 11m 38s
Artifacts

ci.yml

on: pull_request
Puppet  /  Static validations
2m 41s
Puppet / Static validations
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet  /  Test suite
0s
Puppet / Test suite
Fit to window
Zoom out
Zoom in

Annotations

24 errors
Puppet / 8 (Ruby 3.2): spec/defines/keypair_spec.rb#L22
certs::keypair with minimal parameters is expected to compile into a catalogue without dependency cycles Failure/Error: it { is_expected.to compile.with_all_deps } error during compilation: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: 'certs::pki_dir'. (file: /home/runner/work/puppet-certs/puppet-certs/spec/fixtures/modules/certs/manifests/config.pp, line: 4, column: 35) (line: 5) on node fv-az406-673.1cueg1przebu5exuv5ad43a23a.cx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/defines/keypair_spec.rb#L23
certs::keypair with minimal parameters is expected to contain Private_key[/path/to/key.pem] with ensure => "present", source => "/root/ssl-build/example.com/mykeypair.key", owner => "root", group => "root" and mode => "440" Failure/Error: is_expected.to contain_private_key('/path/to/key.pem') .with_ensure('present') .with_source('/root/ssl-build/example.com/mykeypair.key') .with_owner('root') .with_group('root') .with_mode('440') Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: 'certs::pki_dir'. (file: /home/runner/work/puppet-certs/puppet-certs/spec/fixtures/modules/certs/manifests/config.pp, line: 4, column: 35) (line: 5) on node fv-az406-673.1cueg1przebu5exuv5ad43a23a.cx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/defines/keypair_spec.rb#L32
certs::keypair with minimal parameters is expected to contain File[/path/to/cert.pem] with ensure => "present", source => "/root/ssl-build/example.com/mykeypair.crt", owner => "root", group => "root" and mode => "440" Failure/Error: is_expected.to contain_file('/path/to/cert.pem') .with_ensure('present') .with_source('/root/ssl-build/example.com/mykeypair.crt') .with_owner('root') .with_group('root') .with_mode('440') Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: 'certs::pki_dir'. (file: /home/runner/work/puppet-certs/puppet-certs/spec/fixtures/modules/certs/manifests/config.pp, line: 4, column: 35) (line: 5) on node fv-az406-673.1cueg1przebu5exuv5ad43a23a.cx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/defines/keypair_spec.rb#L45
certs::keypair with key_ensure => absent and cert_ensure => absent is expected to compile into a catalogue without dependency cycles Failure/Error: it { is_expected.to compile.with_all_deps } error during compilation: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: 'certs::pki_dir'. (file: /home/runner/work/puppet-certs/puppet-certs/spec/fixtures/modules/certs/manifests/config.pp, line: 4, column: 35) (line: 5) on node fv-az406-673.1cueg1przebu5exuv5ad43a23a.cx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/defines/keypair_spec.rb#L46
certs::keypair with key_ensure => absent and cert_ensure => absent is expected to contain Private_key[/path/to/key.pem] with ensure => "absent", source => "/root/ssl-build/example.com/mykeypair.key", owner => "root", group => "root" and mode => "440" Failure/Error: is_expected.to contain_private_key('/path/to/key.pem') .with_ensure('absent') .with_source('/root/ssl-build/example.com/mykeypair.key') .with_owner('root') .with_group('root') .with_mode('440') Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: 'certs::pki_dir'. (file: /home/runner/work/puppet-certs/puppet-certs/spec/fixtures/modules/certs/manifests/config.pp, line: 4, column: 35) (line: 5) on node fv-az406-673.1cueg1przebu5exuv5ad43a23a.cx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/defines/keypair_spec.rb#L55
certs::keypair with key_ensure => absent and cert_ensure => absent is expected to contain File[/path/to/cert.pem] with ensure => "absent", source => "/root/ssl-build/example.com/mykeypair.crt", owner => "root", group => "root" and mode => "440" Failure/Error: is_expected.to contain_file('/path/to/cert.pem') .with_ensure('absent') .with_source('/root/ssl-build/example.com/mykeypair.crt') .with_owner('root') .with_group('root') .with_mode('440') Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: 'certs::pki_dir'. (file: /home/runner/work/puppet-certs/puppet-certs/spec/fixtures/modules/certs/manifests/config.pp, line: 4, column: 35) (line: 5) on node fv-az406-673.1cueg1przebu5exuv5ad43a23a.cx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2)
Process completed with exit code 1.
Puppet / 7 (Ruby 2.7): spec/defines/keypair_spec.rb#L22
certs::keypair with minimal parameters is expected to compile into a catalogue without dependency cycles Failure/Error: it { is_expected.to compile.with_all_deps } error during compilation: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: 'certs::pki_dir'. (file: /home/runner/work/puppet-certs/puppet-certs/spec/fixtures/modules/certs/manifests/config.pp, line: 4, column: 35) (line: 5) on node fv-az507-632.0pkg5cskn4pudpvbqc2npim1ne.dx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/keypair_spec.rb#L23
certs::keypair with minimal parameters is expected to contain Private_key[/path/to/key.pem] with ensure => "present", source => "/root/ssl-build/example.com/mykeypair.key", owner => "root", group => "root" and mode => "440" Failure/Error: is_expected.to contain_private_key('/path/to/key.pem') .with_ensure('present') .with_source('/root/ssl-build/example.com/mykeypair.key') .with_owner('root') .with_group('root') .with_mode('440') Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: 'certs::pki_dir'. (file: /home/runner/work/puppet-certs/puppet-certs/spec/fixtures/modules/certs/manifests/config.pp, line: 4, column: 35) (line: 5) on node fv-az507-632.0pkg5cskn4pudpvbqc2npim1ne.dx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/keypair_spec.rb#L32
certs::keypair with minimal parameters is expected to contain File[/path/to/cert.pem] with ensure => "present", source => "/root/ssl-build/example.com/mykeypair.crt", owner => "root", group => "root" and mode => "440" Failure/Error: is_expected.to contain_file('/path/to/cert.pem') .with_ensure('present') .with_source('/root/ssl-build/example.com/mykeypair.crt') .with_owner('root') .with_group('root') .with_mode('440') Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: 'certs::pki_dir'. (file: /home/runner/work/puppet-certs/puppet-certs/spec/fixtures/modules/certs/manifests/config.pp, line: 4, column: 35) (line: 5) on node fv-az507-632.0pkg5cskn4pudpvbqc2npim1ne.dx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/keypair_spec.rb#L45
certs::keypair with key_ensure => absent and cert_ensure => absent is expected to compile into a catalogue without dependency cycles Failure/Error: it { is_expected.to compile.with_all_deps } error during compilation: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: 'certs::pki_dir'. (file: /home/runner/work/puppet-certs/puppet-certs/spec/fixtures/modules/certs/manifests/config.pp, line: 4, column: 35) (line: 5) on node fv-az507-632.0pkg5cskn4pudpvbqc2npim1ne.dx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/keypair_spec.rb#L46
certs::keypair with key_ensure => absent and cert_ensure => absent is expected to contain Private_key[/path/to/key.pem] with ensure => "absent", source => "/root/ssl-build/example.com/mykeypair.key", owner => "root", group => "root" and mode => "440" Failure/Error: is_expected.to contain_private_key('/path/to/key.pem') .with_ensure('absent') .with_source('/root/ssl-build/example.com/mykeypair.key') .with_owner('root') .with_group('root') .with_mode('440') Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: 'certs::pki_dir'. (file: /home/runner/work/puppet-certs/puppet-certs/spec/fixtures/modules/certs/manifests/config.pp, line: 4, column: 35) (line: 5) on node fv-az507-632.0pkg5cskn4pudpvbqc2npim1ne.dx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/keypair_spec.rb#L55
certs::keypair with key_ensure => absent and cert_ensure => absent is expected to contain File[/path/to/cert.pem] with ensure => "absent", source => "/root/ssl-build/example.com/mykeypair.crt", owner => "root", group => "root" and mode => "440" Failure/Error: is_expected.to contain_file('/path/to/cert.pem') .with_ensure('absent') .with_source('/root/ssl-build/example.com/mykeypair.crt') .with_owner('root') .with_group('root') .with_mode('440') Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: 'certs::pki_dir'. (file: /home/runner/work/puppet-certs/puppet-certs/spec/fixtures/modules/certs/manifests/config.pp, line: 4, column: 35) (line: 5) on node fv-az507-632.0pkg5cskn4pudpvbqc2npim1ne.dx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7)
Process completed with exit code 1.
Puppet / Puppet 8 - CentOS 8: vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-2.4.0/lib/voxpupuli/acceptance/examples.rb#L4
certs::apache with default parameters behaves like an idempotent resource applies with no errors Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}" Beaker::Host::CommandFailure: Host 'centos8-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_122701519.pp.8j3DPX Last 10 lines of output were: Info: Class[Certs::Ca]: Unscheduling all events on Class[Certs::Ca] Info: Class[Certs]: Unscheduling all events on Class[Certs] Error: /Stage[main]/Certs::Ca/File[/etc/pki/katello/certs/katello-server-ca.crt]: Could not evaluate: Could not retrieve information from environment production source(s) file:///root/ssl-build/katello-server-ca.crt �[mNotice: /Stage[main]/Certs::Apache/Cert[centos8-64-puppet8.example.com-apache]: Dependency Ca[katello-default-ca] has failures: true Info: Stage[main]: Unscheduling all events on Stage[main] Warning: /Stage[main]/Certs::Apache/Cert[centos8-64-puppet8.example.com-apache]: Skipping because of failed dependencies Warning: /Stage[main]/Certs::Apache/Certs::Keypair[centos8-64-puppet8.example.com-apache]/Private_key[/etc/pki/katello/private/katello-apache.key]: Skipping because of failed dependencies Warning: /Stage[main]/Certs::Apache/Certs::Keypair[centos8-64-puppet8.example.com-apache]/File[/etc/pki/katello/private/katello-apache.key]: Skipping because of failed dependencies Warning: /Stage[main]/Certs::Apache/Certs::Keypair[centos8-64-puppet8.example.com-apache]/File[/etc/pki/katello/certs/katello-apache.crt]: Skipping because of failed dependencies �[mNotice: Applied catalog in 6.04 seconds Shared Example Group: "an idempotent resource" called from ./spec/acceptance/apache_spec.rb:14
Puppet / Puppet 8 - CentOS 8: vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-2.4.0/lib/voxpupuli/acceptance/examples.rb#L8
certs::apache with default parameters behaves like an idempotent resource applies a second time without changes Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}" Beaker::Host::CommandFailure: Host 'centos8-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_122711832.pp.FRixVT Last 10 lines of output were: Error: /Stage[main]/Certs::Ca/Ca[katello-server-ca]: Could not evaluate: undefined method `exists?' for File:Class Warning: /Stage[main]/Certs::Ca/File[/root/ssl-build/KATELLO-TRUSTED-SSL-CERT]: Skipping because of failed dependencies Error: /Stage[main]/Certs::Ca/File[/etc/pki/katello/certs/katello-default-ca.crt]: Could not evaluate: Could not retrieve information from environment production source(s) file:///root/ssl-build/katello-default-ca.crt �[mNotice: /Stage[main]/Certs::Apache/Cert[centos8-64-puppet8.example.com-apache]: Dependency Ca[katello-default-ca] has failures: true Error: /Stage[main]/Certs::Ca/File[/etc/pki/katello/certs/katello-server-ca.crt]: Could not evaluate: Could not retrieve information from environment production source(s) file:///root/ssl-build/katello-server-ca.crt Warning: /Stage[main]/Certs::Apache/Cert[centos8-64-puppet8.example.com-apache]: Skipping because of failed dependencies Warning: /Stage[main]/Certs::Apache/Certs::Keypair[centos8-64-puppet8.example.com-apache]/Private_key[/etc/pki/katello/private/katello-apache.key]: Skipping because of failed dependencies Warning: /Stage[main]/Certs::Apache/Certs::Keypair[centos8-64-puppet8.example.com-apache]/File[/etc/pki/katello/private/katello-apache.key]: Skipping because of failed dependencies Warning: /Stage[main]/Certs::Apache/Certs::Keypair[centos8-64-puppet8.example.com-apache]/File[/etc/pki/katello/certs/katello-apache.crt]: Skipping because of failed dependencies �[mNotice: Applied catalog in 0.11 seconds Shared Example Group: "an idempotent resource" called from ./spec/acceptance/apache_spec.rb:14
Puppet / Puppet 8 - CentOS 8: spec/acceptance/apache_spec.rb#L19
certs::apache with default parameters X509 certificate "/etc/pki/katello/certs/katello-apache.crt" is expected to be certificate Failure/Error: it { should be_certificate } expected `X509 certificate "/etc/pki/katello/certs/katello-apache.crt".certificate?` to be truthy, got false
Puppet / Puppet 8 - CentOS 8: spec/acceptance/apache_spec.rb#L20
certs::apache with default parameters X509 certificate "/etc/pki/katello/certs/katello-apache.crt" is expected to be valid Failure/Error: it { should be_valid } expected `X509 certificate "/etc/pki/katello/certs/katello-apache.crt".valid?` to be truthy, got false
Puppet / Puppet 8 - CentOS 8: spec/acceptance/apache_spec.rb#L21
certs::apache with default parameters X509 certificate "/etc/pki/katello/certs/katello-apache.crt" is expected to have purpose "server" Failure/Error: it { should have_purpose 'server' } expected `X509 certificate "/etc/pki/katello/certs/katello-apache.crt".has_purpose?("server")` to be truthy, got false
Puppet / Puppet 8 - CentOS 8: spec/acceptance/apache_spec.rb#L22
certs::apache with default parameters X509 certificate "/etc/pki/katello/certs/katello-apache.crt" issuer is expected to eq "C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = centos8-64-puppet8.example.com" Failure/Error: its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") } expected: "C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = centos8-64-puppet8.example.com" got: "" (compared using ==)
Puppet / Puppet 8 - CentOS 8: spec/acceptance/apache_spec.rb#L23
certs::apache with default parameters X509 certificate "/etc/pki/katello/certs/katello-apache.crt" subject is expected to eq "C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = centos8-64-puppet8.example.com" Failure/Error: its(:subject) { should eq("C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") } expected: "C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = centos8-64-puppet8.example.com" got: "" (compared using ==)
Puppet / Puppet 8 - CentOS 8: spec/acceptance/apache_spec.rb#L24
certs::apache with default parameters X509 certificate "/etc/pki/katello/certs/katello-apache.crt" keylength is expected to be >= 4096 Failure/Error: its(:keylength) { should be >= 4096 } expected: >= 4096 got: 0
Puppet / Puppet 8 - CentOS 8: spec/acceptance/apache_spec.rb#L29
certs::apache with default parameters X509 private key "/etc/pki/katello/private/katello-apache.key" is expected to be valid Failure/Error: it { should be_valid } expected `X509 private key "/etc/pki/katello/private/katello-apache.key".valid?` to be truthy, got false
Puppet / Puppet 8 - CentOS 8: spec/acceptance/apache_spec.rb#L30
certs::apache with default parameters X509 private key "/etc/pki/katello/private/katello-apache.key" is expected to have matching certificate "/etc/pki/katello/certs/katello-apache.crt" Failure/Error: it { should have_matching_certificate('/etc/pki/katello/certs/katello-apache.crt') } expected `X509 private key "/etc/pki/katello/private/katello-apache.key".has_matching_certificate?("/etc/pki/katello/certs/katello-apache.crt")` to be truthy, got false