/srv/irclogs.ubuntu.com/2016/10/03/#juju.txt

=== frankban|afk is now known as frankban
myeagleflieshello11:06
myeaglefliesI'm having problems bootstrapping juju 2.0 on ubuntu 16.04.111:06
rogpeppemyeagleflies: what's the problem?11:07
myeaglefliesfollowing https://jujucharms.com/docs/devel/getting-started11:07
myeagleflieswhen executing: "juju bootstrap lxd-test localhost"11:07
myeaglefliesgetting error:11:07
myeaglefliesERROR failed to bootstrap model: cannot start bootstrap instance: Missing parent 'lxdbr0' for nic 'eth0'11:07
myeaglefliesifconfig shows there are following interfaces: "ens160 lo openstack0"11:08
myeaglefliesso possibly juju expects eth0 to be still around?11:08
stubmyeagleflies: Do you know if you have lxd working on your machine. There is some lxd setup needed that might not be mentioned in the Juju docs ('lxd init' I think)11:09
myeagleflieslxd init succeeded11:10
stubmyeagleflies: Do you have the older lxc installed? lxd brought in the lxdbr0 bridge, and it might be conflicting with the old lxcbr0 bridge11:11
myeagleflieslet me check11:12
myeaglefliesstub: dpkg -l lxd* shows only current version11:13
myeaglefliesii  lxd                                  2.0.4-0ubuntu1~ubuntu16 amd64                   Container hypervisor based on LXC - daemon11:14
stubThats my guesses out the window then11:14
myeagleflies;)11:14
stubIIRC lxcbr0 should be brought up automatically as required by lxd.11:15
stub"lxc launch ubuntu:" might help narrow down if this is a juju or lxd problem11:16
myeaglefliesI'm experiencing some DNS resolving issues on this host. This host also runs MAAS. Can juju be bootstrapped on some other host?11:18
myeaglefliesI presume this should be possible?11:19
stubyes. You can point it to an lxd configured to allow remote access IIRC, but I don't know the details.11:19
stub(or any other cloud provider, including your MaaS if you have enough spare hardware)11:20
myeagleflieswhat I'm saying is I'm trying to bootstrap juju on same host that is running MAAS. I will try to bootstrap it on some other 'fresh' host and just asking if juju is fine with being run on different host withoug MAAS on it?11:22
stubYes, Juju doesn't need MAAS. I don't have it anywhere.11:35
cholcombehow do you juju deploy from the edge channel?12:47
cholcombealso, the docs are out of date.  the development channel no longer exists apparently12:47
marcoceppicholcombe: juju deploy <charm> --channel=edge13:21
cholcombemarcoceppi, thanks. I found the docs mention it in one place but in another place it says development13:23
marcoceppicholcombe: please make sure to file bugs against the docs13:23
marcoceppiesp as we're so close to 2.0 now13:23
cholcombewill do13:23
=== scuttle|afk is now known as scuttlemonkey
cholcombecmars, do you know how to breakpoint juju?  I'm trying to track down a bug where juju refuses to deploy my charm13:59
cholcombecmars, i've got gdb and dlv installed13:59
cmarscholcombe, ping #juju-dev, or i can help in now + 2-3 hr13:59
cholcombecmars, ok13:59
jamespagestub, was the removal of the juju-wait bzr branch intentional? I see its moved to git on lp - I must of missed the headsup on that14:33
stubjamespage: An unfortunate side effect of switching to git, per https://bugs.launchpad.net/launchpad/+bug/162392414:40
mupBug #1623924: git-based source build recipes are sometimes interpreted as bzr recipes instead <Launchpad itself:New> <https://launchpad.net/bugs/1623924>14:40
stubjamespage: I can put things back as they were if you can't deal with the change now, although obviously I'd rather not.14:41
jamespagestub, dunno trying to find beisner to check on move14:42
jamespagestub, our gate is bust right now14:42
papertigerswhere is `juju actions` in juju2?14:49
papertigersjuju help doesnt show it and running it doesnt work14:49
magicaltroutsame place14:49
magicaltroutjuju list-actions14:49
magicaltroutjuju run-action i think14:49
magicaltroutjuju show-actions14:49
papertigersthanks14:51
papertigersalso new to juju, so how do I restart services or nodes14:51
magicaltrouter14:54
magicaltrouti've not done that in 2 years of using it14:54
magicaltroutjuju ssh unit/0 restart14:54
magicaltroutor something14:54
magicaltroutssh commands run as root and you can address services or units14:54
magicaltroutso that would work14:55
magicaltrouti don't know if there is a "proper" way14:55
papertigersI only ask because a few of the services are not running properly after a deploy14:56
papertigersthey are in the error state14:56
lazyPowermagicaltrout: actions would be a proper way to do that. you should honestly get int he habit of using juju-restart in a hook context15:30
lazyPowermagicaltrout: it'll ensure all the lxd containers on the host are prepared to handle the reboot as well15:30
lazyPowerin a hyperconverged world, that will be a big deal15:31
lazyPowermagicaltrout: so, in summation, stuff reboot in an action, and when invoking that action instead of `reboot now` it becomes `juju-reboot` or `juju-reboot --now`15:32
lazyPowerwhich also paves the way for signaling other units/applications participating of the reboot sequence and they can then react/handle temporary routing changes if the underlying app doesn't do this natively.15:32
lazyPowerbut thats pie in the sky talk there...15:33
magicaltroutthere you go then15:33
cory_fu_kwmonroe, petevg, kjackal: Can I get a review on https://github.com/juju-solutions/interface-spark/pull/915:44
petevg+115:46
cory_fu_petevg, kwmonroe: Hrm.  I just realized that that PR accidentally included an unrelated change as a drive-by, which makes it more significant of a PR.  Maybe I should split it out15:47
cory_fu_(The two commits)15:48
petevgThe code all made sense, and seemed to do what you intended. I guess that it could use more tests, for the classpath stuff.15:49
kwmonroecory_fu_: in SERVICE scope, don't you still need to wait to remove .joined until the last unit is departing?  https://github.com/juju-solutions/interface-spark/pull/9/files#diff-6e152090b45a29ed86305121942fb300L3015:54
kwmonroei love conversation scopes, btw.  just love them.15:55
cory_fu_kwmonroe: heh.  And no, I don't think so.  For non-GLOBAL scope, the conversation when inside a hook handler should only contain that one unit.  I think15:56
cory_fu_kwmonroe: Hrm.  You might be right, and that might be a bug that affects almost all interface layers.  :/15:59
kwmonroeeasy enough to test cory_fu_.. do you have a deployment with multiple sparks using this interface that we can break into and check conv.units in a hook?16:00
cory_fu_Not up right now16:00
kwmonroeaight, i can build up a spark to try that in a few minutes.. gotta sort out some docker/mac issue first though.16:02
=== frankban is now known as frankban|afk
cory_fu_kwmonroe, petevg: Actually, I just remembered that the use-case I had for this (insightedge as a subordinate to spark) went away, so we could probably even just ditch that part.16:16
petevgSounds good. Less code is good code.16:16
bildzis there a dedicated channel for conjure assistance?16:24
stokachubildz: o/16:24
marcoceppiyou found it!16:24
bildzhey stokachu16:25
bildzim dealing with some conjure scripts that arent working well for me atm16:25
stokachubildz: custom scripts or ones in the available spells?16:26
bildzthe ones in the available spells16:26
stokachubildz: ok whats up16:27
bildzi'm able to get a juju controller up and all my nodes, but there is a failure during the neutron setup16:27
bildzhttps://bugs.launchpad.net/conjure-up/+bug/162694116:27
mupBug #1626941: neutron-gateway/0: hook failed: "config-changed" for Openstack local <conjure-up:In Progress by adam-stokes> <https://launchpad.net/bugs/1626941>16:27
stokachubildz: subprocess.CalledProcessError: Command '['ip', 'link', 'set', u'eth1', 'up']' returned non-zero exit status 116:28
stokachuthats failing16:28
stokachumeaning that no eth1 exists on the system where that command was run16:28
bildzwell it's using a xenial image16:28
bildzand as we know, the interface names have changed16:28
bildzis that why it's failing?16:28
stokachucould be16:29
stokachubildz: you have maas setup?16:29
bildzi do16:29
stokachusorry maas 2.0?16:29
bildzlet me get the version i have16:29
bildzii  maas                               2.0.0+bzr5189-0ubuntu1~16.04.116:29
stokachubildz: cool one sec, lemme get a screenshot of what i do16:29
bildzthanks man16:29
bildzso when I conjure-up openstack, I connect to the MAAS deployment and it spins up a server to install the juju controller16:31
bildzthen the rest all come up in sequence to deploy16:31
stokachubildz: yea exactly16:32
stokachuhere is the page: http://imgur.com/a/m4JdJ16:32
stokachuyou want to set that under global kernel parameters in settings16:32
bildzooo thanks16:32
stokachuthat'll change the default behavior of your maas nodes to not do that auto naming16:32
bildzaw man thanks16:33
bildzill give this a shot now16:33
stokachubildz: cool16:34
stokachubildz: one thing im not entirely sure if it requires you to re-commission your nodes16:37
stokachubildz: keep that in mind if the network interfaces are still being renamed16:37
cory_fu_kwmonroe, petevg: https://github.com/juju-solutions/interface-spark/pull/9 updated16:41
bildzstokachu: i've recommissioned them all and they all reflect the new settings16:42
bildzthanks for the heads up though16:42
bildzi've been through this process about 20 times :)16:42
bildzwith that said, going to add this channel to my autojoin for irssi heh16:42
stokachubildz: cool, yea i got conjure/conjure-up on highlight so just mention that and ill see it16:47
cory_fu_petevg: https://github.com/juju-solutions/interface-spark/pull/9 updated17:32
petevgcory_fu: +117:33
=== markthom- is now known as markthomas
gQuigsnew to Go.. how can I build juju 1.25?  the instructions seem geared towards trunk...18:05
myeaglefliesis juju 2.0 ok with interface names like 'ens160'?18:10
myeagleflies"ERROR failed to bootstrap model: cannot start bootstrap instance: Missing parent 'lxdbr0' for nic 'eth0'"18:10
marcoceppimyeagleflies: that interface name should be okay19:53
=== natefinch is now known as natefinch-afk
bryan_atthi anyone that can help with a charm-tools issue I am having - narindergupta pointed me here for help. charm-tools is failing with this error "pkg_resources.DistributionNotFound: The 'paramiko<2.0.0' distribution was not found and is required by charm-tools" but paramiko 1.16.0-1~cloud0 is installed21:10
holocronI'm fooling with juju lxd here, and following a reboot, none of my lxc containers will start properly. With no lxc processes running, I can run lxc list without issue, but "lxc start <container>" hangs. If I CTRL-C and check ps, there's something called "forkstart" still running, and two more processes of [lxc monitor] on the container.21:21
holocroncommands like "lxc list" or "juju status" hang with no output until I kill the lxc processes with SIGKILL21:21
holocronanyone seen this behaviour before?21:21
bdx_is there a way to specify what subnet to bootstrap to by using constraints?21:33
=== scuttlemonkey is now known as scuttle|afk
lazyPowerbryan_att: looks like you might be missing some deps that i think are in teh ppa22:26
lazyPowerbryan_att: do you have ppa:juju/devel and ppa:juju/stable installed? additionally are you using the snap or the deb package to get charm-tools?22:26
lazyPowerholocron: thats new, but totally bug worthy22:26
holocronlazyPower: sigh alright i hate opening up bugs22:28
holocronlazyPower: i'll see if i can duplicate it again, I'm in the process of reinstalling the base OS now ^^22:28
bryan_attlazyPower: not sure about those deps, let me check with narindergupta - the JOID installer for OPNFV setup the environment22:31
bryan_attlazyPower: narinder may be gone by now - how do I answer "do you have ppa:juju/devel and ppa:juju/stable installed? additionally are you using the snap or the deb package to get charm-tools?"22:35
cholcombeis there a bug report needed to refresh promulgated charm code?22:35
petevgbryan_att: to check for the ppas being installed, you can open a terminal and run 'ls /etc/apt/sources.list.d/ | grep juju', or open "Software and Updates" and look on the "Other Software" tab.22:40
petevgbryan_att: if you installed charm tools via the ppa, then22:41
petevgrunning 'dpkg --list | grep charm-tools' on the command line will return a result.22:41
bryan_atthttps://www.irccloud.com/pastebin/1zesvxmG/22:41
petevgbryan_att: Similarly, you can do 'snap list | grep -i charm' to check to see if you have installed the snap.22:41
bryan_atthttps://www.irccloud.com/pastebin/tDeyOCSn/22:42
petevgbryan_att: it looks like you have the stable ppa, but not he devel ppa. And it looks like you've installed charm tools from that ppa.22:43
bryan_attnarinder said "we use ppa:juju/stable and deb package no snaps"22:43
petevgbryan_att: what command are you running when you get the error that you pasted?22:44
bryan_attpetevg: the JOID installer for OPNFV, the step was "charm build -s xenial -obuild src" for the Congress charm (git clone https://github.com/gnuoy/charm-congress.git xenial/charm-congress)22:46
petevgHmm ... So the error is happening when Juju is attempting to put the Python packages in the wheelhouse. Have you updated your apt packages, either via the software updater, or via "apt update && apt upgrade" recently?22:48
bryan_attyes, I ran apt-get update and " sudo apt-get dist-upgrade -y" as directed by narinder but it didn't help22:50
petevgbryan_att: Have you ever installed charm tools via pip? One possibility is that you have some crossed dependencies in your Python environment.22:54
bryan_attpetevg: not sure - is there a way for me to clean it up and reinstall in case?22:55
bryan_attpetevg: the tools are automatically installed by the JOID installer I think22:56
petevgbryan_att: you could uninstall the apt packages, then do 'pip freeze | egrep -i "charm|juju"', and uninstall any packages that remained using pip. But I'm not sure that's the best course of action here.22:58
petevgbryan_att: if you can, it might be best to stand up a VM and try running through the setup inside of that. If you run into the same issue, then the installer or instructions you're following are possibly broken, and you should file a ticket with the people who wrote them.22:59
bryan_attpetevg: they claim the issue does not occur in their environment - I'm not sure what value it would be to debug why this is happening - I just need to get beyond it; maybe just reinstall my jumphost I guess. A pain but it appears there is no clear way to clean this up. One of the reasons I abhor python...23:03
petevgbryan_att: good luck! Sorry that I couldn't find a quicker fix for you.23:10
bryan_attpetevg: thanks for your help though - it's been a while since I ran into an issue I couldn't work around, and reinstall is a chance to upgrade to xenial I guess...23:11

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