OK, I ran it as a non-root user and that did clear up some of the errors. All
of the permission denied presumably. I am still getting a lot of errors that
indicate a "File not found"
Here's another example error
john@linux3 [/usr/local/dev/puppetsrc/puppet]
$ rspec ./spec/unit/transaction/resource_harness_spec.rb
………..
111) Puppet::Transaction::ResourceHarness when applying changes in normal
mode with no file initially present with mode=nil and ensure=nil stored in
state.yml with manifest settings {} should behave properly
Failure/Error: @logs.map {|l| "#{l.level}: #{l.source}:
#{l.message}"}.should =~ expected_logs
expected collection contained: []
actual collection contained: ["warning: /File[/my/file]/selrange:
Could not stat; No such file or directory - /my/file", "warning:
/File[/my/file]/selrole: Could not stat; No such file or directory - /my/file",
"warning: /File[/my/file]/seltype: Could not stat; No such file or directory -
/my/file", "warning: /File[/my/file]/seluser: Could not stat; No such file or
directory - /my/file", "warning:
/File[/tmp/rspecrun20130112-16741-163tqx8/foo20130112-16741-15ul5in-0]/selrange:
Could not stat; No such file or directory -
/tmp/rspecrun20130112-16741-163tqx8/foo20130112-16741-15ul5in-0", "warning:
/File[/tmp/rspecrun20130112-16741-163tqx8/foo20130112-16741-15ul5in-0]/selrole:
Could not stat; No such file or directory -
/tmp/rspecrun20130112-16741-163tqx8/foo20130112-16741-15ul5in-0", "warning:
/File[/tmp/rspecrun20130112-16741-163tqx8/foo20130112-16741-15ul5in-0]/seltype:
Could not stat; No such file or directory -
/tmp/rspecrun20130112-16741-163tqx8/foo20130112-16741-15ul5in-0", "warning:
/File[/tmp/rspecrun20130112-16741-163tqx8/foo20130112-16741-15ul5in-0]/seluser:
Could not stat; No such file or directory -
/tmp/rspecrun20130112-16741-163tqx8/foo20130112-16741-15ul5in-0"]
On Jan 13, 2013, at 4:26 PM, Jeff McCune <[email protected]> wrote:
Are you running the tests as root? The problem may be that Puppet is giving up
permissions and as a result cannot read from the temporary directories created
earlier as root.
Do you have this problem if you run the tests as a non-root user?
-Jeff
On Sun, Jan 13, 2013 at 1:02 PM, John Julien <[email protected]> wrote:
Hi,
I am attempting to run the rspec tests on a freshly forked copy of Puppet from
master.
I was expecting a 100% success rate since I read no pull requests are merged
unless they pass these tests. I'm wondering if there might be something I'm
missing in the setup of my dev environment because I got 1469 failures.
The failures seem to mostly be "File not found" and "Permission Denied"
Here's an example test that fails.
# rspec ./spec/integration/faces/ca_spec.rb
/usr/local/dev/puppetsrc/puppet/lib/puppet/version.rb:10: warning: already
initialized constant PUPPETVERSION
Run options: exclude {:broken=>true}
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Failures:
1) Puppet::Face[:ca, v0.1.0]
Failure/Error: Puppet::SSL::CertificateAuthority.new
Errno::EACCES:
Permission denied -
/tmp/rspecrun20130112-12540-19ypzxx/face-ca-ssldir20130112-12540-u835v1-0/ca/ca_key.pem
# ./lib/puppet/settings.rb:1024:in `initialize'
# ./lib/puppet/settings.rb:1024:in `open'
# ./lib/puppet/settings.rb:1024:in `writesub'
# ./lib/puppet/util.rb:59:in `withumask'
# ./lib/puppet/settings.rb:1023:in `writesub'
# ./lib/puppet/util/suidmanager.rb:79:in `asuser'
# ./lib/puppet/settings.rb:1016:in `writesub'
# ./lib/puppet/settings.rb:1002:in `write'
# ./lib/puppet/indirector/ssl_file.rb:162:in `write'
# ./lib/puppet/indirector/ssl_file.rb:98:in `save'
# ./lib/puppet/indirector/indirection.rb:266:in `save'
# ./lib/puppet/ssl/host.rb:147:in `generate_key'
# ./lib/puppet/ssl/host.rb:195:in `certificate'
# ./lib/puppet/ssl/certificate_authority.rb:248:in `setup'
# ./lib/puppet/ssl/certificate_authority.rb:170:in `initialize'
# ./spec/integration/faces/ca_spec.rb:20:in `new'
# ./spec/integration/faces/ca_spec.rb:20
/tmp/rspecrun20130112-12540-19ypzxx does not exist on my system
These are my permissions on /tmp
drwxrwxrwt. 3 root root 4096 Jan 12 15:35 /tmp
Anyone know why this might be failing?
Thanks,
John
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-dev/-/MIjH0Ie3OQwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.