[07:37] Haha, wow! What a fun time I had tonight. Turns out Kylo Ren is Han and Leia's son, Ben but was seduced to the dark side. He even kills his own dad at the end.. It was really tense. Oh and Rea finds out she has jedi powers and does a mind trick on a storm trooper to escape captivity. She kicks Kylo Ren's ass with a lightsaber too! Luke Skywalker only shows up for 20 seconds at the end though which is kind [07:37] of lame. Oh well. [14:01] heya folkas [14:02] I have a very random question: can I control the mongodb oplog size with the manual provider? [14:02] the code supports it (the local provider sets it to 1MB) [14:02] but I can't see if there is anyway for me to configure it [14:05] motivation: in an empty environment, oplog takes up 1.5G on it's own === JoshStrobl is now known as JoshStrobl|AFK === JoshStrobl|AFK is now known as JoshStrobl [17:39] marcoceppi: pmatulis has some questions about the use of "schema" in the action context in our new documents. [17:39] mbruzek: what do you mean? [17:40] my understanding is it is just a format for the yaml file. But there seems to be a --schema flag to the juju action commend. [17:42] mbruzek: I don't see a --schema flag? [17:43] mbruzek: you mean on defined? [17:43] https://github.com/mbruzek/docs/blob/developer-guide/src/en/developer-actions.md [17:43] mbruzek: tldr, the actions.yaml file is a schema, it's a jsonschema [17:44] mbruzek: what's the problem? all of that is correct [17:44] pmatulis: can you clarify your question? [17:45] a couple of questions now [17:46] okay [17:47] ① is there such a thing as a "Juju schema"? [17:47] ② must actions.yaml have a json-schema format? the doc i have says "actions support json schemas" as if it also supports something else [17:47] (re ① or "Juju actions schema") [17:49] pmatulis: the actions.yaml is a "jsonschema" which follows a specific format but supports the inclusion of additional jsonschema directives. an action does not have to define additional schema, but it can (IE, everything under params) an action without params is just an action but the actions.yaml follows a schema [17:50] the fact that it's a "jsonschema" is misleading, since YAML is a superset of json and we use yaml in juju we simply declare it as the schema [17:52] wow ok. i'll have to knead that into something that an average user can understand [17:52] pmatulis: this isn't for an average user [17:52] it's a schema, you follow it, it's for developers [17:52] it would be like saying "this is the actions.yaml format" [17:53] the fact that the word schema is used is irrelevant [17:53] except that it defines the constraints on the format used [17:53] we didn't make our own format up like in config.yaml we use an existing format [17:54] right, that was my original question to mbruzek. but then the '--schema' flag i found threw me. is that also used colloquially? [17:55] pmatulis: also, fwiw, this is what is /currently/ in the docs. https://jujucharms.com/docs/stable/authors-charm-actions [17:55] pmatulis: the --schema flag simply dumps the actions.yaml file when running juju actions defined [17:56] marcoceppi, mbruzek: ok, my questions have been answered. thanks guys [17:57] pmatulis: cool, let us know if we can be of any other help! [18:47] was the 'machines' block in a bundle file introduced in v4 bundles? or did it exist before that? [18:51] tvansteenburgh: it came about in v4 [18:51] tvansteenburgh: it was part of the new format to add that and the machine view in the GUI [18:51] rick_h_: thanks! [18:52] tvansteenburgh: how goes using the new stuff? [18:52] tvansteenburgh: things going ok/making sense/going to work out? [18:53] rick_h_: so far so good, i've been pestering urulama when i have questions [18:53] marcoceppi, mbruzek: in developer-actions.md, there is an example that uses some parameters that have not been mentioned/defined [18:53] tvansteenburgh: cool, make sure to shout if things can/should work better/different [18:53] required: [outfile] [18:53] additionalProperties: false [18:53] rick_h_: will do, thanks! [18:54] marcoceppi, mbruzek: any reason why that should be there? i would like to remove it [18:55] pmatulis: why do you want to remove those? [18:55] pmatulis: someone else wrote that document, I wouldn't delete the content, those are valid examples as far as I know [18:55] marcoceppi: like i said above [18:56] pmatulis: required and additionalProperties is like description, they're part of the parent schema [18:56] pmatulis: perhaps the better answer is to define/mention those parameters [18:56] the actions schema* [18:56] marcoceppi: why put stuff in there when they don't mean anything at that time [18:56] readers hate that [18:56] pmatulis: literally the next paragraph defines those keys [18:56] looking [18:56] JSON-Schema defines special keys such as required and additionalProperties, which may be given for the whole action at the same level as description and params, or within nested schemas at the usual level. [18:57] I suppose we could remove it from that example, since it's repeated below [18:57] yeah [18:58] but it's really just a more complete example [18:58] also, this doc is almost a 1:1 match with what is currently in the repo [19:01] marcoceppi: right, i'm fighting a battle on 2 fronts, not easy [19:46] I am finding JUJU_REMOTE_UNIT is set to an empty string during the -relation-broken hook, leaving me no way to tell with whom I have lost the relation. Is this expected behavior? [20:11] cory_fu: I believe so [20:43] what are the minimum requirements for a charm action? [20:43] so far, it seems like [20:43] ① /actions/binary file [20:43] ② top-level key named according to binary name in actions.yaml [20:43] is there anything else required in actions.yaml for an action to work? [20:57] pmatulis: that is the bare minimum [20:59] marcoceppi: thanks [23:03] tvansteenburgh: or cory_fu: how do I activate a python virtual env in a Makefile? source .venv/bin/activate does not seem to work [23:04] Is this for running tests? [23:04] make lint [23:04] mbruzek: I'd highly recommend using toxx [23:04] mbruzek: a more direct answer, you really can't "activate" a virtualenv in a Makefile, but you can run things like .venv/bin/python or .venv/bin/pip [23:05] ack [23:05] mbruzek: Take a look at https://github.com/juju-solutions/charms.reactive/blob/master/Makefile and https://github.com/juju-solutions/charms.reactive/blob/master/tox.ini [23:05] thanks cory [23:05] np [23:06] cory_fu: the goal was to self contain this thing, I don't see the makefile installing tox [23:07] mbruzek: You're right, I assume tox. You can just apt-get install python-tox though