Issue #8140 has been updated by Jeff McCune.

Status changed from Unreviewed to In Topic Branch Pending Merge
Branch set to ticket/master/8140_fog_validation

# Topic Branch #

In my github fork, topic branch ticket/master/8140_fog_validation

<pre>
commit 2361c0b390d20c394caf1755b105998acfb21603
Author: Jeff McCune <[email protected]>
Date:   Wed Jun 29 15:19:10 2011 -0700

    (#8140) Update fog validation instructions
    
    This change updates the fog validation instructions for the getting
    started with CloudPack guide.  If Fog is properly configured, but no
    servers have been booted in EC2, the test will return 0.
    
    This change updates the conditional to be >= 0 rather than > 0 and adds
    additional information about what an improperly configured ~/.fog file
    looks like.
</pre>

Pull request submitted as 
[https://github.com/puppetlabs/puppet-docs/pull/12](https://github.com/puppetlabs/puppet-docs/pull/12)


----------------------------------------
Bug #8140: CloudPack fog validation instructions are wrong
https://projects.puppetlabs.com/issues/8140

Author: Jeff McCune
Status: In Topic Branch Pending Merge
Priority: Normal
Assignee: 
Category: 
Target version: 
Keywords: cloudpack
Branch: ticket/master/8140_fog_validation
Affected URL: 


# Overview #

The instructions to validate if fog is properly configured or not appear to be 
wrong.



I have my AWS keys properly configured in ~/.fog and I get back these results:

<pre>
$ ruby -rubygems -e 'require "fog"' -e 'puts Fog::Compute.new(:provider => 
"AWS").servers.length > 0'
false
</pre>

The instructions say this should return true.

I don't have any servers booted in EC2 though, so I suspect this is why I'm 
getting false:

<pre>
$ irb 
ruby-1.8.7-p334 :001 > require 'rubygems'
 => false 
ruby-1.8.7-p334 :002 > require 'fog'
 => true 
ruby-1.8.7-p334 :003 > Fog::Compute.new(:provider => "AWS").servers
 =>   Fog::Compute::AWS::Servers
    filters{}
    []
</pre>

The document revision I uncovered this issue on is at 
[cloud_pack_getting_started.markdown](https://github.com/puppetlabs/puppet-docs/blob/068c4c45c3eb5084343cea06ce9fce531eb61e94/source/guides/cloud_pack_getting_started.markdown)



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to