/srv/irclogs.ubuntu.com/2015/12/18/#juju.txt

nfdeswqaHaha, 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 kind07:37
nfdeswqa of lame. Oh well.07:37
bloodearnestheya folkas14:01
bloodearnestI have a very random question: can I control the mongodb oplog size with the manual provider?14:02
bloodearnestthe code supports it (the local provider sets it to 1MB)14:02
bloodearnestbut I can't see if there is anyway for me to configure it14:02
bloodearnestmotivation: in an empty environment, oplog takes up 1.5G on it's own14:05
=== JoshStrobl is now known as JoshStrobl|AFK
=== JoshStrobl|AFK is now known as JoshStrobl
mbruzekmarcoceppi: pmatulis has some questions about the use of "schema" in the action context in our new documents.17:39
marcoceppimbruzek: what do you mean?17:39
mbruzekmy 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:40
marcoceppimbruzek: I don't see a --schema flag?17:42
marcoceppimbruzek: you mean on defined?17:43
mbruzekhttps://github.com/mbruzek/docs/blob/developer-guide/src/en/developer-actions.md17:43
marcoceppimbruzek: tldr, the actions.yaml file is a schema, it's a jsonschema17:43
marcoceppimbruzek: what's the problem? all of that is correct17:44
mbruzekpmatulis: can you clarify your question?17:44
pmatulisa couple of questions now17:45
marcoceppiokay17:46
pmatulis① is there such a thing as a "Juju schema"?17:47
pmatulis② must actions.yaml have a json-schema format? the doc i have says "actions support json schemas" as if it also supports something else17:47
pmatulis(re ① or "Juju actions schema")17:47
marcoceppipmatulis: 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 schema17:49
marcoceppithe 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 schema17:50
pmatuliswow ok. i'll have to knead that into something that an average user can understand17:52
marcoceppipmatulis: this isn't for an average user17:52
marcoceppiit's a schema, you follow it, it's for developers17:52
marcoceppiit would be like saying "this is the actions.yaml format"17:52
marcoceppithe fact that the word schema is used is irrelevant17:53
marcoceppiexcept that it defines the constraints on the format used17:53
marcoceppiwe didn't make our own format up like in config.yaml we use an existing format17:53
pmatulisright, that was my original question to mbruzek. but then the '--schema' flag i found threw me. is that also used colloquially?17:54
marcoceppipmatulis: also, fwiw, this is what is /currently/ in the docs. https://jujucharms.com/docs/stable/authors-charm-actions17:55
marcoceppipmatulis: the --schema flag simply dumps the actions.yaml file when running juju actions defined17:55
pmatulismarcoceppi, mbruzek: ok, my questions have been answered. thanks guys17:56
marcoceppipmatulis: cool, let us know if we can be of any other help!17:57
tvansteenburghwas the 'machines' block in a bundle file introduced in v4 bundles? or did it exist before that?18:47
rick_h_tvansteenburgh: it came about in v418:51
rick_h_tvansteenburgh: it was part of the new format to add that and the machine view in the GUI18:51
tvansteenburghrick_h_: thanks!18:51
rick_h_tvansteenburgh: how goes using the new stuff?18:52
rick_h_tvansteenburgh: things going ok/making sense/going to work out?18:52
tvansteenburghrick_h_: so far so good, i've been pestering urulama when i have questions18:53
pmatulismarcoceppi, mbruzek: in developer-actions.md, there is an example that uses some parameters that have not been mentioned/defined18:53
rick_h_tvansteenburgh: cool, make sure to shout if things can/should work better/different18:53
pmatulis  required: [outfile]18:53
pmatulis  additionalProperties: false18:53
tvansteenburghrick_h_: will do, thanks!18:53
pmatulismarcoceppi, mbruzek: any reason why that should be there? i would like to remove it18:54
marcoceppipmatulis: why do you want to remove those?18:55
mbruzekpmatulis: someone else wrote that document, I wouldn't delete the content, those are valid examples as far as I know18:55
pmatulismarcoceppi: like i said above18:55
marcoceppipmatulis: required and additionalProperties is like description, they're part of the parent schema18:56
mbruzekpmatulis: perhaps the better answer is to define/mention those parameters18:56
marcoceppithe actions schema*18:56
pmatulismarcoceppi: why put stuff in there when they don't mean anything at that time18:56
pmatulisreaders hate that18:56
marcoceppipmatulis: literally the next paragraph defines those keys18:56
pmatulislooking18:56
marcoceppiJSON-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:56
marcoceppiI suppose we could remove it from that example, since it's repeated below18:57
pmatulisyeah18:57
marcoceppibut it's really just a more complete example18:58
marcoceppialso, this doc is almost a 1:1 match with what is currently in the repo18:58
pmatulismarcoceppi: right, i'm fighting a battle on 2 fronts, not easy19:01
cory_fuI 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?19:46
marcoceppicory_fu: I believe so20:11
pmatuliswhat are the minimum requirements for a charm action?20:43
pmatulisso far, it seems like20:43
pmatulis① /actions/binary file20:43
pmatulis② top-level key named according to binary name in actions.yaml20:43
pmatulisis there anything else required in actions.yaml for an action to work?20:43
marcoceppipmatulis: that is the bare minimum20:57
pmatulismarcoceppi: thanks20:59
mbruzektvansteenburgh: or cory_fu: how do I activate a python virtual env in a Makefile?  source .venv/bin/activate does not seem to work23:03
cory_fuIs this for running tests?23:04
mbruzekmake lint23:04
cory_fumbruzek: I'd highly recommend using toxx23:04
marcoceppimbruzek: 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/pip23:04
mbruzekack23:05
cory_fumbruzek: 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.ini23:05
mbruzekthanks cory23:05
cory_funp23:05
mbruzekcory_fu: the goal was to self contain this thing, I don't see the makefile installing tox23:06
cory_fumbruzek: You're right, I assume tox.  You can just apt-get install python-tox though23:07

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