/srv/irclogs.ubuntu.com/2016/09/12/#juju.txt

lutostagany way to make juju create a privileged lxd container rather than a userspace one?01:11
lutostag(perhaps constraints)?01:11
rick_h_lutostag: you have to change the lxd profile02:51
rick_h_lutostag: there's a conversation on how to allow customizing this at deploy time for an application but it's not implemented yet02:51
pragsmikehi everyone!02:52
rick_h_lutostag: https://jujucharms.com/u/james-page/openstack-on-lxd mentions customizing the lxd profile used in the "LXD profile for Juju" section02:53
rick_h_howdy pragsmike02:53
rick_h_pragsmike: the but to track I was telling you about is: https://bugs.launchpad.net/juju/+bug/156679102:54
mupBug #1566791: VLANs on an unconfigured parent device error with "cannot set link-layer device addresses of machine "0": invalid address <2.0> <4010> <cpec> <network> <juju:In Progress by dimitern> <https://launchpad.net/bugs/1566791>02:54
tonyanytimeHello all, new to juju, stuck with a dying juju-gui, container doesn't exist, it doesn't  remove machine Or let me add it again. Kind of stuck in between. Any ideas?03:19
=== frankban|afk is now known as frankban
chaituHi all, I am deploying an autopilot setup, First i deployed successfully and then my controller node got crashed. Can someone suggest me if there is any way to add a controller to the same cluster or to redeploy the same controller10:20
=== ant__ is now known as antdillon
bloodearnest_marcoceppi, cory_fu: heys guys - quick question: is it possible to add a --no-install-recommends to the basic layer's install of python3-pip?11:09
=== bloodearnest_ is now known as bloodearnest
bloodearnestreasons are many. a) is only 3 packages, rather than ~43 b) I don't really want a full compiler toolchain install by default on all charms using layer:basic! :D11:11
bloodearnestis there a reason we pull in recommends (which includes build-essentials)11:11
bloodearnest?11:11
bloodearnestis there a reason not to have apt_install do --no-recommends by default?13:24
Anita_Hi13:48
Anita_Hi Matt13:48
Anita_Hi Matt Bruzek13:50
balloonsping mgz14:03
mgzballoons: yo14:03
Anita_sudo apt-get install juju-local gives error : The following packages have unmet dependencies:  juju-local : Depends: lxc (>= 1.0.0~alpha1-0ubuntu14) but it is not going to be installed               Depends: lxc-templates but it is not going to be installed E: Unable to correct problems, you have held broken packages.14:12
Anita_any idea14:12
Anita_trying to install 1.2514:12
marcoceppibloodearnest: the pip modules embedded are source wheels, and need to be built on the machine in case of architecture dependencies14:23
marcoceppibloodearnest: feel free to open a bug though14:23
bloodearnestmarcoceppi, this is apt installing python3-pip14:24
marcoceppibloodearnest: yes, we pip install those wheelhouses from the wheelhouse directory in a charm14:24
bloodearnestmarcoceppi, yes, but the initial pip (to pip install the bundled pip), we install python3-pip, python3-setuptools and python3-yaml:14:28
bloodearnesthttps://github.com/juju-solutions/layer-basic/blob/master/lib/charms/layer/basic.py#L4614:28
bloodearnestand when I say install I mean apt install14:28
bloodearnestwhich is 45 packages14:28
bloodearnestin xenial anyway14:28
marcoceppibloodearnest: right, I understand you're point I don't think I'm making my counter point very clear. I'm blitzing to the charmer summit start in 1.5 hours, can I recommend opening a bug on layer basic so we can continue the conversation there?14:29
venom3Hello!14:35
venom3 I have a question about Juju gui.14:35
bloodearnestmarcoceppi, ack, ta14:35
venom3I need to enable insecure mode into embedded juju gui (I'm not using the juju-gui charm)14:37
marcoceppivenom3: that's a good question, urulama ^ any opinions?14:37
bloodearnestmarcoceppi, I think I follow now, sorry14:38
marcoceppibloodearnest: it's unfortunate, 46 extra packages is quite annoying to instance boot time14:42
bloodearnestyeah :(14:42
bloodearnestmarcoceppi, might it be possible to have a layer option the says: build-required? And only pull in the extras if that is true?14:56
marcoceppibloodearnest: it'd be better if we auto-detected if the module needed to be compiled14:56
bloodearnestright14:57
marcoceppinot sure if that's possible14:57
bloodearnestor just build a snap :)14:57
bloodearnestah, same problem, of course14:57
urulamavenom3: you mean GUI in the controller with "juju gui" command?15:01
venom3urulama: yes. I need an http address, but  when I type "juju gui --no-browser", I get https:...15:04
urulamafrankban: do we support this? ^15:04
frankbanurulama, venom3: no, the GUI is only served via https15:04
pragsmikeI've had problems with the gui being rejected by my browser because the certificate too closely resembles one that the browser thinks it has seen recently15:05
venom3frankban, urulama: sorry, but I read in "https://blog.jujugui.org/" that this feature was re-enabled15:06
venom3posted by "jeffpihach 8:30 pm on February 17, 2016"15:06
frankbanvenom3: that's about the juju-gui charm15:07
frankbanvenom3: not the GUI as provided directly by Juju15:08
venom3frankban: thanks. So do you suggest to deploy this charm to enable http protocol?15:09
venom3In this case, could I have any conflict or other problems?15:10
frankbanvenom3: so after you deploy the charm from https://jujucharms.com/juju-gui/ you could in theory just set "juju set juju-gui secure=false" to be able to access the GUI from http. this is of course highly insecure15:10
frankbanand discouraged15:10
frankbanvenom3: can I ask what's your use case?15:10
venom3frankban: yes, of course. we deployed maas and juju in a private infrastructure. Everything is internal. The first idea was to use ngnix as proxy, but we have problem with https (ok, i admit my lacks of knowledge).15:15
venom3Maas was a joke ('proxy_pass http://192.168.110.1/MAAS/;')15:18
frankbanvenom3: cool15:25
venom3frankban: we resolved by iptables15:27
frankbanvenom3: so you can use the GUI directly from the controller? much better!15:27
pragsmikevenom3 what was the issue?  couldn't you use the https: URI?15:40
venom3urulama, frankban: thank you for your time, really (i don't know what's happened, I've lost connection). Bye.16:01
hatchvenom3: why was the https url not working for you?16:12
venom3hatch: we tried to use nginx as reverse proxy. It was simple for http protocol exposed from MAAS, but a pain for https from juju-gui. The idea is set juju gui insecure. This is not a problem, because is behind a secure network.16:22
hatchvenom3: alright no problem - I was just curious if there is anything we could do to make this easier16:22
hatchbut it's definitely a workflow we don't recommend :)16:23
hatchthanks16:23
venom3hatch: no problem. I read the documentation and I know your recommendation. We are using Juju for a short time, so we have plenty of informations to acquire. This worths the effort, because Openstack is a pain without tools like this16:27
venom3And the community is doing a great work!16:28
hatch:) glad you like it!16:28
venom3glad all you exist, really.16:30
devop01i have a fresh xenial install with the juju dev ppa and it can't seem to deploy a local charm.  I give it the path and it says it can't find it16:31
hatchdevop01: Juju 2?16:32
devop01hatch: yes16:32
devop01hatch: i don't get any debug logs or anything indicating what i did wrong16:33
hatchdevop01: if you navigate to the root path of your charm you should be able to go `juju deploy .`16:33
hatchwhat command were you trying to run?16:34
devop01hatch: juju deploy . also doesn't work.16:34
hatchreally...can you paste the error?16:34
devop01i was trying to run `juju deploy ./repos/ceph-mon` which is my local copy16:34
hatchdevop01: did you get it solved?16:45
devop01hatch: no i'm not sure how to get it to deploy local charms.  I'm on juju 2 beta18.  Deploying anything from the store seems to work fine16:46
hatchdevop01: can you paste the error message that it outputs?16:46
devop01hatch: I think i buggered something with the charm.  I tried a different local charm and it deployed ok.16:47
hatchdevop01: alright, that was going to be my next suggestion :)16:48
hatchyou can use charm proof to see what you might be missing16:48
devop01:)16:49
devop01mskalka: https://jujucharms.com/docs/2.0/clouds-LXD16:55
=== frankban is now known as frankban|afk
x58juju status says "ERROR connection is shut down" how do I restart this connection?17:14
BrochachoWhat's the lxc image alias for xenial?17:29
catbus1Is there any change on the charmstore in the last two weeks that causes this issue: http://pastebin.ubuntu.com/23170237/17:47
PCdudecatbus1: u realise u are using a beta version? I have had trouble before with beta versions of JUJU. My advice would be to stay with 1.25.6 until 2.0 comes out of beta17:48
x58catbus1: beta17 is out... you might want to grab that and try again.17:49
catbus1x58: I can do that, but the same version worked 2 weeks ago.17:51
PCdudex58: that one is meant for ubuntu 16.1017:54
PCdudecatbus1: I dont think u are using 16.10?17:54
catbus1PCdude: no, we aren't using 16.10.17:54
PCdudecatbus1: then beta15 is the latest rn17:55
x58  Version table:17:56
x58     2.0-beta18-0ubuntu1~16.04.1~juju1 50017:56
x58        500 http://ppa.launchpad.net/juju/devel/ubuntu xenial/main amd64 Packages17:56
x58        500 http://ppa.launchpad.net/juju/devel/ubuntu xenial/main i386 Packages17:56
x58It's in the devel PPA for JuJu17:56
x58xenial-updates has beta15...17:56
PCdudex58: very strange, I cant even find that version on the launchpad site of juju itself17:57
x58sudo add-apt-repository ppa:juju/devel17:58
x58sudo apt-get update17:58
x58PCdude: You mean right here: https://launchpad.net/~juju/+archive/ubuntu/devel17:58
PCdudex58: this one: https://launchpad.net/juju-core17:59
PCdudex58: even if u click further through, I cant find beta1817:59
PCdudebut indeed I can find it after adding the dev PPA17:59
x58beta15 is the latest in xenial updates, wonder if they only show "stable" releases on juju-core18:01
x58catbus1: there were changes to the charmstore IIRC. I can't find the bug report at the moment.18:03
hatchcatbus1: you'll want to update to the most recent version of Juju - there were charmstore changes made that require a more recent version of Juju than you're using18:04
hatchassuming you want to stick with Juju 218:04
catbus1hatch: x58: understood, updated to beta18 now and trying again18:05
hatchgreat, hope it works for you18:05
catbus1hatch: x58: it's working, didn't throw out that error anymore.18:10
hatchgreat glad to hear it18:10
mbruzekhmo: http://ppa.launchpad.net/juju/devel/ubuntu/pool/main/j/juju-core/juju-core_2.0-beta15-0ubuntu1~16.04.1~juju1.debian.tar.xz18:52
=== rmcall_ is now known as rmcall
ChrisHolcombei'm running into an issue where i can't deploy a charm from the local dir.  I'm seeing: juju.cmd.juju.application deploy.go:791 cannot interpret as local bundle: read .: is a directory.  I'm on 16.04 with juju 2 beta 1821:17
hatchChrisHolcombe: it appears that Juju doesn't see the path you're passing in as a local charm21:18
ChrisHolcombehatch, is there something special i need to do to make it see it differently?21:19
hatchis it possible that your charm is invalid? Have you ran charm proof on it?21:19
hatchthere isn't21:19
ChrisHolcombecharm proof passes21:19
hatchit should "just work" :)21:19
hatchwell then!21:19
ChrisHolcombethe only thing i get is a W for no copyright file21:19
ChrisHolcombeno biggie :)21:19
hatchhaha right21:19
hatchyou could also try via the GUI using a zip of the charm21:19
ChrisHolcombehmm ok21:20
hatchI'm assuming that you're just running `juju deploy .` ?21:20
ChrisHolcombehatch, yup21:20
ChrisHolcombehatch, deploying full path with ./{path} doesn't work either21:22
hatchtypically when I've seen that problem it's been because of a proof issue21:22
ChrisHolcombeyeah21:22
rick_h_hatch: no, proof and deploy aren't connected21:23
rick_h_so not sure wtf, ChrisHolcombe what's the ls of the directory look like?21:23
hatchno they aren't, but I've usually found that proof will catch why deploy doesn't work :)21:23
rick_h_ChrisHolcombe: I think it keys off either bundle.yaml or metadata.yaml21:23
hatchfor some reason it's thinking you're trying to deploy a bundle21:24
ChrisHolcomberick_h_, nothing special.  has a hooks dir, metadata.yaml, config.yaml.  All the usual pieces.  This deployed fine back on juju 1.25.x21:24
rick_h_ChrisHolcombe: right, there was a change in the you have to do ./ in the path21:24
rick_h_ChrisHolcombe: maybe go up one dir and try juju deploy ./dirname ?21:25
ChrisHolcomberick_h_, yeah i tried that also.21:25
ChrisHolcomberick_h_, i also tried that :D21:25
rick_h_ChrisHolcombe: heh ok. have to check21:25
* rick_h_ goes to download a charm and try21:25
ChrisHolcomberick_h_, https://gist.github.com/cholcombe973/7c33286c38bc36caf233bfc7a511c2ed21:26
hatchohh21:27
hatchyeah reading the source here, that i suppose is expected21:27
elopio\o/ quassel installed in canonistack with juju. Sooo nice.21:28
ChrisHolcombehatch, ok cool so the real error is it can't find my charm?21:28
hatchyeah21:28
hatchfwiw I'm not a core dev, I'm just reading the source :D21:28
ChrisHolcombeyup21:28
ChrisHolcombei can sorta read Go21:28
ChrisHolcombehatch, it looks like maybeReadLocalBundle falls through to maybeReadLocalCharm21:29
hatchyeah, I had a laugh at the names21:29
hatchhah21:29
rick_h_ChrisHolcombe: hatch yea, there was some recent changes in that to clean it up a bit when the output got cleaned up21:29
hatchit looks like it's uploading as revision 3 then trying to deploy revision 921:30
hatchcharms?revision=3&schema=local&series=trusty21:30
rick_h_ChrisHolcombe: was the charm previously installed?21:30
hatchDeploying charm "local:trusty/gluster-charm-9".21:30
hatchso revision drift it appears?21:30
ChrisHolcombehatch, it seems to ref the revision every time i try to deploy it21:31
ChrisHolcomberev*21:31
rick_h_there's a bug around the upgrade of a local: charm if I recall21:31
rick_h_it should be +1'ing the revision automatically each deploy21:31
hatchahh this might be it then21:31
rick_h_since it's local and not tied ot the charmstore21:31
ChrisHolcomberick_h_, ok21:31
ChrisHolcomberick_h_, could i deploy from the cs and then upgrade via local?21:31
rick_h_ChrisHolcombe: you can use --switch, but I'm not sure there. I just tried with the ubuntu charm and deployed it three times ok21:32
rick_h_ChrisHolcombe: can you create a new model and try again?21:32
ChrisHolcombehmm i haven't used that before.  let me try21:32
rick_h_ChrisHolcombe: maybe there's something in the history there in that model that's causing something. Just to narrow down wtf21:32
ChrisHolcomberick_h_, i have a revision file that says 3.  I'm not sure i remember where that came from.  It hasn't been touched in a year21:34
hatchOhh that might be where the 3 is comign from then21:34
hatch:)21:34
rick_h_ChrisHolcombe: it's probably coming from the revision file21:34
rick_h_ChrisHolcombe: as the start revision21:34
ChrisHolcombeok21:35
rick_h_my ubuntu depoloy started at rev 721:35
ChrisHolcomberick_h_, right.  depends on if you've deployed that before in the model i think21:35
ChrisHolcomberick_h_, hacky workaround didn't work haha.  i tried to deploy from the cs and upgrade from local21:40
=== ubuntu is now known as Guest19141
lp_sprintperrito666: tweet me that pic plz22:13
perrito666lp_sprint: https://launchpad.net/juju/+milestone/2.0-beta1822:13
catbus1Hi, how do I check if the lxd containers are coming up? All the containers are in 'error' state in the machine section of juju status, and they show 'waiting for agent init to complete' for a while.22:14
hatchcatbus1: I believe that this is a known issue right now22:15
hatchthere is a workaround, one moment22:16
hatchcatbus1: well to answer your question you can run `lxc list` :)22:16
catbus1lxc list shows empty list22:16
catbus1running juju beta12 thought22:16
catbus1though22:16
hatchohh, ok I'm not sure, are you able to upgrade to b18?22:16
catbus1yes22:17
hatchlots has changed since b12 :)22:17
catbus1will do22:18
hatchcatbus1: feel free to ping me if the issue persists with b1822:18
catbus1mliberte: hey22:27
mlibertehello22:27
catbus1ping22:35
catbus1mliberte: ping22:35
catbus1all set22:35
catbus1hatch: err.. with b18, only one machine picked up by maas to deploy (should be 4), and juju status shows machine 1, 2, and 3 in error state.22:42
hatchthese are still lxd? Are they on Xenial?22:43
catbus1one sec22:44
hatchif they are, you may have to run22:44
hatchjuju set-model-config enable-os-refresh-update=false22:44
hatchjuju set-model-config enable-os-upgrade=false22:44
hatchI'm not sure if that bug had been fixed or not yet22:44
hatch(assuming they are stuck in pending)22:45
catbus1hatch: juju controller shows maas isn't able to find machines match the tag contraints, but we only specify machine 0 with tags, not 1, 2, or 3.22:45
hatchhmm, that is out of my area of expertise :)22:45
lazy_sprintperrito666: https://bugs.launchpad.net/juju/+bug/159572022:47
mupBug #1595720: Problems using `juju ssh` with shared models <ssh> <usability> <juju:Triaged> <https://launchpad.net/bugs/1595720>22:47
catbus1will add the same tag to other machines to see if it works22:47
catbus1can not reproduce the issue anymore.22:54

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