Issue #2290 has been updated by Markus Roberts.

For posterity, the problem is triggered by the webrick test's creation of a 
CertificateAuthority, but only manifests itself under certain test orders 
(indicating a failure in test isolation) and only when the testing user has 
rights to modify @/tmp@'s permissions.  Otherwise, you get a message such as 
this:

<pre>
3)
RuntimeError in 'Puppet::Network::Server when using webrick before listening 
should not be reachable at the specified address and port'
Got 1 failure(s) while initializing: change from 1777 to 1755 failed: failed to 
chmod /tmp: Operation not permitted - /tmp             
/home/markus/projects/puppet/puppet/lib/puppet/util/settings.rb:619:in `use'    
                                                       
/home/markus/projects/puppet/puppet/lib/puppet/resource/catalog.rb:152:in 
`apply'                                                      
/home/markus/projects/puppet/puppet/lib/puppet/util/settings.rb:615:in `use'    
                                                       
/home/markus/projects/puppet/puppet/lib/puppet/util/settings.rb:597:in `use'    
                                                       
/home/markus/projects/puppet/puppet/lib/puppet/ssl/certificate_authority.rb:148:in
 `initialize'                                        
./spec/integration/network/server/webrick.rb:24:in `new'                        
                                                       
./spec/integration/network/server/webrick.rb:24:                                
                                                       
./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'      
                                                       
</pre>

----------------------------------------
Bug #2290: Puppet specs chmod /tmp from 1777 to 1755
http://projects.reductivelabs.com/issues/2290

Author: James Turnbull
Status: Accepted
Priority: Normal
Assigned to: Markus Roberts
Category: testing
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.24.8
Keywords: 


The chmod works but we don't then revert the change.  This breaks a lot of 
other stuff on the host running the tests.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to