/srv/irclogs.ubuntu.com/2016/11/18/#juju.txt

bdxnice work00:00
lazyPowerstokachu mad props boi, you got mad squabbles00:00
bdxlazyPower: its still pretty rough, but this is the barbican client idea I'm working with -> https://github.com/jamesbeedy/juju-layer-barbican-client/blob/master/reactive/barbican_client.py00:04
lazyPoweri love this random "i dont have this so just set it without doing anything" https://github.com/jamesbeedy/juju-layer-barbican-client/blob/master/reactive/barbican_client.py#L1300:05
lazyPoweri do stuff like that in prototypes all the time and it drives matt crazy00:05
bdxmy motive behind that, is that I want to be able to react to barbican being installed in other layers, not just when the secrets are set00:06
lazyPowerbdx - looks like a good start. I'm not very familiar with barbican so it makes it difficult to review/make suggestions, but at a glance, it looks straight forward enough.00:06
lazyPowerare the 'containers' a primitive of barbican?00:06
bdxyea, containers store refs to secrets00:07
lazyPowerlike, you put secrets in 'containers' and an app requests the secrets to put in its local container so its encrypted at rest or something?00:07
bdxI wish, nothing going on here with encrypting at rest ... the values sit in the app config on the filesystem after they have been retrieved from barbican00:08
lazyPowerah00:09
lazyPoweri gave it a lot of credit then00:09
* lazyPower nods00:09
bdxsad I know00:09
lazyPoweri dont think its sad, i think its indicative of our industries stance on security00:09
bdxwith the exception of ^00:09
lazyPoweri cant say my solutions are much better than that :)00:10
lazyPowerbut i'm interested in making them better00:10
bdxusing barbican in conjunction with keystone, allows me to create projects in domains, and users in projects, and separate their access to differet secrets in barbican00:10
bdxusing keystone to authenticate and authorize users in front of barbican00:11
bdxso simple, so sweet00:11
lazyPowerseems like its a tiered setup like you're expecting :) so thats good00:12
lazyPowernice, granular, and interrelated00:13
bdxyes, YES!00:13
bdxand I already have it working across all of my charms :-)00:13
bdxtake that vault00:13
lazyPowerlol00:14
lazyPoweryou tell em buddy00:14
bdxlazyPower: https://s17.postimg.org/jtqy0d9mn/Screen_Shot_2016_11_13_at_9_40_03_AM.png00:18
lazyPowerinteresting00:24
bdxso I get the secret refs from the container here https://github.com/jamesbeedy/juju-layer-barbican-client/blob/master/reactive/barbican_client.py#L4700:25
bdxthen iterate over them, unpacking the payload of each https://github.com/jamesbeedy/juju-layer-barbican-client/blob/master/reactive/barbican_client.py#L5100:25
bdxand setting to the leader00:25
bdxno doubt there are probably better ways to do this00:26
bdxits just a start ... I had to start somewhere00:26
lazyPowernah this seems reasonable00:32
lazyPowerleader coordination seems like the right thing to do here00:32
bdxthe only problem with setting to the leader is the type can only be a string00:33
bdxlol00:33
bdxI think this is the same for unit data00:33
bdxI mean you can set other value types, but the are converted and saved as strings00:38
jcastrostokachu: the latest conjure-up I've gotten from the next ppa doesn't have localhost as an option for me. My LXD is all configured and works already00:39
jcastrostokachu: ahh, looks like the latest hasn't been built by lp yet in the next PPA00:52
lazyPowerbdx - yeah, thats fair. There's no notion of types in leader-data00:54
lazyPowerjcastro - are you jazzed up on lxd kubernetes now?00:55
jrwreni'm afraid.00:56
stokachujcastro: what version of conjure-up are you running02:49
stokachuthis was just a spell modification no core code changed02:49
stokachularrymi: ah yea the whole supported thing lol02:51
stokachuoops wrong person02:51
kjackalGood morning Juju world!08:09
magicaltroutI'm back, what did I miss?! ;)09:27
bloodearnesthey folks. Is there a way for me to customise the base image used by the lxd provider locally?10:53
bloodearnestI used to do this with the juju-template images the local provider, it allowed me to preinstall a bunch of stuff, and pre-download a load of others, which meant much faster provisioning10:54
bloodearnestafaics, juju will always use the 'ubuntu-trusty' or 'ubuntu-xenial' aliases. If publish a custom image to my local lxd image server, with the alias 'ubuntu-trusty', what should work, right?10:55
magicaltroutpetevg: did you raise a bug that quality arrow problem on jujucharms.com?13:24
petevgmagicaltrout: I did not. I will add it to my list of things to do this morning (not sure which repo it lives in ...)13:25
magicaltroutno problem petevg i'll do it13:25
magicaltroutdone13:28
petevgCool. Thx, magicaltrout.13:32
hackedbellinilazyPower: hey!14:07
lazyPowero/ hackedbellini14:07
hackedbellinilazyPower: using xenial worked! I'm just having one last problem now.. I'm not very familiar with docker so maybe you will know what is wrong14:07
hackedbellinihttps://www.irccloud.com/pastebin/gOa72syy/14:08
hackedbellinilazyPower: the same problem jhappened with the default config (it was 'postgresql:9.5'). I changed it to 'postgresql:latest' but the same happened14:09
lazyPowerThey restructured their tags it looks like14:09
lazyPowerhttps://hub.docker.com/r/library/postgres/tags/14:09
hackedbellinilazyPower: hrm, so I should just remove the leading 'postgres:' and 'redmine:' from the config?14:10
lazyPowerthe postgres:9.5 image should work14:11
lazyPowerchange the image line to read that, postgres:9.514:11
lazyPowerand give it a `juju resolved` to retry the hook14:11
hackedbellinilazyPower: it didn't work before with 'postgres:9.5'. It gave me the same error as above. But I'll try again14:13
lazyPowerkwmonroe - hey kev, got a sec?14:14
hackedbellinilazyPower: there's a typo on the charm config. It was written as 'postres:9.5' instead of 'postgres:9.5'. I changed 9.5 to latest and didn't even notice the typo14:16
hackedbellininow with 'postgres:latest' I think it worked14:16
lazyPowernice14:16
lazyPowerglad it was simple :)14:16
hackedbellinilazyPower: nice! It is taking a while in the "Pulling postgresql (postgres:latest)..." but I think that is normal, right? Lets see what happens now, hopefully it will complete now14:18
lazyPoweryeah, running docker in lxd, the image pulls were quite slow, however once they were cached things were about normal timed.14:19
lazyPowerhackedbellini - did it finally settle and turn up the services?14:32
marcoceppistokachu: nice blog post! http://blog.astokes.org/conjure-up-canonical-kubernetes-under-lxd-today/14:33
vmorrisis it not possible to debug hooks on a subordinate charm?14:46
lazyPowervmorris - it certainly is possible14:52
hackedbellinilazyPower: it is still installing. I have a meeting right now, will give you more details when I come back!15:09
lazyPowerok, sounds good15:09
vmorrislazyPower: just wondering how i might do it, do I need to run debug-hooks on the parent charm? for example, this cinder-ceph subordinate unit doesn't show up in the debug-hooks list15:21
lazyPowervmorris  - nope. you target it like any principal unit15:21
vmorrislazyPower: alright well this doesn't seem to be working as designed then15:22
vmorrislazyPower: I'm getting "can't find session cinder-ceph/2"15:23
lazyPowerthat seems like perhaps there was a prior debug-hooks session that was disconnected?15:23
lazyPoweror your'e already in a debug-hooks session on the principal unit?15:23
vmorrisah yes, the 2nd is true15:24
vmorris^^ thanks15:24
lazyPoweryeah, the output messaging there could be improved, but thats a bit obtuse as it would have to know some things first.15:24
marcoceppimbruzek lazyPower ryebot Cynerva great job on the release last night, seems to have cleared up cloud weather report http://cwr.vapour.ws/bundle_canonical_kubernetes/index.html cc arosales15:48
lazyPowerjcastro Have you interfaced with Sarah Novotny recently?15:52
lazyPowerjcastro I need to coordinate with them on a reasonable place to xpost our release notes for CDK. I thinks she is the right person to track/ask as she's the community manager for k8s right?15:52
jcastroshe is15:53
jcastrobut the community meetings are closed for the holiday15:53
jcastroso I won't talk to her for like 2 weeks.15:53
lazyPowerRight, but i was thinking email. i'm digging in slack to find her deets15:53
jcastroright, sec, I'm in a community room with her15:54
lazyPowersarahnovotny@google.com - found it15:54
lazyPowerjcastro - https://docs.google.com/document/d/1nx8v7FgzwKgF9uFu1KK-ecx6bOGxwEh3XorodDJ6s24/edit  - mind proofing this before i hit send?15:58
lazyPoweri've got you on CC as well15:58
arosalesmarcoceppi: thanks for the fyi. Did k8-core get updated?  Looks like it still has the lint failures re: http://data.vapour.ws/cwr-tests/results/bundle_kubernetes_core/9cff5292b7434ce29891195a47c18131/report.html15:58
lazyPowerarosales thats my b, we have an update coming ot kubes-core later today with those fixes15:58
jcastrolazyPower: ack, just removed one marcoism, lgtm.15:59
lazyPowerta15:59
arosaleslazyPower: thanks, and thanks for the release16:00
arosalesmbruzek: ryebot Cynerva: lazyPower marcoceppi: thanks for the k8 release, looking forward to trying it out16:00
lazyPowerarosales - wanna try it out on LXD?!16:01
lazyPower:D16:01
arosalesindeed I do, conjure-up16:01
lazyPowerah whoops, didnt mean to leak email addresses here, i thought i was somewhere else. whoops16:01
* lazyPower flogs himself16:02
magicaltroutI apt get updated the other day and it removed everything inside my /home directory16:02
magicaltroutwhich i blame entirely on jcastro16:02
lazyPowerwait what?16:02
magicaltroutbecause i had a bunch of ZFS stuff on a semi stable Xenial because of his blog post ages ago :P16:02
lazyPowerO_o16:03
magicaltroutI dunno, but it did happen :)16:03
magicaltroutI think something inside ZFS removed itself during the update and everything else around it16:03
magicaltroutwhich wiped a bunch of charms i'd not pushed anywhere.... sad times16:03
magicaltroutthat teaches me16:04
jcastrodid you reinstall?16:05
jcastrobecause you can usually zfs export and reimport the pool16:05
magicaltroutmy home directory wasn't inside ZFS16:05
magicaltroutbut I think my pool was chillaxing somewhere around there16:05
magicaltrouti dunno, anyway, it all vanished :)16:05
lazyPowermagicaltrout - on top of VCS i also use syncthing to keep my stuff sync'd with my NAS.  Might be worth investigating.16:06
lazyPoweri know this is hindsight and all that, but just a thought16:06
magicaltroutyou're very wise lazyPower16:06
lazyPowerno, i catch stray good suggestions from jcastro16:06
magicaltroutdo i just catch the bad ones? ;)16:06
lazyPowerlittlie of column a little of column b16:07
jcastroalso, your filesystem and your backup strategy are not the same thing. :D16:08
jcastroit's not my fault you didn't push16:08
magicaltroutyeah, next time, i'll grep the debian update scripts for "rm -rf /home/*" ;)16:08
lazyPowerjcastro - isn't this like a replica of the mysql charm fauxpaus that happened 2 years ago?16:08
jcastrothis is basically the same thing16:09
* lazyPower grins16:09
lazyPowergood times16:09
jcastromagicaltrout: oh hey are you submitting a session to the charmer summit? Last call is today16:09
magicaltrouti'm debating whether my liver will have packed in by then or not16:10
magicaltroutI don't like those guys since they rejected my last 2 attempts16:13
magicaltroutand told me to stop selling a product :P16:13
magicaltroutokay i'll pitch something, but i'm not trying too hard :P16:15
* magicaltrout offsets the lack of effort by pitching with his NASA email address16:16
hackedbellinilazyPower: still some problems:16:27
hackedbellinihttps://www.irccloud.com/pastebin/GbEMv3zD/16:27
magicaltroutdone jcastro we'll see how that goes16:28
lazyPowerhackedbellini - thats without having postgres related correct?16:31
lazyPowerhackedbellini - as in, using the redmine charm as the all-in-one-using-docker path16:31
lazyPowerit seems like compose didn't spin up postgres first, or after spinning up it immediately exited. You'll have to juju ssh into that unit and investigate the status of the workloads on the docker bridge16:32
lazyPowers/docker bridge/docker runtime/16:32
hackedbellinilazyPower: yeah, I didn't see any "db" relation on the charm, so I didn't relate it to my postgresql unit. Was that an option?16:37
hackedbelliniok, so the problem now is totally docker? Nothing related to juju/lxc anymore?16:38
lazyPoweryep16:38
lazyPowerhackedbellini  in a meeting, i'll circle back after16:39
jcastrostokachu: I think I'm missing something obvious, localhost is missing for me when I do `conjure-up kubernetes`, using your next ppa, lxd and everything is already configured16:40
stokachujcastro: silly me, try it again please17:24
lazyPowerthanks stokachu17:28
lazyPowerwas this a packaging issue or something?17:28
geekgonecrazyis the charm snap in a functioning state?  Tried to do a charm create and getting an error.  Ideas?17:34
lazyPowergeekgonecrazy - can you pastebin your error for me?17:35
geekgonecrazyhttps://paste.ubuntu.com/23496377/ the output I get after doing charm create -t bash my-charm17:35
geekgonecrazyI didn't see anything in the documentation about folder location, but with snaps being limited on folder I was kinda wondering if that was the issue.  But the output didn't really give me any useful clues17:36
geekgonecrazyTried specifying just incase that was it.  Same error17:37
geekgonecrazylazyPower: should I give the version in the juju ppa a try instead?17:39
* lazyPower looks17:39
lazyPowerah yeah, this does look like a packaging issue with the snap17:39
lazyPowerpkg_resources.VersionConflict: (SecretStorage 2.3.1 (/snap/charm/9/lib/python2.7/site-packages), Requirement.parse('secretstorage<2.3.0')) -- and thats not something you can easily remedy17:40
lazyPowergeekgonecrazy - would you mind terribly opening a bug against charm-tools for this? https://github.com/juju/charm-tools/issues17:40
geekgonecrazylazyPower: done! https://github.com/juju/charm-tools/issues/28717:45
lazyPowergeekgonecrazy thanks for that, we'll try to circle back to that17:45
lazyPowerbut yeah, to answer your follow up question, i would purge the snap and install from the ppa then17:45
jcastrostokachu: awesome, working now, though it expected a controller up and running already, it didn't fire off a controller ootb for me, no idea if that's on purpose or not.17:46
geekgonecrazylazyPower: perfect, i'll give the PPA a go.  Thanks for taking the time to take a look17:46
lazyPowernp, sorry you found that rough edge. we'll get that sanded down for ya17:46
geekgonecrazyAll good.  It happens to all of us :D17:47
jcastrostokachu: dude, this is awesome.17:49
stokachujcastro: yay \o/18:00
=== CyberJacob is now known as zz_CyberJacob
beisnerbeware: https://bugs.launchpad.net/juju-deployer/+bug/164302718:06
mupBug #1643027: juju-deployer deploys the wrong unit series from charm store <uosci> <juju-deployer:New> <https://launchpad.net/bugs/1643027>18:06
beisnerthat bad boy is causing us serious funk in the osci amulet test gate18:06
beisnermarcoceppi, arosales, thedac, gnuoy, tinwood ^18:08
thedacthanks for filing that18:09
tinwoodboy, tricky one.18:09
geekgonecrazyIs there any best practice for the start hook?  Should I drop in a systemd unit during installation and trigger it to start / stop in the hooks?18:09
arosalesjuju deployer!18:10
arosalesbeisner: I bet if you try that with 2.0 you don't see it correct?18:11
beisnerjuju-deployer via amulet via bundle-tester!  :-)18:12
arosalesas we only need deployer with 1.x juju18:12
arosalesah via bundletester18:12
beisnerjuju-deployer is still called with juju 2.0 when using bundletester18:12
arosalesyes, it is bundletester that is using deployer18:12
beisnerack18:13
lazyPowergeekgonecrazy - are you charming with reactive/layers?18:18
geekgonecrazylazyPower: i'm a huge noob to charms.  Familiar with snaps but not charms.  In the charm i've got it installing from a tar ball.  I will need to have it react to relationships (mongodb primarily) and configuration changes.  If that's what you mean?18:20
lazyPowerhackedbellini - hey there, circling back to your docker issues, have a few minutes to rif? i can help you dissect the issues now.18:20
lazyPowergeekgonecrazy - not exactly. Reactive/layers is a new paradigm for charming that will really help you get moving with delivering that tarball and doing the right things at the right time, and allow you to re-use code we've already written for things like how to talk to mongodb18:20
lazyPowergeekgonecrazy https://jujucharms.com/docs/devel/developer-layer-example - take a look at this doc. it may be a bit windy and cover too many new concepts if you're brand new to charming, but its a walkthrough by example of how to charm by layers.18:21
lazyPowererr rather, i intended to link here: https://jujucharms.com/docs/devel/developer-getting-started18:22
=== zz_CyberJacob is now known as CyberJacob
geekgonecrazylazyPower: hm... yikes... another set to wade through.  Any good examples you know of?  Would make it a lot easier to dive in and adjust my thinking. :D18:27
lazyPoweryou bet, we've got a lot of layers already.  So what your'e trying ot do is deliver a tarball based resource, and then wire that up to talk to mongo?18:28
lazyPowerlet me see if i can find something similar. i'm pretty sure cmars has something thats very close to this already.18:28
hackedbellinilazyPower: yeah it would be great! I tried redeploying the charm with this docker-compose config: https://github.com/sameersbn/docker-redmine/blob/master/docker-compose.yml18:30
lazyPowergeekgonecrazy - while its not mongodb, this is a mattermost (open source slack alternative) layer which exercises a good amount of layers/functions-in-juju   https://github.com/cmars/juju-charm-mattermost18:31
geekgonecrazylazyPower: yeah pretty much a nodejs app bundled in a tar ball.  Extract / npm install then wire up to mongo18:31
geekgonecrazyI guess that's fitting, i'm working on the Rocket.Chat charm haha18:32
lazyPowergeekgonecrazy - you'll really want to grok the resources: usage of mattermost, as you're not using na official dependency management solution there, you can declare the tarball as a resource of the charm and instnatly win there.18:32
lazyPoweroh thats fantastic :D18:33
lazyPoweri didnt even know #winning-by-accident18:33
lazyPowerhackedbellini - ok, did you update it to be a jinja template?18:33
hackedbellinilazyPower: I'm having a problem checking that charm log. The postgresql charm logs _a lot_ of information all the time, and I miss the relevant parts from redmine there. I tried running "juju debug-log" with "--include". I tried putting the unit name, the application name, the machine name/oid, but none of that works18:33
hackedbellinilazyPower: yes I did!18:33
lazyPowerhackedbellini ah yeah, the -i flag is really confusing ot new users since the 2.0 change18:34
lazyPowerhackedbellini `juju debug-log -i unit-postgresql-0`  is the format to include only postgres unit output18:34
lazyPowerwell, postgres unit 0 output.18:34
geekgonecrazylazyPower: I'll give it a look though, see if I can figure out a way.  Go binary for sure a lot easier to work with then node.js18:34
lazyPowergeekgonecrazy - well, we have a layer-nodejs too18:35
lazyPowergeekgonecrazy how about this, i'll help you get started, and answer direct questions you may have. if i'm not availble, do you agree to post to the mailing list so others can lend me a hand helping you? (juju@lists.ubuntu.com)18:35
hackedbellinilazyPower: hrm, so for "redmine/9" (yeah, already on the 9th try) it would be "-i unit-redmine-9"? I'm trying it as I write this to you and it isn't displaying anything18:35
lazyPoweri have a scaling problem where i'm a single poin tof failure.18:35
lazyPoweryep, that should be the magic incantation18:36
lazyPowerhackedbellini ^18:36
geekgonecrazylazyPower: Sounds awesome.  already subbed :) i'll follow up after doing a bit more research18:37
lazyPowersounds good. dont hesitate to poke if you get mired down in the docs. I helped write most of our dev documentation. so its likely scattered. bugs / feedback welcome always18:37
lazyPowerstokachu - welp, i have results. none of my worker nodes have registered as ready :|   but, it did complete and looks like its still converging in the background18:38
lazyPowerit crushed my i5 deploying this whole stack in one go :D took ~ 30 minutes from start-finish.18:38
lazyPowerhackedbellini - one other thing is either the charm isn't initialized... or maybe you should pass --replay so it forces debug-log to replay the messages from the beginning of the units creation18:40
hackedbellinilazyPower: omg, its friday I'm tired... The service was 6 but I read it as 9 lol18:40
lazyPowerhaha <3 i do these things all the time. dont feel bad18:40
lazyPowerhackedbellini - the best is when you're trying to multi-task, run a deployment, then switch terminals and run bundletester and wipe out the deployment you just did. :|18:41
lazyPower#mistakes-i-realize-i-will-repeat-again-and-again18:41
hackedbellinilazyPower: hahaha yeah. So, those are the last lines of the log:18:42
hackedbellinihttps://www.irccloud.com/pastebin/KjgnG4S6/18:42
hackedbellinilazyPower: hhaha did that some times too =P18:42
hackedbelliniit is "stuck" on that for more than a hour now18:43
lazyPowerok, if i remember correctly this is the end of the sidewalk where that prior docker work was done. As of lastnight stokachu has some profile edits that got it further along in the context of kubernetes. I think there's some modules we need to unblock on the container yet ot make this 100% functional18:44
lazyPowerhackedbellini - so whats the status of the workloads in docker? did it pull the images and attempt container spinup?18:44
hackedbellinilazyPower: strange that if I run 'debug-log' with '--replay' the latest lines are pretty different:18:48
hackedbellinihttps://www.irccloud.com/pastebin/E05LE9wT/18:48
lazyPoweroo fantastic actually18:48
lazyPowerjuju ssh into that unit and run `docker images`18:48
lazyPowerdo you see the nornagon postgres image in there?18:48
hackedbellinilazyPower: no, no images18:49
lazyPoweror rather: postgres:latest18:49
lazyPowerok, so it seems like pulling the image is either blocking, or is hozed and not signalling back that the hook has failed18:49
lazyPowerand thats not good :| i haven't encountered that before so there's likely no logic in the charm to handle the scenario18:50
hackedbellinilazyPower: yeah that is strange. My previous deploy did finish pulling the container18:50
hackedbellinisomething happened in this one specifically18:50
hackedbelliniis there a way to make juju rerun the hook, considering that it "failed"?18:51
lazyPowerhackedbellini - try running the docker pull postgres:latest on that unit18:51
lazyPoweryep18:51
lazyPowerjuju resolved redmine/618:51
lazyPowerthat by default will attempt a retry of the hook, if you want to skip  its juju resolved --no-retry redmine/618:51
lazyPowers/try running/try manually running/18:52
lazyPowerthat way we can capture the behavior and determine what the root cause is18:52
hackedbellinilazyPower: ok, waiting for docker pull to finish. Let's see if that works :)18:55
hackedbelliniI should run "docker pull" with the ubuntu user itself? Or with root?18:56
* lazyPower crosses fingers "no whammies no whammies no whammies, c'mon big money"18:56
lazyPowerShoudl work with either/or18:56
hackedbellinilazyPower: strange that is seems to be "stuck". This is my output:18:59
hackedbellinihttps://www.irccloud.com/pastebin/looQTz6T/18:59
hackedbellinibut even if I ctrl+c it and do it again, I get the exactly same output18:59
lazyPowerhackedbellini - any output from journalctl -u docker?   hoping there's something in the docker runtime logs that will help indicate what hte problem might be18:59
lazyPowerstokachu - found the culprit, looks like the workers cant open /proc/sys/vm/overcommit_memory, its cuasing the workers to panic and abort the registration process19:00
hackedbellinilazyPower: this is the tail of the log:19:03
hackedbellinihttps://www.irccloud.com/pastebin/Z7jVEdwC/19:03
hackedbelliniso my "docker pull" refers to those latest 2 lines19:03
hackedbelliniforget it, it seerms that the pull finished19:04
hackedbellinidocker images now has the postgres19:04
hackedbelliniI'll try to "juju resolved" now19:04
lazyPowerok, with the image cached it should skip pulling during docker-compose up19:04
hackedbellinihrm, didn't even need. The debug-log just advanced to "INFO unit.redmine/6.install Pulling redmine (redmine:latest)..." by itself19:05
lazyPoweromg now i know why it was fighting19:05
lazyPowertwo threads of the engine trying to pull the same image19:05
lazyPowerthat explains the slowness19:06
lazyPowerwhoops19:06
lazyPoweri thought the hook was already in failure mode19:06
hackedbellinilazyPower: it seems to have worked. Let me check if it is really running now19:07
hackedbellinilazyPower: so, the charm now says that "Redmine is running on port 8000", but there's nothing on that port19:09
hackedbellinieven netstat doesn't show that port19:09
lazyPowerdocker ps -a19:10
lazyPowerdo you see the container running, and that its bound to por 8000?19:10
hackedbellinilazyPower: hrm, both postgres/redmine are with status "Exited (1) 2 minutes ago" (I don't understand anything of docker, sorry for not being able to debug it better =P)19:11
lazyPowerwelp, thats why nothing is listed as being bound to a port :)19:11
lazyPoweryou can fish up the container logs to see why19:11
lazyPowerdocker logs <id of container from `docker ps`>19:12
lazyPowerhackedbellini by the end of this exercise you're going ot be an expert docker charmer you're literally touching every corner of the stack19:12
hackedbellinilazyPower: the log has some lines with "error: exec: "initdb": executable file not found in $PATH"19:12
hackedbellinilazyPower: hahaha nice! Maybe I can help contribute back to you in the near future19:13
lazyPower:| not cool postgres image, not cool19:14
lazyPoweri wonder if osmething changed there19:14
hackedbellinilazyPower: strange that I'm using postgresql:latest. Also, the redmine:latest gave me that: "error: exec: "rake": executable file not found in $PATH"19:14
hackedbelliniso, the problem are with the images?19:14
lazyPowerseems like something has changed in the images, yeah19:15
lazyPowerso, question19:15
lazyPowerhav eoyu tried this using just compose without teh charm on your host to verify the docker components are good to go?19:15
lazyPoweri'm in another meeting, but i can give it a shot when i'm out19:15
hackedbelliniI didn't really, but I can try. Just don't think I'm gonna make it today :(19:17
lazyPowerhackedbellini - well you've made a lot of good progress and you're literally at the last 5%19:17
lazyPowerwhats your TZ? are you EU based?19:17
hackedbellinilazyPower: I'm on Brazil hahaha, it is 17h19 right now19:19
hackedbelliniobs. Maybe it is related to this (https://github.com/docker/compose/issues/1639), but maybe not19:19
lazyPowerah yeah, late in the work day/week19:19
jcastrojusticefries: we're in the hangout19:33
justicefriesomw19:33
justicefriesugh I can't find it19:34
justicefriesdid you send the invite?19:34
justicefriesi can't find the hangout19:34
lazyPowerhttps://hangouts.google.com/hangouts/_/canonical.com/kubernetes-with19:34
lazyPowerjusticefries ^19:34
justicefrieshmm it has me in requesting to join19:35
stokachulazyPower: hmm i thought that was fixed with my profile edit19:37
stokachulazyPower: ill look again19:37
lazyPowerstokachu - i'm going to file some bugs and do the proper process19:37
lazyPowerwhere would you like them to be filed? against the bundle and tag them with conjure?19:37
lazyPoweror would you prefer i find the spell and file them there or?19:37
stokachulazyPower: yea lets file them on the spell https://github.com/conjure-up/spells/issues19:38
lazyPowerack, will do19:38
stokachui thought i fixed that but maybe not19:38
justicefriesgithub.com/kz8s/tack19:42
marcoceppijusticefries: http://github.com/juju/python-libjuju19:55
lazyPowerjusticefries http://blog.astokes.org/conjure-up-canonical-kubernetes-under-lxd-today/ sending here for persistence20:12
jcastrojusticefries: http://blog.astokes.org/conjure-up-canonical-kubernetes-under-lxd-today/20:12
lazyPowerjcastro ninja'd20:12
bildzhey guys...  I have my horizon up, but in looking into the nuetron settings for the bridged interface, I'm missing networks that should be there.  Is there any means of looking at the YAML files used by conjure up to get a better idea on how this process is handled?20:22
bildzkeep in mind that i've performed conjure-up openstack about 10 times20:23
justicefrieshmm.21:32
justicefries1 nice to have thing. i have a superuser account, i'd like to be able to grant models to myself without having to do the logout/login as the model's user/logout/login as myself dance.21:33
justicefriesi'm able to create the model under that username.21:33
justicefriesor even have machine users/groups that I can put a model into. that'd sort of force that as being necessary.21:33
justicefriesbut it seems weird I can create a model under someone else's user, grant access to anybody I want on it21:34
justicefriesbut not grant it to myself21:34
marcoceppijusticefries: not sure I follow22:04
justicefriesso if you do:22:04
justicefries`juju add-model foo-bar --credential bam --owner admin` while logged in as justicefries22:04
justicefrieswhere justicefries is a superuser22:05
justicefriesdoing a `juju grant justicefries admin admin/foo-bar` fails, you have to log in as the model owner.22:05
marcoceppiyup22:05
marcoceppiwat22:05
justicefrieslet me try again to verify22:05
* marcoceppi tries22:05
justicefriesyup, can't do it. and just confirmed i'm a superuser22:06
marcoceppiinteresting. Not sure if this is a bug or by design, rick_h ^^ ?22:06
marcoceppijusticefries: does the inverse work okay for your usecase, you're the admin, then you make "admin" user an admin of that model?22:07
justicefrieslet me try. so make the model under my user, then grant it to admin from admin22:07
marcoceppiI guess for auditing, you'd just be the owner of all the models though22:07
marcoceppijusticefries: yeah, create the model, then as the owner of the model, give the other use admin access to it22:07
justicefriesyeah I'd like the primary ones to all be under an admin/production user.22:07
justicefriesoh, as the owner22:08
justicefriesyeah, I can do it as the owner.22:08
marcoceppisure22:08
justicefriesi think the weird thing is I can create a model for someone else, but then not get access to it.22:08
marcoceppiinteresting, I'll file a bug see what shakes out from it22:08
marcoceppiyeah, superuser seems to not inherit admin of models it controls22:08
justicefriesshould be consistent between the two either way22:08
justicefriesif its intended, I'd expect add-model --owner shouldn't work for someone else22:09
marcoceppiwell, if that user does not have "addmodel" or "superuser" it wont22:09
justicefriesright22:09
marcoceppiI'll file a bug and link you up in a min22:09
justicefriesoh, I see, because superuser doesn't inherit admin over models, I can't see it, and so grant 404s.22:10
marcoceppijusticefries: is this with 2.0.2 or 2.1-beta1?22:10
justicefries2.0.222:10
justicefriesi can try on 2.1-beta122:10
marcoceppiyeah, I wonder if this is just an ommision of the permission level of superuser22:10
marcoceppiwhere if it doesn't own a model, it really can't see it, despite being the creator (and superuser)22:10
marcoceppijusticefries: https://bugs.launchpad.net/juju/+bug/164307622:14
mupBug #1643076: superuser does not have admin over models it created but does not own <juju:New> <https://launchpad.net/bugs/1643076>22:14
justicefriesawesome22:17
geekgonecrazylazyPower: so I built the charm.. I guess you guys would probably call it the old style.  Because mainly using bash.  Having issues locally getting the application to die so I can deploy it again.  juju remove-application appname doesn't work, and neither does juju remove-unit appname/022:58
geekgonecrazylast time I had to destroy the controller and manually purge the lxd containers to get it to finally remove22:59
geekgonecrazywhich sucks because have to wait on it to download the mongodb charm again :D22:59
geekgonecrazyman... it just won't remove any.  I'm sure i've got to be missing something23:45

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