Wednesday, 2010-06-30

[2010/06/30 00:29:02] @ Log started by gepetto
[2010/06/30 00:29:02] @ Quit: nicklewis: Quit: Page closed
[2010/06/30 00:29:14] @ nick joined channel #puppet-dev
[2010/06/30 00:29:42] @ nick is now known as Guest59441
[2010/06/30 00:30:04] @ Guest59441 is now known as nicklewis
[2010/06/30 01:27:41] @ Quit: nicklewis: Quit: Page closed
[2010/06/30 05:11:28] @ joergherzinger joined channel #puppet-dev
[2010/06/30 07:12:58] @ Quit: joergherzinger: Remote host closed the connection
[2010/06/30 07:32:36] @ rcrowley joined channel #puppet-dev
[2010/06/30 09:11:30] @ lak joined channel #puppet-dev
[2010/06/30 09:59:45] @ plathrop-away is now known as plathrop
[2010/06/30 10:31:09] @ nicklewis joined channel #puppet-dev
[2010/06/30 12:44:03] @ Quit: lak: Quit: lak
[2010/06/30 12:44:09] @ beata- joined channel #puppet-dev
[2010/06/30 12:53:14] @ Quit: rcrowley: Quit: rcrowley
[2010/06/30 13:38:21] @ rcrowley joined channel #puppet-dev
[2010/06/30 13:46:32] @ Quit: rcrowley: Quit: rcrowley
[2010/06/30 14:17:58] @ plathrop is now known as plathrop-away
[2010/06/30 14:39:09] @ lak joined channel #puppet-dev
[2010/06/30 15:39:40] @ rcrowley joined channel #puppet-dev
[2010/06/30 17:41:31] @ Quit: lak: Ping timeout: 265 seconds
[2010/06/30 18:27:45] @ Quit: nicklewis: Ping timeout: 252 seconds
[2010/06/30 19:59:50] @ Djelibeybi joined channel #puppet-dev
[2010/06/30 20:00:06] <Djelibeybi> Hey kids. In the new world of 2.6, --genconfig doesn't seem to work (or has it changed)?
[2010/06/30 20:00:19] * Djelibeybi is trying to run puppetd --genconfig
[2010/06/30 20:00:34] <Djelibeybi> Oh, nevermind.
[2010/06/30 20:14:20] @ Quit: rcrowley: Quit: rcrowley
[2010/06/30 20:16:21] <Djelibeybi> So, I'm trying to write up a blog post on Oracle support in 2.6, but I'm getting a weird error from the latest puppet master code:
[2010/06/30 20:16:29] <Djelibeybi> Could not parse configuration file: Could not autoload active_record: uninitialized constant Puppet::Rails
[2010/06/30 20:16:47] <Djelibeybi> Full puppet.conf, gem list and error at http://pastie.org/1026108 for anyone willing to help. :)
[2010/06/30 20:19:15] @ lak joined channel #puppet-dev
[2010/06/30 20:19:57] <Djelibeybi> Heh, lak would join 2 minutes after I post my error. :)
[2010/06/30 20:20:10] <lak> Djelibeybi: that's just how i roll :)
[2010/06/30 20:20:15] * lak isn't online for long
[2010/06/30 20:20:18] <lak> something quick?
[2010/06/30 20:20:38] <Djelibeybi> Probably not. Getting Could not parse configuration file: Could not autoload active_record: uninitialized constant
[2010/06/30 20:20:45] <Djelibeybi> When trying to enable Oracle based storeconfigs
[2010/06/30 20:20:56] <Djelibeybi> Whoops:
[2010/06/30 20:21:00] <Djelibeybi> Could not parse configuration file: Could not autoload active_record: uninitialized constant Puppet::Rails
[2010/06/30 20:21:08] <Djelibeybi> That's the entire output of puppet master --debug --verbose
[2010/06/30 20:21:45] <Djelibeybi> So I'm trying to work out why Puppet::Rails isn't working
[2010/06/30 20:21:45] <lak> what happens if you do 'ruby -rpuppet .../path/to/active_record.rb'?
[2010/06/30 20:22:05] <Djelibeybi> Let me find active_record.rb and see
[2010/06/30 20:22:15] <lak> that is, if you skip the autoloading system, it sometimes will show the error
[2010/06/30 20:23:10] <Djelibeybi> [root@puppet puppet]# ruby -rpuppet /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/activerecord.rb
[2010/06/30 20:23:10] <Djelibeybi> DEPRECATION WARNING: require "activerecord" is deprecated and will be removed in Rails 3. Use require "active_record" instead. (called from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/activerecord.rb:2)
[2010/06/30 20:25:41] <lak> hrm
[2010/06/30 20:26:19] <lak> this is with your oracle stuff, right?
[2010/06/30 20:26:33] <lak> it might be a load order issue
[2010/06/30 20:26:34] <Djelibeybi> Yup
[2010/06/30 20:26:47] <lak> maybe through in a couple of extra Puppet.features.rails? calls wherever it might be appropriate?
[2010/06/30 20:26:49] <Djelibeybi> puppet.conf and gem list here: http://pastie.org/1026108
[2010/06/30 20:26:51] <lak> that's about all i can think of
[2010/06/30 20:27:27] <lak> catching and displaying ruby load exceptions in a usable way is fantastically difficult
[2010/06/30 20:27:33] * Djelibeybi is not a Ruby developer, so I have no idea where it might be appropriate. I'll prod jamesturnbull and make him help me.
[2010/06/30 20:27:49] <lak> i have to run, but if you can't sort it out, can you email it to the list? include a link to your code again
[2010/06/30 20:27:51] * Djelibeybi prods jamesturnbull. Oi. Wake up, Mr Has-SSN-Now.
[2010/06/30 20:28:01] <Djelibeybi> lak: sure. THe code is in 2.6 already, so git pull. :)
[2010/06/30 20:28:05] <lak> reasonable places are essentially, wherever you added code :)
[2010/06/30 20:28:06] <lak> ah
[2010/06/30 20:28:08] <lak> hrm
[2010/06/30 20:28:19] * lak runs away frightened
[2010/06/30 20:28:25] <Djelibeybi> lib/puppet/rails.rb
[2010/06/30 20:28:41] <Djelibeybi> Hehehe
[2010/06/30 20:28:48] <Djelibeybi> Let's see if storeconfigs works at all...
[2010/06/30 20:29:02] <lak> hrm, lib/puppet/rails.rb can't be causing the Puppet::Rails constant to be missing...
[2010/06/30 20:29:18] <lak> Djelibeybi: if you run puppetmasterd with --trace, do you get a stack trace?
[2010/06/30 20:29:24] <Djelibeybi> lak: let's see
[2010/06/30 20:30:10] <Djelibeybi> lak: http://pastie.org/1026127
[2010/06/30 20:30:54] <lak> yeah, there need to be some extra require's in there
[2010/06/30 20:31:07] <lak> lib/puppet/rails/param_value needs to require lib/puppet/rails
[2010/06/30 20:31:09] <lak> for instance
[2010/06/30 20:31:25] <lak> dunno how that's getting loaded before lib/puppet/rails -- probably in the resource conversion process
[2010/06/30 20:32:09] <Djelibeybi> lak: but would this be Oracle specific? Should I try firing up MySQL to see if it happens with any backend?
[2010/06/30 20:32:20] <Djelibeybi> Though, it hasn't even tried to initialize the DB
[2010/06/30 20:32:24] <lak> it shouldn't be anything specific
[2010/06/30 20:32:41] <lak> if you've got mysql lying around, it can't hurt to test
[2010/06/30 20:32:52] <lak> but i've seen this in weird cases
[2010/06/30 20:32:53] <Djelibeybi> I'm on 100Mbps. Installing MySQL is easy. :)
[2010/06/30 20:32:58] * Djelibeybi goes off testing
[2010/06/30 20:33:00] <lak> braggart
[2010/06/30 20:33:02] <lak> :/
[2010/06/30 20:33:11] <lak> there are definitely requires missing
[2010/06/30 20:33:34] <Djelibeybi> Takes longer to install the RPM than to download it. :)
[2010/06/30 20:33:39] <Djelibeybi> Should I just log this as a bug?
[2010/06/30 20:33:53] * Djelibeybi waits until MySQL is ready and will log it if it happens with that
[2010/06/30 20:34:38] <lak> yes, please log it as a bug
[2010/06/30 20:34:44] <Djelibeybi> Ok.
[2010/06/30 20:34:48] <lak> and definitely include that stack trace
[2010/06/30 20:34:50] <lak> ok, gotta run
[2010/06/30 20:34:51] <lak> good luck
[2010/06/30 20:34:52] @ Quit: lak: Quit: lak
[2010/06/30 20:35:24] <Djelibeybi> Ah, yes. I remember why I didn't use mysql last time. It requires Ruby >= 1.8.6 and EL5 has 1.8.5
[2010/06/30 20:35:28] <Djelibeybi> PostgreSQL ho~
[2010/06/30 20:35:44] <Djelibeybi> Actually, sqlite ho
[2010/06/30 20:37:42] <Djelibeybi> Yup, happens with sqlite too. Bug report, ho!
[2010/06/30 20:44:52] <Djelibeybi> http://projects.puppetlabs.com/issues/4109
[2010/06/30 21:31:00] @ rcrowley joined channel #puppet-dev
[2010/06/30 21:41:49] @ Quit: rcrowley: Quit: rcrowley
[2010/06/30 21:46:01] @ jeffmccune joined channel #puppet-dev
[2010/06/30 22:04:01] @ Quit: jeffmccune: Quit: jeffmccune
[2010/06/30 22:10:59] @ rcrowley joined channel #puppet-dev
[2010/06/30 22:17:14] @ jeffmccune joined channel #puppet-dev
[2010/06/30 22:58:44] @ Quit: Djelibeybi: Quit: Leaving
[2010/06/30 23:04:37] @ lak joined channel #puppet-dev
[2010/06/30 23:09:18] @ Quit: lak: Ping timeout: 265 seconds

Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!