/srv/irclogs.ubuntu.com/2012/03/29/#juju.txt

SpamapSm_3: ^^ this is likely to break your charm tester as well if it pulls in the latest juju00:00
hazmatSpamapS, indeed, its at the top of my list for friday00:12
m_3SpamapS: thanks00:20
SpamapShazmat: have a patch now actually.. just EOD'ing ;)00:21
hazmatSpamapS, cool feel free to lbox it or if you prefer merge it directly :-)00:21
m_3hazmat: juju-plan and juju-load-plan work fine with ec2 right out of the gate (I've gotta add support for environment param)00:35
hazmatm_3, yeah.. some do some don't..00:35
m_3juju-watch is borking a bit...00:35
hazmatm_3, the recorder definitely doesn't00:35
m_3right00:35
m_3assumptions about local00:35
hazmatm_3, and snapshot tries to poke at the local dir00:35
m_3hazmat: yup00:35
hazmatm_3, yeah.. i tried  document those which where ec2 specific..00:36
hazmati've got a few things new utils i want to try out on friday00:36
m_3I'm excited about getting snapshot working on other providers though... that's really a great stack impl imo00:36
hazmatm_3, its not quite that.. but its getting there.. need to capture service config as well00:37
hazmatm_3, i might see if i can try something fun on friday like  suspend/resume and expand/shrink.. assuming the universe doesnt' fall apart00:37
m_3ha!00:38
hazmatalthough i should probably take a look at doing those directly in jujitsu00:38
* hazmat can never remember that speling00:38
hazmatm_3, juju-watch won't like the new status atm, again its all post b2 to me00:38
m_3hazmat: so the watcher I started with should work on ec2... http://paste.ubuntu.com/904796/... it was pretty clumsy with state though00:38
m_3might actually work with the new status output b/c it's getting unit state directly00:39
hazmatm_3, the charmrunner watcher should work fine on ec200:39
hazmatexcept for the aforementioned status changes00:39
hazmatthere's more status changes coming (additions) with the subordinate work..00:40
hazmatspeaking of which00:40
m_3oh, really?  cool... I thought it was using local-specific stuff too... that's great00:40
m_3hazmat: if you wanna focus on snapshot, I'll get the individual commands into juju-jitsu00:43
hazmatm_3, i'd still like charmrunner to do its thing, but the extra stuff into jitsu sounds good00:48
* hazmat focuses on expiration00:48
m_3hazmat: hope you focus on feeling better man!00:51
hazmatthe 'scrips should do the trick00:53
=== johnduhart2 is now known as johnduhart
=== samkottle is now known as samkottler
_mup_txzookeeper/managed-watch-and-ephemeral r51 committed by kapil.foss@gmail.com03:45
_mup_functional managed client03:45
_mup_txzookeeper/managed-watch-and-ephemeral r52 committed by kapil.foss@gmail.com04:04
_mup_use a deferred lock around restablishing the session, log error if failure to restablish04:04
sc-rmis there a way to debug/watch the communication between two relationship peers? like the keystone <--> nova-compute when the relation is established?05:45
imbrandoni'm in love, "TheStack" Drupal Charm is definately gonna favor HPcloud versus AWS07:04
yolandahi, i'm trying to create a local instance for juju, and receive that error:  ERROR Unable to create file storage for environment07:40
koolhead11yolanda: dpkg -l juju please07:43
koolhead11and cat /etc/lsb-release07:43
yolanda||/ Nombre                            Versión                          Descripción07:44
yolanda+++-=================================-=================================-==================================================================================07:44
yolandaii  juju                              0.5+bzr499-1juju4~oneiric1        next generation service orchestration system07:44
yolandaDISTRIB_ID=Ubuntu07:44
yolandaDISTRIB_RELEASE=11.1007:44
yolandaDISTRIB_CODENAME=oneiric07:44
yolandaDISTRIB_DESCRIPTION="Ubuntu 11.10"07:44
koolhead11yolanda: ok07:44
koolhead11yolanda: from next time to paste these details use paste.ubuntu.com :)07:44
yolandaok :)07:45
koolhead11yolanda: lemme upgrade my juju07:45
koolhead11as am still using the old version of it07:45
koolhead11:P07:45
koolhead11yolanda: also i followed http://askubuntu.com/questions/65359/how-do-i-configure-juju-for-local-usage  for my juju deployment07:46
koolhead11are you using it on a physical machine07:46
yolandakookhead11, yes07:46
yolandalast time i tried, wasn't giving that error07:47
koolhead11yolanda: :(07:47
* koolhead11 upgrades his juju07:47
yolandahow is it going?07:55
koolhead11yolanda: am on really slow connection so have to wait for a while :P07:55
yolandaok, np07:56
jamespageyolanda, you might have some cruft hanging around on disk - I'd try a juju destroy-environment first to tidy things up and then do juju bootstrap again08:15
=== almaisan-away is now known as al-maisan
yolandajamespage, i tried to destroy and bootstrap again, it fails08:18
koolhead11yolanda: do as jamespage says. because i have the version http://paste.ubuntu.com/905235/  works well. I am using the defualt repo08:18
yolandai tried two times, still same error08:21
yolandai'll try uninstall and install juju08:22
yolandai removed and purged juju, installed again and seems to work08:26
yolandathx08:26
yolandahi, i'm having this error when trying to deploy any charm:  WARNING Charm '.mrconfig' has an error: CharmError() Error processing '/home/ubuntu/jujudevelopment/precise/.mrconfig': unable to process /home/ubuntu/jujudevelopment/precise/.mrconfig into a charm10:10
yolandaany idea?10:10
yolandaplease, any one knows about this error? i only did a charm getall and then a juju deploy10:19
jamespageyolanda, for some reason juju is seeing that file as config - I don't know why10:36
jamespageits safe to ignore IMHO10:36
jamespageor you can delete it if you like10:36
yolandajamespage, i've ended removing it, and all the charms i don't need10:36
yolandastill testing10:37
yolandajamespage, i did something like that:  juju deploy --repository=/home/ubuntu/jujudevelopment local:precise/postgresql10:40
yolandai receive that message: INFO Searching for charm local:precise/postgresql in local charm repository: /home/ubuntu/jujudevelopment10:40
yolandaand it's hanged there for ages, is that normal?10:40
jamespageyolanda, it should not hang - at least not due to that message - its just a warning -  I get it as well10:56
jamespageyolanda, if you environment has not completed bootstrapping I think the juju deploy command will wait10:57
yolandajamespage, but it's still at the same point, and i did also a juju status, and receive no response. Is normal that does something for that lot of time?10:57
jamespageno10:57
jamespageif you get no response your environment has not bootstrapped10:58
jamespageyolanda: are you using the local provider still10:58
jamespage?10:58
yolandajamespage, yes11:00
yolandajamespage, i do a juju bootstrap and says "environment already bootstrapped"11:01
yolandabut juju statu doesn't answer, it hangs there11:01
yolandathe same for juju deploy11:01
jamespageyolanda, so its in some indeterminate inconsistent state11:01
jamespageif you can do juju status - its broken11:01
yolandajamespage, i destroy and create again?11:01
jamespageyep11:01
yolandadamn, now works very fast!11:02
koolhead11yolanda: :P11:06
jamespageyolanda, local provided plus a few cores, some memory and a SSD is v.fast12:07
lynxmanDoes somebody remember the tool to compress several charms in one? I'm tight on available boxes :)13:14
lynxmanm_3: around? :)13:44
yolandahi, i have a problem on a config.yaml file for a charm13:50
yolandai'm just creating two values, with default value as null, as shown in the sample13:50
yolandaand i receive13:50
yolandahttps://yolanda.robla:J1nx3bGbnL8pTzFqK0nP@private-ppa.launchpad.net/canonical-isd-hackers/ppa/ubuntu precise main #Personal access of Yolanda Robla (yolanda.robla) to Canonical ISD PPA13:50
yolandaoh, sorry13:50
yolandathat error : WARNING Charm 'openerp-core' has an error: ServiceConfigError() Error processing '/home/ubuntu/jujudevelopment/precise/openerp-core/config.yaml': Invalid options specification: options.ppa-key.default: expected string, got None13:51
koolhead11yolanda: can you pastebin your config.yaml13:52
yolandasure13:53
yolandahttp://paste.ubuntu.com/905612/13:54
koolhead11yolanda: have you checked some other existing charms available? it will be good idea before planning to write a new one13:59
yolandakoolhead11, yes14:00
yolandathere is an openerp one, but for 6.0 version14:00
yolandaseems that you cannot set "null" in config var, if i put something different works14:00
koolhead11yolanda: that would be a bug then14:02
yolanda:(14:02
yolandai just grabbed this example from juju documentation14:02
koolhead11i remember getting error if revision file was with value zero14:03
yolandai just changed to another value14:10
yolandanow i'm trying to debug a hook and i receive that error: No JUJU_AGENT_SOCKET/-s option found14:10
yolandawhen doing a config-get14:10
hazmatyolanda, the cli-api is only vaid in a hook or debug session14:15
yolandahazmat, but i'm debugging14:15
hazmatyolanda, even in the debug session.. there are mulitple windows.. a default window, and the hook window which pop up as hooks are executed14:15
hazmatthe cli api needs to be used from the hook window.. its window name is that of the hook14:16
yolandahazmat, i do a juju debug-hooks opener-core/014:19
yolandaand then i try there to run the hook14:19
yolandaam i doing something wrong?14:19
hazmatyolanda, you don't run the hook in the main window14:22
hazmatthe hook is run in response to an event14:22
hazmatit will spawn a new window in the tmux session14:22
hazmatwith the name of the hook and in that window you can execute the hook or cli api14:22
yolandaso i enter into the debug14:23
yolandaand then from another terminal i do a retry?14:23
hazmatyolanda that would work14:25
hazmatjuju resolved --retry14:25
hazmatthat looks like an error in juju though with null values14:26
hazmatfor service config14:26
yolandahazmat, that's another error now, the debug worked, thanks a lot!14:27
hazmatyolanda, np14:28
yolandahazmat, seems that the problems is that i try to add a private repo to download a package, that is under https instead of http14:29
yolandait shows an error14:29
yolandathis is the error: The method driver /usr/lib/apt/methods/https could not be found14:30
yolandaand that's caused by an entry in /etc/apt/sources.list.d/ like that14:30
yolandadeb https://yolanda.robla:J1nx3bGbnL8pTzFqK0nP@private-ppa.launchpad.net/canonical-isd-hackers/ppa/ubuntu precise main14:30
yolandathat's a valid url14:31
robbiewjcastro: ping14:47
lynxmanm_3: ping15:34
lynxmanDoes somebody remember the tool to compress several charms in one? I'm tight on available boxes15:34
m_3lynxman: yo15:40
lynxmanm_3: hey I was looking for you, good morning sir :)15:41
m_3lynxman: two options afaik... I think placement: local still works, and then charm splice is one of clint's branches15:41
lynxmanm_3: maybe you know what I'm referring about?15:41
lynxmanthat's the one I was looking, charm splice15:41
lynxmanm_3: thank you15:46
m_3lynxman: np dude15:46
m_3robbiew: what's your setup... I'm getting errors http://paste.ubuntu.com/905787/ trying the same thing (I'm precise, spinning up oneiric charms in ec2)15:49
SpamapSm_3: is it intentional that the charm tester only waits 30 seconds for things to deploy!?15:50
m_3SpamapS: no, it's a bug in juju-watch15:50
lynxmanSpamapS: oh btw could you approve Robert Ayres in charmers whenever you can? He's on our team15:50
m_3doesn't accept the argument correctly15:51
m_3SpamapS: I set it to 1800secs... _and_ then precache lxc before trying to run them15:51
m_3otherwise nothing'll succeed and things'll be in a screwy state15:51
m_3SpamapS: let me push the changes to charmrunner15:52
SpamapS2012-03-29 15:47:01,970 juju.service_watch:DEBUG polling15:52
SpamapS2012-03-29 15:47:35,855 juju.service_watch:ERROR activity timeout reached15:52
robbiewm_3: I'm using the PPA...and have a pretty standard environment15:54
m_3robbiew: dang15:55
m_3SpamapS: pushed... I don't know what's necessary to kick off the packaging for charmrunner15:56
SpamapSm_3: did we get a fix for the status changes yet?15:57
SpamapSI have my patched version.. but haven't been able to get it into charmrunner trunk yet15:57
m_3nope, I was just weeding through some of that15:58
m_3SpamapS: what's your branch for that?15:58
m_3did you do a MP?15:58
m_3SpamapS: it looks like you should have perms to push that though16:01
SpamapSm_3: no I just have it here local :-P16:03
SpamapSm_3: and yeah hazmat alread +1'd :)16:04
imbrandonmarcoceppi: how far did you get with juju and hpcloud ?16:09
* SpamapS is guessing the lack of S3 made it a no-go16:10
imbrandonhrm kk16:12
robbiewI heard a rumour that they turned the EC2/S3 stuff back on...but of course I never checked it out :P16:12
imbrandonheh i was just checking that16:13
imbrandonrobbiew: btw i'm in love, did i tell you that , yup love, hp drupal module + hp php classes == much love from imbrandon16:13
imbrandoncourse they need a bit o touchup, but hey their on github, i can do that16:14
imbrandon:)16:14
imbrandonthis code is like soooooo much cleaner than amazons php16:14
imbrandoninfact i though about seeing if i can use it on aws too hahha16:15
robbiew:D16:15
robbiewthey'll love to hear that16:15
robbiewlol16:15
robbiewthey=HPCloud...not AWS16:15
imbrandonhahah yea16:15
robbiewjcastro: we hit 100 folks today...wooot!16:15
imbrandoni've been emailing with one of their devex team dudes , their are a big drupal house16:16
imbrandonthey are *16:16
imbrandoninfact they have special modules specificly for drupal to speed them up via their cdn but the cms sees it as a native fs16:17
imbrandonthat will be sooooo much nicer for say OMG16:17
imbrandon:)16:17
imbrandonwont take much to adapt to wordpress, and i'm hoping any s3 compatable storage16:18
=== al-maisan is now known as almaisan-away
imbrandonSpamapS: http://hpcloud.github.com/HPCloud-PHP/ if you havent seen16:19
imbrandonfile_get_contents("swift://myfile.png") FTW16:19
SpamapSnice16:21
SpamapSStill, I'd rather se s3://16:21
SpamapSsee16:21
imbrandonyea swift is their name for s316:21
SpamapSits not s316:21
imbrandoni'm sure i can be done though16:21
SpamapSswift is s3-like16:21
imbrandonyea, its like couldfront and s316:22
imbrandonkinda16:22
SpamapSbut it only recently grew S3 an S3 compatibility layer16:22
imbrandonahh16:22
SpamapSCEPH's RADOS-GW is probably a better choice for full S3 compatibility16:22
imbrandongooglestorage is s3 all the way, s3cmd even works on it16:22
SpamapSaye.. radosgw is like that too16:23
imbrandonhrm not seen that16:23
robbiew+1 on ceph16:23
SpamapS(and has the benefit of sharding your file by block across all storage servers.. so a giant file can be streamed from multiple servers in parallel .. basically server RAID10 :)16:23
* imbrandon contemplates a s3:// streamwrapper 16:23
imbrandonnice16:23
imbrandonwell i hadent before because honestly i hadent seen one done in pure php, and i avoid c ( not c++ ) unless nessesary16:24
imbrandonhrm , doesnt s3 already to that sharding16:25
imbrandonlike on the stack level16:25
SpamapSimbrandon: I believe yes the real S3 does that... though its all behind the Bezos Curtain so who knows. ;)16:25
imbrandonheh16:26
SpamapSimbrandon: swift does not. Swift simply moves your file around as giant chunks.16:26
imbrandonahh16:26
SpamapSimbrandon: *large* files are broken up, but not at the block level.16:26
* imbrandon has been blinded by their adoption of clean php and not botherd to look at the man behind the curtain16:26
imbrandonmaybe i should do that16:26
imbrandon;)16:26
SpamapSimbrandon: http://swift.openstack.org/overview_large_objects.html16:27
imbrandonso ...16:27
imbrandonswift is part of openstack but ....16:28
imbrandonerm16:28
SpamapS?16:28
SpamapShp cloud == openstack .. clearly :)16:28
imbrandonwell yea but16:28
imbrandonso are others16:28
imbrandoni mean ... well not sure what i mean16:28
imbrandonlet me digest this a bit16:28
imbrandonbtw i see this says 5GB but i noticed their web ui said 50MB16:29
imbrandoni was wondering about that limit , likely due to a diff in s3 and swift16:30
imbrandonswift caches with memcache and syncs cross node with rsync ... seems like block level network dev would be better ...16:35
imbrandonim not great at that low in the stack though so i'm sure there is reason, with as many ppl work on it that do16:36
SpamapSimbrandon: its mostly historical IMO16:42
SpamapSimbrandon: IMO, CEPH's model is far more scalable and will be easier to support in a large scale installation. Rackspace gets by in large part because they hire amazing people and keep them happy.. but that won't scale the way AWS has scaled.16:42
robbiewSpamapS: speaking of ceph :)...the MIR is simply in the queue right?  nothing else is holding it up...just resources for MIRs16:48
SpamapSrobbiew: right16:49
SpamapSrobbiew: its pretty hard to test.. so I understand why it might take a while.16:49
robbiewSpamapS: ack, thx16:49
imbrandonSpamapS: hrm i'm def checking it out now, not really looked before16:50
niemeyerrogpeppe: Yeah, I'm about to be out for the day, after I pack16:50
rogpeppeniemeyer: ok. i guess no meeting today then.16:51
rogpeppeniemeyer: going anywhere nice?16:51
niemeyerrogpeppe: We're going to Porto Alegre16:51
rogpeppeniemeyer: nice. have fun!16:52
niemeyerrogpeppe: Not exactly a touristic place, but Ale is doing some training there over the next couple of days16:52
niemeyerrogpeppe: I'll just join her16:52
rogpeppeniemeyer: you're offline tomorrow then?16:52
imbrandonSpamapS: for the nginx MIR we were gonna wait for 12.10 open right ?16:52
niemeyerrogpeppe: Not sure.. I did file a holiday to avoid trouble, but I may be around16:52
niemeyerrogpeppe: Have you seen my note to the list?16:53
rogpeppeniemeyer: the juju list?16:53
niemeyerrogpeppe: Yeah, I hope the message did reach the list?16:53
niemeyerOh, it did.. I recall jcastro replied16:53
rogpeppeniemeyer: i see it16:53
SpamapSimbrandon: yeah, we'll have a session where we present a couple of things for MIR like nginx..16:56
SpamapSimbrandon: I'll subscribe you to the blueprint when I create it. I usually create a 'webscale' blueprint where we talk about packaging and/or MIR'ing stuff that is hot and sexy. :)16:57
SpamapSrobbiew: I just looked back at CEPH, there is one thing that I think I need to do before the MIR will pass, which is switch to using libnss instead of libcryptopp16:57
SpamapSrobbiew: I discussed it with upstream a while back.. should be fairly easy, will try to get to it before the MIR review16:58
imbrandonkk16:58
robbiewSpamapS: sweet, thx16:58
* SpamapS starts testing and poking at r504 to upload to precise today16:59
imbrandonSpamapS: so where can i find the dummy been under a rock for 3 months info on CEPH, tottaly flying blind here17:07
imbrandonnvm got it17:09
* avoine dream about btrfs being finally stable17:09
=== marrusl_ is now known as marrusl
imbrandonSpamapS: this is nice, why have i not seen this candy before, it seems like i should have known about this17:11
imbrandonmarcoceppi: ( jcastro , SpamapS too kinda ) btw blog posted about nginx configs earlier today, and noticed in doing so there are somethings i'd like to get pushed to the OMG charm, gonna be round to work on that a bit later or ?17:15
marcoceppiDo you have your changes in branch imbrandon ?17:15
imbrandonno not at all, but i will17:15
imbrandonand actually one makes a totaly new config. should i add it to files/ ?17:16
imbrandonmarcoceppi: should i work from your omg-next branch ?17:17
marcoceppiyeah, omgwtp/next is my current dev head17:17
imbrandonkk17:17
marcoceppithere's an omg-nginx config in there already17:17
marcoceppiuse that as a template to work your changes in to17:17
SpamapSavoine: for CEPH's purposes, btrfs is quite stable. If you look at it, you can lose the volume and not lose data. ;)17:17
imbrandonyea this is for the /etc/nginx/nginx.conf thou17:18
marcoceppiAfter that we can spin up a quick staging instance to check on it17:18
imbrandonnot the sites/avail one17:18
marcoceppiimbrandon: is it a lot of changes? if not it might be easier to just sed them in place, if it's a lot, then just drop it in files/nginx.conf17:18
imbrandonhrm , its about 10 lines17:18
imbrandoncould prbably sed it17:18
imbrandonbut if it gets to be more then it would make sense17:19
imbrandoni'll look exactly here in a bit and make the call17:19
marcoceppiI'm fine either way17:19
imbrandonkk17:20
imbrandoni like the idea of it in files better , but if it ends up being smaller than i thought then i'll just sed it17:20
imbrandonthe jest of it is posted on brandonholtsclaw.com as the newest post in a <pre> if you wanna peek, basicly that + omg specific dirs etc17:21
imbrandonbut i'll get it all in the banch and test17:21
imbrandonand then ping ya17:21
imbrandonand omg i dont care , i'm still in love with the hp-php code, its the first php code with any substance ( more than a snipit or two ) from any larger body ( company or group ) that is actualy NICE to work with, twitter has some nice code to once you dig past their examples that are crap, but ..... but but but17:32
imbrandon:)17:32
imbrandonjcastro: btw i was talking to a couple of the old timers i used to hang with here on irc about juju ( one is even a canonical employee now, whoda thunk ) and they/we all agreed, we need a nother way to articulate what juju is to those of us devs that brushed it aside as just another provisioning fad and that its really much more etc etc17:36
imbrandondunno how yet, but yea17:36
jcastroimbrandon: once the store lands (RSN) it'll be way easier for me to explain it to people, but yeah, you're right17:37
imbrandonsweet, if i can help lemme know, no idea how but offer stands17:37
_mup_Bug #962383 was filed: ec2-key-pair went away, but juju doesn't say it is unsupported <documentation> <ec2> <juju:New> <juju (Ubuntu):New> < https://launchpad.net/bugs/962383 >17:45
jcastroSpamapS: are you in charm mode or distro/ship mode today?17:47
jcastroSpamapS: znc and appflower are ready for round 2 reviews if you feel like being a promulgator today17:47
jcastroimbrandon: is quickdrop ready for a first review?17:49
marcoceppiappflower looks good, I haven't had a chance to check his changes but the diffs look solid17:49
SpamapSjcastro: I have sucked at charm review this week..17:50
SpamapSjcastro: I will make it a point to get into charm review mode as soon as I get the latest juju into precise17:50
m_3jcastro: me too17:50
imbrandonjcastro: no, will be as soon as i push , trying to clean up the last bits now17:50
jcastroimbrandon: ok, next time don't add the "new-charm" tag until you're ready for review pls.17:51
imbrandonjcastro: was thinking about retrofitting some stuff but i'm gonna do that later17:51
imbrandonjcastro: sure17:51
jcastrom_3: hah man, this queue is larger than it's ever been. :)17:51
SpamapSjcastro: perhaps we should change the tag to 'ready-for-review'17:52
* jcastro nods17:52
SpamapSjcastro: its a bit confusing when you have a "new charm" but its not necessarily ready for people to look at.17:52
m_3oh, that's a good idea17:52
jcastroyeah, ok after we get these done I'll just change it.17:53
SpamapSWe should have a retrospective session at UDS about the whole charmers process.17:53
SpamapSjcastro: eh.. lets hold off on that for now17:53
SpamapSjcastro: lets just think about it, and make a noisy change when we're ready17:53
jcastrook17:53
SpamapStoo much going on right now17:53
m_3sissy17:53
imbrandonlol17:53
jcastrowell, by "doing it" I meant more like bringing it up on the list, etc.17:54
SpamapSpretty much everything has changed in some way in the last 8 days17:54
SpamapSLets stop changing stuff.. just for 3 weeks.. and see if anything explodes.17:54
m_3I think the quote is something like "may you live in interesting times"17:54
jcastrook.17:54
imbrandonjcastro: yea and the charm is being pushed to github too, i'll let you figure that one out /me ducks17:54
jcastrothat's cool, we don't mind fetching charms. :)17:55
imbrandon:)17:55
SpamapSm_3: 你可能生活在有趣的时代17:55
imbrandonmmmm utf-817:55
* SpamapS loves google translate17:56
imbrandonmy fav has always been "Et hoc ante omnia omnibus fieri etiam" even blogged aobut it, need to import all my old blog posts today sometime17:57
m_3geek17:58
imbrandondosnt translate nice, but its the repeated saying in galatica17:58
imbrandonlol17:58
imbrandonEternal Return , or whatever the concept is called18:00
imbrandonvery geeky, but kinda cool :)18:00
imbrandonhahah and i just found out something i did not know, and not sure i'm happy bout it , "The first line of Disney's Peter Pan is 'All of this has happened before, and it will all happen again.' "18:03
* imbrandon frowns18:03
imbrandonwas better when only the humans and cylons repeated it ...18:04
_mup_juju/relation-hook-context r508 committed by jim.baker@canonical.com18:19
_mup_Only try to flush relation hook contexts that have been changed18:19
_mup_juju/relation-hook-context r509 committed by jim.baker@canonical.com18:55
_mup_Fix remaining failing test18:55
_mup_juju/relation-ids-command r506 committed by jim.baker@canonical.com18:57
_mup_Merged upstream18:57
_mup_juju/relation-ids-command r507 committed by jim.baker@canonical.com19:07
_mup_Relation ident update19:07
shazznerhello19:10
shazznerquick question, can you configure juju for local, but to a remote data-dir?19:11
shazznerlike data-dir: /media/mountpnt/.19:11
shazznerI'm sure just testing it out instead of asking would probably be quicker :p19:12
_mup_juju/relation-id-option r515 committed by jim.baker@canonical.com19:12
_mup_Merged upstream & resolved conflicts19:12
=== hspencer is now known as hspencer[afk]
_mup_juju/relation-id-option r516 committed by jim.baker@canonical.com19:50
_mup_Relation ident, precaching of child relation hook contexts refactoring19:50
shazznerhuh19:51
shazznerI'm having this issue when trying to bootstrap a local instance: http://paste.ubuntu.com/906169/19:51
shazznerNetwork is already in use19:51
imbrandonreboot after installing the local deps ?19:52
shazznerhmm ok19:52
shazznerhey that worked!19:58
=== hspencer[afk] is now known as hspencer
imbrandon:)20:01
shazznerhmm another issue20:08
shazznerafter deploying a charm, both the public-address and state are both null20:08
imbrandonhappens with local sometimes20:09
imbrandonjust juju destroy-environment20:09
imbrandonand rebootstrap20:10
imbrandonshould fixer up20:10
shazznerhmm, still null20:11
imbrandonhrm20:11
imbrandonSpamapS: halp! heh20:11
shazznerI'm grabbing the ppa and updating juju20:15
shazznermaybe that'll help20:15
shazznerok dist-upgrade hmm20:17
hazmatshazzner, what's the instance state?20:22
hazmatshang, er. agent-state20:22
hazmater. shazzner20:23
SpamapSI'm really glad we made it 'agent-state'20:23
SpamapSwould be so hard to ask people "whas the state?"20:23
hazmatSpamapS, indeed, it is a bit clearer20:23
SpamapSwho's on installed? config_error is on 2nd, and state is pitching20:23
* hazmat made it all the way to 'stopped'20:24
_mup_juju/relation-hook-context r510 committed by jim.baker@canonical.com20:26
_mup_Require relation_ident in constructing relation hook contexts20:26
shazznerok I upgraded juju and rebootstrapped20:26
shazzneragent-state: pending20:26
shazznerwhoa20:28
shazznertons of errors in debug-log20:28
shazznerhttp://paste.ubuntu.com/906211/20:29
shazznerlooks like Twisted errors20:29
SpamapSshazzner: what OS?20:30
shazzneroneiric20:30
SpamapS2012-03-29 15:28:09,205 Machine:0: twisted ERROR: cp: cannot stat `/var/lib/lxc/chris-testlocal-0-template/config': No such file or directory20:31
hazmatshazzner, that's using the ppa?20:31
shazzneryup20:31
SpamapSshazzner: something failed in lxc-create most likely20:31
SpamapSshazzner: lxc-ls ?20:31
shazznerchris-testlocal-gitolite-020:32
hazmatthat tweaking error is odd20:33
shazznernot sure if it matters, but this is on an old i686 hp proliant server20:33
hazmatits not from juju20:33
SpamapSshazzner: you should see christ-testlocal-0-template20:33
shazznerin lxc-ls?20:34
SpamapSshazzner: yes20:34
shazznerhuh20:34
shazznerdid it just name it wrong? :p20:34
SpamapSshazzner: thats the container that gets created on the first unit, and then cloned to all the others20:34
SpamapSshazzner: no something failed along the way20:34
shazzneroh I see20:34
SpamapSshazzner: I'd suggest destroy-environment20:34
shazznerk20:34
SpamapSshazzner: and if that container is still there, 'lxc-destroy -n chris-testlocal-gitolite-0'20:35
SpamapSshazzner: also if you get the same fail again, try 'rm -rf /var/cache/lxc/*' which will force re-downloading the minimal image20:35
shazznernope lxc-ls returned nothing20:35
shazznerbootstrap doesn't log anything20:36
shazznerattempting deploy again20:36
shazznerhuh20:37
shazznerthe template is there now20:37
shazznerbut no gitolite20:37
shazznerlet me try deleted the lxc cache20:38
SpamapSshazzner: wait20:38
SpamapSshazzner: the template gets created and then messed with for a bit20:39
SpamapSwe really need to add the master-customize.log tod ebug-log20:39
SpamapSto debug-log I mean20:39
shazznerI get this error upon destroy-enviornment http://paste.ubuntu.com/906226/20:39
SpamapSshazzner: in your data-dir, you should see 'units/master-customize.log'20:39
SpamapSshazzner: you need to slow down20:39
SpamapSshazzner: it takes a few minutes between creating the template and creating the actual unit20:40
shazznerok I will :)20:40
SpamapSshazzner: make sure there aren't any juju processes left hanging around, and then clear out any leftover lxc templates or units with lxc-destroy20:40
SpamapSshazzner: then your destroy-environment should clear things out adequately20:41
shazznerok everything looks clean20:42
shazznerfrom the top20:42
shazznerok instance-state running20:43
shazznerattempting deploy20:43
shazzneragent-state: pending20:44
SpamapSshazzner: good20:45
SpamapSshazzner: now find master-customize.log in your data-dir/units and tail that20:45
shazzneron it already20:46
shazznerstill on creating mast container20:46
shazzner*master20:46
shazznerI'll wait though :)20:46
* SpamapS vows to work on a "log everything to one place" feature sometime in the near future20:46
SpamapSshazzner: lots of downloading and installing of packages to get through there. :-P20:46
SpamapSI wonder if eatmydata can make the container creation faster20:46
shazznerhmm it's on juju.state.unit@INFO: Started service unit gitolite/020:50
shazznerit's probably still running the install script20:51
SpamapSshazzner: agent-state should be running then20:51
shazznerstill pending :/20:51
SpamapSshazzner: odd... hm20:52
SpamapSshazzner: actually no that makes sense..20:52
SpamapSshazzner: should be up shortly though20:52
shazznerhuh in the master log: it reached Container Customization Complete20:53
shazznerstill pending on state20:54
SpamapSshazzner: so now it has to clone it20:55
SpamapSshazzner: which is just a cp -a (you may even see that running)20:55
SpamapSshazzner: I hope at some point very soon that becomes an overlayfs mount20:55
shazznerah20:55
SpamapSI bet we could make it a local provider argument.. 'ephemeral: true'20:55
SpamapSbecause right now they're at least persistent until you destroy the environment20:56
shazznerhuh20:56
shazznerwell20:58
shazznereither I'm an impatient twit (likely) or it got stuck somehow20:59
SpamapSshazzner: does lxc-ls show it running? (2nd line) ?21:01
shazzneryup21:02
shazznerchris-testlocal-0-template  chris-testlocal-gitolite-021:02
shazznerchris-testlocal-gitolite-021:02
SpamapSshazzner: progress :)21:03
shazznerindeed :p21:03
SpamapSshazzner: so if you run a pstree (or ps auxf) you should see a juju agent running under lxc-start->init->python21:04
shazznerI see lxc-start-init-cron21:05
shazznerhttp://paste.ubuntu.com/906267/21:05
shazzneroh I see python nm21:06
SpamapSshazzner: (ps auxf will show you the actual arguments os you can see juju most likely)21:06
SpamapSshazzner: ok well you're almost there then :)21:06
SpamapSshazzner: still pending?21:07
shazzneryeah I see21:07
shazzneryup still pending21:07
arashbmI have a question!21:08
arashbmwhat is it trying to download when it is "Creating master container..."?21:08
SpamapSarashbm: Ubuntu :)21:08
arashbmSpamapS: ouch! that would hurt with 100KiB/s21:09
SpamapSshazzner: ok look in data-dir/units/gitolite-0/unit.log21:09
SpamapSarashbm: its the minimal distro21:10
SpamapSarashbm: about 50MB21:10
SpamapSarashbm: and it should be cached in /var/cache/lxc after the first time you do it21:10
shazznerSpamaps: you mean container.log?21:10
SpamapSshazzner: no, unit.log21:10
shazznererr no such file21:11
SpamapSshazzner: *hmmmm*21:11
shazznererr wait21:11
SpamapSshazzner: should be a symlink in there21:12
SpamapSshazzner: to the log insie the container's rootfs21:12
imbrandonError processing '/root/.juju/cache/cs_3a_oneiric_2f_mysql-0.charm': must be a zip file (File is not a zip file)21:12
shazznerhttp://paste.ubuntu.com/906277/21:12
imbrandonwth is that?21:13
shazznersorry that was directed to SpamapS21:13
imbrandonyea, sorry21:14
imbrandonafk, brb . SpamapS , thats from deply mysql , others work fine21:14
SpamapSshazzner: my guess is something has gone wrong with your unit agent..21:14
shazznerSpamapS: in the output.log I get an endless series of this: http://paste.ubuntu.com/906281/21:14
SpamapSshazzner: anything in output.log ?21:14
shazznerlooks bad21:15
SpamapSAHA!21:15
SpamapSshazzner: ok that makes sense21:15
SpamapSshazzner: for some odd reason, your container has the distro version of juju21:15
SpamapSshazzner: but your host is running the PPA version21:15
shazznerhuh21:15
SpamapSand they are not compatible21:15
shazzneroh21:15
SpamapSshazzner: juju-origin: ppa21:15
SpamapSshazzner: juju is supposed to detect that and set the origin automatically.. but I wouldn't be surprised if it guessed wrong21:16
shazzneroh oh oh21:16
shazznershit21:16
SpamapSahh21:16
SpamapSthe oh shit moment21:16
SpamapSone of life's great experiences21:16
shazzneryep juju-origin: distro21:16
shazznerhaha21:16
_mup_juju/relation-hook-context r511 committed by jim.baker@canonical.com21:20
_mup_Created missing test for get_relation_hook_context21:20
shazznerhooray I get a public-address now!21:23
shazznerbooyah it's started21:24
shazznerchrist thanks for your help SpamapS21:24
shazznersorry for dragging you through that!21:24
SpamapSshazzner: no problem.. we should probably detect the distro version and refuse to start a container that will never work actually.21:25
shazznerthat sounds nice :)21:25
SpamapSThough that would mean juju would need to become version aware ;)21:25
* SpamapS still waiting for --version :-P21:25
_mup_juju/relation-hook-context r512 committed by jim.baker@canonical.com21:30
_mup_Comments21:30
shazznerhuh21:59
shazznerone weird thing21:59
shazznerwhen I deploy a charm, then try to ssh into the machine21:59
shazznerit asks me for a password22:00
SpamapSshazzner: which "Machine" ?22:09
SpamapSshazzner: you need to ssh to the unit. the "machine" is your machine22:10
shazznerok got it22:12
_mup_juju/relation-hook-context r513 committed by jim.baker@canonical.com23:19
_mup_Verify lookup of relation hook context for a nonexistent relation id fails properly23:19
arashbmJuju is magic!!23:38
SpamapSarashbm: :)23:40
imbrandonecho "apt-get install" > /tmp/install.txt && ssh xerox.websitedevops.com 'dpkg --get-selections' | tee /tmp/full-list.txt | grep -v deinstall| cut -f 1| tr "\r\n" " " >> /tmp/install.txt && cat /tmp/install.txt| tr "\r\n" " " > /tmp/install.txt && mv /tmp/install.txt $(pwd)/install.sh && echo '#!/bin/bash'|cat - $(pwd)/install.sh > /tmp/out && mv /tmp/out $(pwd)/install.sh && chmod +x $(pwd)/install.sh23:47
imbrandondoh23:47
SpamapSimbrandon: chapter 8, verse 13 in The Unholy Scriptonomicom, Amen23:49
imbrandonSpamapS: hahah yea, its ugly23:49
imbrandonmakes for a quick "clone" though23:50
_mup_juju/relation-hook-context r514 committed by jim.baker@canonical.com23:51
_mup_Removed unused change field from relation hook context23:51
SpamapSimbrandon: I believe there is an apt-clone now23:51
SpamapSDescription-en: Script to create state bundles This package can be used to clone/restore the packages on a apt based system. It will save/restore the packages, sources.list, keyring and automatic-installed states.23:52
_mup_juju/relation-ids-command r508 committed by jim.baker@canonical.com23:52
_mup_Merged upstream23:52
SpamapSimbrandon: *much* cooler. :)23:52
imbrandonhahaha figures23:53
imbrandon:)23:53
* imbrandon rm's this old thing thats prone to error anyhow from ~/bin/misc-tools23:54
imbrandonSpamapS: yea without the sources.list and stuff from apt-clone , you end up with cruft like23:55
imbrandonE: Package 'logmein-hamachi' has no installation candidate23:55
imbrandonE: Package 'newrelic-php5' has no installation candidate23:55
imbrandonE: Package 'newrelic-sysmond' has no installation candidate23:56
imbrandonlol23:56
imbrandonwith mine that is23:56
SpamapSimbrandon: apt-clone specifically addresses that23:56
imbrandonyea23:56
imbrandonthats what i was getting at23:56
imbrandonnother reason to use it :)23:56
_mup_juju/relation-id-option r517 committed by jim.baker@canonical.com23:56
_mup_Merged trunk & resolved conflicts23:56
imbrandonSpamapS: here i got one other act of un-holly i use semi-often, got something for this ?23:57
imbrandonalias autokey='sudo apt-get update 2> /tmp/keymissing; for key in $(grep "NO_PUBKEY" /tmp/keymissing |sed "s/.*NO_PUBKEY //"); do echo -e "\nProcessing key: $key"; gpg --keyserver keyserver.ubuntu.com --recv $key && gpg --export --armor $key | sudo apt-key add -; done'23:57
imbrandonlol23:58
SpamapSimbrandon: um.. yes.. don't use sources w/o thinking about the source!23:58
imbrandonhaha its only when i transer the sources.list to a new machine23:59
imbrandontransfer*23:59
imbrandoni dont use shady source cept for maybe my own ppa23:59
imbrandonlol23:59
SpamapSimbrandon: but.. thats the thing. why are you using sources that you don't trust first before transferring?23:59

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