获取失败/错误:Ppetpet :: SSL :: CertificateAuthority.new在puppet中

时间:2015-06-23 07:06:48

标签: ssl rspec puppet

我从源代码构建了puppet,在同一个节点上同时使用puppet master和agent的独立架构,当我运行rspec测试用例时,我得到了很多SSL证书问题,几乎所有的都有同样的失败。

Puppet::Face[:ca, v0.1.0]   
     Failure/Error: Puppet::SSL::CertificateAuthority.new   
     Errno::EACCES:   
       Permission denied @ rb_sysopen - /tmp/rspecrun20150617-23070-1ls4i9z/face-ca-ssldir20150617-23070-hwwl9f/ca/ca_key.pem   
     # ./lib/puppet/file_system/file_impl.rb:26:in `initialize'  
     # ./lib/puppet/file_system/file_impl.rb:26:in `open'  
     # ./lib/puppet/file_system/file_impl.rb:26:in `open'  
     # ./lib/puppet/file_system.rb:37:in `open'  
     # ./lib/puppet/settings/file_setting.rb:197:in `block in open'  
     # ./lib/puppet/settings/file_setting.rb:230:in `block (2 levels) in controlled_access'  
     # ./lib/puppet/util.rb:48:in `withumask'  
     # ./lib/puppet/settings/file_setting.rb:221:in `block in controlled_access'  
     # ./lib/puppet/util/suidmanager.rb:72:in `asuser'   
     # ./lib/puppet/settings/file_setting.rb:219:in `controlled_access'  
     # ./lib/puppet/settings/file_setting.rb:196:in `open'  
     # ./lib/puppet/indirector/ssl_file.rb:162:in `write'  
     # ./lib/puppet/indirector/ssl_file.rb:98:in `save'   
     # ./lib/puppet/indirector/indirection.rb:276:in `save'  
     # ./lib/puppet/ssl/host.rb:151:in `generate_key'   
     # ./lib/puppet/ssl/host.rb:197:in `certificate'   
     # ./lib/puppet/ssl/certificate_authority.rb:270:in `setup'  
     # ./lib/puppet/ssl/certificate_authority.rb:161:in `initialize'  
     # ./spec/integration/faces/ca_spec.rb:20:in `new'  
     # ./spec/integration/faces/ca_spec.rb:20:in `block (2 levels) in <top (required)>'

0 个答案:

没有答案