/srv/irclogs.ubuntu.com/2016/06/22/#juju.txt

=== valeech_ is now known as valeech
xiletAnother block device question, with lxc I have /etc/lxc/defaults.conf with lxc.cgroup.devices.allow = b 43:* rwm.  If I start an lxc container manually I can attach a storage device and use it normally inside the container. However if I deploy a juju container I can attach the device, it shows up but won't let me access it.04:25
xiletIs there another place with juju charms that defines the lxc defaults for those sorts of settings to allow device access?04:25
xiletJuju 2.004:25
admcleodmagicaltrout: noooo06:59
=== bodie__ is now known as bodie_
=== urulama_ is now known as urulama
=== rogpeppe1 is now known as rogpeppe
=== frankban|afk is now known as frankban
=== BlackDex_ is now known as BlackDex
admcleodkjackal: so im thinking abotu our bigtop charms, and the principal and any subordinates will both unpack the bigtop repo to /home/ubuntu/bigtop.deploy right?10:00
kjackalyes10:01
admcleodkjackal: so this means if we're writing any values to hiera files we have to consider them stateless - we write, we apply, we imagine they're gone (because they might be)10:02
kjackalyes, true10:04
kjackalnow if these values propagate to a resource that is shared accross bigtop roles (eg a shared hadoop-core.xml file) then we might get into trouble10:05
admcleodkjackal: yeah. well. it would have to be specific values in that file, e.g. hdfs-site.xml ... and i think the top layer's value should take precedence10:08
admcleodhey kwmonroe_, your bigtop smoke-test stuff works ootb with sqoop without any template mods (as long as i hardset the env var)10:58
kjackal_admcleod: how long does it take to run?11:08
kjackal_3 minutes, looks fine11:13
petevgadmcleod, kjackal: stateless hiera files are the reason that I stashed the list of Zookeeper nodes in a .json file under the Zookeeper charm's resources directory. Whenever I run puppet, I read from that  file, and pass it in as an override. I'm not sure whether that's a best practice, though.12:37
admcleodpetevg: what is it you're putting in that json file again?13:01
petevgadmcleod: the list of zk peers. We override the ensemble var in heirdata, and it ends up getting written to the zookeeper config.13:26
admcleodpetevg: so you write the peers to the hieradata and then run puppet apply every time the list changes?13:29
petevgadmcleod: yes.13:29
admcleodpetevg: cool13:29
petevg:-)13:30
admcleodpetevg: why was it you said you chose not to use leader settings?13:31
petevgadmcleod: the list is different on each box (each node lists itself first), and it has to get updated when a node joins, right before it figures out who the leader is.13:32
petevg... so it was either throw in a bunch of waits that made things confusing, or just stick the data somewhere else.13:32
admcleodpetevg: hmm when you say 'figures out who the leader is' are you talking about juju or zookeeper 'figuring'?13:33
petevgjuju13:33
petevgZookeeper has its own ideas about leadership, which are separate.13:33
admcleodright.. i didnt think the leadership election took very long though. if theres one node, its the leader, and if another one joins the first one is still the leader. or so i thought13:34
petevgYes. But the node that is joining doesn't figure that out right away, and I get errors trying to write to the leader.13:35
petevgThe wait probably wouldn't be a long one ... it might be worth revisiting and refactoring, now that I've got the basic flow of stuff working.13:36
admcleodpetevg: you might evne be able to use stub's leadership layer to wait until election has completed13:36
admcleodpetevg: https://launchpad.net/layer-leadership13:38
petevgadmcleod: the tricky thing is that I need to persist the state right away. If the process exits because it is waiting for something, then I lose the state.13:38
petevgI'll play around with it a bit.13:38
=== stub` is now known as stub
neiljerramDoes anyone know how Juju 2's idea of the current controller/model is stored?14:29
neiljerramIf I have a long-running test script in one terminal window, where model 'm1' is the default, can I do 'juju add-model m2 && juju switch m2' in another window, without disturbing the first test?14:30
cheryljneiljerram: the current controller is stored in your JUJU_DATA (~/.local/share/juju), so if you're using juju switch, it will take effect in all terminals14:39
neiljerramThanks cherylj.14:39
cheryljneiljerram: you can use the JUJU_MODEL env var14:39
cheryljthat should just be local to the terminal it's set in14:40
neiljerramAh, great.14:40
neiljerramI was thinking that I should modify my scripts to put an explicit "-m <model>" parameter in every Juju command.  But JUJU_MODEL would be much simpler.14:40
cheryljyeah, the commands will look at JUJU_MODEL first, before inspecting what the current model was switched to with 'juju switch'14:42
=== tasdomas` is now known as tasdomas
neiljerramThis is very nearly perfect... :-)  One slight snag, that I just discovered, is that 'juju add-model' implicitly does a 'juju switch' as well - which means there is a risk of disturbing a test that is already running.14:47
neiljerramI suggest it would be better if 'juju add-model' did not do that.  Then I could do 'juju add-model M2; export JUJU_MODEL=M2' in another window, without any disturbance of the existing test.14:50
PrabakaranHello  Team, Can i get any sample layered charm to check peer relation in bash? I am asking this for my learning15:28
arosalesHello15:35
arosalescharmes have a question for you15:35
arosalesI woud like to contribute to https://jujucharms.com/mediawiki-single15:35
arosalesas the readme is incorrect15:36
arosalesI follow the contribute link to https://code.launchpad.net/~charmers/charms/bundles/mediawiki/bundle15:36
arosaleswhich does not match the download zip15:36
arosales:-/15:36
arosalesso I am guessing this was pushed from a different copy that what the contribute link is pointing to15:36
marcoceppiarosales: mediawiki-single is old, wiki-simple is the new one15:36
arosalesmarcoceppi: question still valid but15:37
arosalesI ask as mediawiki-single is the example on  https://jujucharms.com/get-started15:37
arosalesmarcoceppi: should we update https://jujucharms.com/get-started to use mediawiki-single and un-promulgate mediawiki-single ?15:41
marcoceppiarosales: yes, jcastro has been trying to do this for a few weeks now15:41
arosalessorry update https://jujucharms.com/get-started to use mediawiki-simple and un-promulgate mediawiki-single15:41
arosalesmarcoceppi: I was also updating CWR to test the bundle at /get-started15:42
marcoceppiit's wiki-simple15:42
arosalesmarcoceppi: given jcastro has been trying for weeks is there a github bug I can follow up on?15:42
marcoceppihttps://jujucharms.com/wiki-simple/15:43
marcoceppiprobably15:43
marcoceppiarosales: https://github.com/CanonicalLtd/jujucharms.com/issues/24215:43
valeechHello. What are some troubleshooting steps I could take to determine why juju 2.0 beta9 gets stuck boostrapping maas 2.0 beta 7 at the fetching tools stage?15:45
arosaleswow april15:45
arosalesmarcoceppi: so should we un-promulgate mediawiki-single then?15:46
marcoceppiarosales: yes, when the get-started page gets updated15:46
marcoceppiotherwise we just break the new user experience even more15:46
arosalesmarcoceppi: ok, I'll work on that15:47
arosalesmarcoceppi: last question15:47
arosaleshttp://status.juju.solutions/bundle/cwr-test-41015:47
arosalesfailing on mysql15:47
marcoceppiarosales: https://lists.ubuntu.com/archives/juju/2016-April/007132.html15:47
arosalesshould we update wiki-simple to use mariadb?15:47
marcoceppiugh, it's the openstack tests.15:48
marcoceppithe charm works15:48
marcoceppithe tests don't15:48
arosalesmarcoceppi: awesome on the lists and bugs. Just need to follow up on seeing this done15:48
arosalesmarcoceppi: I think we can un-promulgate mediawiki-scalable per the mail list post15:49
arosalesand I'll work on updating /get-started so we can unpromulgate mediawiki-single15:49
marcoceppiarosales: yup15:49
arosalesmarcoceppi: can you un-promulgate if I ask nicely?15:50
marcoceppiarosales: already doing it15:50
arosalesmarcoceppi: thanks15:50
arosalesmarcoceppi: re mysql the bigdata team is hitting the same thing in their tests15:50
marcoceppiarosales: because we have openstack tests mixed in the bunch15:50
marcoceppiI'll update the charm, but I don't think the OS team will appreciate it15:50
arosaleseasiest way forward is to use mariadb to show green, but the correct way forward is to not run openstack tests15:51
arosalesmarcoceppi: we should keep the openstack tests, but figure out a way to not run them in non-openstack contexts15:51
marcoceppiwell, not having them in the charm is a good start15:51
arosalesbeisner: is openstack using mysql or percona as the sql db?15:52
arosalesmarcoceppi: sure, we just need to give openstack an alternative to testing mysql in openstack15:52
beisnerhi arosales, marcoceppi - percona-cluster is the primary focus.  we may still have some test bundles with the mysql charm in play, but i'd say it's safe to remove the keystone bits from the mysql amulet tests.15:52
beisnermarcoceppi, arosales - what's the status of mongodb for xenial in the charm store?   seems like i saw some convo around that recently but i don't find one avail.15:54
marcoceppibeisner: in progress15:54
beisnermarcoceppi, ack thx.  fwiw, we're a bit blocked on cs: bundles for xenial-mitaka as ceilometer requires mongodb.15:55
marcoceppibeisner: but why not just deploy trusty mongodb?15:56
arosalesbeisner: hopefully by end of month we will have an updated mongo as system Z also needs that15:56
beisnermarcoceppi, arosales - hmm, gonna try that now.    this is for system z s390x openstack validation this wk.15:57
arosalesmarcoceppi: beisner so where do we stand on mysql openstack tests?15:57
marcoceppiarosales: sounds like I can just pull the tests15:57
arosalesbeisner: I think we need a special system z binary for mongo on z15:57
beisnerarosales, marcoceppi - i'd say it's safe to remove the keystone bits from the mysql amulet tests.15:57
arosalesnot yet in the charm15:57
beisneri'm about to find out :)15:57
arosalesbeisner: can marcoceppi pull all the openstack tests or just keystone?15:57
arosalesbeisner: no I am telling you re mongo :-)15:58
beisnerarosales, marcoceppi - refactor mysql tests to suit15:58
marcoceppibeisner: \o/15:58
beisnerdammit arosales :)15:58
marcoceppiarosales: I'll have it updated today15:58
arosalesbeisner: but perhaps some happy coincidence has occurred last time I looked. I just know the IBM system z folks were working on a mongo ppa for Z15:59
arosalesdannf: do you know the status of mongo and xenial or ppa?15:59
* arosales also searching15:59
dannfarosales: well, the guy doing the work on ibm's side left the company. he has a replacement, but i haven't seen a drop from him yet15:59
arosalesdannf: gotcha, but stock mongo doesn't work on xenial, correct?16:01
arosalesdannf: and no current s390 mongo ppa that you know of16:01
dannfarosales: correct (not on s390x)16:01
arosalesbeisner: ^ :-/16:02
dannfarosales: correct. i made one: https://launchpad.net/~ubuntu-s390x-community/+archive/ubuntu/mongodb16:02
dannfarosales: but mongo FTBFS. i'm sure *we* could fix the build issues, but IBM was supposed to16:02
arosalesdannf: ok thanks for the update I'll email IBM and see how we can move this forward16:03
dannfarosales: i suspect it's just a missing build-dep fwiw16:03
dannfarosales: let me forward you the last thread on this...16:03
arosalesbeisner: I'll cc you on mail to IBM in working to get a mongo for s390 we can put into charms16:03
arosalesdannf: thanks I'll follow up from there16:03
beisnerarosales, ack.  appreciate it.  be aware that without mongodb, we have no ceilometer.16:04
dannfarosales: that, and java seems stalled too :(16:04
dannfarosales: i sent them a git tree w/ fixes for their java packages, but *PLONK*16:05
dannf(OT here though i suppoe)16:05
beisnerarosales, dannf - sure enough. no mongodb pkgs in ubuntu-ports s390x packages.16:06
dannfbeisner: yeah, main reason for that is that s390x needs a new upstream version - and upgrading mongo in general in ubuntu is an issue, because upstream mongo doesn't support upgrading from the old version we have to current16:07
dannfbeisner: solution for that is to version the mongo packages, so that upgrading isn't an issue, but i don't know of anyone working on that16:08
dannfs/solution/proposed solution/16:08
andrey-mphi all. can I remove my charm from charm store?16:10
beisnerarosales, dannf - fyi, raised for tracking and reference in our current validation docs:  https://bugs.launchpad.net/ubuntu/+source/mongodb/+bug/159524216:19
mupBug #1595242: mongodb xenial s390x packages are needed (blocks ceilometer) <s390x> <uosci> <mongodb (Ubuntu):New> <ceilometer (Juju Charms Collection):New> <ceilometer-agent (Juju Charms Collection):New> <mongodb (Juju Charms Collection):New> <https://launchpad.net/bugs/1595242>16:19
stubandrey-mp: You can revoke access to it. You can't remove them yet.16:28
andrey-mpstub: ok, thanks. i already revoked access.16:29
stubDoes open-port take effect immediately, or only if the hook terminates successfully?16:32
=== kwmonroe_ is now known as kwmonroe
arosalesbeisner: thanks16:44
aisraeltvansteenburgh: Do we know for sure bundletester is working with beta 8? This might entirely be pebkac, but it's acting wonky on me. Hanging when a unit hits an error state. Huh, and failing on `juju api-endpoints -e local.reviewqueue:default` because api-endpoints is gone.16:55
tvansteenburghaisrael: what's the output of juju list-controllers --format yaml16:57
aisraeltvansteenburgh: http://pastebin.ubuntu.com/17705681/16:58
tvansteenburghaisrael: okay, i'll need to see the full output of the test run16:59
aisraeltvansteenburgh: http://pastebin.ubuntu.com/17705768/17:00
aisraelI don't think it should matter, but this is a fresh xenial install, running in lxd (nested)17:01
tvansteenburghaisrael: and you have latest juju-deployer installed?17:02
aisraelHm. That might be a problem. I installed it from archives, and that's 0.6.4, and I installed via pip and that's 0.8. Removing the older one will remove amulet, too, but I can pip install that17:04
tvansteenburghaisrael: if you want to install the deb you need the one in ppa:tvansteenburgh/ppa17:05
tvansteenburghaisrael: same for python-jujuclient17:05
aisraeltvansteenburgh: ok, I think this is related to pip installing everything in ~/.local17:05
tvansteenburghaisrael: you can also pip install both of those if you want, latest are on pypi too17:05
petevgFollowing this conversation w/ interest. I saw bundletester hang on an error just now ... the only version of juju-deployer I have is the one from pip, though (0.8.0).17:08
aisraeltvansteenburgh: thanks. Let me get this pip stuff straightened out, and I may grab you for a few minutes after standup if I'm still stuck.17:08
aisraelpetevg: what version of juju?17:14
petevgaisrael: 2.0 beta817:16
petevgaisrael: I installed it from the archive, because beta7 was the only thing in my apt cache. I'm also running on xenial. I think that the only major difference in our environments is that I did a hung and destroy session for stray Python packages yesterday.17:18
petevgwhoops: "hung" -> "huge search and"17:19
aisraelI'm going to downgrade to beta7 and see if that makes any difference17:19
petevgCool.17:20
=== frankban is now known as frankban|afk
aisraelSo far, beta7 is working much better17:36
petevgCool. Beta 7 has that issue where it occasionally gets upset when you destroy a model and immediately create another one. If I get frustrated with test hangs, I'll give it a try, though.17:41
=== zz_CyberJacob is now known as CyberJacob
beisnerarosales, do you know - is the manual provider still a thing with juju2?   i'm not succeeding in finding usage/docs.18:02
arosalesbeisner: it is18:02
beisneraha https://jujucharms.com/docs/master/clouds-manual18:03
arosalesbeisner: also at https://jujucharms.com/docs/devel/clouds under "manual"18:03
beisnerarosales, if i need to do both manual machines and containers, do i need to stand up the containers and bring those in the same way?18:04
arosalesbeisner: yes I believe so as you still need the resource18:05
arosalesand manual won't set up a lxc container for you18:05
beisnerright, makes sense.  thx arosales18:05
iceycan interfaces on interfaces.juju.solutions point to other repositories besides github now?> I have a gitlab server where I've been storing stuff18:07
cory_fupetevg: Hey, have you started on / finished the restart action for Zookeeper yet?18:10
cory_fuI just finished a discussion with bcsaller about how we want to handle the actions that would be relevant18:10
petevgcory_fu: I finished, tested and pushed.18:11
petevgBut I can refactor if we have something better :-)18:11
petevg(Just realized that I forgot to move the card to review -- just did that.)18:11
cory_fupetevg: Actually, looking at your action, nevermind.  Your action is fine the way it is, save for a couple of minor, unrelated comments I will add to the PR.18:15
petevgCool.18:15
bdxicey: lol ..... trying to intrduce a dependency on your personal gitlab for all ? - Not that I doubt its functionality, availability, or capibility ... if people could just add arbitrary repos ... doesn't that seem like something that would decrease the stability of the framework as a whole?18:44
iceyfrankly, I think the iwhole interfaces.juju.solutions needs some way of specifying "This is still in dev!"18:45
iceyI can't get our CI to test things that aren't there  :)18:45
bdxaaah18:45
iceyalso, I'm attributing these top myself, if you trust me to know what I'm doing, by all means, use it ;-)18:45
bdxlike a stamp of approval, or "supported" - something to that affect?18:46
iceybdx:  long term, these things /should/ move under github.com/openstack but for now we haven't merged them in :L)18:46
bdxinterfaces and layers?18:46
iceybdx: yeah, I'm working on replacing the current ceph* charms with layers18:47
jhobbsIs there a working juju daily ppa somewhere? https://launchpad.net/~juju/+archive/ubuntu/daily looks like it's out of date18:47
iceywhich means, 2 new layers fort ceph-mon (ceph-base and ceph-mon), as well as 4 new interfaces18:47
jhobbsI need to get a tip or close to tip juju and I was hoping there was a PPA I could use so I don't have to learn how to build it18:47
iceySO, I'm going to have these (not yert tested or peer reviewed) layers + interfaces going onto interfaces.juju.solutions18:47
bdxicey: I was looking over those ... super cool18:48
bdxI see, what is the protocol for testing layers and interfaces? Is there one?18:49
iceywell18:49
iceythe open stack team is using gerrit (with jenkins) to run tests18:49
kwmonroeanyone know the "callout" box syntax for charm readmes?  docs say "!!! Note: foo" should do it, but it doesn't when the readme is rendered in the store.18:54
=== urulama is now known as urulama|__
valeecharosales: Thank you for the help! Got it figured out with the help from #maas21:25
valeechAny idea how to get juju 2.0 to deploy trusty on maas machines when doing an add-machine? Everything I have tried it deploys xenial even though mas has the default commission and deploy set to trusty.21:25
ockraHelp. Trying to deploy juju within juju on a localhost (LXD) cloud.21:30
ockraError: Failed to change ownership of: /var/lib/lxd/containers/juju-d8b754-0/rootfs21:30
=== valeech_ is now known as valeech
ockraI used --keep-broken for juju bootstrap to read logs21:39
=== valeech_ is now known as valeech
ockraOnly two lines in there were "read uid map: type u nsid 0 hostid 100000 range 65536"21:39
ockraand read uid map: type g nsid 0 hostid 100000 range 6553621:40
magicaltroutSaMnCo: the chap from Mesosphere seems pretty interested, thanks for the intro21:41
magicaltroutbe nice to work with them to smooth out the extraction of DC/OS into an archive I can upgrade easier21:42
arosalesvaleech: the maas guys rock :-) glad you got a setup working :-)21:53
ockraThe error propagates from lxc/lxd "C.shiftowner(cbasepath, cpath, C.int(uid), C.int(gid))"22:11
=== redir is now known as redir_afk
aisraeltvansteenburgh: I may have a ci job hung up. I don't think this should be running for 4+ hours: http://juju-ci.vapour.ws/job/charm-bundle-test-lxc/4678/console22:32
DenverParaFlyerHello all22:45
DenverParaFlyerReally having a hell of a time getting Kubernetes running on AWS using juju22:45
DenverParaFlyeranyone seen this? ubuntu@612c225cd992:~$ juju deploy local:trusty/kubernetes ERROR unknown schema for charm URL "local:trusty/kubernetes"22:46
SaMnComagicaltrout: cool, let me know if we can help in any way...22:46
DenverParaFlyerahh maybe just need to remove the local:22:47
bdxDenverParaFlyer: use relative paths e.g. `juju deploy ./../../wordpress`22:48
bdxDenverParaFlyer: if you're using 2.0 ... otherwise 1.x uses the 'local:'22:48
bdxprefix22:48
DenverParaFlyerthanks. I was following the instructions here: https://jujucharms.com/kubernetes/trusty22:49
aisraelDenverParaFlyer: replace local: with cs:22:52
aisraeljuju deploy cs:trusty/kubernetes22:52
aisraellocal: assumes you have a local copy of the charm. cs: will download one from the charm store22:53
=== CyberJacob is now known as zz_CyberJacob
DenverParaFlyerthanks @aisrael!22:59
DenverParaFlyerany idea now how I fix this? " hook failed: "etcd-relation-joined" for etcd:client"23:00
DenverParaFlyershows up when I do a 'juju status'23:01
DenverParaFlyeralready tried "juju deploy trusty/etcd juju deploy local:trusty/kubernetes juju add-relation kubernetes etcd" from the guide @  https://jujucharms.com/kubernetes/trusty23:02
DenverParaFlyersimilar to this issue? https://github.com/juju-solutions/bundle-observable-kubernetes/issues/1723:06

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