/srv/irclogs.ubuntu.com/2012/06/28/#juju.txt

imbrandonSpamapS:  that makes alot of sense00:07
imbrandonzirpu: i've always used whatever the current 15inch MBP is and been very happy the last 4 or so years00:08
zirpuhm. i'm not a mac fan. but i have had mbp's at various companies.00:11
zirpui still hate case-insensitive filesystem with a flaming irrational passion of a sloth.00:12
SpamapSweird, why doesn't hp cloud recommend using python-novaclient ? :-P00:12
* SpamapS reluctantly installs fog00:12
zirpuMiGhTilY i say!00:12
imbrandonSpamapS: you can00:12
imbrandonSpamapS: i use it00:12
SpamapSimbrandon: it wants a username00:13
imbrandonSpamapS: its in the docs to setup either, but they are ruby fans00:13
imbrandonSpamapS: yea one sec its like ur email:tenneid00:13
imbrandonor something00:13
imbrandonone sec00:13
SpamapSexport OS_TENANT_NAME="clint.byrum@canonical.com-tenant1"00:14
SpamapSthat?00:14
burnbrighterSpamapS: it appeared the admin node was checking for all those nodes.  Is there not a hard requirement for at least 10 nodes?  And can you point me to reference for that hack please?00:14
imbrandonno00:14
SpamapSburnbrighter: there's no reference to that hack00:14
SpamapSburnbrighter: because it is.. the suck ;)00:14
SpamapSburnbrighter: but for testing w/ < 10 boxes...00:14
burnbrightergotcha00:14
SpamapSburnbrighter: basically you edit ~/.juju/environments.yaml and add 'placement: local' to the environment ..00:15
SpamapSburnbrighter: but, this sends *EVERYTHING* to node 000:15
burnbrighterinteresting00:15
SpamapSburnbrighter: and it will install things in parallel, which will break things (apt-get can't run in parallel for instance)00:15
SpamapSburnbrighter: so you kind of have to set it, install anything you want on node 0 one at a time, and then un-set it.00:15
SpamapSanyway, I'm late.. gotta run00:16
burnbrighterbut, how would you do, say, just 5 nodes for example?00:16
burnbrighteranyways, thnx00:16
SpamapSburnbrighter: you can squeeze almost everything onto that one node00:16
burnbrighterok, thanks00:18
burnbrighterI'm running this all on esxi / vsphere server, so adding nodes and cloning them wasn't a problem anyways :)00:18
jcharetteanyone around to support MAAS with juju?00:46
imbrandonm_3: ping02:15
imbrandonm_3: i was just thinking ( not looked at the code yet so you might already do this ) but the juju charm02:15
imbrandonwould it mayeb be a good idea to have it install by "hand" into a dediacated python virtualenv02:16
imbrandonso it cant mess up the "host" juju or mess with the versions etc if the02:16
imbrandoncharms are frozen etc02:17
imbrandone.g. a seperation of the juju charm installation and the juju on the system already if its a subordiante of like an existing webserver/appserver services grp02:17
imbrandonjust a thought ... i'll peek into the code and see if u are already doing that or not02:18
zirpuyou could create a virtual env from a pip freeze and a cache dir easily w/o network access being needed.02:46
zirpui actually like that idea.02:46
m_3imbrandon: yeah that's planned02:47
imbrandonrockin , just crossed my mind ( btw i do have it as a sub on my webservers so i can call "juju" from hooks :)02:47
m_3imbrandon: maybe even use that to provide the tmux session you leave up and drive the env with02:47
imbrandonshhhh02:47
imbrandonyea good idea02:48
m_3imbrandon: that's sort of turning into a best practice for groups to manage an env.... two environments... <myenv> and <myenv-control>02:48
imbrandonbut please think of us screen users too, tmux normally gets apt-get purged from me :)02:48
m_3easier than talking each member of the team through setup on frozen client branch02:49
imbrandonyea good call02:49
m_3imbrandon: ha!02:49
m_3yeah, was a screen die-hard for years... but I've totally drunk the cool-aide02:49
imbrandonman i cant get it to work like screen02:49
m_3(helps to have the same bindings)02:49
m_3really?02:49
imbrandonif i could i probably would, but there is a few things that i cant make work02:49
zirpui just took my bindings with me.02:49
imbrandonnot the bindings02:50
imbrandonmore about the window setup02:50
zirpui'm all about full screen. :-)02:50
imbrandonand making the shared screens work "right"02:50
m_3multiuser acts pretty differently, but imo tmux works better for that02:50
imbrandonwell mine are full but i keep 5 or so windows open02:50
zirpui haven't used shared screens (yet).02:50
m_3i.e., all users looking at same screen as I switch around02:51
imbrandonm_3: yea thats what i cant get to work02:51
imbrandonon screen works perfect02:51
imbrandontmux wont do it02:51
m_3there's a way to get it to behave like screen tho02:51
zirpualias tmux=screen02:51
imbrandonno no i dont think you get it02:51
zirpuso it's said. :-)02:51
m_3where each user canbe looking at diff screens02:51
imbrandonmy screen does like you say is easy in tmux02:51
imbrandonbut i cant even get tmux to do it02:52
imbrandoni WANT that in tmuc02:52
zirpuso client screens should switch when the master screen switches?02:52
imbrandonno02:52
m_3zirpu: that's tmux default, but opposite of screen default02:52
imbrandoni flip arround to whatever i want02:52
imbrandonand so can anyoone else02:52
zirpuah02:52
imbrandonor we can all goto screen 002:53
imbrandonand share02:53
m_3imbrandon: right... I'd have to dig for that... it's possible02:53
imbrandonyea if you can help me figure that out i'd be a happy tmux user02:53
zirpuhm. so attach -r   puts client in read only mode.02:54
imbrandonlike i have byobu set 4 windows on login, and if you and me both ssh in we can see each other type if on the same window but i can flip to others and so can you02:54
zirpubut it can't switch screens. weird.02:54
imbrandonmysetup^^02:54
zirpuread-only mode is kind of useless.02:54
imbrandonnah02:54
imbrandongreat for classroom02:54
zirpuwell, ok. there's that.02:55
imbrandonor logs reads02:55
imbrandonfor a dedicated log window02:55
* zirpu does not know how all these kids live in their gui worlds. :-)02:56
m_3yeah, I use one-way shared screens more than I ever thought I would02:56
imbrandonbut yea m_3 eveyone keep saying that WHY they swiched to tmux cuz that was hard in screen but to me thats default how screen works not hard and tmux i cant make do it02:56
zirpuso readonly switches screens w/ the master screen. i see what you meant now.02:57
imbrandonand i like multi bars at the bottom of screens in byobu but i think i can make tmux do that too02:57
m_3imbrandon: http://paste.ubuntu.com/1063589/ is my conf... I'll get back to you on users watching separate windows in one session02:57
imbrandonm_3: rockin02:57
imbrandonty02:57
m_3totally does the bars too02:58
imbrandonbtw, whats the format for .byobu/windows.tmux ? i would need to convert my .byobu/windows file ( screen based )02:58
imbrandonfor the default windows on startup02:59
m_3way different scripting mechanism I think... there're a couple of different schools on that... I use tmuxinator03:00
imbrandonm_3: http://paste.ubuntu.com/1063593/  thats my .byobu/windows file on my OS X box03:00
m_3'mux blog' or 'mux charmtester'.... can start with 'mux copy juju mynewcharm; mux mynewcharm'03:00
m_3tmuxinator is a gem so I assume it's good on osx03:01
imbrandonlikely , i use a TON of ruby on OSX03:01
imbrandonas much as most ubuntu users use python :)03:01
imbrandonheh03:01
imbrandontrying to bring some of it with my to juju/ubuntu , still havent got a good juju-hook capfile balance yet03:02
imbrandonbut i'll get there03:02
imbrandons/my/me03:02
m_3imbrandon: equiv is http://paste.ubuntu.com/1063597/03:03
imbrandoni keep wanting to get at cloud-init tho, juju should really provide a way for us to do that, i dont care that it got shot down on the ML03:03
m_3that'd be 'mux play'03:03
imbrandonits that or i just use hax and write a wrapper in jitsu03:04
imbrandonheh03:04
* m_3 off in tweakage-land :)03:04
imbrandonhahaha yea i tweek my setups CONSTANTLY03:04
imbrandonlike i'm never done03:04
imbrandonever03:04
m_3jitsu is all things unloved and evil... but working :)03:04
m_3so anything goes03:05
imbrandonyea , perfect home for it03:05
imbrandonif i have to resort to it03:05
imbrandoni'd rather not tho cuz it will likely take a patch to juju to accomplish cleanly03:05
imbrandonand that makes me mad to have to resort yo03:05
m_3ah, right03:05
imbrandonto*03:05
imbrandonbut i certainly will to show the utility of such03:06
imbrandon:)03:06
m_3crap, sorry forgot to reset my away mgs... hope you're not getting to much noise back03:06
imbrandonnope03:06
imbrandonwell i dunno actually03:06
m_3cool03:06
imbrandoni have msgs like that off03:06
imbrandonhehe03:06
imbrandonjoins parts quits aways etc etc03:07
imbrandonall prety much off03:07
m_3right03:07
imbrandontoo many "dead" channels i idle in that would fill my disk with logs03:07
imbrandonif i dident :)03:07
imbrandonm_3: see my newest widget ? http://bholtsclaw.github.com/showdown/03:08
imbrandonthink i'm gonna make a charm out of the backend stuff i need to host those , so i can have them all central and easy to put all on one page etc etc03:09
m_3cool03:09
imbrandoncuz its like a mix of nodejs and mustash templates and php ( on my.phpcloud.com ) git and github pages03:10
m_3you should add other keys in there so we can have multiple peeps manage it03:10
imbrandonheh in otherwords i got em all spread out03:10
m_3and freeze the juju branch03:10
imbrandonhmmm yea03:10
imbrandongood idea03:10
imbrandongreat idea actuallu03:10
m_3etc etc all the production best practices we reommend.... (nother test case)03:11
* imbrandon puts that on the very short-term todo's03:11
imbrandonyea , seriously , good call03:11
m_3perhaps even use lp:charms/juju in the "control" environment... where it gets left open with a tmux serssion any of the team can attach/drive03:11
m_3(the latters still a maybe... not nec recommended practice yet)03:12
m_3just really needed it for scale testing03:12
imbrandonok i need a little food and mt dew then to get started on that, i think that will be a good project tonight ... ( i dident wake up till 6pm local so i'll be up all night heh )03:12
m_3and sort of need it after the fact for plumber's summit03:12
imbrandonahh right03:12
m_3cool later man03:12
imbrandonyea i'll be back in ~20ish min, just need a lil snack, but i'll br round all night03:13
imbrandonand gonna work on just that, got me kinda fired up about the idea03:13
imbrandon;)03:13
m_3cool.. I'll be in and out03:13
imbrandonkk03:13
imbrandonyea i like the idea of a tmux session with charms/juju installed on the bootstrap node , then the "team" can just ssh into the bootsrap and drive from a juju window there03:15
imbrandonand not need anything but their ssh key on that bootstrap03:15
imbrandonno local juju or env.y etc03:15
imbrandon...03:15
m_3imbrandon: I'm thinking separate envs...03:16
imbrandonyea ok fooood then that is gonna become a reality with the widgets and button as a testcase03:16
m_3summit and summit-control03:16
imbrandonahhh03:16
imbrandonyea03:16
burnbrighterAnyone know about troubleshooting why the mysql charm instance didn't come up in juju/maas?  I can reach the node via regular ssh, but agent shows the node is down.03:16
imbrandonyea i liky that too03:16
m_3both would have 'authorized-keys:' in the env with everybody's keys03:16
imbrandonright03:17
burnbrighterthis is for openstack-dashboard btw03:17
imbrandonburnbrighter: hrm nothing in juju-debug log?03:17
imbrandonerr juju debug-log03:17
m_3burnbrighter: not really no... I've seen machines with services running great but the juju aagents report it down03:17
burnbrighternothing extraordinary I can see03:17
m_3rebooting (those ec2 instances) worked to reset the agents03:17
burnbrighterthis is maas03:18
m_3right03:18
m_3I've only seen that prob in ec2.... and pretty rare03:18
imbrandonrestart the agent ? ( or reboot the node )03:18
imbrandonbbiab03:18
burnbrighterhow does one restart the agent (me=noob)03:18
m_3yeah, first try taking a look in the provisioning agent's log to see that the service was started up correctly03:18
burnbrighterI did restart03:18
burnbrightermachines:03:19
burnbrighter  1:03:19
burnbrighter    agent-state: not-started03:19
burnbrighter    dns-name: maas0703:19
burnbrighter    instance-id: /MAAS/api/1.0/nodes/node-4ddba634-bfdb-11e1-8909-005056a44c88/03:19
burnbrighter    instance-state: unknown03:19
burnbrighterservices:03:19
burnbrighter  mysql:03:19
burnbrighter    charm: cs:precise/mysql-203:19
burnbrighter    relations:03:19
burnbrighter      shared-db:03:19
burnbrighter      - glance03:19
burnbrighter      - keystone03:19
burnbrighter      - nova-cloud-controller03:19
burnbrighter      - nova-compute03:19
burnbrighter      - nova-volume03:19
burnbrighter    units:03:19
burnbrighter      mysql/1:03:19
burnbrighter        agent-state: pending03:19
burnbrighter        machine: 103:19
burnbrighter        public-address: null03:19
m_3burnbrighter: did it ever say 'started'?03:20
burnbrighterno03:20
burnbrighterlooking in provision log now..03:20
m_3hmmmm... yeah, dig for the maas version of the provisioning-agent log03:20
burnbrighter2012-06-27 23:01:35,045:901(0x7f45fbcc2700):ZOO_INFO@zookeeper_init@727: Initiating client connection, host=localhost:2181 sessionTimeout=10000 watcher=0x7f45f8fce6b0 sessionId=0 sessionPasswd=<null> context=0x3352b20 flags=003:21
m_3and then the machine-agent log on that box03:21
burnbrighter2012-06-27 23:01:35,045:901(0x7f45f74ca700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [127.0.0.1:2181] zk retcode=-4, errno=111(Connection refused): server refused to accept the client03:21
burnbrighter2012-06-27 23:01:38,381:901(0x7f45f74ca700):ZOO_INFO@check_events@1585: initiated connection to server [127.0.0.1:2181]03:21
burnbrighter2012-06-27 23:01:38,403:901(0x7f45f74ca700):ZOO_INFO@check_events@1632: session establishment complete on server [127.0.0.1:2181], sessionId=0x1383109683e0001, negotiated timeout=1000003:21
burnbrighter2012-06-27 23:11:55,399: juju.agents.provision@INFO: Stopping provisioning agent03:21
m_3then unit-agent there too03:21
m_3refused...hmmm03:21
burnbrighter2012-06-27 23:13:31,767:886(0x7fa12a2f8700):ZOO_INFO@zookeeper_init@727: Initiating client connection, host=localhost:2181 sessionTimeout=10000 watcher=0x7fa1271b56b0 sessionId=0 sessionPasswd=<null> context=0x1db9090 flags=003:22
burnbrighter2012-06-27 23:13:31,768:886(0x7fa125b00700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [127.0.0.1:2181] zk retcode=-4, errno=111(Connection refused): server refused to accept the client03:22
burnbrighter2012-06-27 23:13:35,105:886(0x7fa125b00700):ZOO_INFO@check_events@1585: initiated connection to server [127.0.0.1:2181]03:22
burnbrighter2012-06-27 23:13:35,133:886(0x7fa125b00700):ZOO_INFO@check_events@1632: session establishment complete on server [127.0.0.1:2181], sessionId=0x138311458a10000, negotiated timeout=1000003:22
burnbrighter2012-06-27 23:13:35,216: juju.agents.machine@INFO: Machine agent started id:003:22
m_3zk's down maybe?03:22
burnbrighterhow can I check please?03:22
m_3ps awux | grep zoo03:22
burnbrighteron that node?03:23
m_3netstat -lnp | less03:23
m_3on the maas server03:23
burnbrighterubuntu@maas07:/var/log/juju$ ps awux | grep zoo03:23
burnbrighter107        925  0.2  0.8 1835488 33088 ?       Ssl  23:13   0:01 /usr/bin/java -cp /etc/zookeeper/conf:/usr/share/java/jline.jar:/usr/share/java/log4j-1.2.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/zookeeper.jar -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false -Dzookeeper.log.dir=/var/log/zookeeper -Dzookeeper.root.logger=INFO,ROLLINGFILE org.apache.zookee03:23
burnbrightererver.quorum.QuorumPeerMain /etc/zookeeper/conf/zoo.cfg03:23
burnbrighterubuntu    1205  0.0  0.0   9376   932 pts/0    S+   23:22   0:00 grep --color=auto zoo03:23
burnbrighterit must be up, right? because other agents are running fine03:23
m_3burnbrighter: this is where I'm out of my depth wrt maas.... sorry, I'm not sure exactly03:23
m_3I'll assume that the maas server is set up as the bootstrap node and runs the provistioning agent and zookeeper03:24
burnbrighterm_3: thanks anyways.  this is tricky03:24
m_3(note the provisioning agent is attempting to connect to localohost:zk03:24
burnbrightereh, localhost on its own zookeeper?03:25
m_3and getting refused for some reason03:25
burnbrighterum yeah, I see that - connection to localhost 218103:25
m_3right... in std juju, the provisioning agent and zk live together on the bootstrap node03:26
m_3provisioning agent should be able to subscribe to zk changes and spin up machines accordingly afaik03:26
burnbrighterI think in maas, and I may be wrong - the bootstrap node becomes the first node bootstrapped03:26
m_3ah, yeah, that's the question... does the maas server do this or does it actually still use some _other_ bootstrap node per environment03:27
burnbrighterI know it pulls the ephemeral image from the primary maas node, but where does it get that info?03:28
burnbrighterfrom the first bootstrapped node, or the primary maas node?03:28
burnbrighterugh03:28
m_3um... dunno03:29
m_3I don't know if a maas env is treated as a single juju environment03:29
m_3lemme dig a bit03:30
burnbrighterare you on the canonical team?03:30
m_3this is known stuff though... might try #ubuntu-server or #juju again tomorrow03:30
m_3yeah, I'm on the server team, but haven't worked with maas yet03:30
burnbrighterbigjools may know too - but I think he draws the line when it gets deeper in to the juju side03:30
m_3I think there's a #maas here too... looking03:31
burnbrighteryeah - that's my primary channel03:31
m_3ah, see you're already there :)03:31
burnbrighterbut now that I've got the maas side stable, I've been focusing on trying to get the openstack stuff working03:32
m_3burnbrighter: yeah... that's probably our most complex stack to date on juju03:32
burnbrighterand the only one I REALLY want working :)03:33
burnbrighterlol03:33
m_3the 'not-started' sounds like a lower-level problem than the charm though03:33
burnbrighterthis has been a 3 week endeavor for me03:33
m_3wow03:33
burnbrighterboth cheez0r and I have both been trying to get it working03:34
m_3adam_g: you up still?03:34
m_3burnbrighter: they've got this going regularly in a hw lab03:34
burnbrighterbut I'm wondering if there was special tweaking for the mysql stuff03:35
burnbrighteror if there are open issues03:35
m_3dunno03:35
burnbrighteryeah03:35
burnbrighteradmittedly, I'm not up on the juju stuff yet enough to be dangerous with troubleshooting03:36
m_3try to bring it up to a 'started' state before adding any relations03:36
burnbrighterhow do you bring up individual nodes in started state?03:36
m_3I know I've heard of ordering deps in openstack charm relations03:36
* imbrandon returns03:36
m_3ju do the deploys03:37
m_3no add-relation calls until you see them in a 'started' state03:37
imbrandonm_3: i thought about that at one time, me and marcoceppi brefly talked about it at UDS etc03:37
imbrandonbut i decided that hiabu was a better way03:37
imbrandon( pending rename )03:37
m_3(there's a jitsu tool to script all of this... 'apt-get install juju-jitsu; jitsu watch -h'... eventually... but for now just do it in your scripts)03:38
burnbrighterok, so destroy the individual services, but don't add the relation calls?03:38
burnbrightereh, re-add after destroying then wait till they individually come up?03:38
burnbrighterthen add relations?03:38
m_3burnbrighter: yeah, so at this point mysql hasn't been "started"03:38
m_3so you should be able to remove-relation's03:39
m_3then destroy that service03:39
m_3then terminate that machine03:39
m_3then deploy the service03:39
m_3now, wait until it's 'started'03:39
burnbrighterso first try to remove relations, destroy mysql service - terminate machine is new for me03:39
m_3then go in and 'add-relation'03:39
burnbrighterI'll try that - remove all mysql related relations I take it?03:40
m_3burnbrighter: so I would totally recomend restarteing from scratch... but you don't _really_ have to do that since the service has never been in a started state03:40
* imbrandon just thought about something from the backlog ... is tmux in ruby ? if so i'd drop screen a moment and deal with "issue" just for that alone03:40
m_3so the relation hooks on either side have never really fired03:40
m_3imbrandon: dunno03:41
burnbrighterdoes destroying the service basically start things from scratch too?03:41
m_3burnbrighter: destroying the service _and_ terminating that machine will start that service from scratch03:42
burnbrighterie. without destroying the rm -rf "destroy-environment"03:42
burnbrighterok03:42
m_3burnbrighter: but won't require you to bring your whole stack down03:42
m_3right03:42
burnbrightercool, I can try that03:42
burnbrighterthank you03:42
m_3I'd recommend that just for sanity's sake as the 'reboot' option... but that's more of a pain with some providers than others03:43
m_3and if I thought any relation hooks got fired, I'd say... destroy-environment03:43
m_3but it doesn't look like that here03:43
m_3you can tell by sshing to that machine and 'mysql -uroot; show databases' or something like that03:44
m_3should be empty03:44
burnbrighter yeah, I didn't even see mysql coming up on that node, so that will be a good test03:44
m_3yup03:44
m_3not sure exactly how to terminate-machine in maas... that's equiv to a re-install03:45
burnbrighteryeah - I learned this the hard way - you have to terminate the juju stack before trying to do anything on the maas side03:45
m_3'juju terminate-machine <machine_id>' on most providers totally kill the instance... so you're starting with a freshubuntu server next time03:46
burnbrighteryour maas nodes end up pulling the ephemeral image, but the maas nodes are based on the precise image, I believe03:46
* m_3 _really_ needs to learn maas... gotta bump that up higher in the queue03:47
burnbrighterits so very cool.  Its just raw03:47
burnbrightera little baking and it will make a really nice pie03:48
m_3cool03:48
burnbrighterok, let me try your suggestions03:49
m_3ok, I'm on UTC+10 this week so I'll be in and out for several hours still03:49
burnbrighterstill not starting...04:04
burnbrighterhttp://pastebin.ubuntu.com/1063654/04:05
m_3burnbrighter: wow.... hmmmm04:05
burnbrighterany of that look interesting?04:06
m_3not really... that's during an expose04:06
burnbrighterI'm not exposing, just deploying04:06
m_3expose is a separate step... much like 'add-relation'04:06
burnbrighterright04:06
burnbrighterI didn't expose, I just added the service04:07
burnbrighterjust ran "juju deploy mysql04:07
burnbrighter"04:07
m_3it's marked as exposed somehow... but it's not surprising that that's barfing if the machine's not coming up04:07
m_3ok, 'juju deploy mysql' is perfect04:08
burnbrighterhere is exactly what I did: 1. remove relations:04:08
m_3so now what did you do to throw that machine away?04:08
burnbrighterjuju remove-relation keystone mysql04:08
burnbrighterjuju remove-relation nova-cloud-controller mysql04:08
burnbrighterjuju remove-relation nova-volume mysql04:08
burnbrighterjuju remove-relation nova-compute mysql04:08
burnbrighterjuju remove-relation glance mysql04:08
burnbrighterthen I removed the service ie. juju destroy-service mysql04:08
m_3then do a status to see the service sitting all alone (no relations)04:09
burnbrighterdid that, yes04:09
m_3then destroy-service... sounds good04:09
m_3now for terminate-machine04:09
burnbrighterthen I terminated the node it was running on04:09
burnbrighterthen I went straight in to deploy -04:09
m_3does that just put the existing server into WOL sleep?04:09
m_3or does it _rebuild_ it?04:10
burnbrighterwell, there are VMs ;)04:10
burnbrighters/there/they are/04:10
m_3oops, sorry not following04:10
m_3ok, so you're deploying maas on a bunch of vms04:10
burnbrighteryes04:10
burnbrighterwhich to this point and not without a lot of headaches was working :)04:10
m_3ok, so when that machine is terminated, does it destroy that instance _and_ image?04:11
burnbrighterthe headaches were all procedural though04:11
m_3or does it put it to sleep or just stop it?04:11
burnbrighterit appears to remove the instance04:11
burnbrighterfrom juju04:11
burnbrighterlet me check if the machine is actually down04:11
burnbrighterit is not04:11
m_3ah, but it really needs to kill the instance and image and reprovision a new machine04:12
burnbrighterso my guess is if I "add" it back it will be back in the line up04:12
burnbrighterbut why do I need to do that?04:12
m_3burnbrighter: so I think that whatever is causing this to show up in a not-started state is written into the image04:12
m_3it wouldn't be in a pristine copy of the image04:13
m_3but it's in that actual one04:13
burnbrighterso, check this - when I asked for mysql to be redeployed - it went to a whole different node - my node 12 and got the same results04:13
m_3(total guess... but that's what I'm trying to determine by doing a 'terminate-machine')04:13
m_3oh wow04:13
m_3ok, so scratch that....04:13
burnbrighter  mysql:04:14
burnbrighter    charm: cs:precise/mysql-204:14
burnbrighter    relations: {}04:14
burnbrighter    units:04:14
burnbrighter      mysql/2:04:14
burnbrighter        agent-state: pending04:14
burnbrighter        machine: 1204:14
burnbrighter        public-address: null04:14
burnbrighter  12:04:14
burnbrighter    agent-state: not-started04:14
burnbrighter    dns-name: maas0704:14
burnbrighter    instance-id: /MAAS/api/1.0/nodes/node-4ddba634-bfdb-11e1-8909-005056a44c88/04:14
burnbrighter    instance-state: unknown04:14
m_3burnbrighter: is the uuid different?04:17
m_3dunno how it reuses instances04:17
m_3oh actually it's the same04:18
m_3maybe definging the same instance as a new machine id04:18
m_3or mabe is a new instance from the same image04:18
m_3sorry for the typing... high latency hotel connection04:19
burnbrighterI know how that goes :)04:19
burnbrighterI just restarted the old node that I previously terminated and its rebootstapping and adding itself back to juju04:20
m_3yeah, looks like it didn't kill that instance... just re-used it04:21
burnbrighterseems like it migrated it to another node?04:21
m_3so can you add new nodes into maas without terminating the whole juju environment?04:21
burnbrightersure04:21
m_3they had the same instance-id though04:21
m_3(from earlier in the channel)04:22
m_3just different machine_id04:22
burnbrighterwhat does that mean though - the instance ID is the same?04:22
m_3which seems strange, but I don't know04:22
m_3perhaps maas is trying to intelligently re-use instances04:23
m_3but if there's a catastrophic config error in one... there's gotta be a way to tell it to wipe it and start over from a fresh install04:23
burnbrighterit appears to me, juju runs a layer above maas04:23
burnbrighterso juju AFAICT has little knowledge of maas04:24
m_3yes, but 'juju terminate-machine 12' in all other providers gives you a completely fresh ubuntu server instance04:24
m_3but there's _definitely_ problems re-using intances04:25
m_3i.e., if the charm has an error... does something stupid with config04:25
m_3there're plenty of situations where that's unrecoverable on _that_ instance04:25
burnbrighterah freakin weird04:25
m_3and a need to re-provision that from scratch04:26
burnbrightermysql just came up04:26
m_3ha04:26
m_3so don't relate anything yet04:26
m_3let's figure out what's up04:26
burnbrighter  mysql:04:26
burnbrighter    charm: cs:precise/mysql-204:26
burnbrighter    relations: {}04:26
burnbrighter    units:04:26
burnbrighter      mysql/2:04:26
burnbrighter        agent-state: started04:26
burnbrighter        machine: 1204:26
burnbrighter        public-address: maas07.localdomain04:26
m_3strange... take a look in the various logs04:27
burnbrighterlooking04:27
m_3on the instance, there should be something like /var/lib/juju/units/mysql-xxx/charm.log04:27
m_3might be in /var/log/juju... different on different providers (#$$%#@!)04:27
burnbrighteronly a machine-log04:31
burnbrighterhttp://pastebin.ubuntu.com/1063669/04:31
m_3there should be a charm log there _somewhere)04:32
burnbrighterbut here is the debug log from the main node, more interesting04:32
burnbrighterhttp://pastebin.ubuntu.com/1063670/04:32
burnbrighterI think that's the charm log04:33
burnbrighterright?04:33
m_3wow04:35
m_3there're a couple of strange things going on here04:36
burnbrighterwhat are you seeing?04:37
m_31.) debconf is trying to use a Dialog frontend... should be noninteractive04:37
m_32.) mysql revision is just whack04:37
m_3I'm testing a charmstore deploy here04:37
m_3while I do that, can you please grab a local copy of the charm?  'charm get mysql' or 'bzr branch lp:charms/mysql'04:38
burnbrighterohhhh wait - I saw somewhere something about needing to declare a terminal!04:38
burnbrighterlike Xvfb or something like that...04:39
m_3juju should be setting DEBIAN_FRONTEND=noninteractive04:40
burnbrighterno, I was mistaken - that was in the openstack.cfg04:40
burnbrighternice find -04:40
burnbrighterdoes that need to be fixed in the build?04:41
m_3it's in juju bzr544 /usr/share/pyshared/juju/hooks/invoker.py line 21904:42
burnbrighteryou are speaking greek to me :)04:43
burnbrightershould I destroy msql-service?04:45
burnbrighteruh destroy-service mysql?04:45
m_3sorry... just checking out the versioning problem04:46
m_3ok, so you said the openstack notes said something about needing a specific terminal?04:46
burnbrighterno worries.  I'm happy to test out whatever you have...04:46
burnbrighterno, forget that04:47
m_3ok04:47
burnbrighterthis is what I'm looking at04:47
burnbrighterhttps://help.ubuntu.com/community/UbuntuCloudInfrastructure04:47
burnbrighterlook under Deploying Ubuntu Cloud Infrastructure with Juju04:47
burnbrighterbut that's unrelated to what we are doing04:47
burnbrighterthat's specific for the nova-volume charm04:48
burnbrighteroh but looky there04:48
burnbrighterright under that04:48
m_3ok, so the debconf errors are a red herring... np04:48
burnbrighterstep 204:48
m_3http://paste.ubuntu.com/1063695/ is a successful ec2 mysql spinup... we can compare04:50
m_3your log looks ok as far as I can see04:51
m_3so maybe it was just timing that was giving problems04:51
m_3you can either kill it and see if it spins up again with relations04:51
burnbrighterthat could be... but did you look at that step 2?04:51
m_3or just add the relations from here to see if they come up04:51
burnbrighterthey deploy from the local instance04:54
burnbrighterso, how do I then tell afterward if the relations were added correctly?04:54
m_3burnbrighter: no, that one was deployed from the charm store04:54
burnbrightermine was you mean, right?04:54
m_3burnbrighter: any failed relations will have an 'error' state04:55
burnbrightermy mysql charm was deployed from the charm store04:55
burnbrightervs the way they say I should be doing it which is by downloading the charm then installing locally, correct?04:55
m_3burnbrighter: that's what I was testing out... to see if I got any differences04:58
burnbrighterah, ok - see anything?04:58
m_3burnbrighter: in general, yes you want to deploy from a local charm repository... mostly just to freeze the charms you're working with04:59
m_3burnbrighter: but for what you're doing... just getting things up and running... the charm store should be fine04:59
burnbrighterwhat about "DEBIAN_FRONTEND=noninteractive" ?05:00
burnbrighteranother question I have, is now that I terminated that instance, my instance numbering is off05:01
burnbrighterie. 0,2,3,4,5,6,7,8,9,10,1105:02
imbrandonthats normal. they only ise05:02
burnbrighternotice "1", the node I terminated before is now missing and was put back in as 1205:02
imbrandonrise*05:02
imbrandone.g i have an env with 3 machines and they are 0 5 and 1105:02
burnbrighterok, no way to go backwards for linearity?05:02
burnbrighterok, low on the priority list I guess.  no big deal05:03
imbrandonnope, but its highly irrelivent if you are thinking in juju terms of service mgmt, forget the machine is there :)05:03
burnbrighterright...05:04
burnbrighterhmmm, yeah, that puked05:05
m_3burnbrighter: only way to rewind ids is destroy-environment05:06
m_3that's just zookeeper sequence ids05:06
m_3no way05:06
m_3the relations barfed it.... or it barfed on its own?05:06
burnbrighterglance puked mostly05:07
m_3oh05:07
m_3:(05:07
burnbrighteralso saw this a lot05:07
burnbrighter2012-06-28 05:05:17,750 unit:glance/1: hook.output INFO: db_changed: DB_HOST || DB_PASSWORD not yet set. Exit 0 and retry05:07
m_3burnbrighter: that's normal05:07
burnbrighterand this05:07
burnbrighter2012-06-28 05:05:14,025 unit:mysql/2: hook.output INFO: DATABASE||REMOTE_HOST||DB_USER not set. Peer not ready?05:07
m_3burnbrighter: that too05:08
burnbrightermaybe its a timing thing too05:08
burnbrighterI should let all of the relations finish one at a time? instead of just pasting them all in?05:08
m_3those messages are part of the normal relation exchange between the two sides05:08
burnbrighterI will put it in to pastebin and let you see what I am seeing ;)05:09
m_3burnbrighter: no,all at once _should_ be fine05:09
m_3I remember seeing something with relation weights to order them though05:09
m_3what openstack scripts are you working from?05:09
burnbrighterhttp://pastebin.ubuntu.com/1063712/05:10
burnbrighterjust basically following the procedure you I posted in above, but minus the local repository creating thing05:10
burnbrighterI should follow it more closely05:10
burnbrighterthere is likely a reason its set up the way it it05:11
burnbrighterit is rather05:11
m_3damn... that sure seems like the relation barfed05:12
m_3could be residual state from the earlier mysql instance fail05:12
m_3i.e., worth trying a total destroy-environment again05:12
burnbrighterwell, this looks good:05:13
burnbrighter mysql:05:13
burnbrighter    charm: cs:precise/mysql-205:13
burnbrighter    relations:05:13
burnbrighter      shared-db:05:13
burnbrighter      - glance05:13
imbrandonresolved --retry ?05:13
burnbrighter      - keystone05:13
burnbrighter      - nova-cloud-controller05:13
burnbrighter      - nova-compute05:13
burnbrighter      - nova-volume05:13
burnbrighter    units:05:13
burnbrighter      mysql/2:05:13
burnbrighter        agent-state: started05:13
burnbrighter        machine: 1205:13
burnbrighter        public-address: maas07.localdomain05:13
m_3but I'm really concerned that destroy-environment and then reboostrapping is re-using instances05:13
m_3yes, that looks like it's in a good state05:13
m_3lemme read back through the log to see if it fixed itself05:14
burnbrighterstill not authenticating though...05:14
imbrandonm_3: iirc it is, and intentionaly iirc inless you also terminate machine05:14
imbrandoni ran into that issue myself05:14
imbrandonunless*05:14
burnbrightermbrandon: is that directed to me? you think auth won't work off the bat?05:15
imbrandonno no05:15
imbrandonm305:15
burnbrighterah, ok, sorry05:15
imbrandonnp05:15
imbrandon:)05:15
m_3imbrandon: not sure what terminate-machine is doing in maas05:15
imbrandonit was re: bootstraping reusing instances05:15
m_3it appeared to not be a real flush05:16
imbrandonahh05:16
imbrandonyea last time this came up i was told it was that way due to the time it takes ec2 to spin up a new instance05:16
imbrandonso it reused it unless you explisitly say destro it05:17
imbrandoniirc05:17
imbrandoni'm not greatly familiar with that tho so i very well could be thinking of something else or just flat mistaken05:18
imbrandon:)05:18
* imbrandon goes back to making the PoC juju-control charm05:19
m_3imbrandon: no, that's the issue... but re-using hardware saves time for maas.. but can also intro config problems from the instance's previous life05:19
m_3burnbrighter: ok, so based on the log content, I'd expect that the good status you're seeing is a lie05:25
burnbrighteryeah, what I kind of thought05:25
m_3ok, so where are we...05:26
burnbrighterI do see mysql appears to be up and running, but the errors don't paint a rosy picture05:26
m_3at this point, I'm thinking a destroy-enviropnment is called for05:26
burnbrighterI guess its time to blow everything away - can I do that short of destroying the whole environment? It's kind of a pain to re-bootstrap everything05:27
burnbrighterie. destroy-service?05:27
burnbrighteror is the only sure way to start from scratch?05:27
m_3yeah, you're right... re-boostrapping is a pain05:27
m_3perhaps do the destroy-service dance again (removing relations first)05:28
adam_gm_3: i am now05:28
m_3but this time, make sure there's no way that maas can re-use that nstance05:28
m_3after a destroy-service05:28
burnbrighterah, but it worked the second time around05:28
burnbrighteroh...05:29
burnbrighterI see what you are saying...05:29
m_3do a terminate-machine and add the manual --with-vengeance option on there :)05:29
m_3I don't know what that needs to look like in maas05:29
burnbrighterI think the only way to guarantee is to destroy-env right?05:29
m_3other than perhaps virsh destroy or even undefine05:29
burnbrighterthis is esxi :)05:30
m_3no, I don't know that destroy-environment really flushes the instances with maas05:30
burnbrighterok, I'll try destroy-service first05:30
m_3ok05:30
burnbrighterfollow the RTFM print05:30
m_3:)05:31
m_3I'll dig a bit later today and see what the code does with a terminate-instance05:31
burnbrighterif you are around, I'll let you know how it goes05:31
burnbrighterthnx heeps for your help05:31
m_3I'll bet they're erring on the "more re-use" side so they come back up quicker05:32
m_3burnbrighter: happy to... we'll figure it out05:32
adam_gburnbrighter: the traceback in http://pastebin.ubuntu.com/1063712/ looks like a dns problem05:33
burnbrighterdns?05:34
SpamapSm_3: g'day05:34
m_3SpamapS: yo05:34
adam_gburnbrighter: i suspect glance is trying to reach a mysql host at maas07.localdomain, , but that hostname is not resolvable from that machine05:35
adam_gburnbrighter: if you still have that up, can you confirm that? ssh to the machine and see if you can reach that host05:36
burnbrighteradam_g: where is it getting the .localdomain - is that added by default?05:36
burnbrighteryes, but I have it on the primary node's host file05:36
adam_gburnbrighter: the .localdomain is the default, yeah. is MAAS handling your DNS or is that handled somewhere else?05:37
burnbrighterdnsmasq runs on the primary node05:38
burnbrighterbut yeah, you're right, its not working...05:38
burnbrighterubuntu@maas07:~$ nslookup maas02.localdomain05:38
burnbrighterServer:172.16.100.1105:38
burnbrighterAddress:172.16.100.11#5305:38
burnbrighter** server can't find maas02.localdomain: NXDOMAIN05:38
burnbrighterok, it is going to the right node though...05:39
adam_gi dont follow05:39
burnbrighteruh sorry05:39
burnbrighter172.16.100.11 is my maas01 - my primary maas node05:39
burnbrighterand that's where dnsmasq is05:39
adam_gburnbrighter: can the maas managed nodes reach each other via their maas00*.localdomain hostname?05:40
burnbrighternot localdomain, but short name because its in the host file05:41
burnbrighterI guess if I update the domain in the host file it will work05:42
burnbrighterlet me try that05:42
adam_gburnbrighter: you'll need to ensure they can reach each other via their FQDN05:42
burnbrighteryeah - is that .localdomain configurable? where does that come from?05:42
adam_gburnbrighter: i personally dont know how to go about getting that right in MAAS, but it looks like thats the main issue05:42
burnbrighterI think I know how to fix it from maas, but I would rather fix it on the juju side05:43
m_3wonder if that could be why the service got stuck in a 'not-started' state to begin with05:43
burnbrighterthat would make sense05:44
m_3seems like nothing would work05:44
m_3though05:44
adam_gburnbrighter: i believe you can edit the nodes' hostnames via the web interface05:44
burnbrightereh...which web interface??05:44
burnbrightermaas?05:44
adam_gburnbrighter: MAAS05:44
adam_gin the node list, you have the option of editting nodes, and you can update hostnames there05:44
burnbrighterI have done that - and its set to maas.local - but that is not getting to juju's configuration05:45
burnbrightersomehow the nodes are getting ... hmmm05:45
burnbrighterthinking05:45
burnbrighteryou know, my node aren't set05:45
burnbrighterok05:46
burnbrighternope, they aren't05:46
burnbrighterso my choice goes back to setting it in the host files05:46
adam_gburnbrighter: localdomain is the default domain name used when none is specified, unrelated to juju, maas, etc.05:46
burnbrighteryup, that's making sense05:47
burnbrighterI don't have a domain specified in maas05:47
burnbrighterits only in the host file05:47
burnbrighterso that does make sense05:47
m_3adam_g: thanks for catching the dns... missed that05:47
adam_gyeah, ive seen similar issues. im sure someone else knows how to fix that properly in MAAS05:49
burnbrighterFrom what bigjools said, they are getting rid of the dns configuration in the next release05:50
burnbrighternot sure about the dependencies though...05:50
burnbrightermaybe putting that back on the user05:50
adam_gthat'd make things easier for sure. :)05:51
burnbrighterok, now its working...05:56
burnbrighterubuntu@maas07:~$ nslookup maas02.localdomain05:56
burnbrighter Server:172.16.100.1105:56
burnbrighterAddress:172.16.100.11#5305:56
burnbrighterName:maas02.localdomain05:56
burnbrighterAddress: 172.16.100.10205:56
burnbrighterubuntu@maas07:~$  ping maas02.localdomain05:56
burnbrighterPING maas02.localdomain (172.16.100.102) 56(84) bytes of data.05:56
burnbrighter64 bytes from maas02.localdomain (172.16.100.102): icmp_req=1 ttl=64 time=0.362 ms05:56
burnbrighter64 bytes from maas02.localdomain (172.16.100.102): icmp_req=2 ttl=64 time=0.228 ms05:56
* SpamapS shakes head05:57
SpamapSDNS is such a CF05:57
adam_gburnbrighter: what is the state of things now? where did you leave it?05:58
burnbrighterNow do you think its a matter of rebuilding relations, or destroying the service and starting from scratch with the service stack?05:58
adam_gi think its probably safe to remove relations and re-add, without tearing down.05:58
burnbrighterok, I will try that...05:58
adam_gburnbrighter: to confirm though, remove all relations and add the glance <-> mysql one, see that it works05:59
adam_gburnbrighter: this might be helpfuul: http://paste.ubuntu.com/1063760/06:00
burnbrighterhttp://pastebin.ubuntu.com/1063763/06:02
burnbrighterah that's way different than what I was following06:03
burnbrighterI was just doing this...06:04
burnbrighterjuju add-relation keystone mysql06:04
burnbrighterjuju add-relation nova-cloud-controller mysql06:04
burnbrighterjuju add-relation nova-volume mysql06:04
burnbrighterjuju add-relation nova-compute mysql06:04
burnbrighterjuju add-relation glance mysql06:04
adam_gburnbrighter: can you just confirm glance <-> db is okay, 'sudo glance-manage db_version' on the glance node?06:06
burnbrightersure, hang on06:08
burnbrighterubuntu@maas09:~$ sudo glance-manage db_version06:09
burnbrighter1306:09
adam_gburnbrighter: cool, looks good06:10
burnbrighteris there a default u/p for openstack-dashboard?06:10
burnbrighteror is it admin and whatever you configure in to openstack.cfg?06:10
adam_gburnbrighter: yeah, its the admin username and password configured in the deployment config06:12
burnbrighterbut when that's not working, db issues are suspect06:13
burnbrighterI'm not even sure I see anything hitting the db06:13
adam_gburnbrighter: logging into the dashboard? no, thats probably not db related06:13
burnbrighterinteresting, ok06:14
adam_gburnbrighter: can you paste bin `juju status`?06:14
burnbrightersure06:14
adam_g(wife is home, need to run in a min)06:14
burnbrighteradam_g :  http://pastebin.ubuntu.com/1063775/06:15
imbrandonm_3: use juju to deploy -> MAAS using -> EC2 instsnces as Nodes -> to build an Openstack Cloud -> that you use juju to bootrap a juju-control environment -> juju-control installs juju and sets up tmux charm-tools jitsu environments.yaml and ssh-import-keys to bootstrap a child env -> juju deploys byobu-classroom to child env -> byobu-classroom creates a LXC based public bootstrap and ajaxterm node for all to marvel -> Internets break from all the 06:15
adam_gburnbrighter: i do not know why, but it shows keystone as 'pending' with no machine. perhaps its just a slow machine? wait for that to come up and 'started' before trying anything. they dont call that 'keystone' for nothing :)06:18
burnbrighterquestion for you ...06:18
adam_gsorry, it has a machine but it is not started06:18
burnbrighterthat relation list you sent me is vastly different than the one from the maas documenation06:18
burnbrighteris that what I should be using?06:19
burnbrighterI'm not sure I have all of those things deployed06:19
adam_gburnbrighter: which are you referencing?06:19
burnbrighterhttp://paste.ubuntu.com/1063760/06:19
adam_gburnbrighter: i meant, which maas documentation06:19
burnbrighteroh..06:20
burnbrighterhold on06:20
burnbrighterhttps://help.ubuntu.com/community/UbuntuCloudInfrastructure06:20
adam_gburnbrighter:06:21
adam_gjust compared, they are basically the same. the order is a bit different, and in the one i pasted it is specifying the interface for each relation (eg, :identity-service) which is not needed06:22
adam_ganyway, i have to run06:22
burnbrighterok06:22
burnbrighterthnx06:22
adam_gburnbrighter: now that your DNS is sorted, id suggest trying again from scratch (sucks, i know)06:22
adam_gping me tomorrow if youre still having problems, see ya06:23
alo21Can I ask here about juju building problems?06:24
burnbrighteradam_g: thanks - what timezone / times are you usually around?06:24
m_3burnbrighter: he's us-west-coast06:28
m_3imbrandon: sounds just pathologically like inception06:28
* koolhead11 pokes m_3 06:29
m_3we should start an inception-count or someting... inception depth06:29
m_3hey koolhead11!06:29
SpamapSalo21: yes you can and should ask about those. :)06:29
m_3gonna go grab food...bbiab06:30
alo21SpamapS: I have problem building juju from source06:30
alo21can someone help me?06:30
SpamapSalo21: its python..06:34
SpamapSalo21: what source are you trying to build?06:34
SpamapSor are you trying to play with the go port?06:35
alo21SpamapS: I downloaded juju from apt-get source06:35
SpamapSalo21: ah06:35
alo21SpamapS: and then I run sudo pbuilder build *.dsc06:36
SpamapSwhy does everybody use pbuilder? sbuild is so much better.. :p06:38
imbrandonm_3: hahah +1 on inception-count or similar :)06:38
SpamapSimbrandon: sooo close06:38
imbrandon?06:38
SpamapSimbrandon: hpcloud06:38
alo21SpamapS: I do not know what is sbuilder06:38
imbrandonoh nice, i am getting to know the nova api better06:38
SpamapSimbrandon: I think there's something wonky in the swift+nova06:39
imbrandon:(06:39
alo21SpamapS: could youprovide me an useful link about it?06:39
imbrandonSpamapS: re pbuilder amost ALL the docs dating back centuries recoment pbuilder is why06:40
imbrandon:)06:40
SpamapSyeah06:40
SpamapSalo21: I'm about to pass out, so sorry, no. :-/06:40
imbrandonbut pbuilder + some custom scripting and lvm snapshots can be beuitiful :)06:40
imbrandonheh06:41
imbrandonalo21: what are you looking for ?06:41
SpamapSimbrandon: all built in to sbuild06:41
SpamapSit even has btrfs support now06:41
imbrandonSpamapS: yea i'm mostly rembering back to my MOTU days and pbuilder barely existed let along all the cool stuff now06:41
alo21imbrandon: I am trying to build juju from source06:41
imbrandoncowbuilder06:41
imbrandonheh06:41
imbrandonalo21: ok . where ya hitting a snag ?06:42
SpamapSahh, there's a messed up assumption in the openstack provider...06:42
SpamapSit assumes all regions will be the same06:42
imbrandonSpamapS: nice . something i can hack out ?06:42
SpamapSbut object-store is in region-1.geo-1 while compute is az-3.region-a.geo-106:42
alo21imbrandon: what "ya" means?06:42
SpamapSimbrandon: I'm about done with it actually06:42
imbrandonya == you06:43
imbrandonwhere are you having truble06:43
imbrandonSpamapS: nice , kk06:43
alo21imbrandon: http://pastebin.ubuntu.com/1063813/06:44
imbrandonif you are on Ubuntu alo21 copy and paste this into terminal and it should build from source, you can customize it from there ... "mkdir ~/juju-build && cd ~/juju-build && bzr branch lp:juju && cd juju && python setup.py build"06:45
* imbrandon looks at pastebin06:45
alo21imbrandon: done, then?06:47
imbrandonyea no idea about your pastebin, one it needs a little more context but it looks to be a pbuilder issue not juju build issue and the above command should help you there, as for pbuilder #ubuntu-motu should be able to help sort that06:47
imbrandondone then what ?06:47
alo21imbrandon:I am wondering if I have to run other commands?06:48
imbrandonoh no, just copy what i had in quotes and paste it as one line06:49
imbrandonwithout the quotes06:49
imbrandonand it will run it all but stop if there is an error06:49
imbrandondue to the && vs ;06:49
imbrandonbut yea thats it, it should tell you where it built to, but i think `pwd`/build is the default iirc06:50
alo21imbrandon: I did not recive ant errors06:50
imbrandonthen you are good, you just compiled juju06:51
alo21imbrandon: ok, thnaks06:51
alo21thanks*06:51
imbrandonif you want to do it for hacking on it a little in a saner way not to mess up your system accidenly06:52
imbrandonthere is a section in the docs06:52
imbrandonfor devlopers install that will guide you06:52
imbrandonalo21: http://jujucharms.com/docs/drafts/developer-install.html06:53
SpamapSimbrandon: I think most of the probs are due to hpcloud being diablo07:01
SpamapS2012-06-28 00:00:53,347 DEBUG openstack: 201 '201 Created\n\n\n\n   '07:01
SpamapS2012-06-28 00:00:53,348 INFO 'bootstrap' command finished successfully07:01
* SpamapS crosses fingers07:01
imbrandonsweet07:01
imbrandonyea i've been going over their documentation , they have alot of "extensions to the openstack api" but also "noteable diffrences" and "stuff we dont implement" as well :(07:02
imbrandoni mean its cool but more like a frankenstack not openstack07:03
* imbrandon ponders is canonistack is similar07:03
imbrandonif*07:03
SpamapSimbrandon: yeah, they're really big on "nobody will ever run vanilla openstack"07:04
SpamapSwhich means "openstack will go nowhere"07:04
imbrandonyea , thats a sure fire way to solidify that07:04
imbrandonwho is they in this context tho, canonical ?07:04
SpamapShrm, ssh not coming up07:04
SpamapSimbrandon: no, HP07:05
imbrandonoh07:05
imbrandonright07:05
SpamapS<-- says canonical as "we"07:05
imbrandonright, figured that but i thoght maybe the IS team was they in that sentace :)07:05
imbrandone.g assumed canonistack admins07:05
SpamapSno its more the providers who think they must be able to differentiate outside the normal process07:06
SpamapSCanonistack might be the only semi-public vanilla openstack ever ;)07:06
SpamapSOh wow.. still apt-getting stuff07:06
SpamapSkey gen seemed to take a long time07:07
imbrandonyea seriously , thats one reason i loved linode for so long and i think RACK is just a big linode from what i have seen, but provide powerfull stuff at good price and dont cripple it cuz someone could take advantage just fire  the bad apples as customers07:07
SpamapSI suspect we dont' have the same pseudo-randomness hack on their cloud as we do on EC207:07
imbrandoni dunno its official ami's from canonical07:08
SpamapSYeah that would be unfortunate if it weren't07:08
imbrandona few new ones even poped up this week for older versions07:08
SpamapSCpu(s):  0.0%us,  0.2%sy,  0.0%ni, 49.9%id, 49.9%wa,  0.0%hi,  0.0%si,  0.0%st07:08
SpamapSdisk seems SLOW07:08
imbrandonyea , disk io is horrid07:08
imbrandonBUT07:08
imbrandoncdn and nic speed is AWESOME07:09
imbrandon:)07:09
SpamapSgood tactic to get people to just buy big mem-tastic instances07:09
imbrandontheir network is much faster to me than aws , but their cpu and disk io blows07:09
imbrandonthus i create like lots of xsmall instances to do the job as a cluster :)07:10
imbrandonheh07:10
SpamapSugh yeah wowowow is I/O slow07:10
SpamapSimbrandon: anyway, let me push up a branch that works07:10
imbrandontheir xsmall like rackspaces isnt crippled either07:10
imbrandonsweet, if you could pastebin a config too sanitised07:10
SpamapSthats one area I'm still a little bit unsure of07:11
imbrandonand i'll buy u a crown and coke next meetup :)07:11
SpamapSbecause I think the env vars are used and I may have polluted it07:11
SpamapSmmcrown07:11
* SpamapS could use some whiskey about now07:11
imbrandonheh07:11
SpamapSforgot to do my SRU's and juju patch pilot today.. er.. yesterday07:11
SpamapSseriously dpkg is just SUCKING ASS07:11
SpamapSunpacking java took almost 2 minutes07:12
imbrandonyea my env on my mac ( what i'm booted into atm ) is very poluted , heh its survived me hacking the hello out of /etc/profile and then in place upgrades from 10.4 to 10.8 preview 4 currently07:12
imbrandonheh07:12
imbrandonSpamapS: yea once i got mine all setup with "base install" i used the nova api to create a personal base image07:13
imbrandonthat i use to fire new ones up with, so i'm hoping we can provide a ami-id to the hp provider07:13
imbrandonheh07:13
SpamapSimbrandon: I think we should build that into juju, all providers have a way to turn a running instance into an image07:13
imbrandonthat would fall into "we shoudlent care about the env" so i gave up afrer being shut down 2 times07:14
imbrandonwasent gonna battle mr juju over it07:14
imbrandonbut i totally agree its esential in the long run07:14
jcastroSpamapS: don't be sad, you always go on friday remember?07:14
imbrandoni mean we can either not care about the env and let something like puppet provsion for us , or we can care and provide juju ways to do it07:15
imbrandonbut it cant be no you cant touch the metal and expect users to take us serious07:16
imbrandonand not hack it07:16
SpamapSjcastro: true. I'm out Friday tho, so tomorrow is it. :)07:16
jcastroheh07:16
SpamapSjcastro: btw, are your slides still shared on U1?07:16
imbrandonheya jcastro :)07:17
SpamapSjcastro: I need new ones07:17
jcastroSpamapS: for this weekend we went with dropbox07:17
jcastroerr, week.07:17
SpamapSOpenStack LA will have 50 people tomorrow night07:17
imbrandonohhhh i got a new set of slide templates i made that are SLICK AS HELL07:17
jcastroI can send you my whole deck.js folder07:17
SpamapSand I am going to show them this openstack provider...07:17
imbrandoni need to dig em out for you guys07:17
SpamapSI hope for them to all show up in #juju and DEMAND that it be merged *IMMEDIATELY*07:17
SpamapSbecause honestly, even with the problems it has07:17
SpamapSits amazing07:17
SpamapS*amazing*07:17
imbrandon??07:18
SpamapStho hpcloud is embarassing itself right now07:18
imbrandonsarcastic >07:18
imbrandon?07:18
SpamapSjcastro: I am bootstrapping on hpcloud right now07:18
imbrandonSpamapS: will this work on RACK and DREAM openstacks too ?07:18
imbrandoni will be as soon as he pushes the button07:18
imbrandon:)07:18
SpamapSin theory07:19
SpamapSis DREAM open for beta?07:19
SpamapSI should get an account, since they're sponsoring tomorrow night ;)07:19
SpamapSlp:~clint-fewbar/juju/openstack_provider_fixes07:19
imbrandonjcastro: yea whats up with those accounts07:19
jcastroworking07:19
SpamapScloud-init boot finished at Thu, 28 Jun 2012 07:19:12 +0000. Up 1077.37 seconds07:19
SpamapS*pathetic*07:19
jcastroimbrandon: big company, slow gears07:19
jcastroslow gears, but fast IO!07:21
jcastroSpamapS: I'll tarball up our slides and send them over07:21
lifelessSpamapS: 'lo, so, you're reviewing charms atm ?07:34
SpamapSlifeless: tomorrow morning.. about to sign off after I see mysql deploy on hpcloud07:35
SpamapSlifeless: but I will definitely take a look at your thing. :) 12 items in the queue, but half of them are adding maintainer07:37
lifeless\o/07:37
* SpamapS hopes HPCloud will address their IO problems soon07:38
SpamapS2012-06-28 07:36:52,593 - DataSourceEc2.py[CRITICAL]: giving up on md after 120 seconds07:39
SpamapSle sigh07:39
SpamapScloud-init boot finished at Thu, 28 Jun 2012 07:44:48 +0000. Up 251.99 seconds07:45
SpamapSWow, night and day there07:45
SpamapSmore diablo lameness..08:00
SpamapSsecgroups aren't automatically setup to be able to talk freely amongst their members08:00
SpamapSand in fact, have no way to do that. :-P08:00
* SpamapS heads to bed08:09
imbrandonyea there is a way, i had to do it when i created a databse sec grup08:11
imbrandonbut no way on the console or their cli too08:11
imbrandonl08:12
imbrandonneed to use the os cli nova tool08:12
imbrandonand not the one in the repos08:12
imbrandonimagine that they extended that too08:12
imbrandon:(08:12
imbrandonanyhow i'll shoot u a message with where i found the info08:12
imbrandongnight08:13
imbrandonjcastro: found it, putting a Ubuntu logo on it and uploading, its "almost" ready for wide use, i was gonna unleash it in a few days after a little more markup cleanup08:13
imbrandonbut if you like it , use it now, nothing major changing , only cleanup and some new images to replace the pixelated logos08:14
imbrandon:)08:14
* imbrandon gets the url08:14
imbrandonjcastro: http://api.websitedevops.com/slides/template/08:29
imbrandonthen watch that on your ipad, then iphone, then driod phone , then kindle , then laptop  :)08:30
imbrandonbad ass, telling you08:30
imbrandonall kinda features :)08:30
ejatimbrandon : c00l08:31
imbrandonjust need to finish it :)08:31
imbrandonejat: ?08:31
imbrandonheh08:31
* ejat is that a template u guys use to present juju 08:32
ejator just a general ubuntu template..08:32
imbrandonnot yet. when i finish it in the next few days hopefully :)08:32
ejat\0/08:32
imbrandonneither atm, its about 98% done :)08:32
twobottuxaujuju: "init: juju-..." errors in syslog after uninstalling juju <http://askubuntu.com/questions/157093/init-juju-errors-in-syslog-after-uninstalling-juju>10:32
=== voidspac_ is now known as voidspace
jmlis it possible for 'juju ssh' to somehow bypass the host authenticity check?10:47
jmlI mean, I really have no idea what the fingerprint of this thing is, and I don't know how I'd find out using a trusted channel.10:48
imbrandonjml: yea , but you do it with ssh configs not juju specific10:49
imbrandonone sec i'll get you the snipit i use10:49
imbrandonhttp://paste.ubuntu.com/1064070/10:51
jml...10:52
jmlimbrandon: so, I'm not crazy enough to want to completely disable strict host key checking.10:52
imbrandonnow i'm not advocating that its safe to ignore those warnings, but i feel you, and i personaly do, but i verify my machines in other ways10:52
imbrandonwell you can narrow thats to ec2 as well10:52
imbrandonwith the host *10:52
imbrandonhost *.ec2.amazonaws.com10:53
imbrandonor something10:53
imbrandonanyhow, thats one solution, least get ya in the right direction for what would need to be done10:53
imbrandonbtw not all of that may be needed10:55
imbrandoni just grabed that from the user i have setup to control my juju instances10:55
jmlimbrandon: what I meant was, why doesn't juju do this: https://code.launchpad.net/~jml/juju/no-host-key-check/+merge/11254011:01
imbrandonnot sure, imho thats a good fix , one note, you can also specify a temp known_hosts file when using that flag as well11:03
imbrandonlike /dev/null11:03
imbrandonso the remark in your comment becomes moot11:03
imbrandonbut either way, yours or mine, does the exact same thing, just looks scarier in my ssh config :)11:04
imbrandonanother solition too would be to add that feature into jitsu , then when you wrap juju in jitsu as per normal it can have an alias for ssh with that config set11:06
imbrandonimho that would be the way to get the ball rolling anyhow, SpamapS has said in the past that its a good testing ground before getting things into core11:07
jmlmeh.11:12
imbrandon:)11:15
=== mrevell_ is now known as mrevell
jml'juju status' ... look for the IP somewhere. try it in the web browser. Internal server error. 'juju status', this time look for the instance number. 'juju ssh instance/num'. manually type 'sudo cat /var/log/apache2/error.log'.13:30
twobottuxaujuju: Can I specify tighter security group controls in EC2? <http://askubuntu.com/questions/156715/can-i-specify-tighter-security-group-controls-in-ec2>14:06
SpamapSjml: sorry to be so harsh ;)14:19
SpamapSjml: btw, the trusted channel you can use for ec2 is euca-get-console-output14:21
SpamapSjml: but it lags by 2 - 5 minutes14:21
jmlSpamapS: and lxc?14:21
SpamapSjml: eventually juju will record the fingerprint in ZK as soon as the machine agent starts up14:21
SpamapSjml: for lxc you have the file on disk ;)14:21
SpamapScat the console log14:21
jmlSpamapS: hang on, walk me through this14:22
jmlI type 'juju ssh instance/N'14:22
jmlI'm asked "is this *really* the host you want?"14:22
jcharetteanyone around to help a maas / juju noob14:23
jmland then, for an lxc instance, how do I actually verify that?14:23
SpamapSjcharette: we can try. Note there is also a #maas channel14:23
jcharetteSpamapS:  thanks, i'll let you finish with jml and then go from there14:24
jcharettei've asked for help on maas as well14:24
SpamapSjml: the container's root filesystem is accessible to you (via sudo) .. so you can just add the public key directly to known_hosts...14:24
SpamapSjml: it will be at /var/lib/lxc/juju-envname-machineid/rootfs/etc/ssh/id_rsa.pub or something like that14:25
jmlSpamapS: and what assurance does that actually grant me?14:26
SpamapSjml: that your container wasn't mitm'd on your own box ;)14:26
SpamapSjml: another better way is to just turn off strict host key checking on 192.168.122.*14:27
SpamapSjml: you can also direct known_hosts to /dev/null14:27
SpamapSso you don't get warned about changed keys14:27
jmlSpamapS: ok, I'll do that.14:29
* jml subverts things14:29
jcharetteSpamapS:  I'm going to read some more documentation on maas, may be back soon with q's14:29
SpamapSjml: I do think the known_hosts file needs to be rethought for the cloud. It was created at a time where creating/destroying "servers" was unheard of.14:31
SpamapSjml: seems like that bit of the cloud is ripe for an API.14:31
jmlSpamapS: I don't see how that could work.14:32
SpamapSIn fact that would be a cool feature to add to openstack. Let the guests inject fingerprints when they boot up.. then have it available as part of the instance info available via the API14:32
jmlSpamapS: Because the API would also be subject to MITM14:32
SpamapSAPI is HTTPS14:32
SpamapSso it at least has the CA system protecting it14:33
jmlhmm.14:34
SpamapSjml: the API must be trusted, as it is standing in for the sysadmin of old, racking boxes and laying down images. :)14:34
jmland then things like 'juju ssh' would inspect that API & write to a tmp known_hosts and ?14:34
jmlSpamapS: "must be trusted" as in "you have no alternative but to trust it" or "it must be trustworthy"?14:35
SpamapSjml: it must be trustworthy14:36
SpamapSjml: well hopefully we could add something to ssh that stands in for known_hosts, not a file. Something like --host-key="...content of public key"14:38
SpamapSjml: but with what we have today, yes, just a temporary known hosts of 114:38
jmlSpamapS: I guess I'm going to hold out for the future then.14:43
james_wit's trusted, so you better hope it is trustworthy15:12
SpamapSjml: for the present, ~/.ssh/config works great15:20
jmlSpamapS: is there an easy way to get the IP address of my just-deployed service?15:36
jmlSpamapS: I get it that juju is supposed to work for a jillion instances, but I still want to be able to open a web browser for the thing I just deployed15:37
SpamapSjml: there's a few jitsu commands to help16:55
SpamapSjml: jitsu get-unit-info16:55
SpamapSjml: I do think there is a need for charms to be able to talk back to the admins more16:57
james_wjml, juju status $service | grep public-address | head -n1?16:57
jmljames_w: oh right, status can be restricted to service16:58
james_wyeah16:58
jmlSpamapS, james_w: thanks16:58
jmlSpamapS: there seems to be a general pattern of "Q. X is tedious with jitsu. Any tips?  A. Use jitsu."17:02
jmlSpamapS: why is jitsu separate to juju?17:02
jmljames_w: juju status libdep-service 2>/dev/null | grep public-address | head -n1 | cut -d':' -f2 | sed -e 's/ //g'17:09
jmlit seems as if my db-relation-changed hook isn't being called when the relation is added... or something?17:15
james_wjml, the relation isn't in an error state?17:17
* jml head desks17:18
jmljames_w: no, I don't think so. juju status doesn't say 'error' anywhere and the logs don't have any obvious errors17:18
jmlof course one of the many errors I'm dismissing as false positives might be actual errors17:18
jmlumm...17:18
jmlright, so I ran debug-hooks17:18
jmland then I hit C-d to quit tmux17:19
jmland now I can't do debug-hooks on that instance?17:19
jmland now it works?17:19
jml*sigh*17:19
jmlAnd then I just had debug-hooks running, and then I added the relation (juju add-relation postgresql:db libdep-service) and nothing happened in the debug-hooks session17:20
james_whmm, I don't know what that could be17:22
james_wyou're not currently executing a hook in tmux?17:22
james_wthat caught me out once17:22
james_was hooks are serialized17:22
jmljames_w: no, I wasn't. Perhaps "install" isn't finished... although how the instance got into the 'started' state without that I won't know.17:24
jmlI've trashed my environment. Perhaps that will hepl.17:24
jmlyay, the hook ran this time17:28
jmlnow I'm getting an internal server error, but that's probably my fault.17:28
sidneijames_w, around?18:00
james_whi sidnei18:00
sidneijames_w, i see you added an upstart script to the txstatsd charm, im considering adding it to the txstatsd packaging instead, with a few changes.18:00
=== dpb__ is now known as Guest1484
james_wsidnei, sounds ok18:02
sidneijames_w, so generally, the way we're running txstatsd and carbon-cache for u1 is to run multiple processes in a single, to take advantage of all cores. got any handy examples of spawning multiple daemons from an upstart script, controlled by say /etc/default/$daemon having 'NPROCS = X'?18:04
sidneis/a single/a single machine/18:04
sidneithen i guess we'd control that by doing relation-set nprocs=X18:05
james_wsidnei, I don't have an example18:05
sidneiok, thanks!18:06
=== zyga is now known as zyga-afk
sidneijames_w, http://upstart.ubuntu.com/cookbook/#instance fyi19:04
james_wcool19:04
SpamapSjml: I've had the exact experience you just did. I'd bet money you had a hook stuck in a command, so the next hook could not run.19:52
SpamapSjml: and to answer your earlier question about why jitsu is not part of juju, because juju has stringent requirements for code review and design, so it takes time for fresh new ideas to trickle into juju19:53
SpamapSjml: whereas jitsu allows rapid iteration and scratching of itches19:53
* SpamapS starts reviewing charms19:53
zirpudoes the ppa juju package have the fix for the lxc not using sudo to bootstrap?20:11
zirpu0.5+bzr531-0ubuntu1  version doesn't work for lxc for me unless i'm root. and i have pwdless sudo.20:12
* zirpu should probably just live on the edge and run from trunk.20:12
SpamapSzirpu: I wasn't aware any fixes were done around that20:16
SpamapSzirpu: the PPA is trunk20:16
SpamapSsomething I'd actually like to change20:16
SpamapSbut.. so many ideas, so little time20:17
imbrando1yup, sometimes i wish there was 3 of me20:18
imbrando1maybe 420:18
imbrando1:)20:18
koolhead17SpamapS, planning to try juju for google cloud?20:26
zirpui'm pretty sure my clone and i would attempt to kill each other. :-)20:27
=== imbrando1 is now known as imbrandon
SpamapSkoolhead17: looks like it is a different API, so no20:32
koolhead17SpamapS, k20:33
=== marrusl is now known as marrusl-ebayqbr
=== marrusl-ebayqbr is now known as marrusl
dk1hi, anyone feel like debugging a juju on osx install problem?21:24
dk1totally clean 10.7/homebrew, brew install gets almost to the end and then:21:25
dk1Finished processing dependencies for juju==0.521:25
dk1build.rb:49: in 'initialize': Bad file descriptor21:26
=== james_w` is now known as james_w
SpamapSimbrandon: around?21:29
SpamapSdk1: imbrandon wrote that recipe, he should be able to help21:29
SpamapSimbrandon: ^^21:29
imbrandonsorry21:39
imbrandonlike right in the middle of something21:39
imbrandonbut yea i can fix you up in a lil bit21:39
imbrandonlemme get off the phone and such21:40
imbrandondk1: ^^21:40
dk1hey21:44
dk1ok21:44
imbrandondk1: between now and then this will fix you up ( you made it far enough in the process ) ... open term and run "mkdir /tmp/juju && cd /tmp/juju && bzr branch lp:juju && cd juju && sudo python setup.py install && cd ~" thats _should_ fix you up from that point and i'll look deeper into the issue here in a few21:44
dk1sec21:44
imbrandonjust copy/paste that21:44
dk1running now21:45
dk1ok, so after that running juju gives me:21:48
dk1ImportError: No module named zookeeper21:48
imbrandonbrew uninstall zookeeper && brew install zookeeper --python21:49
dk1imbrandon: ***21:49
dk1No such file or directory21:49
dk1.. and21:49
dk1already installed21:49
dk1when tried running separately21:50
imbrandonyou typo'd21:50
dk1nope21:50
dk1Uninstalling /usr/local/Cellar/zookeeper/3.4.3...21:50
dk1Error: No such file or directory21:51
imbrandonahh your ZK barfed on install the first time21:51
dk1seems likely21:51
imbrandonbrew unlink zookeeper21:51
dk1same rror21:51
dk1error21:51
imbrandoncd /usr/local/Cellar21:52
imbrandonrm -rf zookeeper21:52
dk1ok21:52
dk1ok21:52
imbrandoncd ~ && try installing again21:52
imbrandonwith --pythonm21:52
imbrandon--python21:52
dk1bombs out21:53
dk1at..21:53
imbrandonok, there is a problem with the zk formula then21:53
imbrandonand i/we dont maintain that BUT you can try ...21:53
dk1ld: duplicate symbol _hashtable_iterator_key21:54
imbrandonwait do you have xcode and the cli tools etc21:54
imbrandoninstalled21:54
dk1yep21:54
lifelessmorning 'all21:55
imbrandonk yea its likely a zk formula problem the only other thing you can try atm is this ( without me getting on my osx box and digging in more heh )21:55
imbrandonheya lifeless21:55
imbrandontry "brew install zookeeper --HEAD --python"21:55
imbrandonrm -rf like before if needed21:55
imbrandondid i mention i HATE zookeeper21:56
imbrandonand i see no reason that should be on the client anyhow /me grumbles21:56
imbrandonbrb , lil boys room callin my name21:57
dk1bombs out21:57
dk1with a brand new error21:58
dk1autoreconf -if21:58
imbrandonfrak, ok pastbin the output of "brew doctor" and i'll be back in a few21:58
imbrandonoh yea21:58
imbrandonyou need that insatlled21:58
imbrandonshould have told ya21:58
dk1it grabbed all of that for me21:58
imbrandonnot sure what the autoreconf pkg is called but its in brew21:59
dk1just bombs with:21:59
dk1configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library21:59
imbrandonoh ok , yea zk is being a bitch, you said clean 10.7 ? no python from brew or gcc from brew or nothing ?21:59
dk1there's a /usr/bin/python and /usr/bin/gcc, but neither in the Cellar22:00
imbrandontoss "brew doctor" output in paste.ubuntu.com and i'll brb, really got to head for a sec22:00
imbrandonk thats fine22:01
dk1paste.ubuntu.com/1065093/22:04
imbrandonopen /etc/paths and move the line with /usr/local/bin to the top, save exit term22:06
imbrandonreopen term, then try the zk install with --python , then with --HEAD22:07
imbrandonand afk again22:07
imbrandonbrb22:07
dk1sec22:16
imbrandonif that dont work, screw brew and http://paste.ubuntu.com/1065123/22:21
* imbrandon is going to write a custom installer for the 0.5.1.x release22:22
imbrandondamn, afk AGAIN22:22
SpamapS.x ?22:26
SpamapSimbrandon: oh right you want .bzrrev22:26
SpamapSwhat ever would we do if it were git tho? ;-)22:26
SpamapSlifeless: reviewing opentsdb now22:29
SpamapSlifeless: thats one hell of a README :)22:32
SpamapSlifeless: review posted22:42
imbrandonSpamapS: hahah , easy22:49
imbrandonSpamapS: JUJU_BUILD_REV=`git log -n 1 --pretty=format:"%h"` :)22:49
* imbrandon uses that for client website builds that use git or HG to print in the footer , normally a CI server is pushing it out so its very very nice22:51
SpamapS%h is ?22:52
imbrandonbholtsclaw@ares:/usr/local/Library$ git log -n 1 --pretty=format:"%h"22:52
imbrandon2c9d87e22:52
imbrandonshort hash22:52
SpamapSa hash that will always be higher than previous hashes?22:52
imbrandonuniq22:53
SpamapSneed higher22:53
imbrandonnot sure about higer but thats solved with the22:53
imbrandonrev number22:53
imbrandonif its like our workflow anyhow the rev num would work from github etc22:53
imbrandonyou just can depend on it from diff repos22:53
imbrandonbut if you build from the same one always its fine :)22:54
SpamapSyeah22:54
SpamapSsame restriction for bzr really22:54
SpamapScrap, 3 hours till presentation and I literally have 1 slide22:54
imbrandonand really to be "the best" would be a combo, like22:55
negronjlonly one charm in the review queue ... nice22:55
imbrandon0.5.1.N-%h22:55
imbrandonor something , that way devs could easily tie it to a hash local22:55
imbrandonand N will always be higher22:56
SpamapSnegronjl: thats either very good (we're on top of things) or very bad (we're sinking!)22:56
imbrandonhah22:56
negronjlscratch that .... no charms in the queue .... nice/scary (depending on your point of view)22:56
imbrandonthat reminds me i was gonna do some docs merges and i got one more build work arround to maybe make 0.6.4 work22:56
negronjlI better get to write more charms STAT so we have some stuff there :)22:56
imbrandonHOLLY CRAP, i just hit jackpot with the OSX build, i def got to write a native installer but thats easy23:03
imbrandonhttp://pypi.python.org/pypi/zc-zookeeper-static23:03
imbrandon^^ staticly compiled zkpython 3,4,3 for osx23:03
imbrandonYAY!23:03
imbrandonbout time something went right23:04
lifelessSpamapS: thanks23:09
imbrandonoh that is SOOO much easier ...23:10
SpamapSimbrandon: sweet23:18
imbrandonyea , this like is gonna make the osx installer solid and not a thorn in my side23:19
imbrandonheh23:19
imbrandonnow does the client REALLY need zookeeper local or just the bindings, rember no lxc here23:19
SpamapSjust bindings23:19
imbrandonROCK!23:20
imbrandoni think i just squeeled like a lil girl23:20
imbrandonoh hell yea then no brew needed at all since bzr has a native osx .dmg23:21
imbrandonhells yea23:21
imbrandonthat makes my day23:22
imbrandonhell week23:22
imbrandoninfact ... let me ponder on this a few moments ...23:22
* imbrandon opens lp:juju/setup.py23:23
imbrandoncrap still need brew for gcc23:23
imbrandondamn23:24
imbrandonor xtools23:24
imbrandonoh no there is a cli dmg install of that too23:24
* imbrandon goes to look23:24
dk1imbrandon: no luck23:25
imbrandonhaha, i found some good news23:25
dk1?23:26
imbrandonsudo easy_install zc-zookeeper-static23:26
imbrandonlet that finish23:26
dk1ah23:26
imbrandonthen ping me23:26
imbrandonbuilds fast i tested it here23:26
dk1running23:27
dk1this is one of the new retina mbps, fairly fast23:27
dk1done23:27
imbrandonnice23:27
imbrandonsweet23:27
imbrandonok type "python"23:27
imbrandonget a prompt23:27
dk1yep23:27
imbrandonthen "import zookeeper"23:27
imbrandonenter23:27
dk1ok23:27
imbrandonerror ? or nother prompt23:28
dk1prompt23:28
dk1looks like it imported23:28
imbrandonsweet, ctl D23:28
dk1ok23:28
imbrandonthen try "juju bootstrap"23:28
dk1no envs configured23:29
imbrandonROCKIN23:29
dk1better than before23:29
dk1definitely23:29
imbrandonok go read the docs and enjoy juju23:29
imbrandonyour good23:29
dk1haha23:29
imbrandon:)23:29
dk1awesome23:29
imbrandoni'll fixup the installer for next time but yea23:29
imbrandonrember there is no lxc on osx23:29
imbrandonso everything is ec2 or other remote env's23:30
imbrandon:)23:30
dk1this is minute 5 of juju for me23:30
imbrandontrust me you dont want lxc anyhow , vbox would be a better local provider imho23:30
imbrandon:)23:30
dk1do i need a local linux env for anything23:31
dk1if i'm just writing scripts and pushing them out to test23:31
imbrandonyae just signup for a amazon acount and goto town tho, your normal install ar this point23:31
imbrandonnope , only need linux if you want lxc ( chroots ) local23:31
dk1cool23:32
lifelessimbrandon: closer to jails ;)23:32
dk1and what are people using for deploying big rails apps23:32
imbrandonand like i said personaly i dont use/like them anyhow23:32
dk1upstart, runit?23:32
imbrandonforever , god23:32
imbrandoni see god used alot23:32
imbrandonor upstart23:32
dk1in production?23:33
imbrandondunno any one that dont run nginx+passenger for ruby in prod :)23:33
SpamapSdk1: if you want the offline experience, simplest to just fire up an ubuntu server VM and use the local provider inside that23:33
dk1not usually offline, only rationale would be if the testing loop was masively faster23:35
dk1massively, rather23:35
imbrandonnot really once you have a good env setup23:35
imbrandonif your destroying and creatign over and over then yea23:35
imbrandonmaybe23:35
imbrandonbut once the base is down pat, and just charm upgrades23:36
imbrandonetc23:36
imbrandonthen much easyer the "normal" way imho23:36
dk1we're probably going to jruby+trinidad soon anyway23:36
imbrandonbut we're talking 10 min diff here23:36
imbrandonnot hours23:36
SpamapSdk1: its only faster if you are on a really fast SSD.. otherwise its faster to just terminate/start EC2 m1.smalls while developing23:37
SpamapSdk1: and even if you're on a fast SSD.. its still sometimes slower because many m1.smalls are going to still be more scalable than youre one 4 core i5 ;)23:37
dk1think this question will probably answer itself by tomorrow23:38
dk1thanks imbrandon & guys23:38
imbrandoni'll put it like this, i have only fired up a lxc container ONE time ever and dident even let it finish23:39
imbrandondk1: np23:39
imbrandonpop in anytime ya need a hand, normally someoen arround23:39
imbrandonand i'm normaly the token mac fella23:39
imbrandon:)23:39
imbrandonbut really once your at this point its all the same23:39
imbrandonyour past the mac specifics23:39
lifelessSpamapS: dunno how fast you think ec2 is ;)23:39
lifelessSpamapS: but, local openstack is about 30 times faster fo rme23:40
imbrandonlocal openstack sure, not 2 or 3 containers on your laptop23:40
imbrandon:)23:40
lifelessimbrandon: you haven't met my laptop :)23:40
imbrandonheh23:40
lifelessimbrandon: 8GB ram, intel SSD, i7 4-hardware threads.23:40
imbrandonsame23:41
dk1sounds heavy23:41
imbrandonwell 16gb23:41
imbrandonbut yea23:41
imbrandonsame23:41
imbrandonis my daily machine23:41
lifelessimbrandon: desktop is 16GB, 8 hardware threads; raid 10, its where my local openstack is.23:41
lifelessdk1: its about 1kg23:41
imbrandon:)23:41
lifelessdk1: x201s23:41
imbrandoneww but sooo ugly , i'll stick to my mbp :)23:42
imbrandonyou can toss em cross the room tho23:42
dk1ah, didn't know you could get an s with a qc23:42
dk116gb retinas aren't shipping yet anyway, they just gave me a loaner 8gb23:43
imbrandonwith sublime text open x2 adobe ps 6 + adobe flashbuilder 5 + xcode + sourcetree + god knows how many term tabs + screen windows + chrome w/ 100 tabs combine + firefix with 4 or 5 tabs + Espresso + Mail.app + cyberduck + gradient + itunes + Proseql + adium , and then whatever random app i might have temporarily open23:46
imbrandonthats what easy my 16gb ram quicky ^^23:46
imbrandonthats actually what i have open now, and only been on the osx partition an hour23:46
imbrandonheh23:46
dk1imbrandon: one more thing, don't know what Formulas are yet, but the jujutools.github.com site links to a directory with text that implies there should be more than one juju.rb file in it23:51
imbrandonthere will be when i put charm-tools23:52
imbrandonand a few other goodies you'll soon want to have23:52
imbrandon:)23:52
imbrandonjust not got one of those roundtuits' yet, maybe a good project this weekend23:53
imbrandonSpamapS: import subprocess23:54
imbrandon_proc = subprocess.Popen('git log --no-color -n 1 --date=iso',23:54
imbrandon                         shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)23:54
imbrandontry:23:54
imbrandon    GIT_REVISION_DATE = [x.split('Date:')[1].split('+')[0].strip() for x in23:54
imbrandon                         _proc.communicate()[0].splitlines() if x.startswith('Date:')][0]23:54
imbrandonexcept IndexError:23:54
imbrandon    GIT_REVISION_DATE = 'unknown'23:54
imbrandon:)23:54

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