=== majduk__ is now known as majduk_ [07:53] PR operator#393 closed: adds Harness.hooks_disabled, a context manager === ChanServ changed the topic of #smooth-operator to: general discussion of the operator framework || github.com/canonical/operator || ops 0.9.0 || charmcraft 0.4.0 [09:02] * bthomas updated to ops 0.9.0 [09:06] * bthomas updated kernel rebooting now [10:02] moon127: remind me, were you still working on your charm this week, or were you off to more exiting topics? [10:02] exciting* [10:03] wondering if i should remove the event from the calendar [10:05] Chipaca: my 2 week stint was up end of last week. As far as I know I'm onto a new assignment this week. [10:05] * moon127 catches up after the UK public holiday and yesterday as PTO [10:05] moon127: ok! removing the events from my calendar [10:05] moon127: the last changes were good fwiw [10:06] i commented on something that you'd already fixed, is all [10:08] ah yes I see, thanks! That bit of code was rather subject to change running up to an end of week, end of rotation deadline, so good to have the syntax as intended rather than first implemented indeed [10:09] thanks for the review, I'll check if Tom is happy our side and get that landed [10:18] now merged [10:55] ¡Muy buenos días a todos! [11:00] 𝐌𝐨𝐫𝐧𝐢𝐧𝐠 facubatista [13:26] Prometheus has a huge number of configuration options in its config file ! [13:32] PR operator#396 opened: add build dist and egg-info to gitignore [13:51] davigar15_: sorry to pester you, who was it that had the issue that i pointed to the environment juju bug and workaround? (looking for the irc handle) [13:52] DominikF [13:52] davigar15_: thanks! [13:52] DominikF: let me know if that bug+workaround isn't the thing you were hitting, please [13:57] Chipaca: It is exactly what I was having issues with, the workaround fixed it for me. But it is still failing for me on 2.8.2 candidate, I commented it in the bug. Thanks! [13:57] ooh, interesting [13:57] DominikF: thanks [13:58] makes me think maybe we should push the workaround into our k8s opslib [13:58] * Chipaca waits to see what people say on the bug [13:59] Chipaca: there is a k8s opslib? [13:59] DominikF: https://github.com/chipaca/ops-lib-k8s/ [13:59] DominikF: most of it is mark maglana's work [13:59] hoping to have it grow over time [13:59] there's natalya's work but sadly she didn't write tests, so i need to find time for taht [14:00] and then we also want to do the same with the oci resources thing [14:00] so much TODO, so little DONE [14:03] Chipaca: Interesting, we are looking into doing something similar as our "proxy charms" with deployments done with Helm, so there might be a moment where we could contribute that part there. [15:46] * facubatista -> lunch [16:32] * facubatista is back [16:42] Issue operator#397 opened: Get container utility for easy pod_spec updates [16:56] I self-assigned myself to this new issue ^ but I won't start working on it until someone confirms we should have it (Chipaca, facubatista, jam) [16:56] * justinclark lunch [17:04] justinclark, ack [17:39] * justinclark back [18:49] I'm looking at the code in tests/commands/test_init.py [18:49] the code here https://pastebin.com/raw/Hz47pzqQ [18:50] I'm wondering what '(env_path,) = env_paths' is supposed to do [18:50] Is it just trying to remove the item from a single element list? [18:51] because when I run it that list has more than one element and it breaks [19:06] dstathis, can you show me your sys.path in that test? thanks! [19:06] there should be only one 'env/lib/python' in there, from the virtualenv, but you may have a more complex setup [19:09] https://pastebin.com/raw/xhE7EDLS [19:09] I have a fix for it but it [19:09] but it is weird to me that this was working before [19:12] I'll just open a PR with my change [19:16] dstathis, how did you create that virtualenv? because 'venv' is a virtualenv, right? [19:16] https://github.com/canonical/charmcraft/pull/147 [19:16] PR charmcraft#147: fix PYTHONPATH correctly [19:17] yes created with "virtualenv -p python3 venv" [19:18] dstathis, and then how are you running those tests? [19:18] ./run_tests [19:19] dstathis, can you do this very same thing in a fresh dir (outside any current venv)? https://paste.ubuntu.com/p/FTsFJ8tSBQ/ [19:23] https://paste.ubuntu.com/p/h76bKVMdbq/ [19:24] yup same issue exists. multiple paths with "test123/lib/python" [19:26] dstathis, yeap... it's bionic, right? [19:26] yes [19:27] dstathis, ack, thanks [19:27] ah I see on focal this doesn't happen [19:30] Well I thill think the change I proposed is better as this issue could come up [19:30] also if you are running outside of a virtualenv that list will have 0 elements and it will also fail [19:33] I'm not really sure how it's been working on travis since that runs on bionic [19:39] +1 to be more robust anyway