#chef

/

      • esmet__
        hmm ok
      • i was hoping to not have to recreate any of the ec2 code, but it looks like that's the state of the world
      • databus23 has quit
      • coderanger
        esmet__: Seriously knife-ec2 does almost nothing :)
      • mehlah has quit
      • esmet__
        alright. i'll dig deeper. thanks for the pointers.
      • sbrinkmeyer
        thats not promising for what we are getting towards mr coderanger
      • coderanger
        ?
      • sbrinkmeyer
        we (place i work) are moving towards the aws and were looking toward using the knife-ec2
      • or am i thinking of the wrong plugin (could be)
      • coderanger
        sbrinkmeyer: knife-ec2 is a cute tool for manual testing, it has no place in production infra
      • estebistec joined the channel
      • drywheat has quit
      • sbrinkmeyer
        thats a ... interesting statement ... what put you there?
      • coderanger
        sbrinkmeyer: because EC2 is amazingly failure prone and you _need_ some kind of service watching for failures and replacing nodes
      • mephaust has quit
      • and if you are using knife-ec2 for all provisioning that service is you getting paged
      • sparky1 joined the channel
      • esmet__
        so it looks like knife-ec2 is just a call to fog create and then a call to knife bootstrap
      • coderanger
        Yep
      • :)
      • xmltok joined the channel
      • esmet__
        ok well i feared there was more magic. this is good.
      • dstynchula has quit
      • coderanger
        and you can replace knife bootstrap with an AMI pretty easily
      • crhan has quit
      • grayhemp has quit
      • esmet__
        any reason to do that, other than saving time installing a bunch of common packages?
      • coderanger
        esmet__: Lets you use a bunch of tools that are based around AMIs (ASGs, CFN, Asgard, etc)
      • esmet__: knife bootstrap is an inherently CLI tool really
      • You could write some kind of service wrapper around the process, but it would be error prone at best
      • maplebed has quit
      • sbrinkmeyer
        coderanger ASGs
      • ?
      • rburton- joined the channel
      • coderanger
        auto scaling groups
      • Y'all should wait 10 days and come see my PyCon talk :P
      • rabellamy joined the channel
      • StefanS joined the channel
      • sbrinkmeyer
        oh yeah sure i'll just hop on a bus to montreal
      • wit my cardboard sign and sharpie
      • esmet__
        can you help me understand the difference between bootstrapping a server vs creating a node 'foo', sshing to foo and calling chef-client?
      • estebist_ joined the channel
      • coderanger
        esmet__: Not sure what you mean
      • esmet__
        what steps are involved in the bootstrapping process? as I understand it now, chef-client is installed and then invoked. somewhere in that step, the chef server takes note of the new node (this part is fuzzy)
      • mboeru joined the channel
      • sparky1 has left the channel
      • captbaritone joined the channel
      • mehlah joined the channel
      • Soliah joined the channel
      • jyuan joined the channel
      • coderanger
        esmet__: Ahh, so what knife bootstrap does
      • xmltok has quit
      • deny[all] has quit
      • it copies your validation.pem (and if set, your databag secret) to the target node
      • and it writes out a JSON blob with your selected chef environment and run list
      • grayhemp joined the channel
      • and then installs chef and runs chef-client -j /that/json/file
      • when chef boots up the first time if it doesn't find a file named client.pem, it uses teh validation key to register itself
      • nicholasserra has quit
      • jyuan
        I've been using chef for a while, but recently ran into a problem with knife bootstrap
      • ERROR: RegexpError: end pattern with unmatched parenthesis: /^(yone,$/i
      • However, I don't have any parenthesis in the command itself
      • even very basic usage that clearly should be valid has this problem
      • knife bootstrap 1.2.3.4 ⏎ Bootstrapping Chef on 1.2.3.4 ERROR: RegexpError: end pattern with unmatched parenthesis: /^(yone,$/i
      • anyone ran into this before?
      • coderanger
        jyuan: Whats the full traceback?
      • deny[all] joined the channel
      • tejaycar has quit
      • jyuan
        The full tracebook is as pasted
      • chuze has quit
      • splittingfield has quit
      • all other knife commands work fine, and bootstrap has worked in the past
      • wonder if it's some problem with dependent gem
      • mboeru has quit
      • captbaritone has quit
      • coderanger
        ?
      • paulmooring is now known as paulmooring_away
      • I didn't see any link
      • jyuan
        coderanger: sorry?
      • i'm running knife boostrap on my local machine to bootstrap a remote insance
      • chrombar has quit
      • jsutch joined the channel
      • ~/w/chef-repo git:master ❯❯❯ knife bootstrap 1.2.3.4 ⏎ Bootstrapping Chef on 1.2.3.4 ERROR: RegexpError: end pattern with unmatched parenthesis: /^(yone,$/i
      • coderanger
        jyuan: Please paste your full ruby traceback to a pastebin site like gist.github.com and send the link here
      • jyuan
        ^ that's all the lines i have
      • StefanS has quit
      • how do I get the full stacktrace?
      • shoeless_ joined the channel
      • coderanger
        knife -VV
      • bixu_ joined the channel
      • jyuan
      • Christian joined the channel
      • Christian is now known as Guest23305
      • coderanger
        jyuan: Are you overriding the default bootstrap in your knife.rb
      • bixu has quit
      • estebist_ has quit
      • jyuan
        coderanger: no i'm not
      • coderanger: my knife.rb just has basic configuration, no reference to bootstrap
      • shoeless_ has quit
      • coderanger
        jyuan: Hmm, I would just grep all your config files for that "yone" string
      • alanwill has quit
      • captbaritone joined the channel
      • deny[all] has quit
      • GreatSUN
        hiho coderanger
      • how are you?
      • rafaelmagu joined the channel
      • jyuan
        coderanger: hmm, I grepped and didn't find anything
      • coderanger: this is very strange
      • coderanger
        GreatSUN: Tired and heartburny :-(
      • rafaelmagu
        Hi everyone
      • I'm seeing a very annoying issue during long-running Chef runs
      • estebistec has quit
      • GreatSUN
        coderanger: tired... oh yeah, I am working now for 20h
      • rafaelmagu
        Getting 403 Forbidden errors when downloading cookbooks
      • Well, during the run, actually
      • coderanger
        rafaelmagu: Yeah :-(
      • databus23 joined the channel
      • rafaelmagu: Its a known issue
      • rafaelmagu
        I tried the s3_url_ttl fix but no luck
      • coderanger
        rafaelmagu: Hosted Chef?
      • rafaelmagu
        :/
      • OS
      • coderanger
        rafaelmagu: Hmm, you might able to patch bookshelf to ignore timestamps
      • I've not tried though
      • bencaron_ has quit
      • rafaelmagu
        coderanger: got a link to the patch so I could see what's needed?
      • jchauncey joined the channel
      • coderanger
        rafaelmagu: You can try to re-arrange things so that the time consuming stuff happens at the end after any templates/cookbook_files
      • cwebber has quit
      • rafaelmagu
        Problem is the lazy-loading of files
      • coderanger
        rafaelmagu: I don't know of a specific patch
      • Just that in the abstract you could fix it there
      • rafaelmagu
        Right
      • ivey is now known as ivey_off
      • jyuan has quit
      • justizin has quit
      • databus23 has quit
      • GreatSUN
        coderanger: I recognized some days ago, that chef-server / chef-client do not sync files (besides they are referenced by some cookbook_file lwrp)
      • coderanger
        GreatSUN: It downloads them only on-demand
      • GreatSUN
        coderanger: is that default scenario?
      • coderanger: I guessed so... Is there some option to download all
      • ?
      • coderanger
        and because the URLs the chef server gives you have an expiration time, if your run takes too long, those links can actually expire
      • BuSerD has quit
      • GreatSUN
        I mean, switch off the on demand
      • coderanger
        GreatSUN: No, there is no option
      • GreatSUN
        ok, thanks :-)
      • I already have reprogrammed my stuff so that it downloads all in time
      • jchauncey has quit