Issue #11540 has been updated by Josh Cooper.

Status changed from Needs Decision to Accepted
Affected Puppet version set to 2.7.8

Michael Higgins wrote:
> Okay, I spoke with Josh. The tests need to run on 1.8.5, but now, due to a 
> recent[?] change in puppet code (IIUC), they fail on slave02, a Centos5.5 
> box.  I agree with Josh that "fixing" the OS to accomodate these breaking 
> tests is a Bad Idea. 

This is new behavior since #6907 was fixed, because previously puppet would 
always pick a default provider, even if it wasn't suitable. This was the wrong 
behavior, as we should never use a provider that is not suitable for the 
platform.

In this case, the useradd provider, which was the default provider on Centos 5, 
is not suitable, because useradd is not world-executable  and we don't (and 
shouldn't) run the tests as root.
 
> Further, the problem seems to be that 'useradd' is not world-executable, and 
> I hear puppet needs it to be so.

Puppet requires that `useradd` be executable by whatever uid/gid the tests are 
running as.

> /usr/sbin/useradd -D
> -bash: /usr/sbin/useradd: Permission denied
> 
> Also, the tests require a group "puppet" (so I hear)? 
> ...
> But changing these would cause tests to pass where they are rightly[?] 
> failing. Again, I'm not familiar with the issue.

This is #9862
 
> I"m going to mark this as 'needs decision'. As I don't know who needs to make 
> that decision, punting over to Josh.

The tests that are failing need to be updated to take into account whether 
there is a default provider or not.
----------------------------------------
Bug #11540: Puppet Specs fail on Centos5
https://projects.puppetlabs.com/issues/11540

Author: Justin Stoller
Status: Accepted
Priority: Normal
Assignee: Josh Cooper
Category: testing
Target version: 2.7.x
Affected Puppet version: 2.7.8
Keywords: specs, centos5, el5
Branch: 


Running Puppet specs on Centos5 gives Many failures. Most pertain to Windows.

This is incredibly disconcerting and if was fixed would make 
testing/contributing to Puppet much easier.

I've attached a file with the complete output if a dev can tell from the full 
rspec output what the issues are.

Short story:
<pre>
Finished in 109.95 seconds
13179 examples, 213 failures, 88 pending
</pre>

Note, Centos5's packaged Ruby is 1.8.5



-- 
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://projects.puppetlabs.com/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