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

=== almaisan-away is now known as al-maisan
imbrandonm_3: its ready for the charm store and been reviewed :)09:51
imbrandoni have it manually mirror both places atm, and then i setup a juju-drupal project so it would pull every few minutes, but it pulls to a diffrent branch09:51
imbrandonsoo09:52
=== al-maisan is now known as almaisan-away
=== Guest394 is now known as jrgifford
yolandahi, good afternoon13:04
yolandaone question, how can i debug a db-relation-joined hook? it doesn't give any error, but the code in the hook doesn't seem to be executing13:05
sc-rmYolanda: Which charm are you trying to use?13:14
yolandasc-rm, i'm building a new one13:14
yolandai'm adding a relationship to postgresql13:14
yolandaand i have a hook db-relation-joined13:14
sc-rmyolanda: Which language do you code your charm im?13:15
yolandasc-rm, its' just bash13:15
sc-rmyoulanda: okay, then I would just do some echo in the places I suspect to not get hit13:16
yolandasc-rm, but how can i reach to that relationship in debug?13:17
sc-rmyoulanda: I guess you do something like juju add-relation postgresql you-charm?13:17
yolandasc-rm, hes, juju add-relation openerp postgresql:db13:18
yolandathe relationship seems to be creating, doesn't give any error, but there is some code to change a config file and isn't triggered13:18
imbrandonyolanda: anything in juju debug-log13:19
yolandajuju add-relation openerp postgresql:db -e local13:20
yolanda2012-04-10 15:20:06,162 INFO Added pgsql relation to all service units.13:20
yolanda2012-04-10 15:20:06,163 INFO 'add_relation' command finished successfully13:20
yolandanothing in logs13:20
imbrandonfun13:20
sc-rmyoulanda: have you looked at https://juju.ubuntu.com/docs/write-charm.html ?13:20
imbrandonsc-rm: i'm fairly sure this is about yolanda's what the 3rd or 4th one :)13:21
yolandai've read it13:21
yolandai have successfully create the install, start and stop13:21
yolandabut the db-relation-joined gives me problems13:22
* SpamapS stretches and yawns13:22
imbrandonmoins SpamapS13:22
SpamapSyolanda: have you used 'juju debug-hooks' yet ?13:22
SpamapSyolanda: I think its what you're looking for13:22
yolandaSpamapS, yes, i used it, but how can i retry a relationship? i never get into the db-relation-joined hook13:23
yolandai remove the relationship, i add it again, but i'm not placed into the hook13:23
SpamapSyolanda: if the state is just 'up', you need to remove/add it again. If it is in error, you can use 'juju resolved --retry unit/X db'13:23
SpamapSyolanda: are you sure you're not still *in* the hook?13:24
yolandathe status of the relationship is that:13:24
yolanda    relations:13:24
yolanda      db:13:24
yolanda      - openerp13:24
yolandaand that for openerp:13:24
yolanda    relations:13:24
yolanda      db:13:24
yolanda      - postgresql13:24
yolandais that ok?=13:24
SpamapSyolanda: can you install 'pastebinit' and just pipe the whole output of 'juju status' to it13:25
SpamapS?13:25
SpamapSbcsaller1: good morning?13:25
yolanda ok13:25
yolandahttp://paste.ubuntu.com/923267/13:27
SpamapSyolanda: thanks reading13:29
yolandathx13:30
SpamapSyolanda: so yeah I would expect remove/add to throw you back into db-relation-*13:30
SpamapSyolanda: perhaps you need to exit debug-hooks and go back in ?13:30
yolandaSpamapsS, so i just do a debug-hooks openerp/013:30
yolandaand then remove add relation?13:31
yolandait doesn't place me in the hook, i just remain in the initial screen13:32
SpamapSyolanda: it should definitely place you almost immediately in the joined hook13:33
yolandadoesn't do it :(13:33
SpamapSyolanda: can you run debug-log in another window and confirm that joined is being executed?13:33
yolandanothing in juju debug-log13:34
yolandaSpamapS, so something is wrong with my juju charm? seems that nothing is triggered13:37
SpamapSyolanda: can you pastebin metadata.yaml ?13:38
yolandasure13:40
yolandahttp://paste.ubuntu.com/923287/13:41
SpamapSyolanda: I suspect there is something more sinister going on. Can you try 'juju resolved --retry openerp/0 db'13:42
SpamapSperhaps the new status output is not as obvious about errors13:42
yolandaThe relation 'db' has no unit state for 'openerp/0'13:42
yolanda2012-04-10 15:42:32,817 ERROR The relation 'db' has no unit state for 'openerp/0'13:42
SpamapSyolanda: is this right after you added it?13:44
SpamapSyolanda: can you run 'dpkg -l juju' on your machine, and on openerp/0 ? are they the same version?13:44
yolandaSpamapS, yes, just after adding it13:45
yolandalet me check the versions13:45
yolandamm, not same version13:45
yolandalocal is bzr50413:45
yolandaopenerp/0 is bzr51813:45
yolandabut i'm using local containers in juju, why are they different?13:46
yolandai'm using ppa as juju-origin, perhaps i need to use repo?13:50
SpamapSyolanda: well technically there should be no incompatibility between those versions13:50
SpamapSbut in reality, I've seen a lot of subtle breakage with stuff like this13:51
SpamapSyolanda: just upgrade your local machine. 518 just landed yesterday.13:51
SpamapSyolanda: if that fixes it.. please let me know. We really have to stop breaking things in backward incompatible ways.13:51
yolandalet me see13:52
yolandado i have to regenerate all the environment?13:53
SpamapSyolanda: hopefully no13:59
SpamapSyolanda: you might want to destroy the existing services13:59
SpamapSyolanda: but I'd try just with a new client binary13:59
yolandaSpamapS, it gave some error, i'm destroying environment and creating new14:00
SpamapSyolanda: could you pastebin the error?14:03
SpamapSThats actually quite critical since we plan to land one more version in precise .. I think14:03
yolandatoo late...14:03
yolandai just destroyed it14:03
yolandai'm running it again, let me check if the error shows now14:03
marcoceppiI wonder would a "good" feature be to bootstrap a remote environment locally? So in the environments.yaml EC2 stanza say "local-bootstrap: true". Juju would spin up an LXC container instead of doing so in the intended cloud14:07
marcoceppiI know you loose portability, but you could save money that way14:08
SpamapSmarcoceppi: you can save money with 'placement: local'14:11
SpamapSmarcoceppi: just remember to remove it after the first deploy. ;)14:12
marcoceppiSpamapS: that deploys to the bootstrap, correct?14:12
SpamapSmarcoceppi: though I have thought a lot about how to do de-centralized juju.. and one way I was wondering about was to run the zookeeper locally and have juju agents just connect to 127.0.0.1:xxxx and have juju clients ssh in and "wake up" the agents with the port forwarded. Feels very hacky.14:13
SpamapSmarcoceppi: correct14:13
_mup_juju/ns-from-env r479 committed by kapil.thangavelu@canonical.com14:13
_mup_merge trunk14:13
marcoceppiSpamapS: Right, I've been pondering different de-centralized ways to manage juju this morning, at least at a high level, and I couldn't really fathom another way than what's running now14:14
SpamapSmarcoceppi: I think ultimately zookeeper should be ditched for a map of the nodes kept somewhere (S3 for instance).. and agents should just be responsible for their own data, and use 0mq to talk to eachother and feed their status back to object storage per-unit. I'm not convinced anymore that zookeeper is needed, though it *does* make things simpler.14:14
SpamapSmarcoceppi: It makes me nervous how much vital information is stored in ZK.14:16
SpamapSanyway, time to wake up the family14:17
marcoceppiSpamapS: so, an alternative would be to just maintain a map in the bucket then all the relation based data that may or may not be sensative is on each node within the juju agent?14:17
SpamapSmarcoceppi: right14:17
marcoceppiinteresting14:18
SpamapSbasically juju client would just much with a tree of intent (much like it does now) but instead of having ZK there with all of the other resulting data (like relation-set produced data), the agents would just keep that to themselves and message it back and forth.14:19
SpamapSs/much/muck/14:19
SpamapSthat way there's no one server that you compromise to pwn the entire environment.14:20
* SpamapS goes upstairs to start shaking his toddler awake14:20
marcoceppiIs there any way to tell which unit is the "head" in a peer relation?14:42
hazmatsmoser, thanks for the clue yesterday re cloud-init, it appears that rsyslog fails to start in the lxc cloud-image14:43
hazmatwonders what the heck /usr/bin/whoopsie is14:43
SpamapShazmat: just don't step on it14:44
jcastrohey SpamapS14:49
jcastrolet's talk store for precise now that contest is nearly done14:49
SpamapSyeah I started working on testing all the charms last week14:53
jcastroSpamapS: anything sticking out as a problem? ie. do you think this will be a big deal or just flipping the switch?14:55
SpamapSjcastro: no, initially most work fine. :)14:58
SpamapSjcastro: we should have a period where we invite ~charmers to fix them all, and I need to ask the launchpad guys what will happen when there is already a branch present.. but i think we'll have this wrapped up by next week.14:59
jcastrook14:59
smoserhazmat, why no syslog ?15:04
smoserdo you know ?15:04
smoseras i might have been about to ask SpamapS on a similar question15:05
smoseroh.15:05
smoserlxc15:05
hazmatsmoser, haven't really debugged it yet.. it fails to start15:05
smoser/dev/log15:05
hazmatsmoser, yup15:05
hazmatprobably15:05
smoserlxc container does not probably have access to that device node15:05
smoserdoes that make sense to you? would that be able to kick you in the right direction to fix it ?15:05
smoseror you want more direction15:05
smosers/fix/test change/15:06
hazmatsmoser, doesn't exist in the container15:06
smoserright. because it can't get created15:06
smoserbecause lxc wont let it.15:06
smoserer... app armour or what not.15:06
avoinehazmat have you found a bug about rsyslog on lxc?15:07
avoineI saw that because it prevent cloud-setup to be fire15:08
hazmatavoine, well it doesn't start in particular on the cloud-image which causes issues for cloud-init's config which juju relies on.15:08
hazmatsmoser, at this point i'm just going to punt till after precise, it was a big change to even try at this point, even though the code delta is small15:09
hazmatsmoser, as far as hints.. though i'm all ears15:09
smoseroh. wait... maybe we can fix this via cloud-init data.15:10
smoserwait.15:10
smoserno15:10
smoserrsyslog is going to use /dev/log15:10
smoserwe need access to that in the container15:10
hazmatsmoser, looks like just killing the app armor profile for rsyslog gets it to start15:11
hazmatand then cloud-init config is happy15:11
smoserhm..15:11
smoseriwould have thought youneeded access specifically to mknod from one of the lxc configs.15:11
smoserbut... ok.15:11
smosermy suspicion is that /dev/log is not containerized15:12
smoserhallyn or stgraber can probably provide insight on what to do here.15:12
hazmatsmoser, not sure, i don't see the messages from the container in the host..15:13
smoseroh. wait.15:13
smoser/dev/log is just a socket.15:13
smoserand rsyslog sets it up15:13
smoserso, yeah, containerized.15:14
smoseri was thinig it was a dev node.15:14
hazmatsmoser, so its just the app aromor pollicy15:16
hazmatoh.. double typo, extra points15:16
bacwhen i try to use 'juju bootstrap' with --constraints specifying more than one constraint i get errors:  http://paste.ubuntu.com/923438/15:20
baci'm following the example shown at https://juju.ubuntu.com/DeprecatedEnvironmentSettings15:21
avoinehazmat: smoser: could you tell me if you fill a bug about the rsyslog issue? I would like to follow it.15:29
smoserhazmat, ^ can you file one? open it against lxc.15:29
smoseri'd do it, but you ahve more context.15:29
hazmatsmoser, avoine sure15:31
avoinethank you15:31
hazmatavoine, smoser its bug 97814715:56
_mup_Bug #978147: rsyslogd fails to start in cloud template  <lxc (Ubuntu):Confirmed> < https://launchpad.net/bugs/978147 >15:56
avoineok thanks again15:56
imbrandonSpamapS: man , dunno if your a rock fan or not , but I just bought the new Halestorm album, if you are even a little, dont hesiate get it now! dude most sophmore albums suck, or at least dont stack up to the first, this one blows the first out of the water16:21
SpamapSimbrandon: I'm disconnected from all new music unfortunately. I still just rock out to Pantera's Vulgar Display of Power when I need something with kick16:22
imbrandonyea definaltly along the same lines, dude i broke my nose at that tour16:23
imbrandonon*16:23
imbrandonin the moshpit16:23
SpamapShaha16:23
SpamapSIts my hockey music16:23
imbrandon:)16:23
SpamapSONETWOTHREEFOUR!!!16:23
imbrandonhells yea there is some reason i knew i liked you hahahaha j/k16:23
SpamapSHonestly lately I just listen to Billy Joel. I need to chill more than I need to get amped up.16:24
imbrandon:)16:24
imbrandonthey got a little chill on the album, like "heres to us" more like an 80's powerbalid16:25
imbrandonlemme see if i can find it on amazon, i think they let you preview it16:25
imbrandonhttp://www.amazon.com/Heres-To-Us-Explicit/dp/B0070R94SK16:27
imbrandonyea there is a preview16:27
imbrandonits the slower side of the album16:27
imbrandonthis is the one that made me buy the album instantly http://www.amazon.com/American-Boys/dp/B007ONQC4Y16:28
imbrandonand of course i have the first album too and seen em in concert 2 times now at Rockfest KC, bigest one day music fest in america ( 55k people, one day, 12 hours, 2 stages, hell yea )16:30
marcoceppierr, I think you guys broke compatibility between juju versions 0.5+bzr504-1juju4~oneiric1 and 0.5+bzr518-1juju5~oneiric116:36
marcoceppiIn this case, should I just run a apt-get upgrade on the bootstrap? juju status is giving a weird error ATM and I think it's because the juju versions mismatch16:37
SpamapSmarcoceppi: certainly worth a try. Can you maybe document the errors so we can try to avoid such madness in the future?16:39
* SpamapS really really wants to implementat version stability16:39
marcoceppiSpamapS: I understand I'm in the ppa version, so I expect some breakage. What would be best for you guys?16:41
marcoceppias far as documenting errors and giving enough details16:41
_mup_juju/must-specify-relation-name r516 committed by jim.baker@canonical.com16:42
_mup_Client side check16:42
m_3SpamapS: hey... so blacklisting charms from testing16:44
m_3I blacklist the openstack ones because they're already tested elsewhere16:44
m_3but take buildbot-slave for example...16:45
m_3it requires config to even install16:45
marcoceppim_3: should charms like that include a default.yaml for config then?16:46
m_3I can either blacklist such things or bump them back to the authors and require them to have enough default config to at least "start"16:46
m_3I'm tempted to bump them back, but just wanted peeps opinions on that... so we're requiring all charms to at least start when we're reviewing16:47
m_3marcoceppi: yeah, we haven't been too strict with it though16:47
m_3marcoceppi: really it's enough default values in the config.yaml... not a default.yaml to pass16:48
m_3that's more work for the testing framework16:48
marcoceppim_3: I think it's a good idea to have enough defaults in config.yaml then16:48
m_3yup16:48
m_3it's strange for some charms though... buildbot-slave is a perfect example16:48
m_3it's a general tool... defaults don't make sense really, they'd be put there _just_ for our testing purposes16:49
m_3I'm cool with that tho16:49
marcoceppiSpamapS: http://paste.ubuntu.com/923559/16:50
marcoceppiSpamapS: so upgrading the bootstrap didn't work, I guess I'm just going to have to destroy/re-bootstrap?16:52
* marcoceppi wonders how to best upgrade the omg env without downtime16:55
m_3marcoceppi: dang, we've got to stop breaking the api between the cli and existing bootstrapped environments16:55
m_3it's almost like you've gotta balance across two environments16:55
marcoceppim_3: I have a question, it might be easy to hold the package on my local machine, but doesn't each deployment/add unit install the current juju package?16:55
marcoceppiSo holding the package on my machine wouldn't really save me in the future from the units being out of sync with each other16:56
m_3I've never gotten a variation of that to work... always ended up having to destroy/reboostrap16:56
m_3marcoceppi: are you using origin: ppa?16:57
m_3or distro?16:57
SpamapSmarcoceppi: right, the only way to make it truly repeatable is to stick juju in a bzr branch16:58
m_3well, even that's been changing16:58
SpamapSmarcoceppi: we *must* change that16:58
m_3right... gotta freeze juju16:58
SpamapSI made a proposal for that16:58
SpamapSbut its seen basically no response16:58
marcoceppim_3: ppa ATM16:58
SpamapSother tham +1's from hazmat here on IRC :)16:58
marcoceppiwith distro, will I be able to do placement: local and in subsequent upgrades of the distro what's to say it won't break the current deployment like the PPA did?16:59
SpamapSmarcoceppi: do you still have the affected environment?16:59
marcoceppiSpamapS: yes16:59
marcoceppiit's the omgubuntu env16:59
SpamapSmarcoceppi: can you do 'juju -v status' ?16:59
SpamapSoh16:59
SpamapSawesome!16:59
SpamapS<sigh>17:00
imbrandonmarcoceppi: deploy on new ones and swap the ip is the only other option, but use the elastic ip17:00
imbrandonfor no downtime17:00
marcoceppiSpamapS: it's okay, I can create a new env on the ohso AWS, bootstrap, deploy, add-relation, then move the elastic ip17:00
marcoceppiimbrandon: yeah, that's the plan ATM17:00
SpamapSI think its time for a stable PPA17:00
SpamapSBeen thinking about it for a long time17:00
marcoceppiSpamapS: <317:00
imbrandon:)17:00
SpamapSwith a ridiculous number of tests before upload17:00
marcoceppiSpamapS: http://paste.ubuntu.com/923597/17:01
SpamapSand one of them will need to be "works with the last version"17:01
m_3marcoceppi: might be worth really balancing (dns) between the two different environments... instead of just a manual failover17:01
SpamapSyeah17:01
m_3depends on the data17:01
imbrandonSpamapS: can we add works on osx too ? /me ducks17:01
marcoceppim_3 ?17:01
SpamapSlooks like zookeeper was broken without bumping the version number17:02
SpamapSimbrandon: don't duck, stand tall.. and donate a mini? ;)17:02
imbrandoni actually probably could17:02
imbrandoni got an extra17:02
m_3whoohoo!17:02
imbrandonits an older one, but it will run 10.7 easy nuff ( intel core 2 duo )17:03
imbrandonmarcoceppi: m_3 i think that would require dood to be using route 53 dns17:03
SpamapSimbrandon: ideally we'd run a VM of Lion and Mountain Lion17:04
m_3marcoceppi: two different juju envs... A and B... name balances across elastic ips in both envs.  Then you can make changes to one at a time and pull it out of rotation upon failure17:04
m_3it's more $$ tho17:04
imbrandonSpamapS: oh thats easy, got any actual vmware products running, osx will legitly load in those17:04
imbrandonfrom 10.7 on17:04
marcoceppim_3: then it's probably a no :) We're looking in to placement: local for mysql+bootstrap now to shave off another small17:05
m_3right17:05
marcoceppiplus, not sure how the db sync would work17:05
SpamapSmarcoceppi: replication :)17:05
imbrandonyea or rds17:06
SpamapSrds would be overkill for their use wouldn't it?17:06
marcoceppinow sure how to configure that in the existing charm infrastructure since bootstraps can't talk to each other (yet)17:06
imbrandonyup17:06
imbrandonawy overkill17:06
imbrandonway*17:06
jcastroSpamapS: dumb question. I am on precise, and using all "ootb" parts, like distro not ppa, etc. Since I can't deploy "juju deploy subway" since the precise store isn't open, should "juju deploy cs:oneiric/subway" work?17:07
m_3marcoceppi: no, the envs wwould be totally isolated17:07
* imbrandon really needs to fingure out how to bootstrap into hp cloud then i can test all kinda finky configs17:07
m_3marcoceppi: oh wait, you're right... replication17:07
m_3we'd have to make it a config parameter... we want the environments as isolated as possible to provide availability17:08
m_3negronjl's done some stuff with this... it was mongo, not mysql replication, but something similar could be done for mysql17:09
imbrandonSpamapS: but yea the mini dshould be able to handle that no problem, it will just be choked on ram, i thnk 4gb is the max for that generation17:09
imbrandonSpamapS: but even today vmware has a special clause in their products with apple and can run osx, its how the big hosting companies get away with osx vps's17:10
imbrandoni know fusion, esx , vsphere and workstation all work, not sure a bout plain old player17:11
negronjlmarcoceppi, m_3:  The db sync would have to be a completely different approach ...  they're diff. monsters17:11
marcoceppiThis is all hypothetically not going to happen for the omgubuntu install, since it's more $$, btw17:12
m_3negronjl: 1-way, right... but the basic idea of adding the replica's ip addr as a config param to the master...17:12
m_3marcoceppi: understood... sorry, just brainfarting out-loud17:13
negronjlm_3: yeah ... that principle could work17:13
m_3well sorta-outlound :)17:13
imbrandonheh17:13
marcoceppiFeel free to keep farting, I just didn't want anyone to get too serious about ZOMG LETS DO THIS17:13
imbrandonwow Kubuntu was "picked-up" i think that might be bigger news than the post leads on17:19
SpamapSjcastro: you could just set default-series: oneiric too17:19
jcastroSpamapS: yeah I was just wondering if I should just stick to all oneiric17:20
jcastrobut I want this precise hotness for LXC, etc.17:20
imbrandonwill the charms roll over like packages do ?17:20
jcastroor does that not matter, my host is precise right?17:20
jcastroimbrandon: yeah clint just needs to finish off some testing and stuff on it17:21
m_3we need to do the rollover sometime soon17:21
imbrandoncool17:21
SpamapSjcastro: we'll fix this by opening the precise charm store soon17:21
jcastroSpamapS: yeah it's just hard to demo the contest winners but having to put a "by the way if you're running 12.04 this won't work."17:21
jcastroso I announced the winners and then later on I will do the demo commands and stuff for each one17:22
SpamapSjcastro: it will work, if they put 'default-series: oneiric'17:22
SpamapSjcastro: or 'cs:oneiric/foo'17:22
SpamapSjcastro: or you wait a week and we push hard to get it open17:22
m_3jcastro: charms are always developed against the current release, not dev17:22
imbrandonhey while i got everyone in the same room, m_3 anything special i need to do besides manually mirror for now ? jcastro will you promgstrangualte drupal and where do i start down the path to get my 2 acks myself17:23
m_3working against precise should be gravy at this point for charms.. not required17:23
jcastrom_3: yeah I just wanted my cake17:23
SpamapSm_3: perhaps we should automatically push charms that have not diverged into the dev release when they pass tests on the dev release17:23
jcastroSpamapS: hey so not doing a default-series:oneiric worked anyway17:23
SpamapSthat would be simple logic17:23
marcoceppiimbrandon: you still need a final review on the drupal charm before promuglation17:23
jcastroSpamapS: but we probably don't want to tell people to do that17:23
imbrandondoh, marcoceppi sorry thought that was done17:24
imbrandonsorry17:24
m_3SpamapS: but then the author's automatically maintaining two releases of the charm?17:24
SpamapSm_3: not really. they only have to maintain when the tests start failing on the dev release.17:24
imbrandonm_3: they do with packages, i dont see that as a problem17:24
marcoceppiimbrandon:  It looks like you fixed the mysql error thing, so I'll spin it up one more time (didn't get the bug reply for somereason) if it runs then it should be ready to go17:24
m_3ok17:24
jcastro1hello from the subway charm!17:24
imbrandonmarcoceppi: rockin17:24
SpamapSjcastro: sweeeeet17:25
jcastroman subway is so sexy, it's my new demo charm17:25
imbrandonjcastro: how do you make subway persistant damn it, i had to go back to irssi17:25
m_3imbrandon: drupal'll be mirrored automatically in github.com/charms once it's in the store... then pull requests can go off of that mirrored branch17:25
m_3jcastro1 awesome!17:25
jcastro1imbrandon: run it on another machine you don't turn off17:25
imbrandonsure then i close browser and it d/c17:25
SpamapSno17:25
SpamapSnode.js keeps running17:25
SpamapSits still online17:25
jcastrooh, it's designed for multi user, you need to create an account on it17:25
jcastroand just relogin next time17:26
imbrandonit was on me, i couldent reconnect17:26
imbrandonohhh17:26
imbrandoni never made acct17:26
SpamapSyeah17:26
imbrandonok thats my missing part17:26
jcastroimbrandon: that's nice because you can have multiple people on one deployment17:26
imbrandonm_3: rockin, ok for now i've been manually pushing to both and have each in the others .ignore file17:26
jcastro"here's my work IRC." done.17:26
imbrandonjcastro: yea i'll likely redploy it on the box i run irssi from , i love it, just condent figure that bit out17:27
imbrandoni was thinking it was a one user deal17:27
jcastroalice irc in the charm store is the one user one17:27
imbrandonyea17:28
m_3SpamapS: yeah, I guess that makes sense once we hit some milestone like beta2, then all charms get promoted and tested against the dev release17:28
m_3so we're behind :)17:28
imbrandonSpamapS: btw i've had "walk" on repeat now for 45 minutes, lol , time to change the tunes17:28
imbrandonyour fault17:28
imbrandonmarcoceppi: yea it should have just been a matter of changing it to the mysql not mysqli driver on install17:30
imbrandoni got some more goodness in store but testing it on brandonholtsclaw.com now, as it breaks some of the default drupal functionality17:30
imbrandonas is17:30
imbrandonbut takes it from 20 r/s to like 160 r/s ootb17:31
imbrandon:)17:31
SpamapSmysqli is *awful*17:31
SpamapSdo not use it17:31
SpamapSmysqlnd ftw17:31
imbrandonyea i dont and will when 5.4 hits17:31
imbrandon5.3 nd is awefull too17:32
SpamapSTho I don't know if we have it enabled yet on 5.3 in precise :-P17:32
SpamapSimbrandon: it still beats mysqli17:32
imbrandonyea , just dont, its bad17:32
imbrandoni've been using the 5.4 ppa17:32
imbrandonapc is broken tho17:32
imbrandonthats bad17:32
shazznerhey everyone17:32
imbrandonello17:32
imbrandonthe debian 5.4 ppa that is17:33
imbrandonsomething about it is breaking apc right now, not sure what though, i cant get past segfaults17:33
imbrandonthus the charm still using 5.317:33
shazznera few days ago I talked about promulgating my kusabax charm, but I'm not sure how to do it17:33
imbrandonbut the 30% increase in perf would be nice17:34
m_3aargh!  if I upgrade my cli, I can't talk to deployed envs... if I don't, I can't deploy new ones17:34
imbrandoni officially changed that command to promgustrangulate17:34
shazznerimbrandon: haha17:35
* m_3 groan17:35
imbrandoncatch 2217:35
marcoceppim_3: it's funtastic!17:35
m_3I'm gonna snapshot VMs to run the cli for each long-running env17:36
m_3and start freezing branches17:37
imbrandoni'm thinkign we;re gonna start to see that lots in here17:37
imbrandonthe growing pains of rolling releases17:37
m_3actually, that sounds like a great role for wrap-juju in juju-jitsu... like a virtualenv17:41
imbrandonoh :(17:42
m_3read environments.yaml to get the branch for each environment and update path accordingly... hmmm17:43
imbrandonSpamapS: mmmm juju deploy osx/10.8 :)17:46
jcastroSpamapS: m_3: you guys feel like hanging?17:55
jcastroI have some questions about the documentation for review in that bug jdstrand filed17:55
SpamapSjcastro: in 1017:55
m_3jcastro: sure17:56
m_3lemme grab some more coffee, then I'll be on17:58
marcoceppiIs there a way to get peer-relation information in the install hook?18:08
SpamapSmarcoceppi: with the new relation-ids thing, yes!18:08
marcoceppifantastic!18:08
hazmatSpamapS, marcoceppi there's definite awareness of the foobar that is consistent versions... the bzr branch atm is the realistic option.. going forward, having bootstrap stick a code copy on provider storage,  and deploying from provider storage is probably the right solution, package solutions get messy both for consistent versions and for cross release18:09
marcoceppiSpamapS:  can I bother you in the #juju-wordpress room for a few mins. Having a hard time figuring out the best way to proceed with something for omgwp18:09
marcoceppihazmat: that would be beneficial, if the bootstrap deployed the same juju version across all nodes. that way I can just hold the juju package on my desktop until a more "structured" release update schedule is created18:10
hazmatimbrandon, that reminds there was a fun php article on hacker news today, in informed hater style, http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/18:10
marcoceppiCan you have more than one charm deployed to the bootstrap?18:16
marcoceppi with placement: local18:18
SpamapSmarcoceppi: yes, but don't do it in parallel18:18
marcoceppihow so?18:18
SpamapSmarcoceppi: if you deploy && deploy, apt-get will run in parallel and fail18:18
marcoceppiSo deploy, wait for started, then deploy again?18:19
marcoceppiI'm trying to figure out if it'd be better to just deploy the memcache charm on the bootstrap with MySQL or if I should bake memcache in to the charm and use peer relations to manage the sessions between units18:20
marcoceppisince there's a memcache charm, figured that would be easiest18:20
=== garyposter is now known as gary_poster
yolandahi18:31
imbrandonhazmat: heh /me looks18:31
yolandai found a problem running postgresql charm in juju local container18:31
yolandaseems that isn't starting, and when i debug i receive that error: http://paste.ubuntu.com/923751/18:31
hazmatyolanda, the pg log should have the actual error18:32
hazmatthe locale stuff is looks like a warning..18:33
hazmatand the hba.conf errors look more interesting18:33
* hazmat tries it out18:33
yolandahttp://paste.ubuntu.com/923758/18:35
hazmatyolanda, are you deploying that from the charm store or from a charm directory on disk?18:38
shazznermediagoblin looks pretty cool18:39
shazznerlet me see if I can't whip up a charm for it18:39
SpamapSshazzner: I already made one18:40
SpamapSshazzner: it uses pip installs heavily tho18:40
SpamapSshazzner: got wrapped up in trying to package half of pypi to get it into a PPA18:40
shazznerSpamapS: oh nice! :)18:41
yolandahazmat, i grabbed the charms with the charm get tool18:42
yolandait's on a directory on disk, local repository18:43
imbrandonhazmat: haha yea i've seen that argument 1000 times, its fundmentally wrong, that parts i see that are good he see's as flaws, i actually think that its a strength of php that you can write bad code, infact one of his complaints sums it up perfect on why php is GOOD , PHP is built to keep chugging along at all costs. When faced with either doing something nonsensical or aborting with an error, it will do something nonsensical. Anything is better t18:43
imbrandon /endquote :)18:43
m_3yolanda: is that against oneiric or precise?18:49
m_3(the postgresql problems)18:50
yolandam_3, precise18:50
m_3yolanda: it hasn't been tested against precise yet... that's later this week hopefully :)18:51
m_3we're about to test all charms against precise to prepare for bumping the release version18:51
yolanda:(18:51
yolandai was trying to build a charm that uses postgres18:52
yolandaso better wait until the test is done?18:52
jcastrom_3:dang, that ilo card is $8518:53
m_3jcastro: yup... I was kinda pissed when I realized it wasn't built-in18:53
m_3still rockin setup though... and pretty cheap even with the ilo card18:53
avoineyolanda: can you show us the line that is broken?18:53
m_3yolanda: maybe I can test that one manually early... it shouldn't be too hard of a fix18:54
m_3the postgresql charm is kinda naive in some of what it does... needs some love from a pg expert :)18:54
yolandai pasted the postgres log here: http://paste.ubuntu.com/923758/18:55
m_3sounds like the host-based-access template is barfing18:55
yolandalet me check the config line18:55
m_3heck, could probably even be disabled depending on the app18:55
avoineyeah it needs IP adresse I think18:56
avoineor a valid domain name18:56
yolandathat one: host all openerp 192.168.122.122 md518:56
m_3hmmm... that looks correct18:57
m_3lemme check the charm18:57
m_3oh wait... that's strange18:58
m_3the 192.168.122.122 should say 192.168.122.122/018:58
m_3yolanda: you can tweak this behavior on line 13 of hooks/db-relation-changed18:59
yolandalet me test19:00
m_3yolanda: perhaps make the change manually on the instance first to test it, then if that works change the charm19:00
yolandaok19:00
m_3might even need to be 192.168.122.122/32 or 192.168.122.0/2419:01
yolandaline 13 shows just an "exit 0" for me19:02
yolandalet me see if i have to update the charm19:03
shazznerdoes anyone know of this server software that allows people to write/edit books collaboratively?19:05
* shazzner looking for charms to tackle19:05
shazznerit was called book/word-something19:06
shazznerI thought I had saved the link :/19:06
m_3yolanda: I was looking at an older version on my laptop... try line 1719:06
shazznerah-ha Booktype that's it19:07
m_3yolanda: try to manually edit pg_hba.conf and add the /32 to the ip addr... see if pg will restart19:07
m_3if so, that can be added to the charm.  the mask was there in the natty version, but was _removed_ from the oneiric version of the postgresql charm19:08
yolandam_3, seems that postgresq starts when i modify the 2 final lines:19:08
yolandahost openerp openerp 192.168.122.122/0 md519:08
yolandahost all openerp 192.168.122.122/0 md519:08
m_3shazzner: gitolite and pandoc works really well for that19:09
shazznerm_3: ah cool19:09
* shazzner checking out pandoc19:09
m_3yolanda: so the /0 needs to be added _back_ to the precise version of postgres (I'm confused)19:09
shazznerthis is booktype: http://www.sourcefabric.org/en/booktype/19:10
avoineshazzner: https://github.com/esetera/Booki.git19:10
yolandam-3, yes, seems that it's the solution19:10
m_3shazzner: http://johnmacfarlane.net/pandoc/epub.html19:10
avoineoh booki is the old version of booktype19:10
yolandam_3, so something like ${remote_host}/0 must be there?19:10
m_3yeah, let me copy you the line in the older version.. "host $(get_database_name) ${user} ${remote_host_ip}/0 md5"19:11
m_3although /32 would make more sense honestly19:11
m_3s/remote_host_ip/remote_host/19:12
m_3shazzner: I use an old-school makefile with this http://paste.ubuntu.com/923826/19:14
yolandam_3, what's the last line? don't understand19:16
shazznerm_3: pandoc is nice just saw there is an emacs mode too19:17
m_3yolanda: substitute "remote_host_ip" with "remote_host" in the line above... (remote_host_ip is old)19:18
m_3shazzner: and you can embed latex if you're into that sort of thing19:18
m_3shazzner: it's a little more manual... and you collaborate using revision control just like source... but I like it in practice19:19
m_3also easy to retarget to docbook or other such nonsense that publishers might want19:19
shazznerm_3: yeah it's rad, I'll save that for later19:19
avoineyolanda: are you using the last version of the openerp charm?19:20
* shazzner prefers local scripts to large server software19:20
shazznerstill though I think booktype would make a good charm19:20
m_3absolutely19:21
shazznerI'm reading that it requires postgresql, sounds like there are some bugs in the charm though?19:21
yolandam_3, there is not remote_host_ip line in the hook...19:22
yolandaavoine, it's just a new openerp charm that i'm writing for 6.119:22
yolandawe are also creating a new package for it, it's a kind of collaboration with openerp19:23
yolandaso the existing openerp charm isn't the same19:23
shazznergood heavens, the booktype install instructions is a book unto itself19:24
m_3yolanda: yes, sorry... I was pasting a line from an older version of the charm.  That version used a variable that's no longer there, so I was trying to say "replace that variable with the new variable" in the line I pasted19:24
yolandaoh, sounded very strange to me :)19:24
* m_3 just tripping over my words :)19:24
yolandaso i just add a /0 or a /32 at the end?19:24
m_3I'd try /32 because that makes the most sense for a netmask... but /0 seems to work19:25
m_3the /0 is safest b/c you've already tried that and it worked19:25
avoineyolanda: I'm the author of the current openerp charms so don't be afraid to tell me if you want me to change anything to make it fits your new packages19:26
yolandaavoine, the thing is that the charm is totally different, because openerp 6.1 has server and web integrated19:26
yolandaand also it's relying on a new package that we are building19:26
yolandai wanted to push it as soon as i had it working19:27
m_3and I wrote the first postgresql charm... and haven't been able to find someone who knows something about postgresql to own it :)19:27
m_3happy to make whatever changes are necessary19:27
yolandai'll do that change and try19:28
avoinem_3: I had a suggestion in this bug but I'm not sure if it could break something 90267219:28
avoinehum, I thought the irc bot would catch it, the link: https://bugs.launchpad.net/charms/+source/postgresql/+bug/90267219:29
_mup_Bug #902672: Postgresql pg_hba.conf needs IP addresses <postgresql (Juju Charms Collection):In Progress by mark-mims> < https://launchpad.net/bugs/902672 >19:29
m_3avoine: right... sorry that's been back-burner19:30
m_3avoine: I think the biggest problem with this is different providers behaving differently.  I think relation-get private-address is now returning an actual ip addr on ec2 and lxc19:34
yolandawell, leaving now, it's quite late here...19:34
avoinem_3: yes19:34
yolandathanks for all19:34
avoineand the patch won't work on IPv6 only network19:35
m_3avoine: I'll check to see if this was actually fixed in core or is still broken for other providers (openstack)19:36
bkerensajcastro: you should ask people to take photos with their juju shirts :)19:42
_mup_juju/must-specify-relation-name r517 committed by jim.baker@canonical.com20:16
_mup_Merged trunk20:16
robbiewjcastro: http://gigaom.com/cloud/twitter-open-sources-its-mysql-secret-sauce/20:33
jcastroI saw, he told me that at posscon but didn't say which20:33
robbiewhttps://github.com/twitter/mysql20:34
robbiewSpamapS: ^20:35
jcastroI hope you are putting that into a PPA right now Clint, chop chop!20:35
jcastro:)20:35
* robbiew spends time reading the news while his maas deploys20:35
yageyhello.  embarrassing first question/problem:  juju bootstrap Could not find AWS_ACCESS_KEY_ID 2012-04-10 20:28:41,619 ERROR Could not find AWS_ACCESS_KEY_ID20:36
SpamapStwitter's mysql?20:36
SpamapSnice20:36
yageyI have set the values in my ~/.profile20:36
robbiewI *think* I'll be ready for my first juju deploy into my maas...woot20:36
jcastroSpamapS: they just OSSed all their internal tweaks to mysql20:36
jcastroyagey: you need to put that in your .juju/environments.yaml file20:36
SpamapSI do plan to gather some support tomorrow for a group of smart people getting together to have one packaging branch for all of the forks.20:36
jcastroyagey: https://juju.ubuntu.com/docs/getting-started.html20:37
yageyi've tried setting access-key and secret-key in environments.yaml too, same error20:37
jcastrounder "configuring your environment"20:37
jcastroSpamapS: he told me they wanted them out there, they don't plan to maintain their own fork etc, they're just going to roll with whatever percona, maria, etc. and co do with them20:37
jcastroyagey: hmm weird, that has always just worked for me20:38
yageyi removed from .profile and added to env.y, different error sorry - ubuntu@ip-10-194-250-210:~$ juju bootstrap                                       2012-04-10 20:39:19,137 INFO Bootstrapping environment 'sample' (type: ec2)... SSH authorized/public key not found. 2012-04-10 20:39:19,291 ERROR SSH authorized/public key not found.20:39
SpamapS"Update: Someone alerted me that Facebook does have a site for sharing its MySQL patches, although it’s hosted at Launchpad."20:40
SpamapSalthough.. as in.. thats a reason not to acknowledge it?20:40
SpamapSDoes the author realize that *mysql* is hosted on launchpad?20:41
yageyah - I ran:  ssh-keygen -t rsa -b 2048    that fixed it20:42
yageyI should be able to run juju on an ec2 instance?20:52
hazmatyagey, yes20:58
yageyi see, it started an 'small' ec2 instance, which is not in the free tier :(21:04
imbrandonSpamapS: yea but the world dont see that ( LP vs Github ) kinda like someone bitching about PHP again, php still powers the internet just as Github hosts more opensource code than any other place on the planet, even though Django or Plone or Launchpad or what ever may have the technical upper hand21:04
imbrandonsucks but its the way of the west21:04
imbrandon( and yes github now has more code than sourceforge )21:05
imbrandonLaunchpad was tied to Ubuntu only for too long, it will take a ton of momentum to upheave that in the collective mindset of the internets21:07
yageyis there a way to have it use micro instances instead?21:07
imbrandonyagey: you should be able to set the deafult int he env.y21:07
yageyok, rtfm https://juju.ubuntu.com/docs/constraints.html21:07
hazmatyagey, yeah.. you can set default-instance-type: t1.micro in your aws environment section of environments.yaml.. or if your using a recent version (ppa) it can be specified via cli --constraints="instance-type=t1.micro"21:08
hazmatyagey, be aware that the micro instances are severely penalized on cpu usage..21:08
yageyin terms of performance?  but they are free :)21:08
imbrandon1 is free21:09
hazmatwe tried using them as the default for ec2 for a little while, but they were basically broken wrt to predictable performance.21:09
marcoceppiYou get 750 hours of free micros a month, which ends up being about 1 micro a month21:10
yageyonly 1? it doesn't mention that on the page21:10
yageyah that makes sense, but I won't run for a whole month yet21:10
marcoceppiyagey: then you can probably get away with deploying a few things on micros and removing them when done, be aware that there are a lot of issues with bootstrapping and deploying on smalls because of their CPU constraints21:11
marcoceppiIt's a hit-or-miss situation21:11
yageyok, thanks21:11
imbrandonyou can just try things out too on local lxc containers21:12
yageyi saw that page, didn't seem simple enough to start with however21:12
imbrandonif your just kicking the tires21:12
yageyI don't see a page showing the environment.yaml possible options in the dev documentation section21:14
marcoceppiyagey: http://askubuntu.com/questions/65359/how-do-i-configure-juju-for-local-usage21:14
imbrandonok so hazmat , marcoceppi mentioned something ealier that i'd like to dig into deeper ( esp since hp cloud comes out of beta here very soon , as in we have a date now ) soooo instead of using s3 container for the bootstrap store the stuff on the bootstrap node and how do i go down that rabbit hole not being familiar with the juju internals at all at this point but more than willing to get my hands dirty , even with putting code where my mouth is21:16
* marcoceppi has secretly been talking to HP. Tuns out their storage doesn't have S3 compatibility turned on but has EC2 compatibility enabled for compute.21:16
imbrandonyea i got the same thing from pete just now21:16
hazmatyeah.. i saw that re storage is native, and compute has ec2 compat..21:18
yageyLXC doesn't appear to work on a virtualbox ubuntu VM, as the network is already virtual21:18
imbrandonthe nic on the vm should be seen as normal by the os21:19
imbrandonif its bridged21:19
hazmatimbrandon, so the client uses the storage to identify where the bootstrap node is..21:20
hazmatso running the storage on the bootstrap node becomes a bit more challenging given that21:20
hazmatanother option would be to play mix and match storage and compute with an ostack native storage21:20
imbrandonright, so a) i write it to work with swift, or b) make the bootstrap node info avail some other way , least that how i understand it, not having looked at code21:21
hazmatimbrandon, yup that's the nutshell.. or c) ask hp to turn on the swift s3 middleware21:21
imbrandonhehe been there, i dont think that will happen iirc21:21
imbrandonleaste not comming from me21:22
marcoceppiI had them open a ticket on it for tracking21:22
marcoceppinot sure if it'll happen21:22
hazmatyeah.. probably not.. but you never know.. i'm why they would do one but not the other.. i take it the s3 swift middleware perhaps isn't as battle tested at scale perhaps..21:23
imbrandonso just how intracate is the s3:// code, i mean can either of you point me to the proper digging point i can see just how much of a pain it would be two accomidate swift21:23
imbrandonhazmat: well i'm told that even the compute will go away is their hopes, i dont see that, amazon has won this round21:24
imbrandonbut you know21:24
hazmatimbrandon, its pretty simple.. 3 methods (get/put/get_url) -> juju/providers/ec2/files.py21:25
imbrandonsweet, ok that dont sounds terrible21:26
marcoceppihazmat: so would you recommend making juju/providers/openstack/ for this?21:26
hazmatthe get_url needs to create a url that can be used sans credentials.. with s3 its done via their url signing mechanism.. swift also has this capability.. but its in a middleware piece21:26
marcoceppiI feel it would be better to create a native openstack provider rather than just modifying the current21:26
hazmati don't know that its enabled on hp's storage21:26
hazmatie.. this one.. http://swift.openstack.org/misc.html#module-swift.common.middleware.tempurl21:27
imbrandoni was thinking about just translating the ruby gem hpcloud cli parts to python21:27
hazmatimbrandon, its just ostack native api.... ostack distributes native python clients21:28
hazmatafaik re hp's impl of it21:28
imbrandonoh then even better21:28
imbrandonyea'21:28
imbrandonif its just pure21:28
SpamapShazmat: couldn't we also just use groups to find the bootstrap machine?21:28
hazmatimbrandon, the juju code base is twisted though.. its like python.. but sorta of  not :-(21:28
hazmatSpamapS, that would work as well21:29
SpamapSI mean, do we really need file storage for *that* ?21:29
hazmatSpamapS, good point21:29
hazmatSpamapS, we just need some discovery mechanism21:29
SpamapSI'd love to see an 'hpcloud' provider which just hack-xtends the ec2 provider to implement the file storage.21:29
imbrandonheh21:30
hazmatSpamapS, at that point why not just a native ostack impl?21:30
SpamapSwhich would then be useful for any cloud that doesn't have S321:30
SpamapShazmat: because thats a lot more code!21:30
hazmatSpamapS, ie. providers/openstack per marcoceppi's suggestion21:30
SpamapSWell yes call it whatever you want21:30
SpamapScall it "halfec2" or "franken-ec2"21:31
imbrandonwell os would work on rackspace too even though they have s3 middleware rtight21:31
hazmatSpamapS,  not nesc. it could be incomplete if we allow for storage spec independently.. but yeah.. that kinda of gets ugly21:31
marcoceppiso, just do providers/hpcloud until someone comes out with a full openstack native provider?21:31
SpamapSI wouldn't call it openstack unless you do the full OSAPI implementation21:31
hazmatdidn't someone start one of those..21:31
SpamapShazmat: the openstack guys were interested21:31
imbrandoni thought that swift was21:31
SpamapSone of the nova core devs21:31
imbrandonosapi21:31
marcoceppiI wish I was better at python or knew go21:32
imbrandonwhy go ?21:32
marcoceppithat's what juju will be written in soon, iirc21:32
imbrandonahh, somone got google fever, why not just full nodejs then21:33
SpamapSimbrandon: uh.... nodejs and go have like, nothing in common.21:33
imbrandongo compiles to js21:33
SpamapSdart21:33
SpamapSthats dart21:33
SpamapSgo compiles into native statically linked binaries21:34
imbrandon... >.> /me might be mixed up21:34
SpamapSwith a big runtime21:34
SpamapSwell21:34
SpamapSa tiny runtime actually21:34
SpamapSanyway, yeah, go, not dart21:34
marcoceppiphp \o/21:34
SpamapSimbrandon: lp:juju/go21:34
imbrandon:)21:34
* imbrandon high fives marcoceppi 21:34
imbrandonSpamapS: yea i'll have to look, no idea how i equated the two21:35
SpamapSimbrandon: well apparently google likes to invent languages :)21:35
imbrandonmaybe dart in written in go ? /me is even more confused now21:35
SpamapSand go was such an odd choice.. like, how about call it 'be' or 'have'21:35
imbrandonlol21:36
imbrandonmarcoceppi: and languages are just syntax, once you learn one, picking up new ones is easy :) its what keeps us relevant21:37
SpamapSyeah, I like go actually21:37
imbrandonis it whitespace depdant ?21:37
SpamapSmakes me feel like I'm reading C, but I don't have to get all sideways on pointers21:37
SpamapSno21:37
SpamapSimbrandon: its very C-like21:38
SpamapSimbrandon: but it has an automatic formatter thingy that keeps all go indented the same21:38
imbrandonsweet i like c like21:38
marcoceppiI went through the go demo thing, got to chapter 20 something21:38
imbrandonyea as long as its not whitspace sensative i can learn to love it, its my ONLY problem with python21:39
SpamapSwhats so bad about whitespace sensitive? It makes all python readable, even written by the most junior coders.21:39
imbrandonauto formatting is good, i am anal about that in my own code21:40
imbrandoneven php21:40
imbrandonbut i dont want code to break because of it21:40
imbrandon2 spaces per indent, no tabs21:40
imbrandonever21:40
imbrandonbrackets are a must, even for one liners21:40
imbrandon:)21:40
imbrandonpeople hate when i nit pick their php21:41
imbrandonbut it makes it so i can maintain shit i wrote 5 years ago easy21:41
SpamapSimbrandon: right, which is why people like python. There is no nit picking.21:42
SpamapSit works, or it doesn't21:42
imbrandonheh21:42
SpamapSanyway, language debates are outlawed for the next 30 minutes so I can get something worthwhile done21:43
imbrandonroger :)21:43
SpamapS(like save all these daisies for these pirates)21:43
hazmathttp://www.pirateslovedaisies.com/ :-)21:45
imbrandonzomg21:46
imbrandonok sooo back to the main question, do i start a hp cloud provider and just copy most of the code from ec221:48
imbrandonas bloilerplate21:48
imbrandonand fix the storage or what was that aobut groups21:48
SpamapSimbrandon: I would import the ec2 provider's machineprovider object, and just write my own filestore21:48
SpamapSimbrandon: please don't copy/paste! ;)21:49
imbrandonor import21:49
imbrandon:)21:49
SpamapSimbrandon: I know you're used to PHP and namespaces are all new and sexy.. but they are built in to python :)21:49
imbrandonhahaahh21:49
imbrandoni know i know :) i dont even have to name them, just have the file names ;)21:49
imbrandonjust cuz i dont like python dont mean i cant hobble some togather :)21:50
imbrandonman i could get used to ubuntu app design again, css3 for skins now go instead of python21:51
imbrandonits like your after my own heart21:52
imbrandonpypm install launchpadlib21:56
imbrandongah21:56
robbiewSpamapS: so...if I have juju installed from the ppa and do a bootstrap, my node should have the same version of juju...right?21:56
robbiewtesting maas...and my node is getting juju from the archive :/21:57
robbieweven though I have the ppa setup on my local machine21:57
imbrandonwhat about in the env.y21:57
robbiewthat's empty21:57
robbiewwait..no21:58
robbiewI actually added juju-origin: ppa21:58
imbrandonahh then smells like a bug21:58
robbiewb/c w/o that line, it still did the same :/21:58
robbiewhttp://www.sadtrombone.com21:58
hazmatugh.. pypm.. active state ugh..21:59
imbrandonhazmat: easy way to get launchpadlib on osx21:59
hazmatrobbiew, so checked your apt-cache output, the code parses it correctly.. which odd21:59
hazmatimbrandon, pip/easy_install are builtin on osx as well21:59
SpamapSrobbiew: the PPA auto-detect thing may not be working right22:00
hazmatrobbiew, so even with the explicit juju-origin its installing from the archives?22:00
robbiewyes22:00
robbiew0.5+bzr504-0ubuntu1 on the bootstrap node22:01
robbiew0.5+bzr518-1juju5~precise1 on my machine22:02
hazmatrobbiew, if you login into the instance can you pastebin /var/log/cloud-init-output.log  and /var/lib/cloud/instance/user-data.txt22:02
robbiewsure thing22:03
hazmat i put some code in the latest trunk on r517 to log origin on bootstrap, but with the apt-cache policy juju you sent me earlier, the auto detect code did the right thing.. but even ignoring that.. getting juju-origin switched out is bogus..22:04
hazmatif its explicitly specified22:04
hazmatrobbiew, hmm.. i wonder.. does maas reinstall when machines get recycled on destroy-environment/bootstrap.. or just stop/start the machine.22:05
robbiewhazmat: good question...i don't believe it reinstalls22:07
robbiewhazmat: http://pastebin.ubuntu.com/92404822:09
hazmatrobbiew, hmm.. 2012-04-10 17:46:34,398 - cc_apt_update_upgrade.py[WARNING]: Source Error: ppa:juju/pkgs:add-apt-repository failed22:09
robbiewhmm22:10
robbiewmaybe network blip22:10
hazmatso the ppa fails, and when it goes to install it latter it  gets distro.. that makes more sense22:11
SpamapSdoesn't reinstall?22:12
SpamapSthats a violation of the basic expectations that juju offers charm authors IMO.22:13
SpamapSOtherwise charms need to get even more careful about idempotency22:13
imbrandonWhy is Petyr Baelish called "LittleFinger" ?22:19
hazmatidempotency doesn't nesc. help here, without the reinstall the disk just becomes an accumulated dumping ground,   juju expects thats releasing a machine will make it go poof, destroy-env doesn't attempt to cleanup disks, so you'd have potentially old agents still running on the newly booted machine.22:19
robbiewok...I'm going to blow away my maas and start fresh...luckily I've done that a bazillion times now, so it's painless :P22:21
hazmatimbrandon OT but..  http://gameofthrones.wikia.com/wiki/Petyr_Baelish22:22
imbrandonhazmat: haha yea, i seen it on a adv banner, thought it was clever , winter is def comming22:23
SpamapSimbrandon: because he's from the fingers and he's little22:34
* SpamapS has found himself getting more and more obsessed with GoT22:34
imbrandonsame here. ive actualy read ahead in the books now, just waiting on the story to play out on tv22:35
SpamapSyeah, I'm on book 522:35
imbrandoni'm not quite that far, i think starting 4 its been a few months22:36
imbrandoni'm 1 past where last season ended22:36
imbrandonand that was 3 i think22:36
SpamapSyeah, from the previews, it looks like season 2 may be a bit more than book 222:37
imbrandonyea, i just watched the first eps of season 2 lasty night on dvr22:37
marcoceppiHoly crap, that's quite a loud depreciated warning22:45
marcoceppiI guess no more default-instance-type22:46
SpamapSwhat22:46
SpamapSoh its all wrapped up in constraints now?22:46
marcoceppihttp://paste.ubuntu.com/924092/22:46
SpamapSI'm guessing constraints is what broke existing bootstrapped envs from using the PPA22:46
marcoceppiyeah, I was just surprised how verbose that warning was22:47
marcoceppiNO! It's not in autocomplete22:47
marcoceppiunless, you can't bootstrap with constraints?22:47
SpamapSwe need to update the bash completion to call juju the way bzr does22:47
marcoceppican I run juju set-constraints before bootstraping, or is that something that needs to run after you boostrap?22:49
SpamapSmarcoceppi: I think it has a --constraints22:49
marcoceppiah, the wiki page has the info22:50
marcoceppisweet22:50
marcoceppiI searched everywhere but the obvious place22:50
marcoceppiSpamapS: so, since I have the latest ppa version, how do I do placement: local?22:53
jcastroaha!22:53
marcoceppiis that still in the environment.yaml22:53
jcastroupdated documentation!22:53
jcastroso used to having it be out of date that now you have no idea what to do!22:53
imbrandonSpamapS: dude, GO is typed PHP 5.422:56
imbrandonlike for real22:56
SpamapShttp://cdn.memegenerator.net/instances/400x/18261941.jpg22:56
imbrandon40422:57
SpamapSnot here. :-P22:59
lifeless50022:59
imbrandonERROR22:59
imbrandonThe request could not be satisfied.22:59
lifelessindeed23:00
imbrandonbtw moins lifeless :)23:00
imbrandonmmm i could get used to this though, /me downloads the dev kit23:01
SpamapSimbrandon: golang 1 is in precise23:03
imbrandoni know i know, i need to install precise, i tried this morning actually, and failed, almost took out my osx partition23:04
imbrandonwas quite miffed , will try again in the monring23:04
SpamapSI install using rEFIt and unetbootin .. never have problems that way23:05
robbiewhazmat: sorted it....networking related...routing between my maas setup and the internet was broken23:05
yageywhen I deploy a mongodb instance, and another via add-unit - it should configure a replica set right?23:07
imbrandonSpamapS: yea i couldent get the precise image to boot from refit23:08
imbrandonjust kept recycling23:08
imbrandonbut i grabbed the one "made for mac" i'm grab the normal x64 one and try again23:09
SpamapSyagey: yes it should23:10
* SpamapS bumps negronjl to write a README for mongodb23:10
SpamapSnegronjl: ^^23:10
yageyit doesn't.  I'll try debug-log to see what up23:11
negronjlSpamapS: I'll get to it in just a minute :)23:11
yageydoes juju need to run as root or sudo?23:12
SpamapSyagey: the juju client should be fine running as your user23:14
SpamapSyagey: the agents run as root, so the charms run as root23:14
yagey2012-04-10 16:14:14,908 Machine:0: twisted ERROR: Copy /var/cache/lxc/oneiric/rootfs-amd64 to /var/lib/lxc/yagey-sample-0-template/rootfs ...  2012-04-10 16:14:14,912 Machine:0: twisted ERROR: Copying rootfs to /var/lib/lxc/yagey-sample-0-template/rootfs ...Please change root-password !23:15
lifelessSpamapS: so whats the memgenerator url (page, not jpg)23:16
SpamapShttp://memegenerator.net/instance/1826194123:16
SpamapSso not as funny 10 minutes later23:16
lifeless:)23:16
m_3yagey: I tested mongo replicasets using three nodes at a time (juju deploy ... -n3 local:mongodb)23:18
m_3yagey: didn't do a lot of starting one and then adding others one at a time... I'll bet that takes longer23:18
yageythanks, it appears to be a lxc issue with dependencies23:18
m_3yagey: should still work eventually though23:18
m_3ah, gotcha23:19
SpamapSyagey: charm missing some deps?23:19
yagey2012-04-10 16:14:14,920 Machine:0: twisted ERROR: The following packages have unmet dependencies: 2012-04-10 16:14:14,920 Machine:0: twisted ERROR:  ubuntu-minimal : Depends: netcat-openbsd but it is not going to be installed 2012-04-10 16:14:14,920 Machine:0: twisted ERROR: E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 2012-04-10 16:14:14,928 Machine:0: twisted ERROR: failed to execute template23:19
SpamapSweird23:20
* m_3 suspects incomplete lxc images... let it finish caching the first image (?)23:21
negronjlSpamapS: MongoDB README file done ... let me know if it's good enough23:29
SpamapSnegronjl: you type fast ;)23:29
yagey*m_3 any suggestions?  what kind of image?23:29
negronjlSpamapS: I had it done already just forgot to push it ;)23:30
negronjlSpamapS: err .. I mean .. yeah I typ really fast :)23:30
yageyspamaps - can I see that README?23:30
SpamapSyagey: yes, just pull the latest version of the charm23:32
SpamapSyagey: should be visible here soon: http://jujucharms.com/charms/oneiric/mongodb23:32
m_3crap yagey left23:40
m_3hope that got worked out23:43

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