/srv/irclogs.ubuntu.com/2020/02/11/#juju.txt

babbageclunkanastasiamac: https://github.com/juju/juju-restore/pull/1 - I can't request a review from you for some reason, maybe you need to be made a repo owner or something?02:26
anastasiamac\o/02:26
anastasiamacjust saw :)02:26
* anastasiamac looking02:26
babbageclunkthanks!02:27
timClicksanastasiamac: could you please test the vids on this page again for me please? https://jaas.ai/docs/microk8s-cloud02:44
anastasiamactimClicks: in ff, all good02:46
anastasiamactimClicks: in chrome, i get a line-height black space :(02:46
timClicks:/02:47
anastasiamacdid u set a concrete height?02:47
timClicksno, Discourse is writing the HTML itself02:48
timClicksit looks like i'll need to write HTML manually02:48
anastasiamaci wonder if it's html or if we can modify css?... mayb worthwhile reaching out to ppl who wrote discourse?...02:50
anastasiamacbabbageclunk: i agree with u re: comments that are obvious like // Name contains the name04:22
anastasiamacbabbageclunk: but we've had these discussions previously on the project too and got overruled...04:22
anastasiamaci'd rather we did the agreed standard here so htat we can use it as a sample code, say04:23
hpidcockbabbageclunk: anastasiamac: although I agree with this, the example of `// Name is the name` is definitely just writing the obvious. Names quite often have constraints e.g. `// Name of the Person and must conform to the regex blabla`. Even explain the value can't be empty etc. There is always something to say about an exported value or function.04:41
hpidcockthis applies to all values04:41
anastasiamaci agree nand in fact like the idea of naming variables in an onvious manner to avoid writing comments...04:42
anastasiamacbut we've had discussions in the past where the consensus was to always comment exported stuff even when the naming is obvious04:43
babbageclunkI don't know what else I'd write for ReplicaSet.Name, other than `// Name of the replica set` - if there are interesting constraints, I don't know them.04:43
anastasiamacnad to be honest, the constraints on the name of the replicaset maybe defined elsewhere...04:44
hpidcock`if there are interesting constraints, I don't know them` probably is a sign that you don't know enough about that value04:44
babbageclunkhpidcock: What would you write for that? This is for reading the replica set from the db - it's not for creating them.04:44
hpidcockanastasiamac: yep, and probably you can refer elsewhere04:44
anastasiamacif we wanted to be particularly difficult we could say 'name of the replicaset as known to juju/db'... but realisitically u probably can only say 'name contains name'04:44
hpidcock`// Name of the replica set` is fine better than `// Name is the name`04:45
babbageclunkI think adding a link to the Mongo docs for the replica set struct makes sense, but I don't think it helps anyone to add individual field docs for things that are straightforward.04:45
anastasiamacrealistically this tool will not be used by other non-juju users04:46
anastasiamacit'll only be used with juju setup.. that means that the replicaset name does not need to refer to mongo doc but to juju doc, surely04:46
anastasiamacand in juju the replicaset is always named 'juju" i think... it's hardcoded.. no?04:46
hpidcockyeah all I'm saying is sometimes we just write the simple comment thinking it is straightforward, but when something stands out like that, it's worth trying to see from the perspective of someone reading that might not be obvious04:47
anastasiamacfwiw m not keen on commenting obvious names but the consensus is the consensus.. mayb we should discuss at the next x-team04:47
anastasiamac+104:47
babbageclunkhpidcock: yeah, but I don't think `// Name of the replica set` is net positive. It's just noise that takes up valuable screen space. Definitely if there's anything to say about the field it's worth doing.04:47
anastasiamacbabbageclunk: can u ho? m struggling with model vs environment in backup...04:47
hpidcockit's just a general Go consensus to comment exported things04:48
babbageclunksure04:48
anastasiamacstdup?04:48
tlmdevelop -> 2.7 if anyone is free https://github.com/juju/juju/pull/1120306:53
tlmsorry 2.7 -> develop06:53
timClicksnew juju post up on the ubuntu blog https://ubuntu.com/blog/devops-tools-in-2020-why-consider-juju09:09
nammn_demanadart, achilleasa: cr for a smaller patch? https://github.com/juju/juju/pull/1119509:18
nammn_demanadart: I commented with background information on your comment https://github.com/juju/juju/pull/11186 happy to exchange for review/qa from my side :D09:18
stickupkidmanadart, quick HO?09:56
stickupkidis he around, or was he taking today off09:57
stickupkidguess I'm going to have to figure out if a networkID string is the same as corenetwork.Id09:58
stickupkidone way to find out09:58
* stickupkid answers his own question, yes they do10:02
nammn_destickupkid: yeah just saw in calendar, seems like hes taking of today. Vaguely remembering that he mentioned that he may or may not take off today10:11
nammn_dein that case for the smaller patch stickupkid achilleasa:  mind smaller cr? https://github.com/juju/juju/pull/11195  manadart already took a look and gave a comment.  I am not 100% sure whether he and I were on the same page there. Maybe one of you can take a look and tell me that I may have overlooked something?10:14
achilleasanammn_de: looking10:14
nammn_deachilleasa: in past we only made it possible to show-space per name, where we searched the  `name` field in the database. New patch enables search in `name` and `spaceid`10:16
achilleasanammn_de: I am curious, what's the rationale behind displaying the space IDs? IIRC we wanted to avoid exposing internal IDs to the operators10:16
achilleasa(e.g. the rebind command works with space names and translation happens server-side)10:17
nammn_deachilleasa: displaying in show-space output? was part of the usage spec.  juju list-spaces does this as well10:18
nammn_deor do you mean searching by ID?10:18
achilleasaboth actually...10:19
nammn_dethe first: was following the spec provided here https://docs.google.com/document/d/1tE5GMF9Uw8W7QQoybgA_vs_RqCHQdbKXmQT_Kaaj6Pk/edit and following list-spaces.10:20
nammn_de2: rick_h opened a launchpad and said it makes sense to search for id10:20
nammn_dehttps://bugs.launchpad.net/juju/+bug/186223810:20
mupBug #1862238: show-space quotes integer and doesn't work with id as argument <juju:Triaged by nammn> <https://launchpad.net/bugs/1862238>10:20
nammn_deachilleasa: thanks for the input! yeah its not 100% clear. We may want to wait for rick_h and see whats his input is10:43
manadartstickupkid nammn_de: I am off today.10:58
stickupkidmanadart, yeah we know :)10:58
nammn_demanadart: ah sure, have a nice day!10:58
stickupkidmanadart, go away :p10:59
nammn_demanadart: have fun with the life outside juju10:59
manadartstickupkid: I need to fix a test, but if you have time please take a look at https://github.com/juju/juju/pull/1119411:00
manadartL8r.11:00
nammn_destickupkid: Im thinking about removing the tests altogether we were talking about yesterday.12:06
nammn_dehttps://github.com/juju/juju/blob/71c2a5a089bc34bbde192c785b96193d1aaa97fa/cmd/juju/status/status_internal_test.go#L6104-L610312:06
nammn_destickupkid: as we already have them as bash based test, which run as expected. Having them in this state based test suite is not winning that much IMO. They are not unit test so somehow kind of on a similiar level to the bash one which already exist. What do you think?12:07
nammn_debtw. i run it locally with count to see where it fails... and it does not fail where we hoped it would fail :/12:07
stickupkidnammn_de, hmm, thinking...12:08
nammn_dealternative solution would be to poll and retry. But that would be even more similiar to the bash based one ..12:08
stickupkidnammn_de, does it fail on CI yet?12:08
rick_hachilleasa:  nammn_de the main reason to expose the space id is fear that we don't catch translating it everywhere and somewhere the logs would show "id 6" and users would be stuck figuring out wtf that was12:31
rick_hbasically an escape hatch12:31
rick_hthen when you run `juju spaces` you see this id and lots of folks would think to use an id as a key to get info12:32
rick_hachilleasa:  nammn_de but I didn't realize "0" would be a valid space name...ugh12:33
rick_h...and we can't control that as we get the names from MAAS...12:34
rick_hshow both? it's just YAML :)12:34
achilleasarick_h: however, this would make the operators assume that you can safely swap ID/name with all space-related commands (could cause confusion with bind)12:34
rick_hachilleasa:  hmmm, fair.12:36
rick_hachilleasa:  nammn_de do we know for sure what the names allowances are in MAAS?12:40
rick_hin juju we use the names package which doesn't allow starting with an int or having a single character if I recall so curious what the exact rules are in maas12:40
achilleasarick_h: see my comment in nammn_de's PR. This is the space validation regex: https://github.com/juju/names/blob/v3/space.go#L1312:41
achilleasarick_h: and this is the maas -> juju space conversion logic: https://github.com/juju/juju/blob/develop/core/network/space.go#L20712:45
nammn_destickupkid: the "unit" test? yes, sometimes. It failed from around 50 runs, around twice?13:03
nammn_derick_h achilleasa: we can ho about this as well?13:04
nammn_deor wait until tomorrow for manadart and then do the ho13:04
rick_hachilleasa:  nammn_de sorry, otp atm13:04
nammn_derick_h: sure no worries. Can be done later today or tomorrow then13:05
nammn_deachilleasa: yeah afaict, space ints are valid names as well13:05
stickupkidnammn_de, but what failed?13:27
stickupkidnammn_de, the output?13:27
nammn_deah, sry, yes the output. The check I added before (check whether activeBranch is to bla) was successfull. The check after that failed.13:27
nammn_de*stickupkid^13:28
stickupkidah, so it's not the controller store, this is in the command then13:29
nammn_destickupkid: this fails: https://github.com/juju/juju/blob/71c2a5a089bc34bbde192c785b96193d1aaa97fa/cmd/juju/status/status_internal_test.go#L6118 not the one above13:33
nammn_deyeah its somehow the command13:33
nammn_deshould be noted.13:33
nammn_destickupkid: my "findings" https://trello.com/c/KG4UJj20/2324-find-out-why-cmd-status-branches-is-flaky14:02
nammn_destickupkid: added a discourse post which can be updated for later. https://discourse.jujucharms.com/t/flaky-ci-tests/262114:16
nammn_derick_h: pr was updated to only include documentation update https://github.com/juju/juju/pull/11195/files14:22
rick_hnammn_de:  cool ty14:22
rick_hnammn_de:  +1'd14:23
stickupkidhml, PR of backporting error and logging info https://github.com/juju/juju/pull/1120515:06
bloodearnesto/ folks - my localhost controller strugging to providion lxd's, I get this in the logs:15:39
bloodearnest2020-02-11 15:38:52 WARNING juju.apiserver.provisioner provisioninginfo.go:609 failed to save published image metadata: missing region: metadata for image  not valid15:39
rick_hbloodearnest:  juju version, local os series version, and lxd version?15:40
stickupkidbloodearnest, can you run this cat ~/.local/share/juju/clouds.yaml15:40
bloodearnestrick_h: juju 2.7.1-bionic-amd64 (from snap)15:41
bloodearnesthost is bionic15:41
bloodearnestlxd is 3.20 from snap15:41
bloodearneststickupkid: no suck file15:42
bloodearnestsuch*15:42
rick_hbloodearnest:  and this is juju bootstrap localhost?15:43
bloodearnestrick_h: yeah, I ripped down the controller and redeployed, on 2.7.1 now15:43
rick_hbloodearnest:  can you run it with --debug and paste the output please?15:43
* bloodearnest hangs head in shame15:44
rick_huh oh15:45
bloodearnestsomehow deployed a service with no units15:45
rick_hbloodearnest:  oh...interesting15:45
bloodearnestmisread the waiting as failing to get an lxd provisioned15:45
rick_hbloodearnest:  bundle without any units in the definition?15:46
bloodearnestrick_h: yep, was doing some yaml munging to get a cut down env, and overmunged15:46
bloodearnestrick_h: stickupkid: thanks for the quick response, sorry for the noise!15:47
stickupkidbloodearnest, not a problem, why we're here :)15:47
hmlachilleasa:  ping16:31
achilleasahml: here16:33
hmlachilleasa: looking for a name for the “error on no value” thing.  but that’s a long name for a flag.  —show-errors?  eh?  ideas?16:34
achilleasahmmm16:34
achilleasahml: how about --strict? "Return an error if the requested key does not exist"16:36
hmlachilleasa:  hrm…16:41
hmlachilleasa:  okay16:43
hmlty16:43
evhanHi folks, does anyone have any tricks for troubleshooting a first deployment of a charm stuck in status "unknown"?22:39
evhanSeeing this with a local charm as well as mariadb-k8s.22:39
evhanNothing in `juju debug-log` for that application.22:40
babbageclunkevhan: is the machine up?22:41
evhanI have logs from other applications in there, working fine.22:44
evhanHmmm, but `juju run --application ...` doesn't connect.22:46
babbageclunkevhan: I'd ssh to the machine and see whether the unit agent is running22:47
babbageclunk(I mean, `juju ssh` to the machine)22:47
babbageclunkah, hang on - this is k8s - sorry, I'm not the best person to answer this then :(22:48
evhanThat's OK, I think there's something else going on with the environment, other tools throwing a fit as well.22:48
tlmIf it's k8's I would take a look at the status of the deploy pods22:55
evhanYeah, sorry, it was nothing to do with juju.23:16
timClicksevhan: are you sorted?23:43
evhanYeah, sorry, it was CoreDNS going wobbly but not application-related.23:48

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