/srv/irclogs.ubuntu.com/2012/04/12/#juju.txt

m_3It's sad that a "reaper killing zombies" is the less macabre of descriptions00:00
m_3the alternative "reaper killing orphans" just has such a nice ring to it :)00:01
* m_3 channeling Scrooge McDuck00:02
marcoceppiI prefer the latter :)00:07
* marcoceppi wanders off00:07
=== almaisan-away is now known as al-maisan
yolandahi all, what's the process to review a charm? we've finished a charm for openerp 6.108:58
fwereade_yolanda, File a bug against charms at https://launchpad.net/charms/+filebug . Make sure it has the tag 'new-charm', and a status of "New", "Confirmed", or "Triaged", otherwise reviewers will not see it. If you are working on the charm and not ready for reviews, remove the new-charm tag or mark the status as "In Progress".09:15
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
bbcmicrocomputerhmm, I seem to be able to set a boolean service config value using a config file, but not directly on the command line12:39
bbcmicrocomputere.g. juju set -e local service boolean=False12:40
bbcmicrocomputeram I doing something wrong?12:40
bbcmicrocomputerI get 'Invalid value for boolean: 'False'' if I do it via the command line btw12:43
niemeyerHey every body12:48
melmothhi there ! When i launch "juju bootstrap", it create a new instance, but without using any predefined ssh key, how can it then log into it ?12:57
avoinemelmoth: it use your ssh key in your ~/.ssh/id_rsa.pub file13:18
melmothok.13:18
melmothseems to works. it just appeard magic.13:18
hazmatbbcmicrocomputer, that's a bug13:21
bbcmicrocomputerhazmat: I'll file a ticket13:23
hazmatbbcmicrocomputer, cool, thanks13:24
_mup_Bug #979859 was filed: Unable to set boolean config value via command line <juju:New> < https://launchpad.net/bugs/979859 >13:29
_mup_Bug #979879 was filed: juju status fails when machines error on startup <juju:New> < https://launchpad.net/bugs/979879 >13:48
=== chuck_ is now known as zul
=== chuck_ is now known as zul
=== al-maisan is now known as almaisan-away
imbrandonmmm fresh 2 ltr of mt dew sitting on my desk, mmmm good way to start the day14:33
baci am getting an error that 'mem' is not a valid constraint for deploy14:43
bacjuju deploy ...  --constraints "cpu=8 mem=68.4G" produces14:43
bacjuju: error: unrecognized arguments: mem=68.4G14:43
bacm_3, hazmat: want me to file a bug or have i done something wrong?14:44
m_3bac: I haven't used constraints yet... no idea14:49
bacm_3, ok, thanks14:49
marcoceppiI haven't tried the mem constraint, only arch and instance-type14:51
hazmatodd14:52
bkerensajcastro: is the price the same for UDS attendees to go to the cloud summit?14:53
jcastroI believe so14:53
bkerensak14:54
bkerensajcastro: I might be interested in going so I will see :)14:54
jcastroI know where you have an extra $100 to spend!14:55
jcastrodunno, might just wanna ask marianna when you get there14:55
jcastroI don't think the audience is going to be for people like us.14:55
jcastrothough I am surely supposed to go, hah14:55
* imbrandon thought about it as well14:56
imbrandon:)14:56
fwereade_bac, are you sure you got the quoting right there? the error message looks like the command was trying to interpret "mem=68.4G" as an arg on its own rather than as an element of --constraints14:58
bacfwereade_: the complete command was:15:06
bacjuju deploy --config=$REPO/$SERIES/buildbot-slave/examples/lpbuildbot.yaml --repository=$REPO local:buildbot-slave --constraints "cpu=8 mem=68.4G"15:06
bacfwereade_: but i agree, that is what it looks like is happening15:07
fwereade_bac, would you run that again with juju -v deploy and pastebin me the traceback please?15:08
bacfwereade_: i will when i my current run finishes15:09
bacthanks15:09
fwereade_bac, sweet, tyvm15:09
fwereade_bac, also, please let me know what version you're running; I can't repro it myself15:20
bacfwereade_:  0.5+bzr519-1juju5~precise115:21
fwereade_bac, thanks15:24
marcoceppiwhoa, I think I was just impressed15:36
marcoceppiIf you terminate a machine outside of Juju, will Juju attempt to re-spin it up?15:36
SpamapSmarcoceppi: I believe the provisioning agent asserts something like that15:41
fwereade_marcoceppi, yeah, if the instance a machine's assigned to apparently doesn't exist it will spawn a new one15:42
marcoceppithat's. awesome.15:43
imbrandonnice15:44
imbrandonyea thats golden15:44
fwereade_I think it's done that since... before I joined, actually15:44
marcoceppifwereade_: I've never tried, but since I can't connect to a very old bootstrap due to upgrading locally from PPA, I tried to take one of the machines down I knew I didn't use15:45
marcoceppithen it popped back up a few mins later, to my surprise15:45
fwereade_marcoceppi, heh, maybe a double-edged sword there :(15:46
marcoceppifwereade_: yeah, but it's okay. Worth it for this corner case15:46
marcoceppiIt gives me piece of mind15:48
bkerensajcastro: my interest in going is so that I could bring back some knowledge and buzz to share with our loco :) we are kind of the front lines in our region so if people ask about cloud I hope to speak competently about it15:50
bkerensa:D15:50
flacosteif i use juju from the pkgs ppa, do I need to set juju-origina in my environment.yaml file?16:01
marcoceppiflacoste: yes16:02
marcoceppijuju-origin: ppa16:02
flacostethx marcoceppi16:03
jkyleheya16:06
jkyleis this FAQ fairly accurate? https://juju.ubuntu.com/docs/faq.html16:06
imbrandonjkyle: i'd say so, although juju is a fast moving target right now so , yea16:11
jkyleof note was the "not production ready"16:12
jkylethough, my site isn't necessarily "production"...reasonable stability and a base level of "functional" are important hehe16:13
imbrandonjkyle: well depends on your level of want to get down and dirty, a small group of us have successfully been deploying OMGubuntu.co.uk with juju for a month or so now16:14
jkyleso I'm wondering is it "stable enough" to use in other than a pure testing environment?16:14
imbrandonbut thats not to so its not without hiccups now and then ask marcoceppi :)16:14
jkyleI'd also be interested in chatting with someone from the core team, maybe in a pm?16:15
jkyleI'll hit the lists up, not on the vpn for mail yet though :P16:16
imbrandonthe core team is all arround , most anyone in there that speaks with a little knowhow of it is on the core members , myself am just a charmer, but i'm guessing start off with your questions in public might garner a bit more of a reaction16:16
marcoceppijkyle: I think it's "stable enough" to use in things other than pure testing; it's more of a full blown beta at the moment, though pretty stable. The only problem I've really encountered is occasional breakage during updates of the juju package, though that shouldn't happen much if ever going forward16:16
jkylealright, I'll give it a shot16:17
marcoceppijkyle: based on your requirements, I'd say juju is stable enough to use, it has most of it's release features implemented and tested to my understanding16:18
imbrandonmarcoceppi: speaking of, promstrangulate me today  :)16:18
marcoceppiimbrandon: after omg deployment :)16:19
imbrandon:)16:19
jkylelooking over docs. does juju do metadata collection on your nodes?16:21
jcastrobkerensa: just hang out with me, marcoceppi, and imbrandon, you'll be all set.16:22
imbrandon:)16:23
marcoceppijkyle: how so?16:23
jkylelike chef's Ohai16:23
imbrandonnot really, kinda , more like it knows from the start and keeps the state16:24
jkyleso you can query you infrastructure, e.g. knife search node 'role:mysql-master', returns a list of all nodes with roles mysql-master16:24
jkylethat might be something worthy of adding (talking to myself)16:25
marcoceppijkyle: yes,  kind of. Juju isn't aware of anything outside of it's deployed environment. But tracks where everything is16:25
imbrandonmarcoceppi: is apc and the like still on ?16:26
jkyleinteresting... Could do some data collection in a charm and dump data into a db16:26
imbrandoncrap wrong window16:26
flacostei'm getting the following error:16:45
flacoste  /var/lib/cloud/instance/scripts/runcmd: 4: /var/lib/cloud/instance/scripts/runcmd: juju-admin: not found16:45
flacostethat's in cloud-init-output.log16:45
flacosteon a node16:45
flacosteafter a juju bootstrap16:45
SpamapSflacoste: juju failed to install further up then16:46
flacosteGet:2 http://ppa.launchpad.net/juju/pkgs/ubuntu/ precise/main juju all 0.5+bzr519-1juju5~precise1 [496 kB]16:47
flacosteSpamapS: doesn't look like it16:47
flacostebut dpkg -L juju does say that it's not installed :-(16:47
hazmatjkyle, that notion of role is basically what juju's service units are, they are all clearly identified..16:49
hazmatyou can query out from the cli all the machines of a given service16:49
hazmatjuju status mysql16:50
hazmatwill list out the nodes of the service named 'mysql'16:50
hazmatbut its not a full inventory style like ohai16:50
hazmatit also doesn't expose the notion of querying adhoc from within a charm/service unit, because the  services a unit is explicitly related to other service, and as a result has private bi-directional channels with 'data bags'16:51
jkylehazmat: ah, gotcha. I also saw that only one "service" can be run per node. So your services are more like a collection of services than an aggregation of smaller services (e.g. role of roles)16:52
hazmatjkyle, well a service is composed of units.. each unit representing at minimum a container, and typically a machine.. there is a separate notion of policy charms that can be deployed along side existing services... the collection and aggregation notion doesn't seem quite right.. but yes coming from a roles stamped onto machines perspective i can see where it arises.. effectively the independent unit should deliver all of the functionality required to fulfill i16:55
hazmatts charms's interfaces.. that can be as large as small as is useful.16:55
SpamapSflacoste: it was downloaded, but never installed.. weird16:56
hazmatjkyle, ie.. so a web app charm might setup nginx and a rails app, but and expose an http endpoint, and depend on a db. with the db fulfilled by a separate service, and a reverse proxy by another.. that's the ideal anyways.. where the service's charm is doing the important bits germane to its functionality.. but the definition of a charm is pretty flexible and its exposed interfaces is pretty flexible, it could be doing the aggregation you mentioned and have th17:00
hazmate db and proxy and multiple workers local to itself on a per unit basis (even thoughs its definitely not best practice).. the key differentation is the context independent reuse, instead of having to fork and glue a databag on to each service you want to communicate with, the charm themselves model the relationships between the services and the their communication as part of their def.17:00
flacostehow can i reset a juju bootstrap?17:10
flacosteit didn't work17:10
flacosteand i want to start from scratch17:11
flacostezookeeper was never installed17:11
hazmatflacoste, juju destroy-environment && juju bootstrap17:29
jkylehazmat: interesting17:30
bachi fwereade_, i have another issue with setting constraints i'd like your help on, if you have a moment.17:42
fwereade_bac, I'm very sorry; I *might* be able to be with you in an hour or so :(17:46
bacok17:46
fwereade_bac, if you precis it now I can answer immediately I can make it back17:46
bacfwereade_: i used this script to try to deploy two related services:  http://pastebin.ubuntu.com/926506/17:47
bacat line 13 i set the constraints i wanted, needed 8 cpus17:47
baceverything came up, but aws console shows the second service is using type m1.small.17:47
bacso it looks like the call to set constraints didn't do what i expected it to do17:48
bacthis was a work-around to the issue i reported earlier where i couldn't specify the mem constraint on the deploy step17:48
flacostehazmat: thx17:55
flacosteSpamapS: so, are you doing a juju upload today?17:55
hazmatflacoste, he's been waiting on us slackers, but yes we should be good for an upload today17:57
flacostehazmat: cool, deadline is in 3 hours :-)17:57
hazmatflacoste, good to know :-)17:58
flacostehazmat: make sure your tests pass this time ;-)17:58
hazmathah17:58
SpamapSflacoste: no but juju is not in main so it will come when its ready18:01
SpamapSuniverse is still open (with release team approval) for a little while longer18:01
flacosteSpamapS: ah, ok18:01
SpamapShazmat: I plan to test quite a bit before this final upload18:01
SpamapSthe last one broke all existing installations18:02
SpamapSI suspect this one might too18:02
hazmatSpamapS, we've tried to be much more careful about not doing that18:02
hazmatalthough the subordinate work does land a change..18:03
hazmatits got transparent upgrade..18:03
hazmatbut code version drift.. its not backwards compatible18:04
hazmatthat landed last week18:04
SpamapSRight, so, basically, anybody who has been thoughtfully testing beta2 ..18:05
SpamapSgets screwed?18:05
SpamapSagain18:05
* SpamapS is feeling hostile .. sorry18:05
SpamapShazmat: we need to start gating trunk on not breaking existing bootstrapped envs ;)18:06
_mup_juju/managed-zk-client r513 committed by kapil.thangavelu@canonical.com18:07
_mup_start the global settings watch before we start18:07
marcoceppiHow do I repair an "agent state down"19:53
shazznerdestroy the service and redeploy it :p19:56
shazznermysql always goes down if I forget to break a relation and destroy it's related service19:57
marcoceppiweird, this happened because of high load on the machine. So I just did an add-unit then remove-unit for the downd agent19:59
hazmatmarcoceppi, woah.. what?20:12
hazmatmarcoceppi, you deployed mysql, added a relation and removed a relation, and mysql agent had an error?20:13
hazmatoh.. high load20:13
hazmatmarcoceppi, there's a fix for high load/transient network problems on trunk should be in the upload to precise shortly20:14
hazmatbasically if the load gets high enough that the agent can't run for a long time, its possible that it becomes disconnected, and if the disconnection is long enough its db/zk session expires. the code in trunk to allow it to restablish a new session.20:15
shazznerhazmat: awesome :)20:17
marcoceppihazmat:  gotchya20:18
=== jelmer_ is now known as jelmer

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