/srv/irclogs.ubuntu.com/2020/01/16/#juju.txt

kelvinliuwallyworld_:  https://github.com/juju/juju/pull/11120. +1 plz00:17
lucidoneIs there a full spec for the charm metadata.yaml somewhere?00:21
lucidoneSpecifically after info for oci-image resources - https://discourse.jujucharms.com/t/charm-metadata/1043 says '"file" is the only type supported currently' ..which is outdated00:22
thumperwallyworld_: ^^00:43
thumperlucidone: I'm not sure if there is a full spec defined anywhere... there should be00:43
thumperbut I bet many people just read the code (which isn't the right answer)00:43
lucidoneYea, looking at some code it looks like you provide the default image with resources.X.upstream-source ? .. I would expect a "default" key like in config.yaml though00:45
evhanlucidone: I think resources: is a hash that the charm can do whatever it wants with.00:47
lucidoneAh right, that works too I guess :D I wonder what type=oci-image does if that's the case?00:48
thumperlucidone: wallyworld_ or kelvinliu could probably explain the oci-image type resource00:49
kelvinliusorry, just finished standup.00:51
evhanAFAICT it's to indicate that it's a reference to an image on a registry (as opposed to a file, meaning it's not a filename).00:51
kelvinliulucidone: oci-image is the container image path.00:51
thumperyes, that is right00:51
lucidoneAh right, so I guess the main difference in handling is because it's _not_ type=file ?00:53
kelvinliuif u defined the docker image path in metadata.yaml file then u can set it in deployment time like `juju deploy x-charm --resource mysql_image=mariadb00:54
lucidoneSo I should have resources.X.oci-image=python:buster?00:54
lucidoneAh, that's nice behaviour00:54
kelvinliuthe charm then can fetch the resource like `layer.docker_resource.fetch('mysql_image')` then set the podspec00:54
lucidoneHow would that look with the operator framework?00:55
kelvinliulucidone: so the format of is same like file resource, https://pastebin.ubuntu.com/p/7Qrt6TX7F4/00:57
kelvinliusorry, i m not familiar with the new operator framework yet.. but i think the metadata format should be same.00:58
lucidoneYea, that looks right - I'm just wondering where the default image would fit .. actually looks like OCIImageResource (resources.py) looks for registrypath in the yaml, so that's likely it01:00
kelvinliubut the way to fetch the resource in charm might use a different helper function.01:00
evhanlucidone: I'm currently translating it into the Python {'containers': {'imageDetails': {'imagePath': 'YOUR_IMAGE_HERE'}}}, which seems to be what the pod model expects.01:02
kelvinliulucidone: https://github.com/johnsca/charm-gitlab-k8s/blob/master/metadata.yaml01:02
kelvinliulucidone: jam have shared u an example charm, right?01:02
kelvinliulucidone: here is how u can fetch the oci-image in charm https://github.com/johnsca/charm-gitlab-k8s/blob/master/src/charm.py#L3801:05
kelvinliulucidone: sorry, missed ur question, how to set default oci-image, so u can attach a resource to charm, then u doesn't have to set --resource in deployment time.01:19
kelvinliuhere is the doc #charm attach https://discourse.jujucharms.com/t/using-resources-developer-guide/112701:20
lucidoneGreat thanks for that - yeap, working things out with a mix of that gitlab charm, operator framework source and discourse01:22
lucidoneAnd you lot of course :)01:22
kelvinliunp :)01:24
kelvinliuwallyworld: did u wanna talk to me? sorry, clicked the btn too quickly..04:12
wallyworldkelvinliu: all good, jut tanked for for the PR review - all the bakery stuff now landed :-D04:13
wallyworld*yhanked04:13
kelvinliuwallyworld: awesome, nice work!04:13
wallyworldso over it - never want anything from a bakery again04:13
kelvinliuhaha,04:14
kelvinliuwallyworld: got this PR to fix the annoying error messages of worker restarting, https://github.com/juju/juju/pull/11121/files04:19
wallyworldlooking04:19
kelvinliuty04:19
wallyworldkelvinliu: we dont' want to restart the entire agent - we just need to internally restart the watcher04:20
wallyworldthomas thinks there may be a new api we can use04:20
kelvinliuok04:21
wallyworldkelvinliu: forgot to ask - is the snap integration done and tested now?04:27
kelvinliuwallyworld: ah, it should have been done. Im testing the microk8s side with juju now04:27
kelvinliuwallyworld: free to HO?05:01
wallyworldkelvinliu: sure05:02
wallyworldone sec05:02
=== skay is now known as Guest35980
flxfooHi all09:41
flxfooquick one, I have a unit in failed state, because of a missing relation... can I remove the relation (which actually does not exists)?09:42
manadartflxfoo: What is the unit?10:41
manadartNeed a review for migrating remote app macaroons. This should be the last piece for migrating CMRs. https://github.com/juju/juju/pull/1112210:41
flxfoomanadart: thanks for asking, but I created a new unit... thanks10:57
* manadart nods.11:00
achilleasamanadart: looking11:02
nammn_demanadart: i've added your review feedback. Ready for another round: https://github.com/juju/juju/pull/1108811:17
manadartachilleasa: I had green tests for that, but CI-run is knocking it back. Might have to rebase...11:17
manadartnammn_de: OK, will look in a mo'11:17
nammn_demanadart: thanks! I will rebase after successful rev11:18
achilleasamanadart: code LGTM. I will run the QA steps next11:18
nammn_demanadart: should I wait for rick_h for ux of the cli (adding additional option/changing output)?11:46
nammn_demanadart: feel free to bug me if you see the need for me to add additional tests11:47
achilleasamanadart: got a small typo in consume command for the QA steps; should read "juju consume cmr-source:admin/default.dummy-source"12:27
manadartachilleasa: Ack. Fixed.12:28
=== Guest35980 is now known as skay
rick_hnammn_de:  go ahead with it for now to land in edge, please shoot me an email with the notes and I'll try to test it out over the weekend13:42
rick_hnammn_de:  I don't want to hold you up but not in a position to poke at stuff atm13:42
nammn_derick_h: okay :-), will do!13:42
nammn_derick_h: can always update /adjust13:42
rick_hnammn_de:  <313:44
nammn_derick_h: just one thing. Do we want to put in under a featureflag?  Some of those are under "PostNetCLIMVP"13:46
rick_hnammn_de:  it's only in the develop branch right? As long as it doesn't break things (and a show-* command shouldn't) it's ok13:49
nammn_derick_h: right, it does not break anything and is only on develop13:49
nammn_derick_h: did you mean, it's ok not to put under a featurebranch, as it is in develop and does not break things?13:50
nammn_de*featureflag13:50
rick_hnammn_de:  yea sorry, it's ok to not be flagged13:51
nammn_derick_h: 🦸13:53
nammn_demanadart: I replied to 2 comments with some open questions https://github.com/juju/juju/pull/1108814:15
achilleasahml: approved the utils PR. Please ping once you update the toml file on 1109414:16
hmlachilleasa:  i need to update names.v3 as well a quick pr14:16
achilleasahml: sure, send it my way14:17
hmlachilleasa: rgr14:20
hmlachilleasa:  i’m going to have to fix the job dependencies before i can merge14:22
achilleasahml: don't forget to update title for 11119 ;-)15:56
hmlachilleasa:  :-)15:56
intrepidsilenceHi everyone!  I have spent many hours on the web looking for an answer to this and I am stumped.19:28
intrepidsilenceI have a new install of juju on an lxd/lxc node19:28
intrepidsilencejuju bootstrap deploy the gui as part of the controller19:28
intrepidsilence"juju gui" properly spits out the web address of the GUI server19:29
intrepidsilenceincluding the credentials19:29
intrepidsilencehowever, since the juju controller is using a private bridge interface the IP of the controller is private and not accessible remotely19:30
intrepidsilencesince the controller is "hidden" from lxc/d i cannot expose it using a proxy19:30
intrepidsilencesince it is the controller I also cannot use juju expose to expose it since it is not technically an application19:31
intrepidsilencei even tried ssh tunneling to the private IP and port but that did not work either19:31
intrepidsilenceso I have no idea how I am going to access the GUI on the remote/private controller19:31
intrepidsilenceany ideas will be welcomed with open arms and great thanks19:32
intrepidsilencefyi - i also tried to deploy juju-gui but that fails with python problems inside of the container it tries to deploy so i am kinda guessing that is not preferred anymore19:34
intrepidsilencedoes anyone know if you can tell juju to use the zfs storage pool that you are already using with lxd as the default pool?20:38
intrepidsilencei cannot seem to find an option for that in bootstrap20:38
thumperI don't recall, but it certainly seems like a reasonable request20:41
=== narindergupta is now known as narinderguptamac

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