/srv/irclogs.ubuntu.com/2014/02/14/#juju.txt

=== thumper is now known as thumper-afk
lazyPowermarcoceppi: you got it01:18
marcoceppilazyPower: I cowboy'd01:19
lazyPoweri see this01:19
lazyPoweri was baking a cake.. sorry. :P01:19
marcoceppiomgcake01:19
marcoceppilazyPower: I do have another plugin for your review01:19
lazyPowerred velvet with cream cheese icing. My inner fat boy is happy01:19
lazyPowermy outer fatboy is cursing me01:19
marcoceppiand I want to set up some travis testing to do like basic "Are all files executable, do they respond to --help and --description" etc01:20
marcoceppiI'm not allowed to bake anymore, because I keep eating all the things I bake01:20
lazyPowermarcoceppi: ping me when you have the open MR, and i'll pull + review01:20
JoshStrobllazyPower: Hey I made a Juju plugin and did a pull request (https://github.com/juju/plugins/pull/3), mind reviewing it and merging it upstream?01:37
lazyPowerJoshStrobl: ack, on it01:38
JoshStrobllazyPower: Thanks01:40
JoshStroblAnyways, going to bed now. Talk to you guys later!01:41
=== thumper-afk is now known as thumper
marcoceppilazyPower: uh, it's not executable, probably shouldn't have been merged yet01:50
lazyPowermarcoceppi: i was going to fix it and push a patch01:50
lazyPowerno bueno?01:51
marcoceppiah01:51
lazyPoweri'm catching my repository back up, i cloned upstream on my laptop instead of my fork01:51
lazyPowerso, doing the shuffle :)01:51
* marcoceppi makes travis.yml file for linting01:51
marcoceppinp np01:51
lazyPowermarcoceppi: open PR, i wont merge it :P01:58
marcoceppiI'm still making the travis file. Trying to figure out how to test that all files are executable, and respond to --description and --help01:59
lazyPowermarcoceppi: you can have the travis.yml call a bash file right?02:01
marcoceppilazyPower: I think so02:02
marcoceppilazyPower: in the mean time02:02
marcoceppihttps://github.com/juju/plugins/pull/502:02
marcoceppibah, I haven't added my prettyprint plugin yet02:03
lazyPoweryep02:05
lazyPoweri was about to say, its giving me an invalid option for prettyprint02:05
marcoceppilazyPower: yeah, let me add pprint02:05
marcoceppibut also fix it so it doesn't suck02:05
lazyPowerwell there goes my idea for a plugin :P02:06
lazyPoweri was going to parse juju status to condense it down to a more compact format02:06
lazyPowermarcoceppi: idea for the repository - an ansilliary script to enable/disable some of these plugins. As the repository grows this is going to get bloated02:09
marcoceppilazyPower: if the repo grows I'll build the plugin repository site02:09
marcoceppiso you can just run `juju plugin install <plugin>`02:09
lazyPowerbueno02:10
marcoceppithat would be a nice problem to have02:10
* marcoceppi already registered jujuplugins.com02:10
lazyPoweryeah, i recall all of that talk02:10
lazyPowerjorge and hatch talked you out of going full monty out the gate02:10
marcoceppiyeah, I was all ready to go02:16
lazyPowermarcoceppi: brb, moving my quassel-core02:16
=== lazypower_ is now known as lazypower
lazyPower_sweet02:36
lazyPower_that was painless02:36
=== lazyPower_ is now known as lazyPower
lazyPowermarcoceppi: if you ever need to do that, stop the quassel-core daemon, and copy the .conf and .sqlite db (or pgsql if you're using that), dont copy the pem, it'll break your ssl connections.02:37
marcoceppilazyPower: cool02:37
=== freeflying_away is now known as freeflying
=== mwhudson is now known as zz_mwhudson
=== timrc is now known as timrc-afk
=== CyberJacob|Away is now known as CyberJacob
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
jamespagemarcoceppi, mysql-server-5.6 is now in trusty btw09:11
cargillhow do you maintain the charmed software up-to-date? say a new point release is out, no changes to the charm need to be made and users want to upgrade, is there a hook you use to install updates?09:44
cargillif the documentation says that "Internet access will be restricted from the testing host", what does that mean? does that mean that a charm trying to get the sources of the software might fail or that the test code cannot access the outside?12:24
marcoceppijamespage: awesomeee13:02
jamespagemarcoceppi, it needs some polish but its functional13:02
marcoceppicargill: that means that we also test how well the charm works offline, but most testing environments have no restrictions13:03
=== timrc-afk is now known as timrc
=== freeflying is now known as freeflying_away
=== natefinch is now known as natefinch-afk
=== amol_ is now known as amol
plarsI seem to be hitting something that looks very much like https://bugs.launchpad.net/juju-core/+bug/1275282 which is supposed to be fixed, but I'm on 1.17.2-0ubuntu315:29
_mup_Bug #1275282: juju bootstrap fails on HP Cloud unless tools are already uploaded <juju-core:New> <https://launchpad.net/bugs/1275282>15:29
plarsaccording to the bug, it was fixed in 1.17.1 though15:30
marcoceppiplars: what version of juju are you running, `juju version`?15:31
plarsmarcoceppi: 1.17.2-trusty-amd6415:31
marcoceppiplars: are you abel to bootstrap? and if not could you pastebin `juju boostrap --debug --show-log`?15:31
plarsmarcoceppi: no, bootstrap doesn't work. I have output from it but not with those options, let me do that... give me a moment15:32
plarsmarcoceppi: ok, with some bits scrubbed for security and some for brevity: http://paste.ubuntu.com/6931844/15:50
marcoceppiplars: do you have a custom image stream for this environment?15:51
plarsmarcoceppi: no, I don't think so15:51
marcoceppiit seems like it's failing to get https://streams.canonical.com/juju/tools/releases/juju-1.17.0-precise-amd64.tgz but that address is resolvable15:52
marcoceppiI also have no idea why it's picking 1.17.0 instead of 1.17.2 tools15:52
marcoceppiplars: if you open your environments.yaml, do you see anything with image-metatdata or tools-url for your hp cloud environment?15:53
plarsimage-metadata-url: https://region-a.geo-1.objects.hpcloudsvc.com/v1/11289530460295/images15:54
plarsmarcoceppi: yes15:54
marcoceppiplars: ah, okay, comment that line out of your environments.yaml15:54
marcoceppiplars: then `rm -f ~/.juju/environments/<name-of-hp-cloud-environment>.jenv`15:55
plarsmarcoceppi: which I think I just got from a wiki, and I thought it was necessary to make it work15:55
plarsI'll try it without though15:55
marcoceppiplars: then bootstrap again with --debug --show-log, etc15:55
marcoceppisee if it works now15:55
marcoceppiit was needed for 1.17.0, but since 1.17.1 streams are fixed15:55
plarsah, ok15:55
plarsmarcoceppi: I'm trying it now, but I already saw this fly by:15:57
plars2014-02-14 15:56:33 INFO juju.environs.bootstrap bootstrap.go:58 picked newest version: 1.17.015:57
plarsmarcoceppi: doesn't work at all without that line:15:58
plars2014-02-14 15:56:36 ERROR juju.cmd supercommand.go:294 cannot start bootstrap instance: index file has no data for cloud {region-a.geo-1 https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/} not found15:59
marcoceppisinzui: ^^15:59
sinzuiI have never seen that error, but I understand that HP cloud is very ill for new users and their new regions16:00
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
JoshStroblWow, Ubuntu moving to systemd. This is exciting news.17:03
JoshStroblWell, at least improving support for it (according to Shuttleworth's blog). Anyways, back to work I go.17:06
plarssinzui: any ideas how to get around it?17:08
plarssinzui: I think when I previously tried bootstrapping and deploying things from saucy it worked, but now on trusty it does not17:09
sinzuiplars, which 1.17.2 and 1.16.6 are working fine in  region: az-3.region-a.geo-1 (looking at recent test runs)17:15
plarssinzui: I *am* running 1.17.217:16
plars1.17.2-0ubuntu3 specifically17:16
sinzuiplars, I just bootstrapped on Hp from trusty with that version17:17
sinzuiplars, so I suspect the region is the issue, and that does relate to what I have head about sick regions17:18
plarssinzui: I just specify region-a.geo-1 in my environments.yaml, so I guess I need the az-3 there also?17:20
plarsnope17:20
plarssame error17:20
plarsERROR bootstrap failed: cannot start bootstrap instance: index file has no data for cloud {region-a.geo-1 https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/} not found17:20
sinzuiplars, I definitely authenticated to that URL when using17:22
sinzuiregion: az-3.region-a.geo-117:22
sinzuiplars, are you a new HP Cloud user? as of this year?17:22
plarssinzui: yes17:22
plarssinzui: I've had it bootstrapped before when I was on saucy though17:22
plarssinzui: and even had things deployed to it17:22
sinzuiplars, this is the config I use to bootstrap a few minutes ago: http://pastebin.ubuntu.com/17:25
plarssinzui: that's just pastbin alone17:26
sinzuiplars, sorry,17:29
sinzuiplars, http://pastebin.ubuntu.com/6932350/17:29
plarssinzui: ah, you have a tools-url17:29
sinzuiI do. that makes download of tools faster, but I don't think it matters for authentication17:30
sinzuiplars, for 1.17.x, the key was rename tools-metadata-url. I use the old name because I test on 1.16 too17:31
plarssinzui: ok, but before I removed my image-metadata-url I was not getting this error17:33
plarssinzui: now I put it back and I get yet a different one17:33
sinzuihmm.17:34
plarsjust out of curiosity, let me try again with 1.16.3-0ubuntu0.13.10.1 (saucy)17:34
plarsyes, bootstrap worked fine there (same config)17:34
sinzuiplars, what was image-metadata-url set too?17:37
plarssinzui: https://region-a.geo-1.objects.hpcloudsvc.com/v1/11289530460295/images17:38
plarssinzui: according to marcoceppi that used to be needed but not now17:38
plarsnow even if I put it back, I get a totally different error on trusty17:39
sinzuiI am not sure the data there is sane....https://region-a.geo-1.objects.hpcloudsvc.com/v1/11289530460295/images/streams/v1/com.ubuntu.cloud:released:imagemetadata.json17:39
plarsah, because of the region change17:40
plarsok, changing my reation back to just region-a.geo-1, I am getting back to the original failure17:40
sinzuiplars, It has less info than http://cloud-images.ubuntu.com/releases/streams/v1/com.ubuntu.cloud:released:hpcloud.json17:42
sinzuiI wonder if  setting image-metadata-url: https://cloud-images.ubuntu.com/releases17:44
sinzuiworks17:44
sinzuiplars, ^17:44
sinzuilooking at the debug log during boot I can see my image-metadata-url is implicitly  http://cloud-images.ubuntu.com/releases17:48
=== JoshStrobl is now known as JoshStrobl-afk
plarssinzui: and with that url for image-metadata-url, I wind up right back at:17:58
plarsERROR bootstrap failed: cannot start bootstrap instance: index file has no data for cloud {region-a.geo-1 https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/} not found17:58
plarssinzui: I don't understand the internals of it, but I'm guessing there's some index file it's looking for there?17:59
sinzuiplar, that is the webservice that does authentication to uses hp-cloud17:59
sinzuiplars, file a bug at bugs.launchpad.net/juju-core . I need to pass this to developers, and most have reached their EoW18:04
sinzuiplars, they probably want you to "bootstrap --debug" to capture more details about what juju is doing18:05
=== natefinch-afk is now known as natefinch
viperZ28any plans to make juju more PaaS aware?19:11
lazyPowerviperZ28: can you be a bit more specific in what you're asking?19:21
viperZ28I was using local and I just started to look at this yesterday so I am newbie, but I was wondering once JuJu is setup any number of developers can have access to the same environment?19:24
marcoceppiviperZ28: well, you can allow developers to access the same cloud deployment19:26
marcoceppiviperZ28: juju is unique in that it's poth paas and not paas at the same time19:27
viperZ28lazyPower: let me gather my thoughts on this and come back. I am currently using Stackato (CloudFoundry) so it is a shift in thinking. I agree about it being a PaaS and not a PaaS.19:28
viperZ28I was amazed how easy it was to deploy a RabbitMQ clustered environment but I later had issues as some of the nodes crashed.19:28
marcoceppiviperZ28: you can use juju to deploy cloud foundry :) but also deploy it's own apps. You can even use juju to deploy openstack on bare metal then deploy cloudfoundry on top of the openstack that was deployed by juju using juju19:29
marcoceppiit's a very unique tool in the ecosytem of tools to use19:29
viperZ28Are there plans for vsphere integration?19:30
viperZ28and docker19:30
marcoceppiviperZ28: we're working on docker integration19:40
chris38home_Hi when will it possible to start to play with juju/trusty ?19:41
lazyPowerchris38home_: You can already use juju on trusty.19:42
chris38home_yep, but there was no charms for trusty, in charm-gui ?19:51
chris38home_in juju-gui19:51
chris38home_no juju-gui indeed19:52
sarnoldchris38home_: the charms themselves may need some modification before they work on trusty19:52
sarnoldchris38home_: I believe you can easily copy them all into a repo of your own, change the targeted version, aim juju to your local repository, and start testing..19:53
marcoceppichris38home_: we've got an effort to add testing to all charms so we can make sure they work on trusty before promoting them19:53
sarnoldmarcoceppi: nice :)19:53
marcoceppiYou'll probaby see a lot of charms land for trusty a few weeks leanding up to the trusty release19:54
chris38home_nice19:54
hazmatsinzui, is manual provider part of qa?20:12
sinzuihazmat, no20:13
sinzuimay in the next two weeks though20:13
viperZ28I have a few units that show "life: dying" since yesterday, anyway to force restart juju or the services?20:30
hazmatsinzui, would be good, i'm seeing a few regressions on trunk and its being used for prod work fwiw20:33
hazmatviperZ28, version?20:34
viperZ28juju version20:34
viperZ281.16.6-precise-amd6420:34
viperZ28also all my instance show "instance-state: missing", I am using local20:34
lazyPowerviperZ28: there has been quite a bit of effort into the 1.17 series of juju, which is in ppa:juju/devel right now. I ran into some issues with local prior to the upgrade of -dev series.20:40
lazyPower^ in regards to the local provider.20:40
viperZ28thanks, I will take a look. I had heard the code was forked at some point, one python and one go, is there any truth to this?20:41
lazyPowerThat happened a while ago. Juju is mostly Golang now. I think it was the 1.15 series but dont quote me on that. I'll have to dig to find that version where it changed.20:43
rick_h_lazyPower: 1.020:44
rick_h_I believe20:44
lazyPowerah, so much further behind us than I was thinking20:46
lazyPowergood looking out rick_h_ *hat tip*20:46
marcoceppilazyPower: yeah, last python release was 0.7, first golang was 1.020:47
marcoceppiviperZ28: I think you can run juju terminate-machine --force <machine-number> to get rid of the dying but not dead yet20:47
viperZ28marcoceppi: thanks20:48
viperZ28how can I start all over? I want to switch to the dev branch20:50
marcoceppiviperZ28: run sudo juju destroy-environment local20:50
viperZ28thanks!20:50
marcoceppiviperZ28: then sudo add-apt-repository ppa:juju/devel; sudo apt-get update; sudo apt-get install juju-core20:50
marcoceppithen bootstrap and roll out20:50
viperZ28https://www.irccloud.com/pastebin/SpHP3MwK20:51
marcoceppiviperZ28: that means your destroy-environment didn't clean up very well20:51
marcoceppiviperZ28: here are instructions on how to resolve that:20:51
marcoceppihttp://askubuntu.com/a/403619/4120:53
viperZ28thanks again20:55
cjohnstonhazmat: ping20:59
viperZ28where can I find the logs?21:16
marcoceppiviperZ28: for local provider, they're in ~/.juju/local/log21:17
viperZ28I tried to install juju-gui, which worked before21:20
viperZ282014-02-14 21:18:33 WARNING juju.worker.instanceupdater updater.go:231 cannot get instance info for instance "": no instances found21:20
viperZ28https://www.irccloud.com/pastebin/blkSC54r21:20
viperZ28https://www.irccloud.com/pastebin/nSv5sJxD21:21
viperZ28seems container is out of sync21:25
viperZ28marcoceppi: need to add 'sudo rm -rf /var/lib/lxc' to the cleanup process (the link you gave me earlier) https://bugs.launchpad.net/juju-core/+bug/122714521:31
_mup_Bug #1227145: Juju isn't cleaning up destroyed LXC containers <cts-cloud-review> <local> <papercut> <juju-core:Fix Released by thumper> <https://launchpad.net/bugs/1227145>21:31
marcoceppiviperZ28: it's just for 1.16, it's been fixed in 1.1721:31
viperZ28juju version21:32
viperZ281.17.2-precise-amd6421:32
viperZ28those were probably still there from my initial 1.16 install21:32
marcoceppiviperZ28: likely21:35
viperZ28destroying "/var/lib/lxc" is not a good idea either :-) Directory has to be there21:36
chris38home_ looks like juju (1.17.2) add-machine lxc has a bug, using br0 instead of lxcbr0 in /etc/lxc/auto/juju-machine-0-lxc-0.conf21:39
marcoceppichris38home_: you'll want to open a bug about that asap so it gets fixed by the next stable21:40
chris38home_though /etc/lxc/default.conf has the good value (on a precise host)21:41
viperZ28can someone help me understand relations?21:52
marcoceppiviperZ28: sure, what doesn't make sense?21:52
viperZ28I pushed a tomcat and a mysql charm, I would like to push an app to the tomcat instance and have it bound to the mysql21:53
viperZ28is that possible?21:53
viperZ28or do charms have to implicitly define a relation point?21:53
marcoceppiviperZ28: charms have to explicitly define each relation/interface they connect to21:54
viperZ28so if I can find/build a tomcat charm that defines a mysql relation then how would the credentials appear to the app?21:55
marcoceppiviperZ28: so the mysql interface says that if you /require/ a relation with the mysql interface whatever service provides the mysql interface will send those credentials21:57
viperZ28this pretty much answers my question http://manage.jujucharms.com/~robert-ayres/precise/tomcat21:57
chris38home_marcoceppi : https://bugs.launchpad.net/juju-core/+bug/128046121:57
marcoceppiviperZ28: so in db-relation-changed you can run `relation-get` to get the various keys21:57
marcoceppichris38home_: ta, the QA team will triage and prompt you for any additional details21:57
viperZ28so this is sort of the paas/not a paas. By default you don't get wiring for various services but it seems you can build those yourself to handle that.22:00
marcoceppiviperZ28: well charms define what they can talk to22:00
marcoceppiit's more like legos22:00
marcoceppiso there are a few charms that provide the MySQL interface, there's a MySQL charm, a percona charm, etc22:01
viperZ28how can I inspect a charm?22:01
marcoceppiviperZ28: you can view it in the charm browser, or download it with charm tools22:01
marcoceppihttp://manage.jujucharms.com/~robert-ayres/precise/tomcat22:02
viperZ28is it possible to view service settings via command line?22:06
marcoceppiviperZ28: yes, juju get <service>22:08
viperZ28marcoceppi: sweet!22:08
viperZ28thanks22:08
viperZ28it would be nice if it handled NATing22:13
* chris38home_ seeing that he can do juju add-machine kvm:0, is this curently working ?23:42
marcoceppichris38home_: eh, it probably works? Its a new feature23:58
marcoceppichris38home_: you can also do juju deploy --to kvm:0 (or lxc:0)23:58

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