/srv/irclogs.ubuntu.com/2017/10/25/#juju.txt

[Kid]rick_h, you around/01:01
=== wgrant__ is now known as wgrant
=== frankban|afk is now known as frankban
tamszagotgood moring08:51
tamszagotI have a problem with juju after upgrading to 2.2.508:52
tamszagotgot "no matching agent binaries available" when trying to deploy a model08:52
tamszagotdestroyed all controllers and tried to reinstall juju and then do a bootstrap, but same problem08:54
tamszagottamas@tamas-EasyNote-TE11HC ~ $ sudo snap install juju --classic08:54
tamszagot[sudo] password for tamas:08:54
tamszagotjuju 2.2.5 from 'canonical' installed08:54
tamszagottamas@tamas-EasyNote-TE11HC ~ $ sudo snap list juju08:54
tamszagotName  Version  Rev   Developer  Notes08:54
tamszagotjuju  2.2.5    2713  canonical  classic08:54
tamszagottamas@tamas-EasyNote-TE11HC ~ $ juju bootstrap08:54
tamszagotClouds08:54
tamszagotaws08:54
tamszagotaws-china08:54
tamszagotaws-gov08:54
tamszagotazure08:54
tamszagotazure-china08:54
tamszagotcloudsigma08:54
tamszagotgoogle08:55
tamszagotjoyent08:55
tamszagotlocalhost08:55
tamszagotoracle08:55
tamszagotrackspace08:55
tamszagotSelect a cloud [localhost]:08:55
tamszagotEnter a name for the Controller [localhost-localhost]: localhost08:55
tamszagotCreating Juju controller "localhost" on localhost/localhost08:55
tamszagotLooking for packaged Juju agent version 2.2.5 for amd6408:55
tamszagotTo configure your system to better support LXD containers, please see: https://github.com/lxc/lxd/blob/master/doc/production-setup.md08:55
tamszagotERROR failed to bootstrap model: no matching agent binaries available08:55
tamszagottamas@tamas-EasyNote-TE11HC ~ $ cat /etc/issue08:55
tamszagotLinux Mint 18 Sarah \n \l08:55
AkshayHi All, Is there a way to tag charms on charmstore for specific release for e.g. tag the uploaded charm for OCATA release only.10:07
mark-dickieHello, does anyone know if the maas-image-builder is still available?10:59
mark-dickiebzr branch lp:maas-image-builder10:59
mark-dickiebzr: ERROR: Invalid url supplied to transport: "bzr+ssh://bazaar.launchpad.net/+branch/maas-image-builder": no supported schemes10:59
mark-dickieActually the MaaS docs say I need Ubuntu Advantage for custom images.11:18
tamszagotAny of you seen the message: ERROR failed to bootstrap model: no matching agent binaries available11:54
tamszagotafter upgrading to 1.2.5 ?11:54
tamszagotsry I mean 2.2.511:54
[Kid]is there a way to deploy a juju HA cluster with MAAS to a lxd container?13:01
jfhhi - did anyone run into this before (and has an idea about it):13:21
jfh"juju status"13:21
jfh"ERROR unable to connect to API: Forbidden"13:21
jfhssh login to the controller and 'juju controllers' still work, but more or less no other juju cmd anymore ...13:21
magicaltroutanyone want to hazard a guess as to why trying to bootstrap k8s on lxd via conjure up says14:32
magicaltroutError bootstrapping controller: ['ERROR enabling HTTPS listener: cannot listen on https socket: listen tcp [::]:8443: bind: address already in use']14:32
magicaltroutbut14:32
magicaltroutfuser 8443/tcp14:32
magicaltroutis empty14:32
stokachumagicaltrout: do you have multiple lxd's installed, like deb and snap?14:34
stokachuconjure-up requires snap lxd14:34
magicaltroutgood catch14:35
magicaltroutthanks stokachu14:35
stokachumagicaltrout: when snap lxd is first class in next lts this wont be a problem14:35
[Kid]is there a way to put SSH keys into a credentials.yaml for my own private cloud provider?15:03
bdx[kid]: use `juju add-ssh-key "$(cat mykey.pub)"`15:04
bdxthat will add the key to your model15:05
[Kid]bdx, awesome, i think that's what i needed15:05
[Kid]bdx, will this allow me to bootstrap juju onto another machine?15:05
[Kid]that has that key15:06
bdxoh15:06
bdxI can't be sure15:06
bdxif its the default ssh of of your user15:06
bdxin ~/.ssh/id_rsa.pub15:06
bdxI think it gets added automatically15:06
bdxdon't quote me on that15:06
bdx:)15:07
[Kid]yeah, i have two machines and i am using one to bootstrap the other, then i will add the other one to the model and join them in a HA cluster15:07
[Kid]well, when i do bootstrap, it is trying to use the key at /home/ubuntu/.local/share/juju/ssh/juju_id_rsa.pub15:07
bdx[kid]: again, don't quote me on this, but I *think* you need a quorum of at least 3 for controller HA15:08
[Kid]ohh dammit15:08
bdxahh I see15:08
bdxyeah, so add /home/ubuntu/.local/share/juju/ssh/juju_id_rsa to you ssh keys15:08
bdxthen you will just be able to ssh15:08
[Kid]well, that's what i was thinking.15:09
bdxeval "$(ssh-agent -s)"15:09
[Kid]i have to do that on the remote host15:09
bdx$ ssh-add -K /home/ubuntu/.local/share/juju/ssh/juju_id_rsa15:09
[Kid]that just adds the juju client key for each local host15:12
[Kid]i need to add the keys from node 1 to node 2 and vice versa15:13
[Kid]that worked.15:14
[Kid]i just did it manually15:14
[Kid]the question now, is there a way to have juju use the same client key?15:15
[Kid]on all of its deployments15:15
bdxyeah15:21
bdxadd it to the model15:21
[Kid]oh with the command you said earlier?15:32
bdx[Kid]: yea15:44
tamszagotgoodevening from sweden16:08
tamszagotAny of you seen the message: ERROR failed to bootstrap model: no matching agent binaries available16:08
tamszagotafter upgrading to version 2.2.516:08
knobbytamszagot: known issue related to the bionic update16:09
tamszagotahh , thanks16:09
tamszagotis it possible to downgrade?16:10
tamszagotto precious version?16:10
tamszagotprevious16:10
rick_htamszagot: the trick is to specify the series as xenial at the moment. You can pass --series into the deploy command or the add-machine command or use the charm urls with series in them such as cs:xenial/postgresql16:11
rick_htamszagot: the team's actively getting new releases out that corrects this16:12
tamszagotthank you very much rick!16:12
tamszagothmm ... I have no controller since I uninstalled juju16:14
tamszagotand --series doesn't seme to be an option of the bootstrap command16:14
tamszagot(I'm new with juju so bare with me ..)16:15
gQuigsjuju bootstrap  --bootstrap-series xenial16:15
gQuigstamszagot: ^^16:15
tamszagotthanks16:15
tamszagot(I would have changed that --bootstrap-series to plain --series if you asked me :)16:16
tamszagottamas@tamas-EasyNote-TE11HC ~ $ juju controllers16:22
tamszagotUse --refresh flag with this command to see the latest information.16:22
tamszagotController  Model    User   Access     Cloud/Region         Models  Machines    HA  Version16:22
tamszagotlocalhost*  default  admin  superuser  localhost/localhost       2         1  none  2.2.516:22
tamszagotgQuigs: thanks alot!16:22
gQuigs:)16:23
=== frankban is now known as frankban|afk
rick_h20 minutes until the Juju show, get your youtube ready https://www.youtube.com/watch?v=zhz1PSXyIuA17:37
rick_hhttps://hangouts.google.com/hangouts/_/laeoptm2grfy5lpnc67r3yld3me to join the conversation17:51
rick_hstarting in 917:51
rick_hwpk: bdx kwmonroe and others ^17:51
kwmonroei'll be there rick_h -- just gotta find some pants.17:52
rick_hkwmonroe: oh good idea :)17:53
rick_hbdx: you on the way?18:00
[Kid]don't need pants, just point the camera on the upper half18:02
bdxdoes anyone know of a good example of using Juju storage with the MAAS provider?18:45
bdxI found this https://jujucharms.com/docs/devel/charms-storage#maas-(maas)18:45
bdxbut it doesn't really give any examples, I'm going to be digging into it a bit18:46
bdxjust wondering if anyone has made any headway there that I might be able to take a look at18:47
=== atrius_ is now known as atrius
charllsgood afternoon19:58
charllsI'm trying to do 'juju bootstrap lxd lxd-local' but it gets stuck in waiting for address 20m, after which it gives 'failed to bootstrap model: without getting any addresses'19:59
charllskubuntu 17.04 host19:59
charllsjuju --version: 2.2.5-zesty-amd6420:00
charllslxd and lxc --version: 2.1920:00
charllslxc profile list shows two profiles: default and juju-controller20:01
charllslxc network list shows lxdbr0, as type BRIDGE, managed20:02
aemaraWhen creating a GCE instance Is there a way to set up a new instance to run as a service account?20:13
charllshalp20:25
thumpercharlls: morning20:26
thumperaemara: what do you mean by service account?20:26
charllshi thumper20:33
charllsI'm trying to do 'juju bootstrap lxd lxd-local' but it gets stuck in waiting for address 20m, after which it gives 'failed to bootstrap model: without getting any addresses'20:33
charllskubuntu 17.04 host, juju --version: 2.2.5-zesty-amd64, lxd and lxc --version: 2.1920:34
thumperok...20:35
thumperlikely to be one of several problems20:35
thumperhowever20:35
thumperfirstly20:35
thumperif you try the bootstrap in one window,20:35
thumperand then in another terminal20:35
thumperdo 'lxc list'20:35
thumperdo you see the machine?20:35
aemara@thumper basically its is a way to authenticate and authorize the instance to use other GCE services without having to login. I am trying to use the kubernetes charm and I have a private docker registry  setup on GCE. To access it the instance need to have a service account which juju does not create or attach to default. https://cloud.google.com/compute/docs/access/service-accounts20:35
thumperif you do, you want to get into that container and check the cloud init output20:36
thumperlxc exec <name> bash20:36
thumperthen look in /var/log/cloud-init <mumble> something in there20:36
thumperaemara: not at this stage, but it is on our roadmap20:37
charllsthumper: yes, one instance with state running and type persistent.20:37
thumperaemara: does GCE allow you to specify this after the instance has started?20:37
charllsbut it has no ipv4 or ipv6 address20:37
thumpercharlls: so it looks like the networking is not working20:37
aemara@thumper only if i shutdown the instance. I cant do it while it is running :(.20:37
thumperthe cloud init output from the inside of that machine should tell us why20:38
charllsduring bootstrap I get a line that says "Resolved LXD host address on bridge lxdbr0: 10.122.27.1:8443"20:38
thumpercharlls: are you on a vpn or something that would try to proxy that address?20:40
thumpercharlls: really info from inside the container is necessary to debug20:40
charllslxc network show lxdbr0 shows ipv4.address: 10.122.27.1/2420:40
charllsno, just behind my home router20:40
thumpercharlls: does lxc list show an address for the container?20:40
charllsno20:41
charllsit seems to get stuck precisely getting an address20:41
charllsnot sure how to debug the networking issue20:41
thumpercharlls: can you get the cloud-init logs and pastebin them?20:42
charllshmm, I don't seem to have cloud-init installed20:43
thumpercharlls: 'lxc exec juju-xxx-0 bash' where juju-xxx-0 is replaced with the name in lxc list20:43
thumperthat should give you a root shell in the container20:43
charllsawesome, let me try20:44
bdxconcerning `network_get()`20:44
thumpercharlls: then there should be two file: /var/log/cloud-init.log and /var/log/cloud-init-output.log20:44
bdxwould this be the appropriate way to use network_get() https://gist.github.com/jamesbeedy/b3ee89d9c266fb374db41e4642505a0e#file-provides-py-L1320:44
thumpercharlls: ideally grab the content of those files20:44
thumperbdx: I'd have to defer to wallyworld or jam20:45
bdxthumper: I didn't mean to target you - sorry for interrupting :)20:45
bdxbut yeah20:45
thumperbdx: that's fine, I just didn't want to leave you hanging20:45
bdxwallyworld, jam, wpk, cory_fu: should I be calling network_get() in my interface code or layer code?20:47
bdxI feel like I should be calling network_get() at the layer level, and passing the desired value returned from network_get() to the relation20:47
thumpercharlls: also, you can cat the file from outside the container :  lxc exec juju-xxx-0 cat /var/log/cloud-init-output.log20:47
bdxinstead of what I have going on ^, where I'm passing the relation the interface_name and calling network_get() from the interface code20:48
cory_fubdx: Yeah, that's what I would recommend as well.20:48
charllsyeah, I was wondering how to copy the content outside the container. Thanks20:48
cory_fubdx: The interface layer should really only be concerned with providing a consistent API for the communication channel and dealing with any serialization or other transport concerns20:49
bdxcory_fu: thx20:49
bdxcory_fu: what are the implications of the new endpoint for the peer relation type?20:50
cory_fubdx: It should work the same, and actually be more consistent.  The only difference is that you can expect that there will only ever be one relation, so you can just use the all_units helper if you want20:51
bdxcory_fu: thats awesome!!!!!20:52
thumpercharlls: also from lxd expert, the lxd version, contents of /var/log/syslog, and ps fauxww from the host20:55
charllsthumper: https://pastebin.com/yvKGrQnN20:55
thumpercharlls: he mentioned that the most common problem is running a DNS server on the host20:55
thumpercharlls: that was the cloud-init.log right? can we get cloud-init-output.log too?20:56
charllsjust contains a single line: Cloud-init v. 0.7.9 running 'init-local' at Wed, 25 Oct 2017 20:58:04 +0000. Up 15 seconds.20:58
charllsyes the one on pastebin was cloud-init.log20:59
thumperoh...21:00
thumperthat's weird21:00
thumpercharlls: what about tye syslog and ps?21:00
charllsthe /var/log folder in the juju container has the following contents: apt btmp cloud-init-output.log cloud-init.log dist-upgrade dpkg.log fsck lastlog lxd unattended-upgrades wtmp21:02
charllsno syslog21:02
charllsthis is ps fauxww inside juju container: https://pastebin.com/YnAKdkXG21:07
thumpercharlls: sorry, on calls just now21:22
charllsok no prob22:04
charllsif someone feels in a helpful mood, I posted my issue here: https://askubuntu.com/q/969275/1700223:58

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