I have ruby-1.9.2 with all the rubygems (from fedora15) needed to run
puppet 2.7.0rc. http://rubyrepo.elctech.com/ 2.7.0rc3 had a couple
errors so I added 2.7.0rc from git as of an hour ago. In the past five
minutes is seems for work OK.
Is there a jenkins CI instance running against ruby 1.9.2?
I did see this error in my logs:
Jun 7 11:50:49 sysadmin puppet-agent[5152]:
(/Stage[main]/Puppetd/Tidy[/etc/puppet/auth.conf.rpmnew]) Tidying
File[/etc/puppet/auth.conf.rpmnew]
Jun 7 11:50:50 sysadmin puppet-agent[5152]: Got an uncaught exception
of type NameError: uninitialized class variable @@scale in
Puppet::Type::Schedule::ParameterPeriod
from:
schedule { dailytidy:
range => "9 - 13",
period => daily,
repeat => 1
}
tidy { "/etc/puppet/auth.conf.rpmnew":
schedule => 'dailytidy',
age => '0s',
backup => 'false',
}
tidy { "/etc/puppet/puppet.conf.rpmnew":
schedule => 'dailytidy',
age => '0s',
backup => 'false',
}
--
Christopher McCrory
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
On Tue, 2011-06-07 at 12:04 -0700, Christopher McCrory wrote:
<snip>
> I did see this error in my logs:
>
Actually this fails. The output says that the file was deleted, but it
really is not.
>
> Jun 7 11:50:49 sysadmin puppet-agent[5152]:
> (/Stage[main]/Puppetd/Tidy[/etc/puppet/auth.conf.rpmnew]) Tidying
> File[/etc/puppet/auth.conf.rpmnew]
> Jun 7 11:50:50 sysadmin puppet-agent[5152]: Got an uncaught exception
> of type NameError: uninitialized class variable @@scale in
> Puppet::Type::Schedule::ParameterPeriod
>
<snip>
and puppet-2.6.8-1.el5 with ruby 1.8.5 clients seem to fail with:
err: Could not retrieve catalog from remote server: Error 414 on SERVER:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD><TITLE>Request-URI Too Large</TITLE></HEAD>
<BODY>
<H1>Request-URI Too Large</H1>
WEBrick::HTTPStatus::RequestURITooLarge
<HR>
<ADDRESS>
WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18) OpenSSL/0.9.8e-rhel5 at
sysadmin.elctech.net:8140
</ADDRESS>
</BODY>
</HTML>
Hey there.
> I have ruby-1.9.2 with all the rubygems (from fedora15) needed to run
> puppet 2.7.0rc. http://rubyrepo.elctech.com/ 2.7.0rc3 had a couple
> errors so I added 2.7.0rc from git as of an hour ago. In the past five
> minutes is seems for work OK.
Thanks for the interest. So, um, 1.9.2 is a bit rough in the 2.7.0
release. We have a bunch of known issues in the spec suite, called
out with a tag to avoid running them, so we can make sure we don't
regress - but I wouldn't expect full stability at this point.
> Is there a jenkins CI instance running against ruby 1.9.2?
https://jenkins.puppetlabs.com/job/Puppet%20Specs%20(2.7.x)/ actually
runs against 1.9.2 in addition to the other versions, but we don't run
the full suite and have known failures at this stage. :/
We hope to redress these issues in the near future, and I would
encourage you to file bugs for the problems you hit.
Daniel
--
⎋ Puppet Labs Developer – http://puppetlabs.com
✉ Daniel Pittman <dan...@puppetlabs.com>
✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775
♲ Made with 100 percent post-consumer electrons
The semantics of class variables has changed in 1.9.2; as a quick check,
try changing both occurrences of the variable "@@scale" in
lib/puppet/type/schedule.rb to "Schedule_scales" (note the capital
letter) and likewise with "@@methods" to "Schedule_methods" and see if
that works.
If it does, you can submit it as a patch; if it doesn't, try
"::Scedule_scales" and "::Scedule_methods" which is uglier but should
definitely fix it.
-- Markus
I ended up reverting back to puppet-2.6.8 and ruby-1.8.5 (centos5). see
other email about URI size. I tried putting apache in front and ran
into many more errors:
# yumrepo enable => '0'
2011-06-08 04:23:19 -0700 /Stage[main]/Yum/Yumrepo[ius-testing] (err):
Could not evaluate: undefined method `file?' for
Puppet::Type::File:Class
I'm finishing up some work pre-vacation so it will be a couple weeks
before I can re-visit this.
which git branch would be the best to follow for ruby 1.9.2; master or
2.7.0rc ?
> -- Markus