<    March 2010    >
Su Mo Tu We Th Fr Sa
    1  2  3  4  5  6
 7  8  9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
00:28 maize joined
01:17 jasherai joined
03:28 yannlugrin joined
08:26 harrycaul joined
09:00 tongueroo joined
09:10 auser joined
09:10 <auser> hola maize
09:10 <maize> hi
09:10 <auser> I'm sittin gin an airport, so if I have to go quickly, you know why
09:10 <maize> i commented on your last post
09:10 <auser> I saw
09:10 <maize> ok
09:10 <maize> cool thanks
09:10 <auser> okay, this is a gross test, but...
09:11 <auser> can you open up
09:11 <auser> the lib/poolparty/chef_solo.rb file
09:11 <maize> ok
09:11 <auser> and in the method build_tmp_dir can you place a print statement, just to make sure it's actually getting called
09:11 <auser> oh and the path should be
09:12 <auser> export PATH=/path/to/poolparty/source/bin:$PATH
09:12 <auser> otherwise it'll find the path to the other clouds first
09:12 <maize> ok lets try
09:14 <maize> i setted my path var like this: export PATH=/User/maize/poolparty/bin:$PATH
09:15 <maize> hm my print statement wasn't called
09:15 <maize> def build_tmp_dir
09:15 <maize> print "build_tmp_dir is getting called"
09:15 <maize> ...
09:15 <auser> interesting
09:15 <auser> what's your clouds.rb look like?
09:16 <maize> http://pastebin.com/R6XdrrSH
09:17 <auser> what command are you running?
09:18 <maize> just "cloud start"
09:18 <auser> hm
09:18 <auser> do you see anything out of 'chef'
09:18 <maize> don't i have to restart my console to take changes effect to my export path?
09:19 <auser> shouldn't
09:19 <auser> do
09:19 <auser> which 'path'
09:19 <auser> er
09:19 <auser> which cloud
09:19 <auser> haha
09:19 <maize> opk
09:20 <maize> ah fuck
09:20 <maize> "/opt/local/bin/cloud"
09:20 <auser> :)
09:20 <auser> do the new export
09:21 <harrycaul> auser: do you have any idea on how to deploy to a VPC?
09:21 <auser> hey harrycaul
09:21 <maize> "export PATH=/User/maize/poolparty/bin:$PATH" should be right if i cloned the git source to the dir "poolparty"
09:21 <auser> yes
09:21 <harrycaul> REALLY?
09:21 <auser> depends where you cloned it
09:21 <auser> stimble would be the expert there
09:21 <maize> i cloned it to the folder "poolparty" under "/Users/maize...
09:21 <auser> deploy as in deploy code?
09:22 <harrycaul> CLOUD START
09:22 <harrycaul> I want to reuse the same cloud recipes I have for ec2 in my newly created vpc
09:22 <auser> an amazon vpc?
09:22 <harrycaul> yes
09:23 <auser> I'll have to do some research into that, but I don't think it's a stretch
09:23 <harrycaul> for example the amazon vpc does not allow secutiry groups
09:25 <harrycaul> i should probably implement a /lib/cloud_providers/ec2/ec2_vpc.rb
09:25 <auser> yeah, that's probably what I would do... then it'd be
09:26 <auser> using :ec2_vpc
09:26 <harrycaul> exactly
09:26 <harrycaul> ok
09:26 <harrycaul> if nobody else did it before .... I will give it a try... I will check up tomorrow if you are around with more questions...
09:26 <auser> cool
09:27 <auser> just fyi, I won't be as available for the next few days
09:27 <harrycaul> cool
09:27 <auser> 'cause I'm skiing with the fam this weekend
09:27 <auser> but I'll be online-ish
09:27 <harrycaul> nnnnnnnnnnnniiiiiiiiiice
09:29 <maize> hm my export doesn't take effect
09:29 <maize> export PATH=/User/maize/poolparty/bin:$PATH
09:29 <maize> which cloud
09:30 <maize> "/opt/local/bin/cloud"
09:31 <auser> weeeeiiirrrddd
09:31 <maize> ah
09:31 <maize> export PATH=~/poolparty/bin:$PATH
09:31 <maize> this works
09:32 <auser> what? weird
09:32 <maize> ya strange
09:32 <auser> might be because 'gem' is finding it instead of $PATH
09:32 <auser> how odd
09:32 <maize> yes now my print statement is called ;-)
09:32 <maize> "Attaching EBS volumes
09:32 <maize> build_tmp_dir is getting calledCopying the chef-repo into the base directory from ./chef_cloud/chef_repo
09:32 <maize> Creating the dna.json
09:32 <auser> phew
09:33 <auser> alright
09:33 <auser> I have to get on a plane now
09:33 <auser> I'll chizat with you later
09:34 <maize> ok have i nice flight ;-)
09:34 <auser> gracias
09:34 <auser> hasta
11:18 tongueroo joined
13:20 harrycaul joined
14:44 maize joined
17:02 harrycaul joined
17:42 maize_ joined
17:42 auser joined
18:07 <maize_> hey auser
18:07 <auser> holllllaaa
18:07 <maize_> how was the flight?
18:08 <maize_> do you need my error msg again?
18:14 <auser> it was good
18:14 <auser> yeah, I totally forgot
18:14 <auser> sorry dude
18:16 <maize_> ok, no problem...
18:16 <maize_> we stopped at the point that i added a print statement at the beginning of the function build_tmp_dir
18:17 <maize_> i get this error after trying to start my cloud by "cloud start"
18:17 <maize_> "No such file or directory - /tmp/poolparty/poolparty/chef/etc/chef/roles/chef.json (Errno::ENOENT)"
18:17 <auser> yeah, then you got the print statement, right?
18:18 <maize_> before this error i get my statement
18:18 <auser> yeah... so we know it's getting there
18:18 <auser> adding the line
18:18 <auser> puts roles_dir after line 19 *roles_dir =
18:18 <maize_> i figured out that this function makes problems
18:18 <maize_> write_chef_role_json
18:18 <auser> just to make sure it's building it properly
18:19 <auser> is there a roles directory in /tmp/poolparty/...
18:19 <maize_> ok lets see...
18:20 <maize_> for "puts roles_dir" i get a "nil"...
18:20 <auser> interesting
18:21 <auser> what does your line 19 say
18:21 <maize_> FileUtils.rm_rf base_directory
18:21 <auser> what's the line before that
18:21 <maize_> base_directory = tmp_path/"etc"/"chef"
18:21 <auser> weird, you don't have a roles_dir =
18:22 <auser> lemme make sure I pushed this
18:22 <maize_> ok ;-)
18:22 <auser> nope
18:22 <maize_> you're right, there is no roles dir created
18:22 <auser> update
18:22 <auser> git pull
18:22 <maize_> ok...
18:22 GitHub27 joined
18:22 <GitHub27> poolparty: master Ari Lerner * fd83efe (1 files in 1 dirs): Version bump to 1.6.3
18:22 <GitHub27> poolparty: master Ari Lerner * a59577f (2 files in 2 dirs): Updated chef_solo.rb
18:22 <GitHub27> poolparty: master commits 24c0f38...a59577f - http://bit.ly/bh6t79
18:22 GitHub27 left
18:24 <maize_> hm...
18:24 <maize_> "Waiting for the instances to be launched OK
18:24 <maize_> Waiting for the instances to be accessible by ssh OK
18:24 <maize_> Attaching EBS volumes
18:24 <maize_> Copying the chef-repo into the base directory from ./chef_cloud/chef_repo
18:24 <maize_> Creating the dna.json
18:24 <maize_> from /Users/maize/poolparty/bin/../lib/poolparty/chef_attribute.rb:22:in `open'
18:24 <maize_> from /Users/maize/poolparty/bin/../lib/poolparty/chef_attribute.rb:22:in `to_dna'"
18:25 <auser> interesting...
18:25 <maize_> i get this error "/Users/maize/poolparty/bin/../lib/poolparty/chef_attribute.rb:22:in `initialize': No such file or directory - /tmp/poolparty/poolparty/chef/etc/chef/roles/chef.json (Errno::ENOENT)
18:25 <maize_> "
18:25 <auser> ls /tmp/poolparty/...
18:26 <auser> is that roles dir created?
18:26 <maize_> no only poolparty...
18:26 <auser> ls /tmp/poolparty/poolparty/chef/etc/chef/
18:26 <auser> no roles dir?
18:27 <maize_> "ls /tmp/poolparty/poolparty/chef/etc/chef/
18:27 <maize_> apache2 dna.json passenger rails solo.rb
18:27 <maize_> "
18:27 <maize_> hm strange
18:27 <auser> hm
18:28 <maize_> should i delete poolparty folder for a try
18:28 <auser> yeah, let's try that
18:28 <auser> this is odd indeed...
18:29 <auser> it's odd that you aren't seeing an error when FileUtils is trying to create the directory
18:30 <maize_> why doesn't i create this folder :-(
18:30 <maize_> a delete doesn't also work
18:30 <auser> do you see this msg: Copying the chef-repo into the base directory
18:30 <maize_> ya
18:30 <maize_> Copying the chef-repo into the base directory from ./chef_cloud/chef_repo
18:30 <maize_> then
18:30 <maize_> Creating the dna.json
18:31 <maize_> and then
18:31 <maize_> "/Users/maize/poolparty/bin/../lib/poolparty/chef_attribute.rb:22:in `initialize': No such file or directory - /tmp/poolparty/poolparty/chef/etc/chef/roles/chef.json (Errno::ENOENT)"
18:31 <auser> oh wait
18:31 <auser> I think I see it
18:31 <auser> weird
18:32 <auser> try pulling
18:32 GitHub53 joined
18:32 <GitHub53> poolparty: master Ari Lerner * 81a7e0d (1 files in 1 dirs): Moved enforcement of the mkdir_p on the roles directory to after cp_r in chef_solo.rb - http://bit.ly/adZLA9
18:32 GitHub53 left
18:32 <maize_> ok
18:33 <maize_> ah now it works
18:33 <maize_> :-)
18:33 <auser> lameness
18:33 <maize_> thanks
18:33 <auser> :)
18:33 <maize_> lets see...what happens next
18:33 <auser> crossing fingers :)
18:33 <maize_> "bash: gem: command not found
18:33 <maize_> No packages found matching chef.
18:33 <maize_> bash: gem: command not found
18:33 <maize_> bash: chef-solo: command not found"
18:33 <maize_> hm...
18:34 <maize_> probably i forgot to execute "chef-solo" ?
18:35 <auser> lemme look
18:35 <auser> are you doing cloud configure
18:36 <maize_> no only "cloud start"
18:36 <auser> k
18:36 <auser> should still work
18:36 <maize_> for "cloud configure" i get this:
18:37 <maize_> "sent 5435 bytes received 2706 bytes 3256.40 bytes/sec
18:37 <maize_> total size is 118041 speedup is 14.50
18:37 <maize_> bash: gem: command not found
18:37 <maize_> bash: chef-solo: command not found"
18:37 <auser> yeah, looks like it's not bootstrapping
18:38 <auser> can you do
18:38 <auser> cloud ssh
18:38 <maize_> ok
18:38 <auser> then
18:38 <auser> (gem list; dpkg -l chef) | grep -q chef && echo 'chef installed'
18:39 <maize_> "The program 'gem' can be found in the following packages:
18:39 <maize_> * rubygems1.8
18:39 <maize_> * rubygems1.9
18:39 <maize_> Try: apt-get install <selected package>
18:39 <maize_> -bash: gem: command not found
18:39 <maize_> No packages found matching chef."
18:40 <auser> irb -rclouds.rb
18:40 <maize_> The program 'irb' is currently not installed. You can install it by typing:
18:40 <maize_> apt-get install irb
18:40 <maize_> -bash: irb: command not found
18:40 <auser> then pools.clouds["poolparty"].cloud_provider.bootstrap_nodes!
18:40 <auser> oh no, on your local machine
18:41 <maize_> ok :-)
18:41 <maize_> "irb -rclouds.rb
18:41 <maize_> ./clouds.rb:1:NoMethodError: undefined method `pool' for main:Object
18:41 <maize_> irb(main):001:0> "
18:41 <maize_> hm
18:41 <auser> pools
18:42 <maize_> in my clouds.rb?
18:42 <auser> no, at your terminal
18:42 <auser> terminal
18:43 <auser> irb -r/path/to/clouds.rb
18:43 <maize_> ah ok
18:43 <maize_> hm then?
18:43 <auser> then pools.clouds["poolparty"].cloud_provider.bootstrap_nodes!
18:44 <maize_> hm something is wrong in my clouds.rb
18:44 <maize_> "NameError: undefined local variable or method `pools' for main:Object"
18:44 <auser> try
18:44 <auser> require "poolparty"
18:45 <maize_> LoadError: no such file to load -- poolparty
18:45 <auser> require "rubygems"
18:45 <auser> then
18:45 <auser> require "poolparty"
18:46 <maize_> ok
18:46 <maize_> this works
18:46 <auser> hm
18:46 <auser> what does
18:46 <auser> then pools.clouds["poolparty"].nodes.first.chef_bootstrapped? say
18:47 <maize_> hm still: "NameError: undefined local variable or method `pools' for main:Object"
18:47 <maize_> strange
18:51 <maize_> do i have to require another gems?
18:58 <auser> no, shouldn't
18:58 <auser> hrm
18:59 <maize_> hm is there another to found out if my cloud is bootstrapped
18:59 <maize_> ?
19:00 <auser> brb
19:00 <auser> sorry
19:00 <auser> family calling
19:00 <maize_> ok no problem
19:00 <maize_> i also have to go get some sleep because it's 3am :P
19:01 <maize_> should i write an issue in git?
19:12 <maize_> ok good night or day...thanks for your help auser
19:41 <auser> back
19:41 <auser> oh
20:49 tongueroo joined
21:33 auser joined