/srv/irclogs.ubuntu.com/2014/06/12/#juju.txt

joseguys, is it possible to use Juju with Rackspace?01:21
davecheneyjose: yes01:23
josedavecheney: where should I put the info? on the openstack part of the config01:23
jose?01:23
davecheneydepends, if rackspace looks close enough to openstack then you could try the openstack provider01:24
davecheneyor you could use the ssh provider and manually provision some machines for your environment01:24
joseoh, I meant to use Rackspace automagically like it's done with AWS or HPCloud, for example01:24
thumperjose: if rackspace offers the same api endpoints as the openstack provider wants, then yes01:38
thumperjose: if it doesn't, then no01:38
thumperfor using the openstack provider01:38
joseI'm not exactly sure, that's why I was asking :)01:38
joseI'll check, though01:38
thumperI'm not sure if any of the core devs have tried01:38
thumperI certainly haven't01:38
lazyPowerjose: you need to use the manual provider. Rackspace doesn't have an object store.01:47
joseack, thanks01:47
thumperlazyPower: ah.. if that is all, hopefully soonish... we will be able to01:50
lazyPowerthumper: thats teh only thing off the top of my head - i dont know about their API endpoitns01:51
rick_h_thumper: lazyPower for the longest time they didn't have cloud-init enabled on the OS images and such.02:15
rick_h_thumper: lazyPower that's changed in the last few months02:15
rick_h_jose: but I use the manual provide and works well if a bit more manual than hoped02:16
josecool, thanks rick_h_02:16
AskUbuntuMAAS and Openstack Network | http://askubuntu.com/q/48209003:45
AskUbuntuAdd Nodes to MAAS for JUJU Bundle | http://askubuntu.com/q/48209404:11
AskUbuntuWhere to see the complete list of juju charms available? | http://askubuntu.com/q/48210304:49
=== vladk|offline is now known as vladk
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
sparkiegeekis there a "preferred" way of including trademark/copyright information in a charm? specifically with regards the charm logo.11:06
rbasakjamespage: ping. Can we talk about this Trusty SRU when you have some time please?11:24
jamespagerbasak, sure - let me just eat lunch and I'll be back11:27
rbasakOK11:27
pindongahi, while I thought I managed to fix this... I'm still having issues with the local provider: when I deploy some instances (eg, wordpress/mysql) the are kept in the pending state for a long time, and then they failed due to the template taking too long and then the second machine failing bc it couldn't clone a running template12:11
pindongaI managed to work around this by destroying the environment and starting over (now that the template is finally complete)12:12
pindongabut I thought it worth to mention12:12
jamespagerbasak, back12:24
rbasako/12:24
rbasakjamespage: so I need to land this 1.18.4, which has ~20 bugs fixed. Trusty is on 1.18.0 at the moment.12:25
rbasakThis is something that I'd want an MRE for. Preparing SRU paperwork for 20 bugs is going to be a pain otherwise.12:25
rbasakIs that what I need to do? I'm not sure all of them are individually SRU-worthy either.12:25
rbasakOr, any other guidance on how to proceed?12:26
rbasakOh Trusty is on 1.18.1 I think, sorry.12:26
rbasakStill, it's a fairly big bump in terms of commits.12:26
jamespagerbasak, I agree that we need a MRE but this was pretty much nacked by pitti when I applied for it12:28
jamespagerbasak, I'd email off that thread about what we need todo now and ask again12:28
jamespagewe can have a list of things that have been fixed12:28
* rbasak looks12:28
rbasakAh, I see it12:29
rbasakhttps://lists.ubuntu.com/archives/technical-board/2014-April/001877.html12:29
rbasakjamespage: OK, thanks. I'll prepare the tracker bug and reply to https://lists.ubuntu.com/archives/technical-board/2014-April/001924.html I think.12:31
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
lazyPowersparkiegeek: wrt you copyright/trademark question - yes. You can place that info in the Copyright file14:06
lazyPowerthere's a specific directive that marcoceppi showcased yesterday in his charm development track that shows how he denotes multiple levels of copyrighted material being included in a charm.14:06
sparkiegeeklazyPower: ok, great. Thanks14:07
=== revagomes_ is now known as revagomes
marcoceppiarosales: yeah14:56
=== isviridov is now known as isviridov|away
Egoisthey16:59
=== psivaa is now known as psivaa-afk
Egoistis there any way to pass data between instances but not by relation-set?16:59
marcoceppiEgoist: no17:05
Egoistmarcoceppi: ok. But data is taken from config.yaml, is ther any way to change this file while charm is running?17:07
marcoceppiEgoist: no, you can only change configuration values from the user17:08
marcoceppicharms can't change their own or others17:09
ali1234I tried to follow http://askubuntu.com/questions/65359/how-do-i-configure-juju-for-local-usage and i got "error bootstrapping a local environment must not be done as root"17:10
lazyPowerali1234: which version of juju are you using?17:10
ali1234the version in 14.0417:11
lazyPowerali1234: that looks like your Ubuntu series. can you show me the output of juju --version17:11
ali1234yes, it is my ubuntu series. i am using the version which ships with ubuntu 14.0417:11
ali12341.18.1-trusty-amd6417:12
lazyPowerdo you have the juju-local package installed? it should have prompted you for sudo rights during the bootstrap17:12
ali1234yes17:12
ali1234i followed the instructions on askubuntu exactly17:12
ali1234it did prompt for sudo password17:13
ali1234http://paste.ubuntu.com/7634650/17:14
ali1234when i try to run it without sudo like it tells me to, it says this: http://paste.ubuntu.com/7634653/17:15
sarnoldyikes17:15
sarnoldcheck dmesg output for anything 'strange'. that's mighty odd looking...17:16
ali1234http://paste.ubuntu.com/7634668/17:16
sarnoldall looks normal there17:17
leftyfbI'm trying to setup a juju local provider on my laptop here but can't seem to get it working. juju init works fine, I edit the config and change default to local, then juju bootstrap.....17:30
leftyfbjuju status gives me this:17:30
leftyfbERROR state/api: websocket.Dial wss://10.0.2.1:17070/: dial tcp 10.0.2.1:17070: connection refused17:30
leftyfbmongodb is in fact running on 3701717:30
leftyfbthere's no iptables rules in play17:30
leftyfbit doesn't seem like juju is creating the lxc container when bootstrapping17:31
leftyfbalso seeing this in debug:17:31
leftyfb2014-06-12 15:56:04 DEBUG juju.environs.simplestreams simplestreams.go:388 fetchData failed for "file:///home/leftyfb/.juju/local/storage/tools/streams/v1/index.sjson": stat /home/leftyfb/.juju/local/storage/tools/streams/v1/index.sjson: no such file or directory17:31
Egoistmarcoceppi: change configuration values from the user -> What does it mean?17:35
leftyfbalso seeing this in /var/log/machine-0.log17:35
leftyfb2014-06-12 16:54:39 DEBUG juju.agent agent.go:384 read agent config, format "1.18"17:35
leftyfb2014-06-12 16:54:39 ERROR juju.cmd supercommand.go:305 symlink /home/leftyfb/.juju/local/tools/machine-0/jujud /usr/local/bin/juju-run: no such file or directory17:35
lazyPowerEgoist: meaning that only users can change the values defined by config.yaml17:37
EgoistlazyPower: Ok i get it. Thanks17:37
lazyPowerleftyfb: looks like you're missing the simpestreams stuff that bootstrap should be fetching for you. is there a cached cloud image  in /var/cache/lxc for cloud-trusty / cloud-precise?17:38
lazyPowerali1234: i'm sorry i dont know why its throwing a stack trace at you. thats a great candidate for a bug http://launchpad.net/juju-local17:38
leftyfblazyPower: /var/cache/lxc/trusty/rootfs-amd64 exists with what looks like a complete filesystem17:39
lazyPowerleftyfb: it should be creating cloud-trusty and cloud-precise iirc17:39
lazyPowerthe cloud-* are the cloud images that juju uses to create your containers. It may be prudent to 'nuke from orbit' your in progress components to build the lxc containers and start over. There's a plugin at http://github.com/juju/juju-plugins that warehouse this utility and has installation instructions - its 'juju clean'17:40
lazyPowerI've got to get ready for my UOS track however, good luck. I'll stop in to check on you once my session is over17:41
ali1234launchpad is kaput :(17:47
leftyfblazyPower: that script/plugin only does 3 steps(and not sufficiently) that i've been doing over and over again trying to debug this issue.17:48
sarnoldali1234: sorry, lazyPower had the wrong url, use this one: https://bugs.launchpad.net/ubuntu/+source/juju-core/+filebug17:50
lazyPowerleftyfb: https://github.com/marcoceppi/plugins/commit/1c315f40fcc6e3102b4be5a4aa11544218159fd017:50
ali1234sarnold: i did not use the url, i used ubuntu-bug17:50
ali1234launchpad timed out while i tried to submit the report17:50
sarnoldali1234: eep.17:50
marcoceppilazyPower: can you review/merge that?17:51
ali1234i will just do it again17:51
lazyPowermarcoceppi: i'd love to but i cant merge, i can only comment.17:51
marcoceppiwhat, why not? Aren't you in the juju group?17:51
lazyPowerWAIT17:52
lazyPoweri was looking at your repo, whoops17:52
marcoceppiw/e cowboy'd it17:52
lazyPowerneat17:52
ali1234cool, now i crashed apport17:53
leftyfblazyPower: is this a typo somewhere? :17:56
leftyfb2014-06-12 17:55:49 DEBUG juju.environs.simplestreams simplestreams.go:362 cannot load index "file:///home/leftyfb/.juju/local/storage/tools/streams/v1/index.sjson": invalid URL "file:///home/leftyfb/.juju/local/storage/tools/streams/v1/index.sjson" not found17:56
leftyfbshould it be index.json , not index.sjson?17:56
marcoceppileftyfb: it checks for both17:57
leftyfbso it does17:57
leftyfb2014-06-12 17:55:49 DEBUG juju.environs.simplestreams simplestreams.go:388 fetchData failed for "file:///home/leftyfb/.juju/local/storage/tools/streams/v1/index.json": stat /home/leftyfb/.juju/local/storage/tools/streams/v1/index.json: no such file or directory17:57
leftyfb#leftyfb@blanchard[0]:~$ ls -l .juju/local/storage/tools/streams/v1/index.json17:57
leftyfb-rw------- 1 leftyfb leftyfb 1152 Jun 12 13:55 .juju/local/storage/tools/streams/v1/index.json17:57
leftyfbnm, looks like it writes it further down17:58
leftyfbhttps://pastebin.canonical.com/111613/17:59
sebas5384there's a way to select a node(machine) from maas, when deploying a service?18:24
sebas5384i'm planning to have different constraints in each node, so I would like to choose which one is going to be used18:25
leftyfbsebas5384: juju deploy mysql --to 318:25
sebas5384leftyfb: yeah, but thats when the machine is already mapped by the juju18:25
leftyfbyou can also use constraints18:26
leftyfbhttps://juju.ubuntu.com/docs/reference-constraints.html18:26
sebas5384leftyfb: thanks!!18:29
sebas5384that was exactly what i was looking for18:29
sebas5384maas-name and maas-tags will be the solution18:30
sarnoldsebas5384: why do you want to select one specific node rather than just using e.g. cpu and memory constraints?18:30
sebas5384sarnold: because my client is going to provide the servers vms18:31
sebas5384the first battle was to implement juju and maybe maas18:31
sebas5384sarnold: IaaS is still going to be another battle for me18:32
sebas5384hehe18:32
sarnoldsebas5384: ahh, okay. :) I've just been happy to say "I want a big machine" or "I want a small machine" when deploying services in our cloud18:32
sebas5384juju > maas > node > X vmware vm18:32
sarnoldsebas5384: not knowing or caring how it happens is part of what I like :)18:32
jcastromarcoceppi, how long is `juju clean local` supposed to take?18:32
marcoceppijcastro: 2-3 mins18:33
jcastroack18:33
marcoceppiat most18:33
leftyfbjcastro: I've found if it's taking long, it's due to permissions on ~/juju18:33
sebas5384yeah sarnold! thats going to happen some day18:33
leftyfber, ~/.juju18:33
jcastrodoes it log anywhere?18:33
sebas5384but first i have to prove some concepts, it's a big and political company18:33
leftyfbjcastro: nope, hit CTRL+C and you'll see the errors18:33
jcastroyep, correct!18:34
leftyfbmarcoceppi: the script should use sudo or chown before trying to delete ~/.juju18:34
sebas5384juju clean ?18:34
sebas5384thats a new command?18:34
marcoceppileftyfb: it uses sudo when it needs to18:34
jcastrois sudo juju clean a good idea?18:34
marcoceppijcastro: no18:34
leftyfbmarcoceppi: when deleting ~/.juju, it needs to18:34
jcastroI never got prompted to put in a sudo pw18:35
marcoceppileftyfb: bugs and pull requests welcome18:35
jcastrobut with the local provider .juju/local is owned by root18:35
marcoceppijcastro: it shouldn't be anymore18:35
jcastrok, your example command is wrong too, I'll submit a PR for that tonight18:36
leftyfbi'm having bad luck with juju all around18:37
leftyfbmy laptop won't bootstrap, and I just installed juju-local on the maas server in our lab here and it's stuck pending for juju-gui on machine 1 which says it's precise, even though the server is trusty.18:38
leftyfbalso, according to jcastro's session the other day, using juju quickstart should put juju-gui onto machine 0 along with the bootstrap. That's not happening on the maas server18:39
sebas5384ooh!! https://github.com/juju/plugins/blob/master/juju-clean18:40
lazyPowersebas5384: you got an honorable mention in my UOS track18:41
sebas5384ooh yeah?? \o/18:41
lazyPowerleftyfb: have you specified a default-series in your ~/.juju/environments.yaml?18:41
lazyPowersebas5384: yeah - wrt the vagrant plugin we'll be working on18:41
sebas5384lazyPower: \o/18:42
sebas5384great!18:42
lazyPowerI feel like my track was meh, but in retrospect i'm feeling pretty beat up this week. Looking forward to recharging over the weekend.18:42
lazyPowerget some Vitamin D, it wont be all rainy and blah outside18:42
leftyfblazyPower: I didn't do so on the maas server ... to be honest I only installed juju on there to confirm that something was wrong with the setup on my laptop(confirmed)18:42
sebas5384lazyPower: i know that feeling ¬¬18:42
jcastrohttps://bugs.launchpad.net/juju-core/+bug/132942518:43
_mup_Bug #1329425: Fatal out of memory error when bootstrapping on Azure <juju-core:New> <https://launchpad.net/bugs/1329425>18:43
jcastroanyone see this before?18:43
lazyPowerleftyfb: ok. That should correct the container series you see - but also during bootstrap its downloading a 200mb cloud image file - so it takes a couple of minutes to complete the first time. but i'm pretty sure you're aware of this since we checked /var/cache/lxc18:43
lazyPowerleftyfb: where are you in terms of debug/nuking/retrying?18:43
leftyfblazyPower: i've nuked several times ... give me a few to move out of the lab and go nuke again and start over18:44
lazyPowerack. ping when ready18:44
lazyPowersebas5384: so, now that its been phaux announced, we need to hammer out a time to do that sync we've been pending18:44
sebas5384yeah lazyPower absolutely!18:45
leftyfblazyPower: my nuke involves much more hulk :)18:46
lazyPowerleftyfb: oh man, sounds serious18:46
sebas5384lazyPower: what about 5pm EDT ?18:47
sebas5384friday18:47
lazyPowersebas5384: sure. I'm goign to send a calendar invite.18:49
sebas5384great!!18:49
sebas5384lazyPower: when is your track?18:49
lazyPowersebas5384: already wrapped about 10 minutes ago18:50
ali1234bug 132942918:50
_mup_Bug #1329429: local bootstrap fails <amd64> <apport-bug> <trusty> <juju-core (Ubuntu):New> <https://launchpad.net/bugs/1329429>18:50
sebas5384oohhh :(18:50
jcastrois it possible to bootstrap multiple environments at once?18:50
sebas5384lazyPower: invite acepted :)18:51
lazyPowerjcastro: trying now to find out for you18:52
lazyPowerjcastro: i have 2 running atm - one for maas another for amazon18:52
lazyPowerjuju switch maas && juju bootstrap -- in another byobu terminal - juju switch amazon && juju bootstrap18:53
lazyPowerwe'll see if things blow up, it'll take ~ 5 minutes to complete for maas18:53
jcastroI might try a plugin, I want to do like "juju demo" and have it fire off a GUI in every environment in my yaml file or something18:53
lazyPowerjcastro: that would be stupid awesome. do it18:53
lazyPowerwith some clever wrapping of quickstart you could even get it all fired up in your browser ready to rock n roll18:54
jcastroyeah18:55
leftyfblazyPower: this is prettmuch my hulking of juju: https://pastebin.canonical.com/111617/18:55
jcastrosinzui, have you ever seen anything like this perchance? https://bugs.launchpad.net/juju-core/+bug/132942518:56
_mup_Bug #1329425: Fatal out of memory error when bootstrapping on Azure <juju-core:New> <https://launchpad.net/bugs/1329425>18:56
lazyPowerleftyfb: even going so far as to remove teh packages. pretty thorough.18:57
sinzuijcastro, no, Neither CI or I have ever experienced that18:57
sinzuibut that bug is old18:57
leftyfblazyPower: obviously i'm missing something because it's not working from a "fresh" install18:57
jcastrosinzui, old? I just filed it18:58
sinzuiYou should have searched18:58
sinzuiit us the first bug in the azure-provider listing, bug 125000718:58
_mup_Bug #1250007: Bootstrapping azure causes memory to fill <amd64> <apport-bug> <azure-provider> <saucy> <juju-core:Triaged> <juju-core (Ubuntu):New> <https://launchpad.net/bugs/1250007>18:58
sinzuijcastro, Did you use the cer instead of the pem?19:00
sinzuiThis confusion also affects users of the python-sdk. MS is not very clear about what they expect19:01
jcastrooh, I was using the .cer, fixing and trying with the pem19:01
jcastrosinzui, that was it, I'll update the bug, it's bootstrapping fine, thanks!19:02
jcastrosinzui, I will update the docs as frankban recommends in the master bug19:03
sinzuijcastro, I learned that today, BTW. I just wrote a script to clean up the 10 terabytes of CI tests data juju left behind. I read a lot of support pages to learn that secret19:03
sebas5384hey lazyPower i watch your session! thanks for the mention! hehe19:04
* lazyPower hides 19:05
sebas5384was a great session lazyPower o/19:06
sebas5384sorry that i missed hehe19:06
=== CyberJacob|Away is now known as CyberJacob
lazyPowerI did however, do something productive - i fixed a bug in the docs - https://github.com/juju/docs/pull/12019:09
sebas5384good one! that one was wrong since its there19:10
sebas5384xD19:10
jcastrosinzui, mirrors on azure sick? http://pastebin.ubuntu.com/7635108/19:10
lazyPowerjcastro: oh! also - all is well with running bootstraps in paralell19:16
d_`is there a way to install juju server on a server of my choosing instead of a random server of juju's choosing?19:19
josed_`: is this OpenStack, AWS, HPCloud, what?19:22
sebas5384juju upgrade-charm of a local charm is giving me an error, saying that it can't find the charm19:25
sebas5384what can be?19:25
lazyPowersebas5384: did you specify --repository path on the juju upgrade-charm command?19:25
sebas5384hmmm19:26
sebas5384lazyPower: no ¬¬19:26
lazyPowereg: juju upgrade-charm --repository=$HOME/charms myawesomecharm19:26
lazyPowersebas5384: i have a set of shell aliases when working with local repositories, because thats cumbersome to type19:26
sebas5384ahhh ok, i thought that was automatic19:26
lazyPowerhttps://github.com/chuckbutler/dotfiles/blob/master/bashaliases  <- sebas538419:26
sebas5384giving a look at lazyPower19:27
lazyPoweroh hey look at that relic jrecycle in there...19:27
* lazyPower updates19:27
jcastrolazyPower, mine was a config issue, filed some bugs, all set now19:27
jcastroother than getting an error with the mirrors19:27
jcastrogoing to wait a few minutes and try again19:27
lazyPowerahhhh hokay19:27
lazyPowerboooo on mirrors being wonky19:27
d_`jose: I'm using MAAS and it's just choosing a random physical server to install on19:27
d_`we have vmware here as well19:28
sebas5384lazyPower: nice, something like the juju clean plugin19:28
jcastrohe wants to specify where to deploy the bootstrap node it sounds like19:28
sebas5384i'm using Makefile for that hehe19:28
sebas5384could it be nice to have something like declaring repositories19:29
sebas5384or adding19:29
sebas5384for example in the environments.yaml file19:30
sebas5384repositories:19:30
lazyPowersebas5384: file a feature request19:30
sebas5384lazyPower: will do that :)19:30
=== BradCrittenden is now known as bac
=== roadmr is now known as roadmr_afk
leftyfblazyPower: https://pastebin.canonical.com/111624/19:48
sebas5384Declaring repositories in the environments.yaml -> https://github.com/juju/juju/issues/8719:51
lazyPowerleftyfb: thats really strange19:54
leftyfblazyPower: you mean it's not broken by design? :)19:57
lazyPowerleftyfb: i'm not sure what to mention here, as that issue is consistent with what the juju-clean script has thus far corrected.19:58
lazyPowerbut its progress now that its not complaining about simple-streams data19:59
leftyfb2014-06-12 19:41:57 DEBUG juju.environs.simplestreams simplestreams.go:490 fetchData failed for "file:///home/leftyfb/.juju/local/storage/tools/streams/v1/mirrors.json": stat /home/leftyfb/.juju/local/storage/tools/streams/v1/mirrors.json: no such file or directory20:00
leftyfb2014-06-12 19:41:57 DEBUG juju.environs.simplestreams simplestreams.go:567 no mirror index file found20:00
leftyfb2014-06-12 19:41:57 DEBUG juju.environs.simplestreams simplestreams.go:548 no mirror information available for { }: mirror data for "com.ubuntu.juju:released:tools" not found20:00
lazyPoweri stand corrected20:00
lazyPoweri really dont know :(20:00
lazyPowerleftyfb: have you pinged in #juju-dev to see if they know of any current issues similar to what you're seeing?20:01
leftyfbnope20:01
lazyPowerThat would be my next step, is to open a bug against this and ping with that in #juju-dev20:01
mattrae_i'm in an environment with limited internet access. when i deploy --to lxc:1, i see there is is a wget process trying to access cloud-images.ubuntu.com.. is there a right way to get around this problem in a closed environment?20:14
mattrae_here's the wget i see running http://pastebin.com/72q2BWsC20:15
mattrae_can i specify an internal location for the images perhaps?20:15
=== roadmr_afk is now known as roadmr
=== vladk is now known as vladk|offline
marcoceppihazmat: have you tried the docean plugin on Mac OSX?21:00
leftyfblazyPower: fixed it21:06
thumperdo we have a collective noun for "juju environments" ?21:26
* thumper was thinking "a collective of environments"21:26
thumperbut perhaps that is too borg21:26
marcoceppithumper: environments?21:26
thumpermarcoceppi: that isn't a collective noun21:27
thumperthink "a murder of crows"21:27
thumper"a horde of hamsters"21:27
marcoceppia bushel of environments21:27
thumperheh21:27
marcoceppia gaggle of environments21:27
* thumper briefly thought "group"21:28
thumperbut group has other meanings21:28
thumpera plethora of environments21:29
thumpera plague of environments...21:29
marcoceppithumper: cull?21:29
thumper"a host of environments"?21:29
thumperhmm...21:29
thumperI'm trying to avoid overloaded terms...21:30
thumperso trying not to have a collective noun that relates to other well known terms21:30
marcoceppiyou could call it a charm of environments21:30
thumperso I guess avoiding: host, group, insert-other-techy-term21:30
thumperthat overloads the term "charm"21:30
thumperwhich I'm trying to avoid21:30
marcoceppiI know <321:30
thumper:)21:30
lazyPowerleftyfb: nice! what was teh fix?21:31
thumperwhat about "an illusion of environments"21:31
thumperapparently it is "an illusion of magicians"21:31
leftyfbhttps://bugs.launchpad.net/juju-core/+bug/132948021:31
_mup_Bug #1329480: Cannot create juju-run symlink if /usr/local/bin doesn't exist <juju-core:New> <https://launchpad.net/bugs/1329480>21:31
marcoceppithumper: howa bout "a lot of environments"21:31
marcoceppior, better yet, alot21:31
marcoceppijust make up our own21:31
lazyPowerleftyfb: interesting... i would have assumed /usr/local/bin would just exist.21:32
leftyfbdevs should never assume :)21:32
thumpermarcoceppi: how about "an ensemble of environments"21:32
lazyPowerA Quafffel of Environments21:32
thumperleftyfb: I assumed /usr/local/bin existed21:32
* thumper thinks ensemble is cute21:32
lazyPowerthumper: i see whatchya did there21:32
thumperand a nod to pre-juju21:33
thumperdone21:33
thumperensemble of environments it is21:33
thumperadd it to the docs!21:33
thumperit's official21:33
leftyfbis it possible using juju-gui to install to a specific container?21:37
cory_fuIs there a way to ask juju for the public IP address instead of the public-address name?21:38
lazyPowercory_fu: which provider?21:39
cory_fuI mean a general way for a charm to get the public IP as opposed to the public address21:40
lazyPowercory_fu: depending on the substrate, some respodn with just teh ip. other's i've had to run through dig +short to get the proper IP21:41
cory_fuOk, that's what the charm is doing currently; I was just hoping there was a better way21:41
lazyPowerthere's an open bug on this somewhere - i'm pretty sure matt williams opened one during our sync on the DNS charm21:41
leftyfbit seems when you deploy services and then destroy them, juju-gui will leave those containers running and spin up new containers when deploying new services21:42
lazyPowerleftyfb: thats correct. by design juju will not destroy the machine after the service has been destroyed.21:42
leftyfblazyPower: and no way to re-utilize that machine for future deployments using juju-gui?21:43
lazyPowerleftyfb: not using the gui, no21:43
leftyfbbug worthy?21:43
lazyPowerleftyfb: there's an effort to bring machine-view to the juju-gui, which will alleviate some of this in the future, along with easing deployment of KVM/LXC units to a server for density21:44
leftyfbcool21:44
lazyPowercory_fu: i'm unable to locate the bug if one was opened. so it may not have been raised.21:45
cory_fuNo biggie.  I don't think it actually mattered if I had an IP in this current case, actually, and, while it does in the other case and it would be nice to clean it up, it works currently, so...21:46
lazyPowercory_fu: wait i found it - https://bugs.launchpad.net/juju-core/+bug/130837421:46
_mup_Bug #1308374: unit-get public-address on EC2 returns split horizon DNS <addressability> <networking> <strategy> <juju-core:Triaged> <https://launchpad.net/bugs/1308374>21:46
leftyfblazyPower: how about specifying distro version (precise/trusty) for deployments? Everything seems to be precise even though I have default-series: trusty in my ~/.juju/environments.yaml21:47
lazyPowerleftyfb: our trusty charmstore isn't very big21:47
lazyPowerhttp://manage.jujucharms.com/charms/trusty21:47
lazyPowerleftyfb: we have a rather large queue to get our existing prceise charms tested, updated to meet current charm store best practices, and unit/integration tested for inclusion into trusty - if you'd like to volunteer to help we could certainly use a helping hand - current work items are being managed in this spreadsheet - https://docs.google.com/a/canonical.com/spreadsheet/ccc?key=0Aia4W3c4fbL-dGs4SVBJMGRIdnlSMWhzSmo3WE1mZ1E&usp=drive_web#gid=021:49
leftyfblazyPower: once I nail down juju, I might just offer some assistance in that effort21:50
leftyfbI can't even remove a service at this point21:51
lazyPowerleftyfb: juju destroy-service <servicename>21:51
lazyPowerjuju destroy-machine #21:51
leftyfblazyPower: yeah, it'd be nice if that worked21:51
lazyPoweris the charm in an error state?21:51
leftyfb  mysql:21:51
leftyfb    charm: cs:precise/mysql-4521:51
leftyfb    exposed: false21:51
leftyfb    life: dying21:51
leftyfb    units:21:51
leftyfb      mysql/0:21:51
leftyfb        agent-state: error21:51
leftyfb        agent-state-info: 'hook failed: "start"'21:51
leftyfb        agent-version: 1.18.4.121:52
leftyfb        life: dying21:52
leftyfb        machine: "4"21:52
leftyfb        public-address: 10.0.2.3121:52
leftyfbit failed to start21:52
leftyfbclicking on "resolve" or "retry" did nothing21:52
lazyPoweryou'll need to resolve the hook error before it will allow any of the other events to run. its goign to hang in that error state until you resolve it21:52
leftyfbwith no output on the juju-gui as to what the issue was21:52
leftyfbhow do I find out what's wrong?21:52
lazyPoweryou can inspect juju debug-log -n 500 to find the issue if the logs caught it - otherwise you'll want to investigate in running juju debug-hooks to run the hook interactively to see why it failed21:53
lazyPowerleftyfb: if debug-log doesn't tell you anything - https://juju.ubuntu.com/docs/authors-hook-debug.html21:53
lazyPowerleftyfb: also - note - since its in state dying, even if you resolve it successfully - your service is queued for destruction, and will promptly be destroyed once the issue has been resolved.21:55
leftyfblazyPower: you know a customer is jumping through hoops at this point right? All I did was drag mysql to my canvas and clicked deply. Now the customer is looking through log files and searching for what a "hook-name" means21:55
lazyPowerleftyfb: unfortunately - I dont have a better answer at this time.21:56
leftyfbwhat is the unit name?21:56
leftyfbI tried both mysql and cs:precise/mysql-4521:56
lazyPowermysql/0 - which is shown directly under units21:57
lazyPowerin juju-status21:57
lazyPowerfor each node in a deployment, get increment by 1, so your second mysql unit if the service is scaled would be mysql/121:57
lazyPowerleftyfb: if you're deploying MySQL on the local provider - there is a known bug with the charm that will prevent it from deploying successfully21:58
leftyfb:/21:58
leftyfbit's not on the bootstrap machine if that's what you mean by local provider21:59
leftyfbif you mean a separate lxc container, then that's how it's setup at the moment .... what's the resolution?21:59
lazyPowerleftyfb: LXC is a best attempt at emulating clouds on your local machine - so there are some subtle differences between it and a true cloud provider that sometimes cause unintended side effects with teh charm. I'm looking for the solution now, its been a while since i've used MySQL on the local provider.22:02
leftyfbi'm seeing possible memory exhaustion, that ring a bell?22:02
lazyPower juju set mysql dataset-size='512M'22:04
lazyPowerjuju resolved -r mysql/022:04
leftyfbthat did it22:05
leftyfbi'll mess with this more tomorrow/later22:06
leftyfbthanks for the help22:06
lazyPowerNo problem. Sorry your first day wasn't as magical as we aim for it to be. We're here to help though leftyfb22:06
leftyfblazyPower: it's not as bad as you think, it's not my first day with juju :)22:06
leftyfbi've messed with it working with maas, but was told local provider was the better way to play with it22:07
lazyPowerleftyfb: i use both fairly regularly. I have consistently better luck with MAAS than i do the local provider - each has their own suite of perks and negatives.22:07
leftyfb1 tip I have is for juju quickstart to be suggest more heavily22:07
lazyPowermbruzek: https://code.launchpad.net/~lazypower/charms/precise/mysql/local_provider_bug_note/+merge/22300322:08
mbruzekjust a second lazyPower I am in meeting22:11
lazyPowerack, thanks for taking a look22:11
mbruzeklazyPower, +1 LGTM, I merged it22:30
=== CyberJacob is now known as CyberJacob|Away

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