/srv/irclogs.ubuntu.com/2020/05/27/#smooth-operator.txt

=== narindergupta is now known as narinderguptamac
MarkMaglanahi jam when you're online and have time, i'd like to get some advice on something i wanted to do with interfaces. ultimately what i'd like to achieve is for the interface to have zero knowledge about the charm's domain. rather, i'm trying to just make it provide a data structure to the providing charm and let the latter populate that with the right data which the interface then shoots over to other side.00:58
jammorning all05:23
t0mb0hi jam I keep getting application-wordpress-k8s: 05:46:42 DEBUG unit.wordpress-k8s/30.start ops.model.ModelError: b'ERROR json: unknown field "readinessProbe"\n' https://pastebin.canonical.com/p/JDc8tjPMfs/05:49
t0mb0when I use pod-set-spec version 205:49
t0mb0works for version 105:49
jamt0mb0, I'm not aware of the exact differences, but I do know that some fields are moved around for pod spec v205:50
jamt0mb0, https://discourse.juju.is/t/updated-podspec-yaml-new-features/212405:51
jamt0mb0, looks like in v2 the 'readinessProbe' goes under a "kubernetes" section05:51
t0mb0ah okay cool thanks!05:52
mup_Issue operator#295 opened: Add resources to harness for oci-images <Created by chris-sanders> <https://github.com/canonical/operator/issues/295>08:04
mup_PR operator#296 opened: Oci resources <Created by chris-sanders> <https://github.com/canonical/operator/pull/296>08:04
=== nickv1985_ is now known as nickv1985
Chipacagood (belated) morning all!08:51
jammorning Chipaca09:02
Chipacajam: how was the break?09:07
jampretty good. mostly stayed home. did go out for lunch one day09:08
Chipacajam: oooh! like in the before times!09:09
jamindeed. they had the tables spread out, and the menu was a QR code to a PDF so they didn't hand out paper to people09:09
Chipacaso like the before times, but updated for the dystopia we actually live in09:10
Chipacafair09:10
jamChipaca, we ended up playing cards and Risk for one day, took several hours to get close to an end of Risk, it was actually pretty fun and back-and-forth.09:44
jamHow was your extended holiday?09:44
Chipacajam: not bad! didn't do much at all, which was perfect10:02
Chipacafacubatista: charmcraft seems to be needing quite a bit of love :-(10:02
Chipacajam: any chance for a review of ops/lib ?10:03
jamChipaca, sure. is that #244, or is there a different PR?10:11
mup_PR #244: ops library support <Created by niemeyer> <https://github.com/canonical/operator/pull/244>10:11
Chipacajam: that's the one10:11
jamChipaca, looking10:17
facubatistaMuy buenos días a todos!10:44
Chipacafacubatista: buen día caeza!10:46
facubatistahola Chipaca10:46
facubatistaChipaca, thanks for the review10:46
facubatistaChipaca, symlinks are not zipped as links, but as the "copied file"10:57
Chipacafacubatista: the way we're doing it yes, but it's not the only way10:57
Chipacayou can have them as symlinks10:57
Chipacajust needs a bit more dancin'10:57
Chipacafacubatista: you can see it with the 'zip' tool if you want, 'zip --symlinks' exists10:58
Chipacain python zipfile you need to twiddle things a bit but it works10:58
Chipacafacubatista: https://stackoverflow.com/a/60691331/34801210:58
facubatistaChipaca, we need to define what stuff in the build directory be like, for "while developing" behaviour; then we can use zip to support what we did there10:59
facubatistaChipaca, ack10:59
* Chipaca starts warming up the valves on his webcam10:59
jambrt, my son has a homework questi11:00
Chipacafacubatista: charmcraft's setup.py is missing some magic pixie dust or something; it isn't pulling in commands/11:31
facubatistaChipaca, oh, nice catch, will check, thanks11:35
niemeyermup_ is now in a better home.. please let me know if something bad happens with it11:40
niemeyerI'll be moving the remaining of the configuration from mup to mup_ in the afternoon, and hopefully killing the old instance11:41
Chipacaniemeyer: ack11:41
facubatistaniemeyer, thanks!!11:52
Chipacafacubatista, jam, i'm going to be 5 minutes late11:58
jamok11:58
facubatistaChipaca, ack11:59
* facubatista fights auth12:00
niemeyerfacubatista: np!12:01
mup_Issue operator#295 closed: Add resources to harness for oci-images <Created by chris-sanders> <Closed by jameinel> <https://github.com/canonical/operator/issues/295>12:11
Chipacacoffee?12:58
Chipacamup_: coffee please. Preferably a flat white, but otherwise a cortado would be fine12:58
mup_Chipaca: I apologize, but I'm pretty strict about only responding to known commands.12:58
mup_Issue operator#297 opened: Remove default target for Framework.observe <Created by jameinel> <https://github.com/canonical/operator/issues/297>14:04
* Chipaca does the changes and sees a barrage of EEEEs14:10
* facubatista brb14:23
Chipacajam: would you say that StoredStateData's on_commit is indeed a public api?14:28
mup_PR operator#298 opened: ops.framework: Remove default target for Framework.observe <Created by chipaca> <https://github.com/canonical/operator/pull/298>14:37
jamChipaca, offhand I wouldn't think it was meant to be public to others14:47
facubatistajam, Chipaca, I included the fix in setup.py in https://github.com/canonical/charmcraft/pull/915:11
mup_PR charmcraft#9: Kill bogus commands, and logged the error when happened <Created by facundobatista> <https://github.com/canonical/charmcraft/pull/9>15:11
=== mup_ is now known as mup
=== ken55 is now known as knkski
knkskiWhat is the state of the art for including dependencies in a charmtech charm?15:30
knkskipreviously, it was git submodules, but i'm now seeing references to env/15:31
knkskiand i'm wondering how that works exactly. am i supposed to vendor all depenencies?15:31
Chipacaknkski: where are you seeing references to env?15:32
knkskiChipaca: from the readme on https://github.com/canonical/operator:15:33
knkski├── env/│   └── # ... your Python dependencies, including the operator framework itself15:33
Chipacaknkski: depending on what you mean by vendor, git submodules is that already isn't it?15:34
knkskiChipaca: i also see "and any Python dependencies (maybe using some kind of virtualenv)"15:35
Chipacaknkski: so, we are no longer recommending git submodules. Which does _not_ mean we are dis-recommending them :-)15:35
Chipacaknkski: if that works for you, feel free. If you'd rather have a requirements.txt as you would in any python thing, do that15:35
Chipacaknkski: does this make sense?15:36
knkskiChipaca: so if i have a requirements.txt, how exactly does that work as far as actually getting the items in it installed?15:36
Chipacaknkski: can I answer you as if it was this Friday?15:37
knkskiChipaca: sure15:37
Chipacaknkski: or do you need my answer to be correct and true _today_ :-)15:37
knkskiChipaca: lol, friday is fine15:37
Chipacaknkski: 'charmcraft build' defaults to picking up a requirements.txt if it exists, and use pip to bundle those into a .charm file15:38
knkskiChipaca: how do i get charmcraft installed?15:39
Chipacaknkski: pip install charmcraft (this answer is also future-dated; until then github.com/canonical/charmcraft )15:39
cory_fuChipaca: Has the question about different architectures and Python versions been sorted out, then?  (Though that only applies to dependencies which require compilation, like cffi, though I think PyYAML has optional compilation so might hit that as well.)15:39
knkskiChipaca: thanks, i'll try it out15:40
Chipacacory_fu: charms will have a 'platform' which is like snaps' 'architecture' but richer (this is not there yet so for now we're ignoring it)15:40
cory_fuChipaca: Ok, that sounds great.  I look forward to that.15:41
* facubatista missed all this conversation :(15:44
* facubatista brb15:44
* facubatista is back16:09
Chipacafacubatista: anything I can do for you right now?16:33
Chipacaotherwise I'll go for a run and check in later16:33
facubatistaChipaca, nop, thanks116:33
* Chipaca goes16:55
knkskiChipaca: ran into an issue installing charmcraft, and opened up a PR: https://github.com/canonical/charmcraft/pull/1017:00
mupPR charmcraft#10: Fix pip installation <Created by knkski> <https://github.com/canonical/charmcraft/pull/10>17:00
Chipacafacubatista: what do you think of knkski's fix, compared to yours?18:22
* facubatista cjecks18:22
facubatistaChipaca, the "packages" option is simpler in my case, don't know why the second change is needed18:25
Chipacafacubatista: if theirs does what I think it does, it's more future proof, no?18:26
facubatistaChipaca, it looks that if in the future we add other subdirs in the project they will be automatically included18:27
facubatistaChipaca, not really sure if that's a good thing or not18:27
facubatistaChipaca, don't know if the second change is related to the first one, also18:27
Chipacafacubatista: I'd have to learn this stuff to answer :18:35
facubatistaChipaca, I'm ok with either solution, as long it works18:44
Chipacafacubatista: reading the docs, their console_scripts seems more correct, and the find_namespace_packages looks to be the right approach imo (because of the include= arg)21:35
facubatistaChipaca, let's land it, and I'll merge my cleanup branch after that21:51
Chipacafacubatista: sgtm21:51
facubatistaChipaca, landed it, and then merged master in my branch and pushed it...21:56
Chipacafacubatista: neat22:22
mupPR operator#299 opened: charm: make role an enum, with 'peer' instead of 'peers' <Created by chipaca> <https://github.com/canonical/operator/pull/299>22:48
mupPR operator#300 opened: charm: use magic strings a little less <Created by chipaca> <https://github.com/canonical/operator/pull/300>23:01
Chipacaok, i'm off to bed23:02
Chipacahahaha i lied23:07
Chipacaok, now yes23:08
mupPR operator#301 opened: charm: role is 'peer', not 'peers' <Created by chipaca> <https://github.com/canonical/operator/pull/301>23:08
Chipaca299, 300, and 301 are all fixes for the same issue. Let's see which one wins the peer review dance :-)23:09

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