/srv/irclogs.ubuntu.com/2020/06/15/#smooth-operator.txt

MarkMaglanajam: thanks for commenting on the Existing Tools section! Very good comments. Helps with thinking about and evaluating possible solutions.05:18
jamMarkMaglana, happy to. I think we're also very invested in recommendations for how to get the dependencies into the charm and into the deployment05:19
jamMarkMaglana, I should mention that the current plans are looking to have a build step for charms that can be run on a Launchpad build farm (like snaps and debs) so that charms end up series/architecture specific for deployment.05:20
jamWe've tried to avoid that in Juju for a long time, but it is just a practical matter that charms depend on python extensions05:20
jam(even PyYAML uses libyaml)05:20
jamnote that the charm store and Juju don't currently support looking up charms by series+architecture so a lot of that ends up in 'room for growth'05:21
MarkMaglanajam is this build step plan documented anywhere? I'm curious and would like to reference that in my document.05:33
davigar15Hey jam!07:33
davigar15Ian Booth told me that the issue https://bugs.launchpad.net/juju/+bug/1882127 is fixed in 2.7/edge07:34
jamdavigar15, well, it now properly reports an error rather than a nil panic, we still need to understand what the underlying error is07:35
davigar15jam: okay! great! I will investigate if I have time. Let me know if you find out anything07:36
davigar15have a nice day :-)07:36
jamdavigar15, you too07:38
Chipacagood morning people!08:13
Chipacajam: should I tell people to give #323 a try if they're interested in it?08:52
mupPR #323: 317 state get <Created by jameinel> <https://github.com/canonical/operator/pull/323>08:52
jamIt isn't wired up yet, so I still need to do a bit08:52
jammorning Chipaca08:52
Chipacajam: ok, i'll just mention it's a WIP and on target for 0.7 then :)08:52
vgrevtsevhi jam - any chance you can take a one more look into the https://github.com/canonical/operator/issues/328? Still have no idea what could be wrong :/08:58
jamvgrevtsev, is src/charm.py executable and have the right #! line?09:05
jammaybe python isn't found at the path you expect inside the application container?09:06
jamreplied to the bug09:07
vgrevtsevjam: yes it's exec-able, the charm itself is running fine09:11
Chipacavgrevtsev: do you get debug logs?09:15
jamvgrevtsev, that is running in the operator pod, while the actions run in the application pod09:22
jamvgrevtsev, different python09:22
Chipacajam: but the charm ran in the application pod as well, otherwise what created the symlink09:22
vgrevtsevjam: yeah but it didn't raise the bad interpreter or smth similar09:23
jamChipaca, juju when it copies the charm directory from the operator pod to the application pod during init09:23
Chipacaahhh09:23
jamvgrevtsev, $ ./foo09:24
jambash: ./foo: /bin/ash: bad interpreter: No such file or directory09:24
jamthat does say "No such file or directory"09:24
vgrevtsevbut it also says "bad intepreter"09:24
jamvgrevtsev, yeah, and there is some sort of python that is trying to exec the script09:24
vgrevtsevwell wait09:25
vgrevtsevi think i found smth09:26
vgrevtsev`/bin/sh: /usr/bin/env: not found`09:26
vgrevtsev(in the app container)09:26
vgrevtsevwhile my `charm.py` has `#!/usr/bin/env python3`09:26
Chipacahehe09:34
Chipaca/usr/bin/env bites again09:34
Chipaca(this wrt: people doing '/usr/bin/env bash' to make things more portable --- despite env being in /usr/bin less frequently than bash is)09:34
Chipacas/(?<=than bash is)/ in \/bin/09:35
vgrevtsevyeah, and here is another problem: my app container doesn't have python installed :\09:36
vgrevtsevso that basically means that I can't run actions against it09:36
Chipacayeah09:36
jamvgrevtsev, you can write non-python actions, it depends what you want them to do09:37
vgrevtsevtrue09:43
vgrevtsevjust wondering why the actions are executed at the app pod but charm itself runs on the operator pod?09:43
Chipacavgrevtsev: I think there's an ongoing conversation about that09:44
Chipacaor a few actually?09:44
Chipacaseems a lot more work needs to be done still09:44
Chipacamostly juju-side aiui09:44
jamvgrevtsev, a lot of it depends on what you want out of an action. many types of actions require running with the appliaction (eg, backup the database)09:45
ChipacaBTW, PROMPT_COMMAND='printf "⏎%$((COLUMNS-1))s\\r"' FTW10:32
Chipacajam: in zookeeper_cluster, am i reading it right that it uses both framework.model.get_relation(...) and framework.relations[...] for the same relation, despite the usage of the first meaning that any checks on the length of the second are spurious?10:55
Chipacabecause get_relation raises an exception if it's not unique10:56
jamChipaca, meeting?11:01
Chipacajam: another one?11:59
Chipacaoh wait11:59
jamChipaca, https://github.com/canonical/operator/pull/327 needs your review12:00
mupPR #327: many: move Model.name to be read from _ModelBackend <Created by jameinel> <https://github.com/canonical/operator/pull/327>12:00
* Chipaca gets out the red pen12:00
jamChipaca, 'oh wait' ?12:01
jamChipaca, if you can find a way to get your red pen marks online, I'm all for it12:01
Chipacajam: saw your 'meeting?' message _after_ the meeting :)12:01
Chipacastub: filed #32912:03
mupIssue #329: dependencies <enhancement> <🧠 big brain> <Created by chipaca> <https://github.com/canonical/operator/issues/329>12:03
mupIssue operator#329 opened: dependencies <enhancement> <🧠 big brain> <Created by chipaca> <https://github.com/canonical/operator/issues/329>12:03
Chipacajam: i'd actually gotten half way through reviewing that on Friday12:04
ChipacaI lie12:04
ChipacaThursday12:04
jamChipaca, I can imagine it was "I reviewed it but didn't hit send"12:04
Chipacai hadn't gotten to the bottom :)12:05
mupIssue operator#223 closed: Operator fails on Juju 2.7.0 and below <bug> <Created by chris-sanders> <Closed by chipaca> <https://github.com/canonical/operator/issues/223>12:08
mupPR operator#324 closed: model: don't use --app for relation-get/-set before 2.7.0 <Created by chipaca> <Merged by chipaca> <https://github.com/canonical/operator/pull/324>12:08
mupPR operator#326 closed: make abc TestMain private to help pytest <Created by chipaca> <Merged by chipaca> <https://github.com/canonical/operator/pull/326>12:08
* Chipaca stepping out for 30'12:26
mupIssue operator#328 closed: k8s charm throws a "not found" error when invoking the action <Created by exceptorr> <Closed by exceptorr> <https://github.com/canonical/operator/issues/328>12:33
Chipacajam: i'll be along as soon as i've figured out why i have a conflicting meeting13:00
jamok13:00
jamChipaca, so far nobody else is here13:02
* Chipaca gives up16:37
Chipacaslightly early EOD from me16:37
Chipacattfn! might pop in later, but i'll go run now16:38

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