Hi.
I followed the steps in
http://docs.cloudfoundry.com/docs/running/deploying-cf/openstack/install_cf_openstack.html.
I have OpenStack Folsom with Nova networking. Deployment with micro-bosh works, but when I try to target CF, I get:
Checking vms, the
cloud_controller job is showing failing intermittently.
$ bosh vms
Deployment `cf-demo'
Director task 191
Task 191 done
+---------------------+---------+---------------+-------------------------------+
| Job/index | State | Resource Pool | IPs |
+---------------------+---------+---------------+-------------------------------+
| cloud_controller/0 | failing | common | 192.168.100.8 |
| dea/0 | running | large | 192.168.100.11 |
| health_manager/0 | running | common | 192.168.100.9 |
| nats/0 | running | common | 192.168.100.4 |
| nfs_server/0 | running | common | 192.168.100.6 |
| postgres/0 | running | common | 192.168.100.2 |
| router/0 | running | common | 192.168.100.10, 192.168.200.2 |
| syslog_aggregator/0 | running | common | 192.168.100.5 |
| uaa/0 | running | common | 192.168.100.7 |
+---------------------+---------+---------------+-------------------------------+
VMs total: 9
At other times I run bosh vms and all jobs show as running.
I downloaded the logs for cloud_controller and in
cloud_controller_ng/cloud_controller_ng.stderr.log I see a lot of entries of:
/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/nats-0.4.26/lib/nats/client.rb:567:in `block in connection_completed': 'Authorization is required' (NATS::ServerError)
from /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/nats-0.4.26/lib/nats/client.rb:506:in `call'
from /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/nats-0.4.26/lib/nats/client.rb:506:in `receive_data'
from /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
from /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
from /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/lib/cloud_controller/runner.rb:92:in `run!'
from /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/bin/cloud_controller:12:in `<main>'
I saw an entry from Dr Nic with the same log output (
https://groups.google.com/a/cloudfoundry.org/forum/#!topicsearch/Authorization$20is$20required/vcap-dev/sjPlwv1km-U). The suggested fix was to remove
dns from the network in the deployment yml. Dr. Nic's post didn't specify which job, so I tried for just
cloud_controller as well as all jobs. Neither changes made any difference.
cloud_controller_ng/cloud_controller_ng.log showing NATS registration log:
{"timestamp":1379299306.676946,"message":"reusing default serving domain: 192.168.200.2.xip.io","log_level":"info","source":"cc.db.domain","data":{},"thread_id":14223020,"fiber_id":37402740,"process_id":26794,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/app/models/core/domain.rb","lineno":149,"method":"block in find_or_create_shared_domain"}{"timestamp":1379299306.9081013,"message":"Connected to NATS - router registration","log_level":"info","source":"cf.registrar","data":{},"thread_id":14223020,"fiber_id":37402740,"process_id":26794,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/vcap_common-2.2.1/lib/cf/registrar.rb","lineno":62,"method":"register_with_router"}{"timestamp":1379299306.9115846,"message":"Sending registration: {:host=>\"192.168.100.8\", :port=>9022, :uris=>[\"ccng.192.168.200.2.xip.io\", \"api.192.168.200.2.xip.io\"], :tags=>{:component=>\"CloudController\"}, :index=>0, :private_instance_id=>nil}","log_level":"debug","source":"cf.registrar","data":{},"thread_id":14223020,"fiber_id":37402740,"process_id":26794,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/vcap_common-2.2.1/lib/cf/registrar.rb","lineno":96,"method":"send_registration_message"} Stemcells I've used:
$ bosh stemcells
+---------------+---------+--------------------------------------+
| Name | Version | CID |
+---------------+---------+--------------------------------------+
| bosh-stemcell | 877 | 2302e4fc-38ae-4d69-9319-ea9afde70770 |
| bosh-stemcell | 939 | 3ca5db47-6ac0-4dc5-9f0b-0127b08cfcb5 |
| bosh-stemcell | 962 | f717056b-ba51-4cf4-aea0-910157e63f4a |
| bosh-stemcell | 991 | 9581def9-66e7-47c2-950b-a586dded7898 |
+---------------+---------+--------------------------------------+
CF release:
$ bosh releases
+------+----------+-------------+
| Name | Versions | Commit Hash |
+------+----------+-------------+
| cf | 138* | adca9c45+ |
+------+----------+-------------+
(*) Currently deployed
(+) Uncommitted changes
Releases total: 1
Deployment yaml are as per instructions from 13/09/13, except persistent disks are 15GB: demo.yml
Any help appreciated.