/srv/irclogs.ubuntu.com/2013/12/19/#juju.txt

=== CyberJacob is now known as CyberJacob|Away
lazypowerExcellent. Turns out it was due to bundler scoping the env, awesome.00:41
lazypowersorry - being unable to call pry in the chef cookbook during runtime. The charm skeleton was doing best practice by piping the chef-solo run through the bundle00:41
=== freeflying_away is now known as freeflying
lazypowerHow can I tell if my unit already has a relationship with another charm? I'm seeing a way to get the relation ids, and the list, but I'm looking more to see if it has an implicitly defined relationship with mongodb03:26
lazypowersince thats defined in the yaml, i assume its got a boolean call to discover if relation-get('mongodb') exists?03:26
marcoceppilazypower: I use dot files to track when relations are created, etc03:27
lazypowerThat works, thanks03:28
marcoceppilazypower: I'll also stuff data in there, so I don't have to call the relation commands, I can just read the contents of the dot file03:45
lazypoweri was thinking about that, using it as a storage unit.05:00
=== davecheney is now known as hartman
=== CyberJacob|Away is now known as CyberJacob
noodles775jam: RE the cached charms when deploying locally, is there a way I can work around that (other than --upgrade)? I want to re-run an amulet test on my bootstrapped env (which doesn't use --upgrade when deploying).10:46
jamnoodles775: I don't know of a way offhand, I didn't find where they were being cached10:47
noodles775jam: when running locally, is machine-0 even an lxc? It doesn't seem to be, perhaps it's talking to a mongodb somewhere that I need to clear.10:50
* noodles775 looks around.10:50
jamno10:50
jammachine-0 runs mongodb on the local system10:50
mgznoodles775: one option there is to have your setup in amulet using a juju-deployer config, rather than doing deploy() calls and so on10:55
mgzso, you can then run the same thing again (which juju-deployer copes with), and just have the assertions changed10:56
noodles775OK, thanks mgz.10:57
mgznoodles775: I'd love to see your test stuff if you can point me at it11:05
noodles775mgz: http://bazaar.launchpad.net/~michael.nelson/charms/precise/elasticsearch/trunk/files11:08
mgznoodles775: thanks!11:10
=== gary_poster|away is now known as gary_poster
=== CyberJacob is now known as CyberJacob|Away
mgzmarcoceppi: are you aware of any charms actually using the python-django application charm thing? I'm trying to find an example.16:29
marcoceppimgz: cjohnston might know. I think he was using it16:29
marcoceppibut he's not in the channel16:30
mgzmarcoceppi: I think I'm looking at his code, and it's just doing the use-this-launchpad-branch thing16:31
mgzmarcoceppi: put up a pull request for amulet on python 2 btw16:33
marcoceppimgz: Thank you! I've been meaning to this for a while now16:34
mgzif you're curious about what we've been up to as well, see:16:34
marcoceppimgz: I'll make sure it gets packaged python and python316:34
mgz<http://bazaar.launchpad.net/~canonical-ci-engineering/ubuntu-ci-services-itself/trunk/view/head:/tests/ppa_assigner/test.py>16:34
marcoceppio/16:36
rbasakjackweirdy, marcoceppi: o/16:37
sinzuimarcoceppi, I see intermittent failures deploying to mysql on HP. I wonder if the machine is under powered. Do you think 2G for mysql + juju agent is low?16:59
marcoceppisinzui: this is a problem with a specific region of HP Cloud17:47
marcoceppiI think az217:47
marcoceppiI haven't been able to pinpoint. Works flawlessly in az117:48
marcoceppiand az317:48
sinzuimarcoceppi, I see the problem on az-3. I just changed CI to use more ram and didn't see the mysql state error. I will let CI run a while to confirm the failure has become rare17:50
marcoceppisinzui: thanks17:50
rick_h__sinzui: just a heads up, still would love to chat a bit if you get time this week17:55
sinzuirick_h__, sure. maybe in an hour or so.17:56
sinzuirick_h__, fate is conspiring against me. My wife's car is misbehaving. I don't have any meeting tomorrow. Ca we talk in the morning?19:13
rick_h__sinzui: sure thing, no hurry19:15
_bjornecan someome explain for me why im alwas get this from node 2 and up?!?!?!?! GET /MAAS/metadata//2012-03-01/user-data HTTP/1.1" 404 217 "-" "Python-urllib/2.719:23
_bjorneand im not get that on node 119:23
_bjornewhat im doing wrong?19:24
=== CyberJacob|Away is now known as CyberJacob
_bjorneno one here?19:28
natefinch_bjorne, try #maas you might get more luck.19:30
_bjornenatefinch should all nodes from scratch, can i see them in juju status or do im do anything more?`19:33
natefinch_bjorne, you will need to do juju add-machine (or juju-deploy, which will add a machine and deploy a service to it) in order to see machines in juju status.19:36
_bjorneif im not do add-machine? im see only the first node/machine?19:37
natefinch_bjorne, yes, that's the correct behavior.  We only acquire machines as necessary.19:38
_bjorneok and after that, machine 2 runs dist-upgrade and install lxc and mongodb?19:39
_bjornecan you tell me how im write add-machine a example? :) im new on this :/ and not new with computers and linux :)19:40
_bjorneare that like this only im need to write if im want to add a new machine?  juju add-machine lxc19:46
natefinch_bjorne, it should just be a matter of "juju add-machine"  All that really does is requisition a machine from MAAS and start it running.19:46
_bjorneokey19:47
natefinch_bjorne, add-machine lxc will start a new machine and put an empty lxc container on it.  Containers are optional, you don't need to use them unless you want to for some reason.  by default, things deploy just to the base machine19:48
natefinch_bjorne, the usual way to use juju is to set up your ~/.juju/environments.yaml with the right information for your environment.  Then do juju switch maas (to make your maas environment the default one you're working with).  Then you do juju bootstrap to start up the environment (this deploys node 0).  You can then deploy services with juju deploy <servicename>.  That'll requisition new machines, start them up, and deploy the s19:50
natefinchervice to them.19:50
_bjorneim using default config19:52
_bjornemy problem was from the beginning, im cant get user-data on from the second machine, the first was function good.19:54
_bjorneagent-state-info: '(error: cannot run instances: gomaasapi: got error19:55
_bjorneback from19:55
_bjorneand what is that?19:55
=== jhf_ is now known as jhf
_bjornehmm if machine dont find user-data that is not installs lxc and mongodb? or im do that with add-machine?20:01
natefinch_bjorne, I'm ont sure what it means not to find user data.  I'm better at juju than maas.  The guys on #maas will be more useful with errors coming out of maas, which is what this sounds like20:14
_bjorneokey :) i will try to ask there again.20:16
_bjorneand know time to sleep :) up and working tomorrow... :/ drive that f*cking truck in Gothenburg :)20:17
thumpero/20:17
_bjornehavey 60tom 25.25meter long :)20:18
natefinchyikes, good luck, _bjorne20:20
sarnoldwow, what a different kind of problem ;) hehe20:21
_bjorneim wish im working inside :) today that was rain :( and not fun to be out then.20:22
sarnold:(20:26
dpb1Can juju use custom images?20:47
dpb1I guess I would need to maintain my own simplestreams map?20:47
natefinchdpb1, you mean machine images?20:47
dpb1natefinch: cloud images20:48
natefinchdpb1, ok, so, right now, no.  We always use an ubuntu cloud image20:48
dpb1natefinch: OK.  if I wanted to snapshot an assembled ubuntu cloud image and maintain a simplestreams directory, would that work?20:49
dpb1or is there more to it than that.20:50
dpb1natefinch: I'm launching ci slaves with juju, and I get tired of the 15-20 minutes spin-up time because of all the software we need to install.20:51
natefinchdpb1, understandable.  I'm actually not sure if you can usurp the regular image for another ubuntu image with stuff pre-installed.  thumper - would you know if that's something that could be done?21:06
=== cce_ is now known as `cce
=== `cce is now known as cce
* thumper notices the name21:45
* thumper reads21:45
thumperdpb1, natefinch: at this time, I think that only the standard ubuntu-cloud image is supported21:45
thumperbut I may be wrong21:45
thumperdpb1: on which provider?21:46
thumperdpb1: regarding the simplestreams work ,that may well work, check with wallyworld_ when he is around21:46
* wallyworld_ reads backscroll21:47
wallyworld_dpb1: juju has tools for maintaining simplestreams metadata for using your own images. see "juju help metadata"21:48
wallyworld_you basically generate the json files and put them in your cloud storage (or elsewhere and then use image-metadata-url to point to that location)21:49
wallyworld_see also the 1.16 release notes for a little more information21:49
dpb1thumper: openstack21:49
wallyworld_i'm not sure how up-to-date the online docs are yet21:50
dpb1wallyworld_: thanks, I will read that.21:50
wallyworld_if openstack, easiest to put the custom metadata in the "control buket"21:50
* dpb1 nods21:50
wallyworld_i'll be afk for 30 mins or so soon but can answer any questions when i get back21:51
natefinchwow, that was actually a lot more positive that I expected :)  That simplestreams stuff is pretty sweet :)21:53
thumpernatefinch: sinzui21:54
thumperugh21:54
thumperEWRONGCHAN21:54
dpb1thx all... I'll ping back if I run into issues.21:55
natefinchthumper: I'm just going to keep switching channels for the fun of it21:56
maxcanhey22:49
maxcani have a question about writing a charm which will run a docker container22:50
maxcanthe docker instructions say that on ubuntu precise, you need to upgrade the kernel and reboot to install docker, but doing that inside a juju install hook seems wrong22:51
maxcanis there a "right way" to do this?22:51
maxcanalternatively, is it possible/safe to have juju agents running newer versions of ubuntu than precise?22:51
maxcanmarcoceppi, lazypower, if you're around :)22:58
marcoceppimaxcan: you can write your charm for any series of Ubuntu, precise, raring, saucy, and now trusty22:59
marcoceppimaxcan: we have a few charms that do reboot servers, though it's not exactly a recommended practice22:59
marcoceppimaxcan: juju agents should pick up where they left off with hook execution, though it'll attempt to re-run the install hook (since it never completed) you'l have to have idemopotency guards to make sure it doesn't loop reboot23:00
maxcanmarcoceppi: so is there anything i need to do besides putting it in a raring/ or saucy/ directory instead of precise?23:00
marcoceppimaxcan: some of the openstack charms do reboots for kernels23:00
maxcangot it23:00
maxcanty sir23:00
maxcanso one of my other developers was wondering if its possible to use custom AMIs with juju.23:01
marcoceppimaxcan: no, charmers are guarenteed to get the Canonical blessed image for each cloud23:14
lazypower+1 to that23:14
lazypowerhttps://lists.ubuntu.com/archives/juju/2013-April/002389.html23:14
marcoceppimaxcan: whatever customizations you do to the AMI should just be included in the charm23:14
maxcansounds good to me23:14
lazypower^ this suggests it was on its way back in but the tribunal has ruled against it?23:14
lazypowermarcoceppi: wait, so with that being said, does that mean it's a safe assumption that my charm's are going to be deployed on ubuntu only, and if i make that assumption just plug it into the readme and go?23:15
marcoceppilazypower: charms are currently tied to a series23:15
lazypowerOh man, i love that23:16
lazypoweri dont know why i didn't think of that earlier, i was trying to get heady with supporting some really ancient stuff.23:16
marcoceppilazypower: we may be adding additional support for OS outside of Ubuntu, but that's why charms are locked to a series branch, ie precise23:16
marcoceppilazypower: either way, charms will always denote what platoform they support23:16
lazypowercode cleanup incoming in light of recent news.23:16
=== CyberJacob is now known as CyberJacob|Away

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