att-cloud/cookbook-openstack-common — pull request #6 by jaypipes (2012-11-16 21:26:40+00:00)
Title: Change ports from integers to strings...

This needs to be done because the keystone and database
resource providers are retarded and can't handle non-strings
for ports... barfin this:

Chef::Exceptions::ValidationFailed
----------------------------------
Option auth_port must be a kind of String! You passed 5000.

Cookbook Trace:
---------------
/var/chef/cache/cookbooks/nova/recipes/api-os-compute.rb:67:in `block in from_file'
/var/chef/cache/cookbooks/nova/recipes/api-os-compute.rb:65:in `from_file'

Relevant File Content:
----------------------
/var/chef/cache/cookbooks/nova/recipes/api-os-compute.rb:

60: identity_admin_endpoint = endpoint('identity-admin')
61: identity_endpoint = endpoint('identity-api')
62: nova_api_endpoint = endpoint('compute-api')
63:
64: # Register Service Tenant
65: keystone_register "Register Service Tenant" do
66: auth_host identity_admin_endpoint["host"]
67>> auth_port identity_admin_endpoint["port"]
68: auth_protocol identity_admin_endpoint["scheme"]
69: api_ver identity_admin_endpoint["path"]
70: auth_token keystone["admin_token"]
71: tenant_name node["nova"]["service_tenant_name"]
72: tenant_description "Service Tenant"
73: tenant_enabled "true" # Not required as this is the default
74: action :create_tenant
75: end
76: