Perl 6 - the future is here, just unevenly distributed

IRC log for #puppet-openstack, 2013-10-24

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

All times shown according to UTC.

Time Nick Message
00:06 dmsimard joined #puppet-openstack
00:07 dmsimard bodepd_: ping
00:08 mgagne bodepd_: my understanding is that providers are called from Pupppet::Transaction. Providers don't inherit Puppet::Transaction and therefore can't access the @catalog from it.
00:10 dmsimard bodepd_: I had a look at what ceph did with chef in regards to adding a repo - looks like they download the key as well: https://github.com/ceph/ceph-cookbooks/com​mit/e97fc7bacaca5417c68bb5728d148b07d792d7​2b#diff-f2140c4b487177162e802ce45aa29b7c
00:10 ari joined #puppet-openstack
00:15 bodepd_ mgagne: yeah, I've looked into it before :)
00:15 mgagne bodepd_: trying to find a clever way to do it =)
00:15 bodepd_ mgagne: I may have even filed a bug that they shoudl be able to :)
00:15 bodepd_ mgagne: you are in memory
00:16 bodepd_ mgagne: you could always find the cached version with Puppet[:whatever]
00:16 bodepd_ mgagne: and load it
00:16 mgagne bodepd_: isn't the provider code running on the client side?
00:16 bodepd_ mgagne: I mean. you know the catalog has already been retrieved and cached at that point
00:16 bodepd_ mgagne: yews
00:16 bodepd_ yes
00:16 bodepd_ the catalog is there, somewhere
00:16 mgagne bodepd_: and so would be the resulting catalog?
00:17 bodepd_ what do you mean resulting?
00:17 mgagne bodepd_: compiled
00:17 bodepd_ mgagne: yes. what is an uncompiled catalog :)
00:17 rongze joined #puppet-openstack
00:17 bodepd_ mdsimard just mentioned me then ran-away
00:17 mgagne bodepd_: I think I answered myself. The transaction thing is executed on the client right?
00:18 mgagne bodepd_: so no reason to not have access to it
00:18 bodepd_ yes!
00:18 mgagne bodepd_: what about purge method? is it what's called when a resource is purged?
00:19 mgagne bodepd_: Puppet would diff catalog and instances and purge what's not managed by puppet?
00:21 bodepd_ mgagne: yes!
00:21 mgagne bodepd_: ok, learning puppet internals ^^'
00:22 bodepd_ yeah
00:22 bodepd_ you found transaction and resource/transaction
00:22 bodepd_ that is where all of the magic happens
00:22 mgagne bodepd_: like a treasure hunt
00:42 mgagne bodepd_: I'm not sure inifile fully support custom separator anymore: https://github.com/puppetlabs/puppe​tlabs-inifile/blob/master/lib/puppe​t/provider/ini_setting/ruby.rb#L17
00:42 e1mer joined #puppet-openstack
00:42 mjblack joined #puppet-openstack
00:44 bodepd_ that is pretty funny
00:44 bodepd_ maybe it never did :)
00:44 mgagne bodepd_: well, I think you can create new values with custom separator but can't read it back maybe?
00:46 bodepd_ maybe
00:54 xarses joined #puppet-openstack
00:57 mgagne bodepd_: in fact, I'm not sure self.instances is called... Puppet.debug throws nothing at the console
01:00 bodepd_ it is called when the resource is set on purge mode
01:00 bodepd_ otherwise, it is not called
01:00 mgagne bodepd_: oh god...
01:00 bodepd_ also, if you use puppet resource, it uses instances
01:01 bodepd_ I thikn it makes sense
01:01 mgagne bodepd_: it does make sense, will test with purge
01:01 bodepd_ its common for prefetch to call instances
01:01 mgagne bodepd_: and update my cheatsheet =)
01:01 bodepd_ test the purge
01:01 bodepd_ I can smell a blog
01:01 mgagne bodepd_: I guess I didn't fully understand the purpose of instances
01:01 bodepd_ now you know
01:02 mgagne bodepd_: damn blog, can't find time for it
01:02 bodepd_ and knowing is half the battle
01:02 bodepd_ or a gist
01:02 mgagne bodepd_: can't find time for my hobbies! :O
01:02 bodepd_ same-difference
01:02 mjblack joined #puppet-openstack
01:02 bodepd_ now, all my hiera data is specified as a global puppet variable node_data_bindings
01:03 bodepd_ and my hiera backends just looks up data from there
01:05 mgagne bodepd_: all precompiled right?
01:11 bodepd_ yep
01:12 mjblack joined #puppet-openstack
01:38 mgagne bodepd_: if people want to override file_path and still want to have purge, we should clearly define the use cases so we better understand the limitations.
01:45 xingchao joined #puppet-openstack
01:57 rongze joined #puppet-openstack
01:59 ari joined #puppet-openstack
01:59 rongze joined #puppet-openstack
02:04 mgagne bodepd_: I thought I was clever in using this: search = Puppet::Resource.indirection.sear​ch(self.resource_type.name.to_s, {})
02:05 mgagne bodepd_: I got welcomed by a stack level too deep
02:34 ari joined #puppet-openstack
03:03 e1mer joined #puppet-openstack
03:03 e1mer joined #puppet-openstack
03:16 mkoderer joined #puppet-openstack
03:18 bodepd_ I think that indirection is being deprecated
04:13 marun joined #puppet-openstack
05:43 rongze joined #puppet-openstack
05:56 e1mer joined #puppet-openstack
05:56 e1mer joined #puppet-openstack
06:13 e1mer joined #puppet-openstack
06:28 rongze joined #puppet-openstack
06:51 dachary bodepd_: I'll give https://github.com/puppetlabs/rspec-system-puppet a try. I was unconvinced because it relied on vagrant. But then mgagne made me understand vagrant-openstack allows to use vagrant with an openstack backend.
06:51 dachary https://wiki.openstack.org/wiki/Puppet-op​enstack/ceph-blueprint#Integration_tests updated
07:46 bodepd_ I spoke with the author about it.
07:46 bodepd_ It is supposed to be decoupled from provisioning
07:47 bodepd_ I have not had a chance to muck with it
07:47 bodepd_ (or maybe they wanted to add that feature)
08:15 rongze joined #puppet-openstack
08:22 derekh joined #puppet-openstack
08:41 mmagr joined #puppet-openstack
09:39 rongze joined #puppet-openstack
10:23 openstackgerrit Loic Dachary proposed a change to stackforge/puppet-ceph: integration tests environment  https://review.openstack.org/53566
10:33 dachary bodepd_: ok. Since it uses vagrant, https://github.com/cloudba​u/vagrant-openstack-plugin can be used to decouple it from provisioning even if it does not support it
10:37 xingchao joined #puppet-openstack
10:55 morazi joined #puppet-openstack
11:16 mgagne1 joined #puppet-openstack
11:16 mgagne1 joined #puppet-openstack
11:16 rongze joined #puppet-openstack
11:17 dalgaaf_ joined #puppet-openstack
11:22 otherwiseguy joined #puppet-openstack
11:45 * dachary trying figure out how to convince https://github.com/puppetlabs/rspec-system-puppet to use https://github.com/cloudba​u/vagrant-openstack-plugin
11:50 beddari hehe nice integration attempt there
11:50 beddari don't have time to spend on that right now but interesting
11:51 beddari dachary: what integration did you have in mind?
11:53 dachary https://review.openstack.org/#/c/53566/ make it so bundle exec rake spec:system works and uses vagrant locally. Which is nice.
11:53 dachary But I would like for this test to use openstack instead because my machine does not have enough resources to run more ambitious integration tests.
11:54 dachary and also because I would like it to run on a server while listening to the gerrit stream of events as outlined in https://wiki.openstack.org/wiki/Puppet-op​enstack/ceph-blueprint#Integration_tests
11:54 dachary beddari: ^
11:58 beddari sorry no time, but there are already vagrant support in rspec-system, what you are looking at imho is a new provider
11:59 beddari dachary: so here https://github.com/puppetlabs/rspec-syst​em/tree/master/lib/rspec-system/node_set
12:14 bcrochet joined #puppet-openstack
12:35 dprince joined #puppet-openstack
13:08 rongze joined #puppet-openstack
13:39 dmsimard joined #puppet-openstack
13:39 dmsimard bodepd_: Ahah, sorry for running away last night. I was summoned elsewhere :)
13:44 dmsimard1 joined #puppet-openstack
13:48 mjblack joined #puppet-openstack
13:50 xingchao joined #puppet-openstack
13:53 fvollero joined #puppet-openstack
13:54 rongze joined #puppet-openstack
14:09 dmsimard EmilienM: Not on the topic of puppet (sorry!) but do you guys happen to use ceph for object store with ceilometer ?
14:12 rongze joined #puppet-openstack
14:19 rongze joined #puppet-openstack
14:22 xingchao joined #puppet-openstack
14:37 rongze joined #puppet-openstack
14:47 mattymo joined #puppet-openstack
14:48 mattymo bodepd_, are you here?
14:48 rongze joined #puppet-openstack
14:49 mattymo or mgagne1 ?
14:49 dmsimard joined #puppet-openstack
15:07 leseb dmsimard: ping
15:08 leseb dmsimard: just to let you know that I got my employer's approval!  GO GO GO and re-license :D
15:08 leseb s/got/'ve got/
15:11 dmsimard leseb: awsum.
15:11 dmsimard leseb: Maybe you can even go ahead and approve the merge for https://review.openstack.org/#/c/53412/ :D
15:12 dmsimard leseb: Oh, wait, I'm not sure if you're core reviewer ?
15:12 leseb dmsimard: no I'm not
15:12 leseb dmsimard: I won't mind :)
15:13 dmsimard leseb: Can you post on https://groups.google.com/a/puppetlabs.com/forum/​?fromgroups=#!topic/puppet-openstack/ai7L7bVd8IA ?
15:15 leseb dmsimard: are they still looking for core reviewer?
15:17 dmsimard leseb: Yes and no, but it'd be great to have you on board IMO.
15:17 rongze joined #puppet-openstack
15:18 dmsimard leseb: Right now that I know of, there is dachary (ceph developer), xarses (mirantis), dalgaaf (DTAG), me (iWeb) for puppet-ceph specifically, then there are the core reviewers for puppet-openstack as a whole such as mgagne or bodepd_
15:19 dmsimard After that, I think the team will be pretty much complete
15:21 openstackgerrit Martin Mágr proposed a change to stackforge/puppet-keystone: Fix remove_warnings  https://review.openstack.org/53661
15:21 mgagne leseb: you are now a core reviewer
15:25 dmsimard joined #puppet-openstack
15:27 dmsimard joined #puppet-openstack
15:35 leseb mgagne: awesome thanks :)
15:41 ari_ joined #puppet-openstack
15:49 ari_ joined #puppet-openstack
15:52 badiane_ka joined #puppet-openstack
15:56 mattymo dmsimard, why are you talking about xarses from Mirantis?
15:56 dmsimard mattymo: was just quoting the reviewers for puppet-ceph
15:56 mattymo oh cool
15:56 mattymo we've just added Ceph support to Fuel
15:57 mattymo we really need to invest time to try to merge Fuel into puppet-openstack modules, but our code base is drastically different now
15:57 dmsimard yeah, he's working with us on the new puppet-ceph initiative on stackforge
15:57 mattymo cool
15:57 mattymo it's good to put newer stuff into stackforge for sure
15:57 dmsimard The difference between mirantis' implementation and puppet-ceph is that you wrap around ceph-deploy
15:57 mattymo we also added recently manifests for murano and savanna
15:58 dmsimard We don't use ceph-deploy
15:59 xingchao we also have a private puppet-ceph implementation
15:59 mattymo our architecture requires lots of networking info to be made available to each module
15:59 mattymo for HA
16:01 xingchao mgagne: are you here ?
16:01 mgagne xingchao: yes I am
16:03 xingchao mgagne: Recently I have wrote a module for designate, I wondering how to contributing it to stackforge ?
16:03 mgagne xingchao: yes I heard about it. The process should be similar to this one: https://github.com/openstack-infra/config/com​mit/a66e1ae3ac0eb8d43af08d5a6fe833f1da2c89f9
16:04 mgagne xingchao: but let me find an example for a previous puppet module for openstack
16:04 mgagne xingchao: as the one for pupet-ceph includes different ACL and stuff
16:05 xingchao mgagne: thx :) I would ref it
16:05 mgagne xingchao: well, should be about the same, except the ACL in review.projects.yaml.erb
16:06 mgagne xingchao: should be "acl-config: /home/gerrit2/acls/stackfo​rge/puppet-modules.config" instead
16:06 ari__ joined #puppet-openstack
16:09 xingchao mgagne:  puppet-ceph.config is also different from other module.
16:10 mgagne xingchao: yes, you don't need to edit/add that file for puppet-designate
16:10 xingchao mgagne: Get it
16:11 mgagne xingchao: only need to edit those files:
16:11 mgagne modules/gerritbot/files/ger​ritbot_channel_config.yaml
16:11 mgagne modules/openstack_project/files/jenk​ins_job_builder/config/projects.yaml
16:11 mgagne modules/openstack_project/files/zuul/layout.yaml
16:11 mgagne modules/openstack_project/temp​lates/review.projects.yaml.erb
16:13 xingchao mgagne: ok, I follow your patch to modify these files
16:17 ari_ joined #puppet-openstack
16:18 rongze joined #puppet-openstack
16:22 tnoor1 joined #puppet-openstack
16:30 xingchao mgagne: I have propose it to https://review.openstack.org/#/c/53682/    If you have time, plz review it.
16:31 mgagne xingchao: I saw it, reviewing atm
16:31 ari_ joined #puppet-openstack
16:34 xingchao mgagne: My laptop's power is only left 4%, maybe powered off quickly  :(    If you have any comment on that, I will check it on this morning.
16:34 mgagne xingchao: alright, I don't have any for now
16:35 xingchao mgagne: bye, have a good day :)
16:36 mgagne xingchao: thanks, you too
16:41 dprince joined #puppet-openstack
16:43 ari_ joined #puppet-openstack
16:43 prad joined #puppet-openstack
17:17 xarses joined #puppet-openstack
17:18 rongze joined #puppet-openstack
17:21 mjblack mgagne: while you're at it...could you review mine? https://review.openstack.org/#/c/53430/ :D
17:35 dmsimard joined #puppet-openstack
17:44 dmsimard joined #puppet-openstack
17:58 bodepd_ I'm here. People always run away too fast
18:01 dmsimard ^
18:02 rcrit just one more positive core review and https://review.openstack.org/#/c/49799/ is done...
18:04 dmsimard bodepd_: So about that key retrieval for ceph::repo
18:04 derekh joined #puppet-openstack
18:05 dmsimard bodepd_: Like I said last night before running off, the chef recipes for ceph (supported by ceph) download the key as well. It's true that if the key isn't available it will fail but I wonder if it's a good idea to include it in the module.
18:30 rongze joined #puppet-openstack
18:44 prad joined #puppet-openstack
18:50 bodepd_ dmsimard: I just wanted to note it b/c I get bit by that all of the time
18:50 bodepd_ dmsimard: as a general rule, it I can't cache it or mirror it, I don't want it in a manifest :)
18:50 bodepd_ not a blocker form my perspective
19:06 JonnyNomad joined #puppet-openstack
19:17 prad joined #puppet-openstack
19:18 * dachary trying to understant the http://logs.openstack.org/66/53566/1/check/gat​e-puppet-ceph-puppet-lint/42225b8/console.html failure
19:19 mgagne dachary:  no such file to load -- rspec-system/rake_task
19:19 mgagne dachary: rspec-system is not installed on jenkins slaves.
19:19 dachary yes but ... why
19:19 dachary oh !
19:19 mgagne dachary: and probably won't be
19:19 * dachary thinking
19:19 mgagne dachary: rspec-puppet != rspec-system
19:19 dachary yes
19:20 mgagne dachary: better wrap import in a try catch
19:20 * dachary trying
19:20 mgagne to be honest, I kind of have the same problem where some gems are installed on one system but not on the other (on purpose)
19:21 dachary :-)
19:22 mgagne dachary: never tested/tried this approach, but here is one: https://github.com/postmodern/je​kyll-import/blob/master/Rakefile
19:22 * dachary looking
19:25 dmsimard leseb or dalgaaf, can you guys give the go ahead for https://review.openstack.org/#/c/53412/ ?
19:26 openstackgerrit Loic Dachary proposed a change to stackforge/puppet-ceph: integration tests environment  https://review.openstack.org/53566
19:26 dmsimard bodepd_: I'll ask inktank what they think
19:30 dachary mgagne: works, http://logs.openstack.org/66/53566/2/check/gat​e-puppet-ceph-puppet-lint/85cf2e3/console.html thanks for the tip !
19:30 mgagne dachary: np
19:31 rongze joined #puppet-openstack
19:31 dachary dmsimard: xarses dalgaaf I would very much appreciate your review on https://review.openstack.org/#/c/53566/ . There probably is a lot to discuss :-)
19:32 dachary bodepd_: & mgagne too, of course
19:32 xarses dachary: looking[
19:33 bodepd_ dmsimard: good idea!
19:35 bodepd_ dachary: that was super easy to get up and going with
19:35 bodepd_ looks good as a template.
19:35 bodepd_ did you figure out how to use a non-vagrant backend?
19:36 dmsimard1 joined #puppet-openstack
19:36 dachary not yet. I used https://github.com/cloudba​u/vagrant-openstack-plugin and it works like a charm. But I'm not sure how to convince https://github.com/puppetlabs/rspec-system-puppet to use this plugin.
19:37 dachary I tested vagrant-openstack-plugin manually with vagrant alone and it easy.
19:38 dachary It's like going to Ikea after a lifetime of making furniture from scratch. To quote someone.
19:40 xarses still with the ikea // furniture metaphors?
19:40 dmsimard1 lol.
19:41 xarses i liked the hammer wood and nails one better
19:41 dachary :-D
19:42 xarses probably going to need to create a bot to spout these back
19:42 xarses :D
19:44 xarses dachary: it's like asking what does IKEA provide that a hammer, some wood and nails can't provide.
19:45 dachary amusement park for the kids on a sunday afternoon ?
19:45 xarses something like that
19:46 xarses the crowds there are somehow worse than Disneyland
19:48 dmsimard joined #puppet-openstack
19:58 xarses dachary: looks interesting. never used vagrant so no direct comments from me
19:58 xarses probably should though
19:59 dmsimard joined #puppet-openstack
20:01 tnoor1 joined #puppet-openstack
20:20 lnxnut joined #puppet-openstack
20:23 lnxnut joined #puppet-openstack
20:30 dachary xarses: does it work for you when following the instructions in the README ?
20:31 xarses dachary: I didn't try to
20:32 xarses probably wont get a chance until later tonight
20:35 rongze joined #puppet-openstack
20:36 openstackgerrit A change was merged to stackforge/puppet-ceph: Add ceph::repo and it's unit tests to puppet-ceph  https://review.openstack.org/53412
21:05 dmsimard xarses: ^
21:05 dmsimard xarses: all yours now :P
21:21 tnoor1 joined #puppet-openstack
21:23 xarses dmsimard, thanks. somehow you have less bruises than me
21:24 dmsimard :D
21:35 rongze joined #puppet-openstack
21:55 tnoor1 joined #puppet-openstack
22:35 openstackgerrit Loic Dachary proposed a change to stackforge/puppet-ceph: integration tests environment  https://review.openstack.org/53566
22:36 rongze joined #puppet-openstack
22:44 dachary I'm puzzled by https://github.com/puppetlabs/​rspec-system-puppet/issues/23 . My lack of experience with puppet debugging is not helping.
22:46 mjblack_ joined #puppet-openstack
22:56 michchap joined #puppet-openstack
23:01 mgagne dachary: try again with puppetlabs-apt 1.3 instead
23:01 mgagne dachary: update_timeout was introduced in 1.4
23:04 mgagne dachary: or not =)
23:18 blkperl joined #puppet-openstack
23:22 michchap joined #puppet-openstack
23:39 rongze joined #puppet-openstack

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