/srv/irclogs.ubuntu.com/2020/04/22/#juju.txt

wallyworldbabbageclunk: 1 line PR? (plus small test) https://github.com/juju/juju/pull/1148503:00
babbageclunkwallyworld: yup yup03:00
babbageclunkwallyworld: lgtm!03:02
wallyworldtyvm03:02
babbageclunkdo we have a convenient way of combining multiple errors into one?03:12
rick_hsuperglue!03:12
wallyworldhmm, not sure03:12
hpidcockbabbageclunk: not from memory03:12
rick_hor gorilla tape03:12
hpidcockbabbageclunk: the problem is the Cause is ambiguous03:13
babbageclunkgo to bed rick_h, you're drunk!03:13
hpidcockso I think using Annotatef is your best bet03:13
rick_hbabbageclunk:  am I? crap when did that happen03:13
hpidcockchose one error, then have the other in the annotation03:13
babbageclunkwe've all been there!03:13
babbageclunkhpidcock: yeah, but it's not just 2 (although I guess I could combine them pariwise)03:14
babbageclunkpairwise03:14
hpidcockI think multiple errors is a symptoms of bad design anyway :P03:15
babbageclunkI mean, I'm running a script on multiple machines and collecting the errors03:15
hpidcockbabbageclunk: then they are results, not the error03:15
babbageclunksure... but I want to fail if any of them failed03:16
babbageclunkand report the failure as an error03:16
hpidcockyeah well then you should combine them03:16
hpidcockinto one new error03:16
hpidcockimplement your own error type if introspection is needed03:16
hpidcockhe didn't like what I had to say03:17
babbageclunksorry computer crashed03:17
hpidcock"yeah well then you should combine them03:17
hpidcockinto one new error"03:17
hpidcock"implement your own error type if introspection is needed"03:17
babbageclunkmy computer didn't really crash03:18
hpidcockrage quit?03:18
babbageclunkirc needs a /flounce03:18
babbageclunkI guess string concatenation it is! Ah well03:19
babbageclunkthanks hpidcock03:19
hpidcockbabbageclunk: string concat makes sense unless you need to allow the caller to introspect each error03:20
hpidcockthen it should be results03:20
hpidcockmy 2c03:20
babbageclunkyeah definitely, but in this case I just want to report it to the user.03:20
hpidcockto the CLI or just into a log?03:21
babbageclunkcli03:23
hpidcockwell if the user specified multiple entities, then the errors are results are they not?03:24
hpidcockthe error would be "I failed to talk to juju api or something else"03:24
hpidcockthe results are each of the individual operations03:25
hpidcockI'll shutup now leave it to you hah03:25
babbageclunkThis is in juju-restore, so there's no api involved. But the user doesn't specify the controller machines individually, they just say "restore this backup" and we say whether it worked or not.03:31
wallyworldtlm: hey, any issues with my comments on the PR?05:29
tlmhaven't looked wallyworld pulling my hair out over something else05:29
hpidcocktlm seems to find the fun weird stuff05:30
wallyworldno worries, reach out if you need help05:30
wallyworldto do with the model operator stuff?05:30
tlmthink I have got it thanks to hpidcock just throwing the tool box at it now05:30
tlmangry music helps05:31
* tlm fixed his problem, drinks babbageclunk rum05:33
babbageclunkok some bash help please? why doesn't this give any output? `ssh ubuntu@10.77.116.85 -- sudo bash -c "echo hey"`05:35
babbageclunkin exchange for my rum tlm05:35
wallyworld"hey" "hey" "hey" "hey"05:35
tlmum05:35
wallyworldworks for me  :-D05:35
babbageclunkheeeeeeeeyaaaaaaaa05:36
tlmi am not good at the ssh foo,05:36
babbageclunkworks without the bash bit05:36
babbageclunkActually my problem is more that I'm not seeing stderr from the command if I run `sudo bash somescript` over ssh05:37
wallyworldhpidcock is a bash wizard05:37
hpidcockuhoh05:37
babbageclunkI mean I'm reluctant to bug him because he's busy and also his advice is annoying05:38
babbageclunk;)05:38
tlmlmao05:38
tlmi know a guy I can ask babbageclunk05:38
tlmnot hpidcock05:38
babbageclunkbut for reals I would appreciate it this time hpidcock not like before05:38
hpidcockjust need to whack '' around your ssh command05:39
* babbageclunk tries that05:40
hpidcockssh ubuntu@10.77.116.85 'sudo bash -c "echo hey"'05:40
babbageclunkyay, hpidcock is a genius!05:40
babbageclunktotally works05:40
babbageclunkthanks05:40
babbageclunkI take back the mean thing I said just before05:40
hpidcockhah05:41
babbageclunkahhhhh - it's because without the quotes the bash command is just taking the command to be "echo", and then the next arg is $0 for the command05:43
tlmwallyworld: pushed up some changes, just taking the dogs for a run so they stop bugging me06:08
wallyworldok :-)06:22
wallyworldtlm: reviewed, see if i make sense or you think i am on crack....06:31
achilleasastickupkid: found a small problem in my lxd PR (channel not propagated correctly when you install the snap instead of refreshing it). Will amend the last commit to address this09:10
stickupkidachilleasa, I've just popped out of a meeting, so I've got time to do the full PR test now09:26
achilleasastickupkid: give me a few min to double-check something.09:27
achilleasastickupkid: pushed the missing bit. btw, I just tried to use my PR to do nested-lxd on eoan host with lxd 3.0/stable (I see 3.0.3 installed in my bionic box) but still doesn't work09:30
achilleasadebug logs for bionic and eoan look more or less the same. There isn't actually any output after the "no profile changes required" message and the agent starting. I also compared the profiles in the host boxes to make sure they match09:31
achilleasaany idea where I should be looking next for the agent copy bits?09:31
achilleasaalso manadart ^09:31
stickupkidachilleasa, i'm in daily09:32
achilleasa(sidenote: downgrading to something like 3.0.3 prevents lxd from starting due to schema incompat)09:32
achilleasastickupkid: is this what I am supposed to be seeing? https://pastebin.canonical.com/p/HjQKkXG84m/12:12
achilleasastickupkid: I still get apparmor's "are you running confined" logs in the nested container12:13
achilleasastickupkid: one step closer: https://pastebin.canonical.com/p/pX8H7fntsM/12:50
achilleasathis is after the unconfined patch12:51
achilleasahope we don't have to remove apparmor via cloudinit...12:51
achilleasathere is a possibly related bug here: https://bugs.launchpad.net/snapcraft/+bug/182237212:53
mupBug #1822372: Snapcraft cleanbuild on Arch Linux with LXD - AppArmor permission error <apparmor> <cleanbuild> <lxd> <permissions> <snapcraft> <snapd> <Snapcraft:New> <https://launchpad.net/bugs/1822372>12:53
hmlstickupkid: https://pastebin.canonical.com/p/C6rwgyxgg4/. from juju edge snap on serverstack. - wonder if its related to my port security enabled bit?  dunno13:34
stickupkidhml, but it should block the destroying of the controller, maybe I should just say there will be an orphaned set of os interfaces13:35
hmlstickupkid: the controller was destroyed13:35
hmlstickupkid: checking the interfaces13:35
stickupkidhml, that's how it should work13:35
hmlstickupkid: yup, i have an orphaner interface.  thought we fixed this?13:37
stickupkidhml, you can't fix it if the server stack doesn't support it13:37
stickupkidachilleasa, ping13:52
stickupkidhml, get me?13:52
hmlstickupkid: yeah yeah.13:53
stickupkidhml, better error message maybe?13:53
hmlstickupkid: yes.  especially if we want to let users know to remove them13:53
hmlwe’ve done that a few times.13:53
stickupkidyes, I'll add a card13:53
hmlstickupkid: looks like we get a NotFound which is helpful13:54
stickupkidnice nice13:54
achilleasastickupkid: pong13:57
stickupkidachilleasa, was in daily13:57
achilleasastickupkid: got it working with nesting: https://pastebin.canonical.com/p/PV2MdNDgCn/15:05
achilleasa(+unconfined)15:05
stickupkidachilleasa, in daily15:05
achilleasastickupkid: thanks for the review. I will need to !!build!! until it gets green (having issues with windows box for the last few attempts)15:55

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