Perl 6 - the future is here, just unevenly distributed

IRC log for #puppet-openstack, 2013-11-01

| Channels | #puppet-openstack index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:01 e1mer joined #puppet-openstack
00:05 rmoe joined #puppet-openstack
00:36 rmoe joined #puppet-openstack
00:46 rongze joined #puppet-openstack
00:55 tnoor1 joined #puppet-openstack
01:14 xarses joined #puppet-openstack
01:23 rmoe joined #puppet-openstack
01:41 tnoor1 joined #puppet-openstack
01:48 mgagne bodepd_: would there be a way to do introspection on class interface using a puppet function?
01:55 xingchao joined #puppet-openstack
01:56 mgagne xingchao: it's the morning already :O
01:56 rongze joined #puppet-openstack
01:56 bodepd_ explain exactly what you are trying to do
01:56 bodepd_ mgagne: ^^^
01:57 mgagne bodepd_: would there be a way to test if a class accepts a parameter or not before invoking it?
01:57 bodepd_ mgagne: there is
01:57 bodepd_ that is possible to do at run-time
01:57 bodepd_ but classes do that automatically
01:57 bodepd_ and provide good error messages
01:57 bodepd_ so why would you ever need to do that
01:57 bodepd_ ?
01:58 mgagne bodepd_: support cases where a version supports a parameter and the other not.
01:58 mgagne bodepd_: or
01:59 mgagne bodepd_: includes a completely different class (B) if the class A does not support a parameter
01:59 bodepd_ mgagne: give an example
01:59 mgagne bodepd_: writing one
02:00 xingchao mgagne: Yes,it is :)
02:00 mgagne bodepd_: https://gist.github.com/mg​agne/f0655f9c5293b14b3538
02:02 bodepd_ I meant a real world example of why you would want that
02:02 bodepd_ except for backwards compat breakages, you know what params are in what classes?
02:02 mgagne bodepd_: mainly for backward compatibility
02:02 bodepd_ just test
02:03 mgagne bodepd_: I guess I'll have to generate 2 artifacts and branch my project
02:06 mgagne bodepd_: come to think of it, the question was motivated by how far I can push the limits of Puppet
02:06 mgagne bodepd_: BTW, shouldn't we test against Puppet 3.3 now?
02:07 bodepd_ we should add it
02:08 mgagne is it worth testing against 3.2 ?
02:12 mgagne bodepd_: ^
02:17 bodepd_ I think so
02:18 mgagne already, adding it too
02:18 mgagne alright*
02:18 bodepd_ in general thoug, I'm not sure if we have to test every latest major middle version
02:19 * mgagne coughs
02:19 xingchao mgagne:  I just use Puppet 3.3.1 to replace 2.7.22, it seems no problem with upgrade
02:19 mgagne xingchao: nice to hear. I didn't have that luck ;)
02:20 mgagne xingchao: the most known incompatibility issue was between 2.6 and 2.7 where trailing commas weren't supported by puppet 2.6
02:22 xingchao mgagne: oh, I haven't used 2.6 before, which version do you use for now ?
02:23 mgagne xingchao: using 3.1.1
02:23 mgagne xingchao: I didn't have time to test against 3.2 or 3.3
02:23 mgagne xingchao: playing on the safe side
02:25 xingchao mgagne: get it :)
02:27 xingchao mgagne: 3.x is much quick than 2.7.x I' m satisfied with it.
02:28 mgagne xingchao: true. I saw the presentation at PuppetConf 2012 and was impressed by the performance gain.
02:30 xingchao mgagne: But the only problem is that active_record as backend storeconfigs has been deprecated in puppet 3.x. We use mysql for db connection, it seems too slow in puppet 3.x, so I change it to puppetdb, but it use postgresql as backend, it make our system more complicated and make building ha more hard
02:32 mgagne xingchao: I had that problem too, not sure if I should move to puppetdb or not. What's more confusing is that an other team here tried puppetdb with postgresql and it wasn't even working. They had to patch it to make it work. Go figure out how other people managed to use it...
02:33 mgagne xingchao: and they are now thinking about moving away from postgresql. Too much trouble for what they want to use it for.
02:36 xingchao mgagne: PuppetDB is much much faster than activerecord,  You can try it :)
02:36 mgagne xingchao: I'll try it someday =)
02:38 xingchao mgagne: I only suffer a problem when configuring jetty ssl settings, it seems no big problem for configuring it.
02:39 mgagne xingchao: oh, it wasn't psql support for puppetdb they were complaining about. it was hiera-pgsql ;)
02:40 mgagne xingchao: https://github.com/dalen/hiera-psql/pull/2 =)
02:42 xingchao mgagne: I see :)
02:47 mgagne time to go, 10:47pm here and still at work :O
02:49 mgagne bodepd_: puppet 3.2/3.3 https://review.openstack.org/54867
02:58 xingchao mgagne: I have +1 for that
02:58 openstackgerrit Xingchao Yu proposed a change to stackforge/puppet-swift: Fix puppet 3.x template variable deprecation warning  https://review.openstack.org/53777
03:05 michchap joined #puppet-openstack
03:28 openstackgerrit Michael Chapman proposed a change to stackforge/puppet-glance: Do not merge - ci system testing  https://review.openstack.org/54869
03:29 rongze joined #puppet-openstack
03:31 rongze joined #puppet-openstack
03:46 xingchao_ joined #puppet-openstack
03:46 rongze_ joined #puppet-openstack
03:53 openstackgerrit Michael Chapman proposed a change to stackforge/puppet-glance: Do not merge - ci system testing  https://review.openstack.org/54869
04:18 openstackgerrit Michael Chapman proposed a change to stackforge/puppet-glance: Do not merge - ci system testing  https://review.openstack.org/54869
04:33 openstackgerrit Michael Chapman proposed a change to stackforge/puppet-glance: Do not merge - ci system testing  https://review.openstack.org/54869
04:37 rongze joined #puppet-openstack
04:49 openstackgerrit Michael Chapman proposed a change to stackforge/puppet-glance: Do not merge - ci system testing  https://review.openstack.org/54869
05:09 rongze joined #puppet-openstack
05:42 rongze joined #puppet-openstack
06:30 rongze joined #puppet-openstack
06:37 michchap joined #puppet-openstack
06:40 michchap joined #puppet-openstack
09:07 badiane_ka joined #puppet-openstack
09:21 derekh joined #puppet-openstack
09:37 dachary joined #puppet-openstack
11:04 e1mer joined #puppet-openstack
11:07 openstackgerrit Francesco Vollero proposed a change to stackforge/puppet-ceilometer: Updates to params.pp for mongo and postgres packages  https://review.openstack.org/54797
11:21 michchap joined #puppet-openstack
11:33 e1mer joined #puppet-openstack
12:47 markvoelker joined #puppet-openstack
12:53 michchap joined #puppet-openstack
12:54 michchap_ joined #puppet-openstack
12:54 dprince joined #puppet-openstack
12:56 michchap_ joined #puppet-openstack
13:12 morazi joined #puppet-openstack
13:22 dmsimard joined #puppet-openstack
13:33 mjblack joined #puppet-openstack
13:37 dmsimard joined #puppet-openstack
13:47 prad joined #puppet-openstack
13:55 mjblack joined #puppet-openstack
14:18 dachary is there support for multiple cinder backend in the current puppet module ?
14:20 mjblack_ joined #puppet-openstack
14:38 e1mer joined #puppet-openstack
14:38 e1mer joined #puppet-openstack
14:39 badiane_ka joined #puppet-openstack
14:58 e1mer joined #puppet-openstack
15:05 mgagne dachary: xarses is working on it
15:05 mgagne dachary: https://review.openstack.org/#/c/54591/ https://blueprints.launchpad.net/puppet-​cinder/+spec/cinder-volume-multi-backend https://wiki.openstack.org​/wiki/Cinder-multi-backend
15:06 dachary ah cool :-)
15:56 tnoor1 joined #puppet-openstack
16:02 bodepd_ mgagne: I think you are thinking wrong about how to solve this
16:02 bodepd_ mgagne: I would run tests that validate:
16:02 bodepd_ are all of these hiera keys that match class namespaces valid
16:02 tnoor2 joined #puppet-openstack
16:02 mgagne bodepd_: yes, my module isn't built that way
16:02 bodepd_ puppet does have an endpoint for class introspection
16:03 bodepd_ resource_type
16:16 mjblack joined #puppet-openstack
16:20 rmoe joined #puppet-openstack
16:51 dprince joined #puppet-openstack
16:58 prad joined #puppet-openstack
17:03 mattymo joined #puppet-openstack
17:04 dpyzhov joined #puppet-openstack
17:07 xarses joined #puppet-openstack
17:09 hogepodge joined #puppet-openstack
17:14 xarses mgagne: you wanted me to use https://github.com/stackforge/puppet-keystone/b​lob/master/lib/puppet/provider/keystone.rb#L76. Are there any examples of using this?
17:15 mgagne xarses: https://github.com/stackforge/puppet​-keystone/blob/master/lib/puppet/pro​vider/keystone_user/keystone.rb#L55
17:22 xarses Ya, I'm confused, I don't see how i can get the credentials from this here
17:23 mjblack joined #puppet-openstack
17:23 mgagne xarses: check above, it's reading the config file
17:24 mgagne xarses: you have 2 choices: read from a local config file (maybe cinder.conf) or inject to env. variables from resource parameters.
17:25 mgagne xarses: 1st choice would requires to run cinder_type and friends on a host with cinder installed.
17:25 mgagne xarses: 2nd choice could allow to run everywhere but still require cinder client to be installed to work.
18:12 dmsimard xarses: I wrongly underestimated puppetlabs/apache
18:12 dmsimard xarses: I was able to craft a rgw vhost with it o_O
18:12 dmsimard xarses: it handles fastcgi and everything
18:13 xarses dmsimard: sweet
18:13 xarses dmsimard: now get it to work on centos =P
18:13 dmsimard xarses: When we get to the rgw part, I can contribute that
18:13 dmsimard well
18:14 dmsimard I'm using dalgaaf's branch of rgw
18:14 dmsimard and it works well
18:14 dmsimard (for my needs at the current time, at least)
18:15 balar joined #puppet-openstack
18:22 rmoe joined #puppet-openstack
18:37 dmsimard dalgaaf_: ping
18:47 dsockwell joined #puppet-openstack
19:02 otherwiseguy joined #puppet-openstack
19:18 rmoe joined #puppet-openstack
19:24 angdraug joined #puppet-openstack
19:26 mjblack_ joined #puppet-openstack
19:28 angdraug joined #puppet-openstack
19:29 angdraug joined #puppet-openstack
19:36 mjblack joined #puppet-openstack
20:30 xarses is there a way to read the current value off the ini_file provider?
20:31 xarses inside puppet
20:33 dmsimard yeah I saw mgagne talk about that recently
20:34 terryw joined #puppet-openstack
20:37 dmsimard ah I might be mistaken, it was something about stdlib fetching values
20:48 dsockwell Anyone have puppetlabs-openstack (stable/grizzly) running on Wheezy? I followed the instructions at http://www.puppetforge.com/puppetlabs/openstack and ran openstack::all on a node (with an addition of mysql_root_password) and now puppet tells me Invalid parameter provider at /etc/puppet/environments/development/​modules/nova/manifests/rabbitmq.pp:33 on node ostack-test0.localdomain
20:49 dsockwell i looked at the file and it reads "provider => 'rabbitmqctl',"
20:50 dsockwell did I do something wrong?
20:53 dsockwell http://pastebin.com/rKpqc0UF is 'puppet describe rabbitmq_user'
20:57 xarses dsockwell: that usually means that whatever your sending the "provider" paramater to isn't beeing accepted on the other side. You would want to see what that's being passed to and see if it accepts that parmiter
20:58 dmsimard xarses: Ehhh I found my problem about radosgw :(
20:58 dmsimard xarses: Don't know if you ever came across that: https://github.com/ceph/ceph/commit/87​a2626ea4767bbcc53bf81f38ad38e3e2f22cf3
20:58 xarses dmsimard: Which one
20:58 dsockwell now it's moved to the rabbitmq module. i went and commented out all the provider lines i could find
20:59 dsockwell it seems to be running
20:59 dsockwell let's see how badly i've broken it
20:59 xarses dmsimard: ahh, yes that one is fun
21:00 dmsimard xarses: It's silly because the "hostname" puppet facter will really return the hostname, regardless of the "hostname" command output :/ http://pastebin.com/raw.php?i=8KgbsSPG
21:00 xarses dmsimard: i had to set host to $::fqdn on ubuntu, and $name on centos
21:00 xarses looks like debian its self would also be $name
21:01 dsockwell xarses: yeah for some reason the rabbitmq resources aren't accepting the provider line, even though 'puppet describe rabbitmq_user' seems to think it's fine
21:01 dmsimard xarses: I figured I would submit a pull request, given how simple the fix is - wonder how long it takes for it to hit the packages though
21:02 xarses dmsimard: can you make it so that the init script also gives an error if nothing is started
21:02 xarses dmsimard: it loves to not start and pretend that it did
21:02 dmsimard xarses: Yeah I noticed that too, it'd be another pull request :p
21:02 xarses dmsimard: otherwise i guess i should, its a hell of an annoyance
21:03 xarses dmsimard: it makes it impossible for puppet to know that the service started correctly
21:05 xarses dmsimard: is that merged already?
21:05 xarses ahh, yep
21:05 dmsimard xarses: Yeah, it is - talked with sage
21:06 xarses should update doc/radosgw/config.rst too
21:06 xarses i was working on some serious updates for that as it is
21:06 dsockwell Debug: Executing '/usr/sbin/rabbitmqctl add_user rabbit_user rabbit_password'
21:07 dsockwell didn't actually need a provider
21:27 openstackgerrit Andrew Woodward proposed a change to stackforge/puppet-cinder: [bp] Add support for Cinder multi-backend  https://review.openstack.org/54591
21:27 tnoor1 joined #puppet-openstack
21:38 xarses mgagne: dachary: for https://review.openstack.org/54591 is more or less usable. Please Review. I've taken to note that while it would be better to implement a ruby handler more like in neutron instead of the exec, I don't have time to implement it right now
21:39 mgagne xarses: please take a look at http://docs.puppetlabs.com/ref​erences/latest/type.html#exec (environment)
21:42 mgagne xarses: should be as simple as http://paste.openstack.org/show/50410/
21:42 xarses mgagne: are you sa...
21:42 xarses so keep the exec, but set the ENV instead
21:42 mgagne xarses: that's one possibility
21:43 xarses I like the ruby provider, just don't have time to work on it much more
21:44 mgagne xarses: http://irclog.perlgeek.de/puppet​-openstack/2013-10-30#i_7790432
21:46 tdb joined #puppet-openstack
21:47 xarses I'm blind, cant you tell :)
22:02 openstackgerrit Andrew Woodward proposed a change to stackforge/puppet-cinder: [bp] Add support for Cinder multi-backend  https://review.openstack.org/54591
22:02 xarses mgagne: updated ^
22:07 openstackgerrit Andrew Woodward proposed a change to stackforge/puppet-cinder: [bp] Add support for Cinder multi-backend  https://review.openstack.org/54591
22:12 openstackgerrit Andrew Woodward proposed a change to stackforge/puppet-cinder: [bp] Add support for Cinder multi-backend  https://review.openstack.org/54591
22:23 mjblack joined #puppet-openstack
22:27 mgagne left #puppet-openstack
22:42 e1mer joined #puppet-openstack
22:42 e1mer joined #puppet-openstack
23:19 terryw joined #puppet-openstack
23:52 openstackgerrit Emilien Macchi proposed a change to stackforge/puppet-ceilometer: Alarm: record history support  https://review.openstack.org/55002

| Channels | #puppet-openstack index | Today | | Search | Google Search | Plain-Text | summary