Bug #2447
CSR tests broken
| Status: | Duplicate | Start date: | 07/25/2009 | |
|---|---|---|---|---|
| Priority: | Low | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | testing | |||
| Target version: | 0.25.2 | |||
| Affected Puppet version: | 0.24.8 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
2) Puppet::Error in 'Puppet::SSL::CertificateRequest should be able to save CSRs' Cannot save luke.madstop.com; parent directory /tmp/csr_integration_testing.14441.0/ssl/ca/requests does not exist /home/james/src/puppet/lib/puppet/indirector/ssl_file.rb:95:in `save' /home/james/src/puppet/spec/../lib/puppet/indirector/certificate_request/ca.rb:10:in `save' /home/james/src/puppet/lib/puppet/indirector/indirection.rb:258:in `save' /home/james/src/puppet/lib/puppet/indirector.rb:65:in `save' /home/james/src/puppet/lib/puppet/ssl/certificate_request.rb:44:in `save' ./spec/integration/ssl/certificate_request.rb:43: ./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run' ./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each' ./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run' 3) Puppet::Error in 'Puppet::SSL::CertificateRequest should be able to find saved certificate requests via the Indirector' Cannot save luke.madstop.com; parent directory /tmp/csr_integration_testing.14441.0/ssl/ca/requests does not exist /home/james/src/puppet/lib/puppet/indirector/ssl_file.rb:95:in `save' /home/james/src/puppet/spec/../lib/puppet/indirector/certificate_request/ca.rb:10:in `save' /home/james/src/puppet/lib/puppet/indirector/indirection.rb:258:in `save' /home/james/src/puppet/lib/puppet/indirector.rb:65:in `save' /home/james/src/puppet/lib/puppet/ssl/certificate_request.rb:44:in `save' ./spec/integration/ssl/certificate_request.rb:48: ./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run' ./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each' ./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run' 4) Puppet::Error in 'Puppet::SSL::CertificateRequest should save the completely CSR when saving' Cannot save luke.madstop.com; parent directory /tmp/csr_integration_testing.14441.0/ssl/ca/requests does not exist /home/james/src/puppet/lib/puppet/indirector/ssl_file.rb:95:in `save' /home/james/src/puppet/spec/../lib/puppet/indirector/certificate_request/ca.rb:10:in `save' /home/james/src/puppet/lib/puppet/indirector/indirection.rb:258:in `save' /home/james/src/puppet/lib/puppet/indirector.rb:65:in `save' /home/james/src/puppet/lib/puppet/ssl/certificate_request.rb:44:in `save' ./spec/integration/ssl/certificate_request.rb:55: ./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run' ./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each' ./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'
Brice – I think these might be since a patch of yours? Might also be wrong :) If so feel free to re-assign – probably to Luke as he is the other potentially guilty party…
Related issues
History
Updated by Brice Figureau almost 3 years ago
- Assignee changed from Brice Figureau to Luke Kanies
I’m sorry, I can’t seem to reproduce those on my macs.
Can you remember when those appeared?
Thus we could try to git bisect the issue and understand what happens. It’s as if on your platform, the settings are not “use()” in SSLfile, and thus the ssl directory never created.
Updated by Luke Kanies almost 3 years ago
I can’t reproduce these either. Maybe it’s because we have a .puppet/ssl?
Updated by Ethan Rowe almost 3 years ago
I also tried to reproduce, to no avail.
I blew away my .puppet/ssl; no difference.
I ran the single spec file by itself, or in context with all integration tests; no difference.
Updated by Luke Kanies almost 3 years ago
- Assignee changed from Luke Kanies to Markus Roberts
- Target version changed from 0.25.0 to 2.6.0
I’m bumping this and assigning it to Markus, as I expect it’s a test isolation issue.
Updated by Markus Roberts almost 3 years ago
I have managed to reproduce (but not yet isolate) the problem. There seem to be a host of other at best marginally related issues confounding the situation.
Updated by Markus Roberts almost 3 years ago
The minimum spec combination to reproduce this appears to be:
/usr/bin/ruby1.8 -I"/usr/lib/ruby/gems/1.8/gems/rspec-1.2.2/lib" "/usr/lib/ruby/gems/1.8/gems/rspec-1.2.2/bin/spec" \
spec/unit/util/backups.rb \
spec/integration/reference/providers.rb \
spec/integration/ssl/certificate_request.rb --format s --loadby mtime
But I have not yet ruled out other (system state) preconditions.
Updated by Markus Roberts almost 3 years ago
- Priority changed from Normal to Low
I’ve ruled out most of the likely system state contributors, and can reproduce on an otherwise working system. Therefore I’m >99% certain that it is entirely a test isolation problem and is not reveling any underlying bug.
Lowering priority and subsuming under my general test isolation cleanup effort. In that context this was a useful report in that it’s the first clear-cut case of a three-test interaction. Thank you.
Updated by Markus Roberts over 2 years ago
- Assignee changed from Markus Roberts to Jesse Wolfe
- Target version changed from 2.6.0 to 0.25.2
Updated by Jesse Wolfe over 2 years ago
- Status changed from Accepted to Duplicate
I’m pretty sure that this is a duplicate of #2870 , as the failure messages look exactly the same, and I can’t reproduce it using Markus’s incantation.