=== max__ is now known as Guest26373 === narindergupta is now known as narinderguptamac [05:53] morning all [07:54] Hello charmers [08:04] goood morning! [08:12] Chipaca: Hiya! [08:15] my laptop is back at being stuck at 800MHz :-( [08:15] might have to spend some time talking with tech support [08:15] Might be a safety mechanism so you're not going too fast [09:48] stub: Good question about the place to put the "lib".. once they go out, the idea is to have a module directory under ops.lib [09:49] stub: My original idea when we discussed was to have it under the charm itself, so that there would be a local "lib" namespace.. but there's an issue with that plan [09:49] We need to be able to have multiple charms of the same author using that same library, precisely so that it becomes easier to reuse and to move into ops.lib once it evolves enough [09:54] And 'from lib import pgsql' would be importing lib/lib/pgsql/__init__.py ? [09:54] I'm mostly interested in getting the namespace right at my end. [09:57] stub: Right, it was a good question.. my original idea was src/lib/pgsql, but that's not good enough [09:57] stub: lib/lib isn't great either [09:58] stub: Not naming spacing pgsql isn't good either, as the top-level namespace is busy and we'll often be implementing libraries to integrate existing things in charms [09:58] *namespacing [10:01] Ideally without turning hooks/install into a mess of PYTHONPATH manipulation hacks [10:02] Yeah, we shouldn't need any further manipulation.. [10:02] We already have src for local, and lib for external, so we should be good [10:32] jam: you froze [10:32] or my network died [10:33] Chipaca, its probably me [11:05] Lunch, biab [11:07] Muy buenos días a todos! [11:16] morning facubatista [11:16] hola jam [11:27] whoops, laptop lost power while i was having lunch [11:28] Chipaca, I was wondering where you went :) [11:28] * Chipaca heads for the hills [11:28] Chipaca, jam, we need to decide *how* we will support a dispatch entrypoint; this doc talks about it as "a new thing" but does not describes any migration: https://docs.google.com/document/d/1RHrOMbqsXz9qwk_3sHJ7AJOdlh-Mb-TkFUAtbXb37Og/edit#heading=h.df280vskamcl [11:29] Chipaca, jam, so, what happens if both dispatch and classic hooks coexist? [11:29] facubatista, yeah, I'm planning on adding a bit to that doc. I think it evolved and covers what Juju needed to do, but part of why that plan was ok was because of the plan for the framework. I'm working on that now. [11:29] I think we had a good plan, just need to get it written down. [11:29] jam, ack [11:30] jam, please let me know when that's done, then, thanks! [11:32] Chipaca, we need this ^ before continuing with #221, right? [11:32] PR #221: osp, test: support dispatch [11:33] facubatista: yep [11:33] well, more or less :) [11:33] i already know the gist of it so i can move forward [11:33] but i've got plenty other things on my plate so i'll leave it be for now [11:34] facubatista, is it worth talking about all the ways and why we chose not to do the alternatives, or just focus on the expected path? [11:34] jam, it totally worths it, otherwise you may keep answering that to everybody who read the docs -- better to write it just once [11:35] Chipaca, I just remembered one of the other concerns we should keep in mind. [11:36] namely, hooks/install => src/charm.py for compatibility, but also dispatch => src/charm.py. We don't want dispatch getting called to cause install to get called and double-handle every event (or worse, infinitely recurse. :) [11:38] jam, we can see that hooks/install is present *and not* a symlink to ourselves [11:38] s/see/check/ [11:38] facubatista, indeed. just something we need to remember to do [11:39] jam, don't trust our memory! that's the kind of detail that should be written down [11:39] yeah, I'll be adding it to the doc. === mup__ is now known as mup_ [11:51] juju deploys my charm in an unit; which directory should I work with, from the charm, to put "local files"? /var/lib? [11:51] where is the best way to ask these questions? ^ [11:51] s/way/place/ [11:52] facubatista, local to the charm, local to the app? many people reuse $PWD (which is /var/lib/juju/agents//charm) but that is usually considered non-ideal (it leads to dirty charm directories and upgrades/etc also touch that dire) [11:53] jam, local to the app [11:53] jam, I want to put a file there that will be served later [11:54] * facubatista tries to os.mkdir("/var/lib/mything") [11:54] facubatista, local to the app depends on the app itself, right? eg Apache likes '/www' [11:54] jam, but my charm doesn't run in the same unit than apache, right? [11:54] jam, I'm *exactly* blocked in that point [11:54] facubatista, it depends how you deploy it. [11:55] jam, do you know how to do it? [11:55] this needs to be a subordinate charm somehow? [11:55] facubatista, if you need to be on every unit of another app, the usual recommended way is to be a 'subordinate' [11:55] exactly [11:56] you can always have a bundle that colocates 2 different applications on the same machines, but if you're saying "I want to populate data for Apache to serve", that sounds like a subordinate. [11:56] subordinates explicitly don't have their own 'number of units', they are strictly a 'place a unit of this everywhere you place a unit of that' [11:56] mmmm... actually... let me see something else first [11:57] jam, thanks! [12:00] jam, Chipaca, niemeyer, meeting, https://meet.google.com/fqw-mdqc-dsf === __chip__ is now known as Chipaca [14:41] ok, need to reboot [14:54] Me too.. that is, *I* need to reboot, not the laptop [15:23] * facubatista -> lunch [15:42] sneaking in for a bit while writing yet another usb image :-/ [15:59] * facubatista is back [15:59] * Chipaca booted into windows, was terrified, and ran away [15:59] Chipaca, are you ok for the meeting, or shall we pospone it? [16:00] facubatista: i'll be there in 15 seconds [16:00] came back for it [16:01] Module namespaces are not my friends [16:01] At least not as I was trying it out [16:02] Can't get ops.beta to be a namespace while we have content in ops [16:27] ok, off to do the Lesser Scary Thing [16:44] # XXX Is this the right thing for subpackages like zope.app? [16:44] Not a great comment to find in the implementation of namespaces.. :) [17:11] jejeje [17:35] Okay, got something that starts to look promising... [17:36] Issue # closed: operator#98, operator#113, operator#122, operator#123, operator#156, operator#158, operator#161, operator#165, operator#166, operator#169, operator#171, operator#172, operator#174, operator#175, operator#178, operator#179, operator#180, operator#185, operator#186, operator#187, [17:36] operator#188, operator#189, operator#198, operator#205, operator#206, operator#208, operator#211, operator#214, operator#215, operator#219, operator#220, operator#222, operator#223 [17:36] PR # closed: operator#190, operator#196, operator#203, operator#212, operator#218, operator#221 [17:37] Issue # opened: operator#98, operator#113, operator#122, operator#123, operator#156, operator#158, operator#161, operator#165, operator#166, operator#169, operator#171, operator#172, operator#174, operator#175, operator#178, operator#179, operator#180, operator#185, operator#186, operator#187, [17:37] operator#188, operator#189, operator#198, operator#205, operator#206, operator#208, operator#211, operator#214, operator#215, operator#219, operator#220, operator#222, operator#223 [17:37] PR # opened: operator#190, operator#196, operator#203, operator#212, operator#218, operator#221 [17:37] Hmm.. mup seems to be taking a network error as a valid document [17:37] Need to look into it [17:38] facubatista: When you have a moment, would like to have a quick chat about this: [17:38] https://paste.ubuntu.com/p/cHP2gq5MkK/ [17:39] niemeyer, I was about to get a cup of tea; let's do it in 10'? [17:39] +1 [17:39] I mean.. yes, 10' :) [17:39] ok, in 11' :p [17:39] yes, jajaaj [17:46] niemeyer, https://meet.google.com/veq-yfqm-kdk ? [17:48] facubatista: omw [20:48] * facubatista eods