Hi All,
I have spent today trying to wrap my head around Service Brokers for CFv2.
After the standard yml tweaking I have deployed the node and broker.
Following this I try to add the service to installation:
tastle@reading-cloud-hammer G=master tastle-dev $ cf add-service-broker
Name> ta-mysql-3
URL> http://9.10.5.124:47849
Token> c1oudc0wc1oudc0w
... FAILED
CFoundry::APIError: 270007: Authentication failed for the service broker API. Double-check that the token is correct: http://9.10.5.124:47849/v2/catalog
cat ~/.cf/crash # for more details
The error in the log on the broker is as follows:
{"timestamp":1380811570.5951648,"message":"Validation failure: {\"status\"=>401, \"msg\"=>{\"code\"=>30100, \"description\"=>\"Not authorized\", \"error\"=>{\"backtrace\"=>nil, \"types\"=>[\"VCAP::Services::Base::Error::ServiceError\", \"StandardError\", \"Exception\"]}}}, expected token: c1oudc0wc1oudc0w, specified token: ","log_level":"error","source":"mysql_gateway","data":{"request_guid":"937f1955-3cd5-4cab-bb64-81a1f0bfc151"},"thread_id":7328180,"fiber_id":22106820,"process_id":4847,"file":"/var/vcap/packages/mysql_gateway/mysql_service/vendor/bundle/ruby/1.9.1/gems/vcap_services_base-0.2.0/lib/base/asynchronous_service_gateway.rb","lineno":121,"method":"validate_incoming_request"}
The part that catches my eye is:
expected token: c1oudc0wc1oudc0w, specified token:
This indicates to me that the token is not being passed through correctly.
I'm not certain where I should head next with my debugging, of if I should be trying an alternate broker
Has anyone else seen this error with the mysql broker?