As I were doing some experiments about muti-node CF, I needed to
change the binded IP of NATS in the config files of
mysql,redis,rabbitmq ... gateway. For example, in order to connect the
gateways to my new NATS node, I change the original mbus:xxx.xxx.xxx.
219 to xxx.xxx.xxx.229. This works.
But when I restore the IP back from 229 to 219, I found all the
gateways can not work at all. And in their logs, there is the same
error:
[2012-06-18 15:55:41.756737] mysql_gateway - pid=28002 tid=64a0
fid=25fd INFO -- Sending info to cloud controller:
http://api.vcap.me/services/v1/offerings
[2012-06-18 15:55:46.763478] mysql_gateway - pid=28002 tid=64a0
fid=25fd INFO -- Fetching handles from cloud controller @
http://api.vcap.me/services/v1/offerings/mysql-5.1/handles
[2012-06-18 15:55:51.765531] mysql_gateway - pid=28002 tid=64a0
fid=25fd ERROR -- Failed registering with cloud controller:
[2012-06-18 15:55:51.765829] mysql_gateway - pid=28002 tid=64a0
fid=25fd ERROR -- Failed fetching handles:
[2012-06-18 15:55:51.766127] mysql_gateway - pid=28002 tid=64a0
fid=25fd INFO -- Sending deactivation notice to cloud controller:
http://api.vcap.me/services/v1/offerings
[2012-06-18 15:55:56.800292] mysql_gateway - pid=28002 tid=64a0
fid=25fd INFO -- Successfully deactivated with cloud controller
/root/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/
lib/ruby/gems/1.9.1/gems/vcap_services_base-0.1.9/lib/base/base.rb:
84:in `block in update_varz': undefined method `[]=' for nil:NilClass
(NoMethodError)
from /root/cloudfoundry/.deployments/devbox/deploy/rubies/
ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/vcap_services_base-0.1.9/lib/
base/base.rb:83:in `each'
from /root/cloudfoundry/.deployments/devbox/deploy/rubies/
ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/vcap_services_base-0.1.9/lib/
base/base.rb:83:in `update_varz'
from /root/cloudfoundry/.deployments/devbox/deploy/rubies/
ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/vcap_services_base-0.1.9/lib/
base/provisioner.rb:43:in `block in initialize'
from /root/cloudfoundry/.deployments/devbox/deploy/rubies/
ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/
eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:256:in `call'
from /root/cloudfoundry/.deployments/devbox/deploy/rubies/
ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/
eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:256:in
`run_machine'
from /root/cloudfoundry/.deployments/devbox/deploy/rubies/
ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/
eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:256:in `run'
from /root/cloudfoundry/.deployments/devbox/deploy/rubies/
ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/vcap_services_base-0.1.9/lib/
base/gateway.rb:94:in `start'
from /root/cloudfoundry/vcap/services/mysql/bin/mysql_gateway:
32:in `<main>'
I have tried to install CF again,but that does not works. And I think
this is caused by my re-configuring because for those gateways which
I do not changed mbus IP, there're no this error.
P.S. Maybe gateways and CC or NATS can not be running on different
nodes?