/srv/irclogs.ubuntu.com/2013/05/02/#juju.txt

=== wedgwood is now known as wedgwood_away
=== gianr_ is now known as gianr
=== thumper is now known as thumper-afk
=== thumper-afk is now known as thumper
TheChistosowhen i run "juju status" i get: "the authenticity of host '...' can't be established...are you sure you want to continue connecting? ..." i've run this once before and i assumed it added the host to known_hosts -- why is it prompting again? and what can i do to fix it?02:36
=== defunctzombie_zz is now known as defunctzombie
hazmatTheChistoso, if its the same machine, it should get added to the host.. but if you create a new env, it its a new machine. juju isn't doing ssh cert fingerprint management. another option (with some risk) is to disable host fingerprint checking for some iprange corresponding to the cloud provider if posible.03:34
=== defunctzombie is now known as defunctzombie_zz
TheChistosohow do i tell juju to use a particular machine?04:05
TheChistosohazmat: oddly enough, i just ran it again and the problem's gone04:06
hazmatTheChistoso, cool.. but to answer the question, you either keep the env around,  or try one of the ssh workarounds. juju's philosophy is machines are  ephemeral.. and that services are whats important. its worth a bug report though04:09
* hazmat pokes around04:09
hazmatits bug 89255204:10
_mup_Bug #892552: juju does not extract system ssh fingerprints <juju:Confirmed> <juju-core:Confirmed> <https://launchpad.net/bugs/892552>04:10
TheChistosoi understand the philosophy but i'm using it w/ maas and i only have a set # of machines04:10
hazmatah04:10
TheChistososo i'd like one machine to run multiple services04:11
hazmatTheChistoso, with pyjuju jistu deploy-to or with juju-core deploy -force-machine achieve that goal04:12
hazmatfwiw http://linuxcommando.blogspot.com/2008/10/how-to-disable-ssh-host-key-checking.html04:12
TheChistosocouple questions...how do i cancel a pending deploy? and how do i add add'l machines if, let's say, a new server has arrived and i just racked it?04:19
TheChistoso(using maas + juju)04:20
TheChistosookay figured out the first -- juju destroy-service04:23
TheChistosohazmat: tyvm, btw, b/c jitsu seems to be working04:40
TheChistososo i expected that exposing mysql would open up port 3306 but it didn't seem to04:46
TheChistosoand when is juju 2.0 due?04:57
TheChistosoanybody available to answer maas+juju questions?06:17
=== thumper is now known as thumper-cooking
evilnickveitchdoes keypair auth work for juju core on HP now?10:57
mgzthere's a branch to be landed shortly10:57
evilnickveitchmgz, cool10:57
jairI have been hearing a lot about juju but have one specific question, is it free software?11:34
jairI can use and download ubuntu I know that but what about the juju instance?11:35
jairjust checking making sure this is not something like eucalipto something possible to use only if you pay to canonical?11:36
jairI think this is the right channel11:39
marcoceppijair: Juju is free and open source software provided by Canonical11:41
jairopensource is different than free software right?11:43
marcoceppijair: no, There's free software, then there's open source software. This happens to be both11:43
jairmarcoceppi: so if I install debian can I use juju in my environment? or will only work with ubuntu versions and ony latest version of Ubuntu correct?11:44
jairmarcoceppi: interesting11:44
jairmarcoceppi: I really appreciate your help and willingness to clarify my concerns11:45
marcoceppijair I believe there are only packages for ubuntu at the moment, but you can compile the source and use it on Debian, nothing's stoping you. It's my understanding we'll be supporting other platforms in the near future11:45
jairmarcoceppi: I see, thank you very much my friend!11:50
jairI will be doing some testing at home11:51
marcoceppiNo problem :)11:51
jairI have seen it a few times on the youtube presentations.11:51
jairlooks cool, also I am trying to learn bash and phyton so some of the charms are written on those languages.11:52
jairwhich is very cool11:52
marcoceppijair: you can find the quick "getting started" guide on the homepage: https://juju.ubuntu.com/get-started/ and feel free to ask here or on the mailing list if you have any questions11:52
jairsounds good11:53
jairmarcoceppi: I will definetely get my hands on it11:54
jairthank you"11:57
jairThank you for all the information and the links to knowledge11:58
MarlincIs it possible to allow multiple architectures using a constraint? So my environment can have 32 bit and 64 bit machines?12:04
rbasakall: Marlinc has been hit by bug 1064291, asked in #maas, and I directed him here. I think another solution might be to disable constraints entirely, but I'm not sure how to do that.12:05
_mup_Bug #1064291: Default constraints make no sense on MAAS <arm> <juju:New> <Release Notes for Ubuntu:Invalid> <https://launchpad.net/bugs/1064291>12:05
MarlincJup12:05
MarlincWhy is it marked a invalid by the way12:08
marcoceppiMarlinc: it was marked invalid for the ubuntu-release-notes project12:09
=== 92AAAI3TG is now known as ahasenack
MarlincAh okay I don't get the Launchpad issue tracker quite well yet12:09
MarlincAh I see12:09
marcoceppiMarlinc: So you can change the architecture at anytime either on a per-deploy basis or the defaults altogether with juju set-constraints. The defaults can only be changed /after/ a bootstrap though. So you'll still have to juju bootstrap --constraints arch=arm before being able  to do something like juju set-constraints "mem=256m arch=i386" or whatever you'd like to change12:11
marcoceppiand the defaults only live on for that environment, they won't carry over between bootstraps or other environments12:12
MarlincSo if I would use amd64 as default I would be able to use a i386 node inside that environment? At all12:12
=== shadeslayer is now known as kubot1
=== kubot1 is now known as shadeslayer
marcoceppiMarlinc: You can change the arch for any machine not yet deployed at anytime. Let me find the doc on machine constraints12:13
Marlinchttps://juju.ubuntu.com/docs/constraints.html ?12:13
marcoceppiBut you can do juju deploy mysql --constraints arch=i386; juju deploy wordpress --constraints arch=amd64; juju deploy nfs --constraints arch=arm and so long as the provider can provide those arch it'll work12:14
marcoceppiMarlinc: yup, that's it12:14
marcoceppiSo you can have mixed arch (and even mixed series) machines in a deployment12:14
MarlincOkay12:14
MarlincWould be nice if it would allow it by default though12:14
MarlincWithout having to specify a arch12:15
marcoceppiMarlinc: Well, there's a split hairs scenario there. I see where you're coming from with maas. The majority of the people either don't care about the arch or want them to all be the same. It'd be tedious to have to specify it everytime (hence why I see where you're coming from)12:15
marcoceppiHopefully the dev team can come up with a decent solution to this problem12:16
marcoceppiMarlinc: which version of Juju are you using?12:16
Marlinc0.712:17
mgzMarlinc: you can enable multiple arches trivially with `juju set-constraint arch=any` on your environment12:18
MarlincAh12:18
mgzarguably that should be the default, indeed12:19
MarlincAh great thank you very mch12:19
MarlincMuch12:19
MarlincI think that would be a great default too12:19
rbasakmgz: is there also a way to do that with mem? I'd like to document the workaround in the bug.12:25
mgzmem=0 is fine12:25
mgzas it's really a gte12:25
rbasakmgz: what's the argument during the bootstrap command, please?12:25
rbasakDoes --constraints arch=any,mem=0 work?12:26
rbasakOr is there some other way of separating that?12:26
MarlincDeploy MySQL on a machine with at least 32GiB of RAM, and at least 8 ECU of CPU power (architecture will be inherited from the environment, or default to amd64):12:27
Marlinc$ juju deploy --constraints "cpu=8 mem=32G" mysql12:27
mgzit's "arch=any mem=0" genrally12:27
rbasakThanks!12:28
mgzhm, thought this was already in the maas docs, but maybe it only made it to launchpad bugs/mass-devel list?12:28
marcoceppiany, good to know12:28
rbasakI'm not sure. I'm only aware of the bug.12:29
mgzit's worth noting set-constraint on the environment, as otherwise you need to remember --constraints on every deploy12:29
mgz+s12:29
rbasakDoing it on bootstrap sets the default environment constraints, doesn't it?12:29
mgzah, maybe it does12:30
hazmatit does12:59
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
jcastroheya hazmat13:36
jcastrolooks like the docs aren't updating13:36
jcastroI pushed an update like 2 weeks ago and the docs haven't generated13:36
jcastroI thought that was a cron job?13:36
=== wedgwood_away is now known as wedgwood
hazmatjcastro, it should be cron'd, as for the location/result its in webops hands.13:55
jcastrook so I should just file a general RT you think?14:03
hazmatjcastro, yup14:03
jcastroany info I can put there, like what machine it's on or anything?14:03
hazmatjcastro, sorry i don't have anything additional.. i've got a separate doc cron job running on jujucharms.com/docs but i handed over the domain, and its scheduled to be transitioned to a new backend/frontend in a week or two.14:06
hazmatevilnickveitch, do you know anything re doc deploy?14:07
jcastroyeah it looks like that isn't being regenerated either14:07
evilnickveitchhazmat, for juju? no, but I know the maas one is broken14:07
* hazmat pokes around14:09
=== gianr_ is now known as gianr
=== andreas__ is now known as ahasenack
jcastrohazmat: hah man14:53
jcastro Last Generated on Nov 22, 2012. Created using Sphinx 0.6.4.14:53
jcastrostay classy juju docs14:53
jcastroRT filed14:54
hazmatjcastro, that's funny14:56
jcastrowant me to CC you on all this stuff or want me to just deal with it with IS?14:58
hazmatjcastro, cc me pls14:58
hazmatjcastro, we might have disabled because the makefile gets executed and has upload/commit rights from a large group15:00
hazmatinteresting15:00
hazmatthe repo changed locations15:00
hazmatjcastro, we moved the repo from ~charm-contributors/juju/docs/ to  ~charmers/juju/docs15:01
jcastrooh ok15:02
jcastroso the cron is probably still there15:02
jcastrowe just moved the source out from under them15:02
MarlincMy Juju is having a issue when using it with MAAS: provision:maas: juju.agents.provision ERROR: Cannot get machine list15:10
MarlincIt also throws ProviderInteractionError: Unexpected TimeoutError interacting with provider: User timeout caused connection failure.15:11
Marlinc errors15:11
MarlincAnyone with something on the top of their head what this could be?15:11
hazmatMarlinc, does the maas cli work?15:24
hazmatMarlinc, just wanted to verify maas is up and responding to on its api15:24
MarlincYep it is15:25
MarlincIt is hazmat :)15:28
hazmathmm15:28
hazmatMarlinc, could you save the last few hundred lines of the provisioning log, and pastebin it perhaps. next i'd try restarting the provisioning agent..  ls /etc/init for exact agent name..  i think its $ service juju-provisioning-agent restart15:30
MarlincOkay15:30
MarlincI'll take a look later the router stopped working...15:38
SpamapShttps://www.ohloh.net/p/juju/analyses/latest/languages_summary15:50
SpamapStis official, goju > juju15:51
=== gianr_ is now known as gianr
=== defunctzombie is now known as defunctzombie_zz
hazmatjcastro, docs.. http://jujucharms.com/docs/16:16
hazmatupdatd16:16
=== andreas__ is now known as ahasenack
jcastrohey guys:16:41
jcastro"I just spun up juju on AWS and was pretty impressed with how damn easy it was (the toughest part was looking up my AWS keys). Now I'm really excited to play around with it and see how it interacts with Chef."16:41
TheChistosoi'm using maas+juju. i added a new machine and it's shown as "ready" in the node list. when i try and deploy mysql, it never picks up the new machine17:23
TheChistosojuju bootstrap worked fine, btw17:23
TheChistosoi started the deploy last night and 10 hours later juju status is still showing it as "pending"17:24
* avoine is trying to find a way to handle multiple version of Django in the charm19:33
sinzuihey. I want to update the mongodb charm to restore a db from a dump on install. I don't think this can be done on install though. I think config-changed needs to do this, and I know the restore should only happen during installs or upgrade-charm hooks?20:28
sinzuiAre there charms that have solved such a problem?20:28
marcoceppisinzui: You _can_ have the charm do it during the install hook, since config-get is available during install.20:37
marcoceppiSo you'd just have to amend the readme to say that it can be resotred using this config but only if the config options is seeded during deployment, that it won't work after unit installation20:38
avoinesinzui: the postgresql charm have a dumpfile_location config variable20:38
marcoceppiNot wether or not that's charmer kosher, it seems like a grey area to me, so others please correct me if I'm wrong20:38
sinzuimarcoceppi, understood.20:38
sinzuiavoine, thank you! I will look20:39
sinzuimarcoceppi, I think the "it won't work after unit installation" is good as the goal is to only do this before there is a database.20:41
sinzuimarcoceppi, I also imagine this should only happen if the charm was configured to the be master during deploy. Slaves don't need to restore.20:42
marcoceppisinzui: So, I'm going to say as long as you document that caveat in the readme it'll be okay. Typically configuration options shouldn't be "immutable" in a sense and should react with a config-changed hook, but that's not always possible20:43
sinzuimarcoceppi, yep. this immutable aspect is indeed my concern. I was worried that I need some persistent means to know that the db was restored and not to do it again.20:46
marcoceppisinzui: You could do that with a file marker, something like touch .db-restored and check if that file exists everytime the config-changed hook runs20:46
sinzuimarcoceppi, in the charm's dir, or in the location where the db restored too?20:47
marcoceppisinzui: in the charm's directory, since the hooks run with the root of the charm as it's cwd20:47
marcoceppiwell, anywhere really. I typically just let put it in the cwd20:49
sinzuimarcoceppi, does upgrade-charm overwrite or replace the unit's charm dir?20:49
marcoceppisinzui: that's a really good question20:50
sinzuiI can drop a file into one of my running units, then do an upgrade to see20:50
marcoceppiI want to say it overwrites, but doesn't replace the entire directory, preserving files created outside ofthe charm.20:51
marcoceppisinzui: since I know a lot of charms store data in this fashion20:51
* marcoceppi hopes that's the case20:51
sinzuiI bet webops know since they add files to charms and upgrade all the time20:51
* thedac reads backscroll20:52
sinzuithedac does upgrade-charm overwrite or replace the unit's charm dir?20:52
thedacit overwrites and does not replace20:52
thedacso items that were in the charm and have been removed may still be in the charm dir on an instance20:53
sinzuiokay, that is probable best since it allows for a rollback option20:53
sinzuithanks thedac, marcoceppi, avoine.20:54
thedacno problem20:54
marcoceppio/20:54
TheChistoso|2anybody around that could help me diagnose a maas+juju issue please?21:00
hazmatsinzui, in future it employs git locally for charms to yank dead files21:20
hazmatsinzui, the local charm is still on disk in archive/zip form in either case21:21
sinzuiokay, thanks for the warning.21:21
hazmatTheChistoso|2, could pastebin the send the provisioning agent log  /var/log/juju on the bootstrap node21:21
hazmats/the/or21:21
TheChistoso|2hazmat: http://pastebin.com/TS4kJg7b21:36
TheChistoso|2it helps to know where to look -- tyvm21:37
TheChistoso|2ProviderInteractionError: Unexpected TimeoutError interacting with provider: User timeout caused connection failure.21:37
TheChistoso|2and then: exceptions.TypeError: an integer is required21:38
marcoceppiTheChistoso|2: What's "mass-server" set to in the environments.yaml?21:38
hazmatTheChistoso|2, on the server what version of juju is being run.. ie. output of dpkg -s juju21:38
TheChistoso|2hazmat: juju-0.721:39
TheChistoso|2marcoceppi: maas-server: http://10.53.0.102/MAAS/21:39
mwhudsonoh i know this one21:39
mwhudsonyou need to either (1) put the port number in the url21:40
mwhudsonso21:40
mwhudsonmaas-server: http://10.53.0.102:80/MAAS/21:40
mwhudsonor21:40
mwhudsonbootstrap on something newer than precise21:40
marcoceppiTheChistoso|2: I believe the "exceptions.TypeError: an integer is required" error is because you're not explicitly stating the port. Try setting it to http://10.53.0.102:80/MAAS/21:40
mwhudsonTheChistoso|2: ^^21:40
TheChistoso|2ah21:40
marcoceppimwhudson: :D21:40
hazmatTheChistoso|2, you'll need to restart the provisioning agent as well21:40
TheChistoso|2i was concerned about bootstrapping on anything later b/c i wasn't sure how compatible the various charms are on anything later21:41
TheChistoso|2hazmat: what command would i use to restart the provisioning agent? not sure which one it is in my list of services21:43
hazmatTheChistoso|2, upstart.. via sudo service juju-provisioning-agent restart.. you might need to double check the name from the available list in /etc/init21:44
mwhudsonTheChistoso|2: probably putting the port in is the sensible thing21:44
hazmatthe name of the upstart service that is21:44
TheChistoso|2mwhudson: i added the port21:45
mwhudsoni didn't realize you could recover from this, i re-bootstrapped when this bit me...21:45
hazmatmwhudson, i do remember that bug.. but it  seems strange though.. the fix for maas ports went in 2012-06 from the changelog.. unless this really isn't juju-0-7 but 0-5 from precise.21:46
TheChistoso|2the name of the service doesn't seem obvious -- i should be doing this on the bootstrap node, correct?21:46
hazmatTheChistoso|2, yes21:46
mwhudsonhazmat: it's a bug in juju isn't it?21:46
mwhudsonerrrr21:46
mwhudsonhazmat: it's a bug in maas isn't it?21:46
mwhudsonbigjools will be super happy to discuss the maas sru21:46
mwhudsoni'm sure21:46
mwhudsonhm, maybe not, i dunno21:47
TheChistoso|2i can't find the name of the job/service. perhaps i'll just reboot :/21:48
hazmatmwhudson, the traceback is from juju.. the issue was in the maas provider in juju i thought21:48
mwhudsonyeah, just looking at the bug21:48
hazmatTheChistoso|2, ls /etc/init  .. should be prefixed juju-provisioning..21:49
hazmatTheChistoso|2, then $ service juju-provisioning-agent restart21:49
TheChistoso|2hazmat: not seeing that -- there's nothing prefixed w/ juju21:49
TheChistoso|2okay i finally guessed it: juju-provision-agent21:50
hazmatTheChistoso|2, this should be on the juju bootstrap node21:50
hazmat /etc/init should definitely have juju upstart files..21:50
TheChistoso|2hazmat: ya know what -- i wasn't paying close enough attention. i was looking in /etc/init.d/ (force of habit)21:51
hazmatTheChistoso|2, cool.. now you'll need to change your client config re maas port and try another command.. juju deploy/add-unit etc.. which will force a sync21:51
hazmathmm.. i might have spec'd the wrong order there.. the restart should happen after the sync.. else the provisioning agent is just going to run into the old setting21:51
TheChistoso|2hmm...doesn't seem to be taking. i changed it in my environments.yaml, restarted the provisioning agent, destroyed the service, deployed the service again (mysql), restarted the provisioning agent again for good measure and...and just as I was writing this I saw the node power on so I guess it's working :D21:56
TheChistoso|2so my ultimate goal will be to deploy open stack (grizzly) through juju. wish me luck. (c:21:57
TheChistoso|2according to the guide, it says 28 nodes would be required. i'm doing a PoC -- i have 16 machines available. hope that'll work...21:57
TheChistoso|2i would have bootstrapped w/ raring, but maas didn't download any raring images -- is that a known issue?21:59
TheChistoso|2oh and my apologies -- i didn't properly thank you guys...THANK YOU!21:59
hazmatTheChistoso|2, 28 is for full HA setup.. you can use jitsu deploy-to for certain services (non-conflicting) to have them co-located on the same machine..22:05
hazmatand good luck22:05
TheChistoso|2i intend to do that -- and thank you22:05
TheChistoso|2i was actually hoping someone had an existing set of charms for co-locating an intelligent set of openstack services22:06
TheChistoso|2it recommends doing it atop precise -- should i instead use quantal or raring (when available)?22:07
TheChistoso|2lol that question didn't sound right -- what i meant to ask is, "do you know of any particular problems choosing a more up-to-date release?"22:08
hazmatTheChistoso|2, the charms install from the cloud archive, depending on the release version you choose, so the openstack bits are typically current22:08
sarnoldTheChistoso|2: check charmstore for charm availability, not all charms are on all releases22:09
hazmatTheChistoso|2, er.. the openstack charms install packags from the cloud archives.. based on config.. i'd stay on precise22:09
TheChistoso|2hazmat: alright -- will do.22:11
TheChistoso|2should exposing mysql open port 3306?22:12
TheChistoso|2juju status isn't showing port 3306 as an open port22:16
TheChistoso|2i installed mysql and wordpress successfully22:37
TheChistoso|2i then removed the relation b/t mysql and wordpress and it looked like it did the correct thing22:37
TheChistoso|2then i ran juju destroy-service wordpress22:37
TheChistoso|2site's still running22:37
TheChistoso|2is that correct?22:38
TheChistoso|2shouldn't it be off or stopped since there's no other service that'd be listening on the port?22:39
marcoceppiTheChistoso|2: there's a big where the stop hook isn't executed on older versions of juju. if you want to remove the machine run terminate-machine with the machine number as a parameter22:44
marcoceppis/big/bug/22:44
TheChistoso|2so newer versions of juju aren't in the precise images that maas downloads?22:45
TheChistoso|2and newer versions aren't in the apt repos for precise?22:46
TheChistoso|2i was surprised when you had me check the juju version and it was rather old (isn't the latest something like 1.10?)22:47
TheChistoso|2(while I'm on this -- is there an expected release date for juju 2.0?)22:48
hazmatTheChistoso, mysql charm doesn't expose port23:51
hazmatTheChistoso|2, the new version of juju is a new implementation, its not yet available in the distro packages, but via ppa or download.23:53
TheChistoso|2is it possible to use a newer version when maas is commissioning the nodes juju uses?23:54

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