/srv/irclogs.ubuntu.com/2019/09/06/#juju.txt

wallyworldkelvinliu: is your PR ready to review? I'll look after i finish harry's. plus I have 2 small ones up as well02:20
kelvinliuwallyworld: not yet, will ping u when it's ready02:21
wallyworldok02:21
hpidcockwallyworld: PRs look good, exit code one just needs to update Gopkg.lock02:43
wallyworldoh right yeah, for the k8s dep02:44
wallyworldgot sucked back into this verizon thing, so still not done with yours sorry02:44
hpidcocknp02:45
wallyworldhpidcock: i left a few more comments - wouldn't mind a chat perhaps once you read them04:40
hpidcockhpidcock: not needed, I think I understand them all04:42
wallyworldok04:42
wallyworldhpidcock: i'll do another pass once changes pushed. operator flle needed for juju-run since that is invoked from the workload pod by a cron script or whatever and not via an exec call made by juju where the env vars can all be set in place to commuicate socket info etc04:44
wallyworldso where we do have env vars available, we should continue to use that pattern04:44
hpidcockwallyworld: seems pretty heavy to send the ca cert for every call04:45
wallyworldyeah, true that04:45
wallyworldwe could write that to the /var/lib/juju directory04:45
kelvinliuwallyworld: wanna have a discuss testing podspecv2, ru free now?04:46
wallyworldhpidcock:  so i guess the operator file in some form might be reasonable after all04:46
hpidcockwallyworld: I agree that we should probably keep the env vars consistent for hooks, but I think the compromise is a ca.crt file, and a JUJU_CA_CERT=<path-to-ca.crt>04:48
wallyworldhpidcock: or maybe just the cert and private key a seperatae files on disk under /var/lib/juju like we do for other things04:48
wallyworldyup, works for me04:48
hpidcock^04:48
hpidcockok04:48
wallyworldkelvinliu: sure, free now04:48
wallyworldkelvinliu: for later when you are free, this brings the pod spec parsing from from yesterday in 2.6 to the develop branch https://github.com/juju/juju/pull/1061105:25
kelvinliuwallyworld: lgtm thx05:26
wallyworldty05:26
cjwatsonI'm trying to use the feature described in https://jaas.ai/docs/lxd-cloud-advanced#heading--charms-and-lxd-profiles as having been added in Juju 2.5.0.  I have https://paste.ubuntu.com/p/jBydGSKdHS/ as lxd-profile.yaml at the top level of my charm.  Client version 2.6.8, controller version 2.5.8.  It seems to have exactly no effect: "lxc config show --expanded" on the relevant container ...14:03
cjwatson... doesn't show the configuration I've tried to set, and I can't find any log entries related to it.  What am I missing?14:03
cjwatsonOh, never mind.  I think my controller upgrade hadn't quite finished at the point when I did the deployment14:09
cjwatsonNice nice, this is there now14:10
hmlcjwatson: glad that was resolved.  definately recomment juju 2.6.8 for using lxdprofiles over 2.5.x14:51
pepperheado/18:08
pepperheadIs it normal for, when adding credentials, the pasted API key doesnt print to screen? My juju is all messed up.18:09
pmatulispepperhead, yes, that sounds right18:10
pmatulispepperhead, messed up how?18:10
pepperheadI enter "juju status" and get "ERROR no API addresses"18:10
pmatulisit sounds like you cannot contact the controller18:11
pepperheadIs there any way to uninstall juju and start fresh?18:12
pmatulisdo you have anything deployed?18:12
pepperheadI tried "sudo apt-get remove juju", then "sudo apt-get purge juju". then reinstalled with "sudo apt install juju". I get the same18:13
pmatuliswhat i meant was, did you deploy anything with juju (ex: juju deploy <something>)18:14
pepperheadWell I think that may be the problem: I had maas running, and moved it into a lab, and it got borked. I uninstalled maas and reinstalled maas. It HAD the controller deployed previously. Could it be still thinking it is alive?18:14
pepperheadThe only thing successfully deployed previously was the controller18:15
pmatulisyes, juju cannot see the new maas18:16
pepperheadSo do I have to wipe the system and start from scratch?18:16
pmatulisyou can do a few things. uninstall completely or just tell juju to forget about the controller18:16
pepperheadWhats weird is I tried to deploy the controller, and it deployed Ubuntu to the node and hiot a wall.18:17
pmatulisdoes 'juju clouds --local' show your maas cloud?18:18
pepperheadCan I do both? How can I tell juju to forget the controller, AND uninstall to ensure I am clean?18:18
pmatulisuninstalling will include forgetting the controller18:18
pmatulisdid you install juju by deb package or by snap?18:19
pepperheadI get "mymaas                0                   maas        Metal As A Service"18:19
pepperheaddeb18:19
pmatuliswe usually encourage snaps these days18:19
pepperheadI am cool with switching, if that is possible18:19
pmatulisok18:19
pepperheadNew to Snaps, and juju, and maas :(18:20
pmatulis'sudo apt purge juju'18:20
pepperheaddone18:20
pmatulisand remove ~/.local/share/juju if it's still there18:21
pepperheadit was there, removed18:22
pmatulisnow 'sudo snap install juju --classic'18:22
pepperhead"juju 2.6.8 from Canonical✓ installed"18:22
pepperheadI need to research Snap18:23
pmatulisperfect. now add your MAAS. you've done that before right?18:23
pmatulis(add-cloud command)18:24
pepperheadUnsure what that means, maas is running already18:24
pmatulisyes, but you need to tell juju about it18:24
pmatulis(how did you get a maas before? you said it showed up with 'juju clouds --local')18:24
pepperhead"juju add-cloud mymaas"?18:25
pmatulishttps://jaas.ai/docs/maas-cloud18:25
pepperheadI was following "https://docs.openstack.org/project-deploy-guide/charm-deployment-guide/rocky/install-juju.html"18:25
pmatulisoh, interesting18:26
pmatuliswell, that should be equivalent18:26
pmatulisbut you're prolly using a more updated juju version. there may be differences18:27
pmatulisbut i think you're well on your way. good luck18:27
pepperheadSo start the interactive with "juju add-cloud --local"18:28
pmatulisthat will work, yes18:28
pepperheadThanx! Was just confused by "add maas", thought it might mean removing and readding maas itself :)18:29
pmatulisohh :)18:29
pepperheadSo should I run that with sudo?18:30
pmatulisno18:30
pepperheadSo you are probably well versed in maas, so let me ask a stupid question: Should the node machines be set to boot first from drive, or PXE after commissioning?19:01
pmatulis*always* PXE19:03
pepperheadYou rock!19:06
pepperheadSo Ubuntu is deploying to the juju node now19:06
roadmrpmatulis does rock :)19:06
pepperheadand you solved the chicke or the egg question I have been mulling over since this started19:06
roadmr🥚  🐔19:07
pepperheadTrying to get OpenStack deployed as a POC, taking me down a lot of new roads19:08
pepperheadto make matters worse, I am given a stack of Intel NUC's to do the project.19:08
pepperheadDoes juju have a web interface, as does maas, to see whats going on, or is it all cli?19:10
pmatulisit does19:10
pmatulisit gets installed with the juju controller19:11
pepperheadis that the "juju gui"?19:12
pmatulishttps://jaas.ai/docs/gui19:12
pepperheadI need to read the docs this weekend, as well as maas docs19:12
pmatulisyep19:13
pmatulisyou can discuss stuff in the docs via a forum. there is a link at the bottom of each page that will bring you there19:13
pepperheadMaybe this node is bad, I got booted from tyhe maas box (ssh'd in). maas is still saying "Deploying Ubuntu 18...)19:13
pmatulisyou will need to wait19:14
pmatulisuntil the node is deployed19:14
pepperheadI ssh'd back in19:14
pmatulisyou mean you tried to ssh into the node?19:14
pepperheadno, back into the maas box19:15
pepperheadunsure how to see where juju is in the process now19:15
pmatuliswhat did you actually tell juju to do? 'juju bootstrap'?19:16
pepperheadpatience padawan19:16
pepperheadyes19:16
pepperheadwith constraint to "juju" tag19:16
pepperheadIt    picked up the correct node and started deploying the OS19:17
pmatulisok, so juju told maas to deploy ubuntu onto a node and then juju will install controller stuff onto it19:17
pepperheadthe maas gui shows it still deploying19:17
pepperheadthis juju is very cool.19:18
pepperheadI think the issue is the NUC's.19:18
pepperheadOr this one in particular. If it doesnt complete I will try one of the larger NUC's, this is the smallest of the stack19:19
pepperheadUntil juju gets the controller installed, no way to get a status I would think19:19
pepperhead2 core/ 4g RAM19:20
pepperheadI assume that since it issued the command to maas, and maas began the process, the API creds are correct.19:21
pepperheadI wonder if the node will have to reboot after the OS is deployed?19:22
pmatulisif you fear things have gone pear-shaped you may need to go purely maas and test powering on/off and deploying. so no juju. just work within the maas gui19:24
pepperheadIf I want to cancel the bootstrap, and try another node that is bigger, is there a way to do that?19:29
pmatulismaas has logs that are viewable via the gui. you can also view logs on the maas server. i would look at the logs before ctrl-c on juju19:30
pmatulismaas gui event logs are per the node being deployed19:31
pepperheadI took a look at the node, it is stuck at a reboot with a "boot:" prompt19:32
pepperheadEvent "Installation complete - Node disabled netboot"19:33
pmatulisyeah, i sounds like your MAAS:NUC combo may need some study. i suggest asking in the maas forum: https://discourse.maas.io/19:35
pepperheadIf a tag another node as "juju" will it grab it, or do I need to remove this job first?19:37
pmatulisi would try a ctrl-c on the bootstrap command19:38
pepperheadI got thrown out of my ssh session, so I assume the bootstrap command died at that time?19:39
pepperheadupdate: confirmed on a second node. maas lays the OS down, performs a reboot, pxe grabs it and trys to hand off for a local boot and dies with a "boot:" prompt.20:12
pepperheadThanks for the helpand time, looks like a dead project.20:14
pepperheadoddly if I ctrrl-alt-del reboot and catch it and select to start from the drive, the system comes up. juju controller never gets installed.20:16

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