---
name: cf-1204
director_uuid: 49dba76f-3816-4ba6-a4d5-569cccddeb5f # UUID shown by the
bosh status command

releases:
  - name: cf-147.1
    version: 147.3-dev # Verison number of the uploded release

networks:
    - name: default
      type: dynamic
      cloud_properties:
        network_name: vip
    - name: floating
      type: vip
      cloud_properties: {}

compilation:
   workers: 6
   network: default
   reuse_compilation_vms: true
   cloud_properties:
     instance_type: m1.medium
     ephemeral_volume: Datadisk 30GB # Data disk offering name of additonal
disk

update:
   canaries: 1
   canary_watch_time: 30000-60000
   update_watch_time: 30000-60000
   max_in_flight: 4

resource_pools:
   - name: small
     network: default
     size: 8
     stemcell:
       name: bosh-cloudstack-kvm-ubuntu
       version: 1205
     cloud_properties:
       instance_type: m1.small
       ephemeral_volume: Datadisk 30GB # Data disk offering name of
additonal disk

   - name: large
     network: default
     size: 1
     stemcell:
       name: bosh-cloudstack-kvm-ubuntu
       version: 1205
     cloud_properties:
       instance_type: m1.medium
       ephemeral_volume: Datadisk 30GB # Data disk offering name of
additional disk

jobs:
   - name: nats
     release: cf-147.1
     template:
       - nats
     instances: 1
     resource_pool: small
     networks:
       - name: default
         default: [dns, gateway]
       - name: floating
         static_ips:
           - 10.10.101.14


   - name: syslog_aggregator
     release: cf-147.1
     template:
       - syslog_aggregator
     instances: 1
     resource_pool: small
     persistent_disk: 65536
     networks:
       - name: default
         default: [dns, gateway]
       - name: floating
         static_ips:
           - 10.10.101.6


   - name: postgres
     release: cf-147.1
     template:
       - postgres
     instances: 1
     resource_pool: small
     persistent_disk: 65536
     networks:
       - name: default
         default: [dns, gateway]
       - name: floating
         static_ips:
           - 10.10.101.7
     properties:
       db: databases


   - name: nfs_server
     release: cf-147.1
     template:
       - debian_nfs_server
     instances: 1
     resource_pool: small
     persistent_disk: 65536
     networks:
       - name: default
         default: [dns, gateway]
       - name: floating
         static_ips:
           - 10.10.101.8


   - name: uaa
     release: cf-147.1
     template:
       - uaa
     instances: 1
     resource_pool: small
     networks:
       - name: default
         default: [dns, gateway]
       - name: floating
         static_ips:
           - 10.10.101.9


   - name: cloud_controller
     release: cf-147.1
     template:
       - cloud_controller_ng
     instances: 1
     resource_pool: small
     networks:
       - name: default
         default: [dns, gateway]
       - name: floating
         static_ips:
           - 10.10.101.10
     properties:
       ccdb: ccdb


   - name: router
     release: cf-147.1
     template:
       - gorouter
     instances: 1
     resource_pool: small
     networks:
       - name: default
         default: [dns, gateway]
       - name: floating
         static_ips:
           - 10.10.101.11


   - name: health_manager
     release: cf-147.1
     template:
       - health_manager_next
     instances: 1
     resource_pool: small
     networks:
       - name: default
         default: [dns, gateway]
       - name: floating
         static_ips:
           - 10.10.101.12


   - name: dea
     release: cf-147.1
     template: dea_next
     instances: 1
     resource_pool: large
     networks:
       - name: default
         default: [dns, gateway]
       - name: floating
         static_ips:
           - 10.10.101.13


properties:

   domain: cloudstack.cf.test # replace these values with your domain name
   system_domain: cloudstack.cf.test
   system_domain_organization: cloudstack.cf.test
   app_domains:
     - cloudstack.cf.test

   networks:
     apps: default
     management: default

   nats:
     address: 0.nats.default.cf-1204.microbosh
     port: 4222
     user: nats
     password: c1oudc0w
     authorization_timeout: 5

   router:
     port: 8081
     status:
       port: 8080
       user: gorouter
       password: c1oudc0w

   dea: &dea
     memory_mb: 2048
     disk_mb: 20000
     directory_server_protocol: http

   dea_next: *dea

   syslog_aggregator:
     address: 0.syslog-aggregator.default.cf-1204.microbosh
     port: 54321

   nfs_server:
     address: 0.nfs-server.default.cf-1204.microbosh
     network: "*.cf1204.microbosh"
     idmapd_domain: cloudstack.cf.test
     pipefs_directory: /run/rpc_pipefs

   debian_nfs_server:
     no_root_squash: true

   databases: &databases
     db_scheme: postgres
     address: 0.postgres.default.cf-1204.microbosh
     port: 5524
     roles:
       - tag: admin
         name: ccadmin
         password: c1oudc0w
       - tag: admin
         name: uaaadmin
         password: c1oudc0w
     databases:
       - tag: cc
         name: ccdb
         citext: true
       - tag: uaa
         name: uaadb
         citext: true

   ccdb: &ccdb
     db_scheme: postgres
     address: 0.postgres.default.cf-1204.microbosh
     port: 5524
     roles:
       - tag: admin
         name: ccadmin
         password: c1oudc0w
     databases:
       - tag: cc
         name: ccdb
         citext: true

   ccdb_ng: *ccdb

   uaadb:
     db_scheme: postgresql
     address: 0.postgres.default.cf-1204.microbosh
     port: 5524
     roles:
       - tag: admin
         name: uaaadmin
         password: c1oudc0w
     databases:
       - tag: uaa
         name: uaadb
         citext: true

   cc_api_version: v2

   cc: &cc
     logging_level: debug
     external_host: api
     srv_api_uri: http://api.cloudstack.cf.test
     cc_partition: default
     db_encryption_key: c1oudc0w
     bootstrap_admin_email: admin@cloudstack.cf.test
     bulk_api_password: c1oudc0w
     uaa_resource_id: cloud_controller
     staging_upload_user: uploaduser
     staging_upload_password: c1oudc0w
     resource_pool:
       resource_directory_key: cc-resources
       # Local provider when using NFS
       fog_connection:
         provider: Local
     packages:
       app_package_directory_key: cc-packages
     droplets:
       droplet_directory_key: cc-droplets
     default_quota_definition: runaway

   ccng: *cc

   login:
     enabled: false

   uaa:
     url: http://uaa.cloudstack.cf.test
     spring_profiles: postgresql
     no_ssl: true
     catalina_opts: -Xmx768m -XX:MaxPermSize=256m
     resource_id: account_manager
     jwt:
       signing_key: |
         -----BEGIN RSA PRIVATE KEY-----
         MIICXAIBAAKBgQDHFr+KICms+tuT1OXJwhCUmR2dKVy7psa8xzElSyzqx7oJyfJ1
         JZyOzToj9T5SfTIq396agbHJWVfYphNahvZ/7uMXqHxf+ZH9BL1gk9Y6kCnbM5R6
         0gfwjyW1/dQPjOzn9N394zd2FJoFHwdq9Qs0wBugspULZVNRxq7veq/fzwIDAQAB
         AoGBAJ8dRTQFhIllbHx4GLbpTQsWXJ6w4hZvskJKCLM/o8R4n+0W45pQ1xEiYKdA
         Z/DRcnjltylRImBD8XuLL8iYOQSZXNMb1h3g5/UGbUXLmCgQLOUUlnYt34QOQm+0
         KvUqfMSFBbKMsYBAoQmNdTHBaz3dZa8ON9hh/f5TT8u0OWNRAkEA5opzsIXv+52J
         duc1VGyX3SwlxiE2dStW8wZqGiuLH142n6MKnkLU4ctNLiclw6BZePXFZYIK+AkE
         xQ+k16je5QJBAN0TIKMPWIbbHVr5rkdUqOyezlFFWYOwnMmw/BKa1d3zp54VP/P8
         +5aQ2d4sMoKEOfdWH7UqMe3FszfYFvSu5KMCQFMYeFaaEEP7Jn8rGzfQ5HQd44ek
         lQJqmq6CE2BXbY/i34FuvPcKU70HEEygY6Y9d8J3o6zQ0K9SYNu+pcXt4lkCQA3h
         jJQQe5uEGJTExqed7jllQ0khFJzLMx0K6tj0NeeIzAaGCQz13oo2sCdeGRHO4aDh
         HH6Qlq/6UOV5wP8+GAcCQFgRCcB+hrje8hfEEefHcFpyKH+5g1Eu1k0mLrxK2zd+
         4SlotYRHgPCEubokb2S1zfZDWIXW3HmggnGgM949TlY=
         -----END RSA PRIVATE KEY-----
       verification_key: |
         -----BEGIN PUBLIC KEY-----
         MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHFr+KICms+tuT1OXJwhCUmR2d
         KVy7psa8xzElSyzqx7oJyfJ1JZyOzToj9T5SfTIq396agbHJWVfYphNahvZ/7uMX
         qHxf+ZH9BL1gk9Y6kCnbM5R60gfwjyW1/dQPjOzn9N394zd2FJoFHwdq9Qs0wBug
         spULZVNRxq7veq/fzwIDAQAB
         -----END PUBLIC KEY-----
     cc:
       client_secret: c1oudc0w
     admin:
       client_secret: c1oudc0w
     batch:
       username: batchuser
       password: c1oudc0w
     client:
       autoapprove:
         - cf
     clients:
       cf:
         override: true
         authorized-grant-types: password,implicit,refresh_token
         authorities: uaa.none
         scope:
cloud_controller.read,cloud_controller.write,openid,password.write,cloud_controller.admin,scim.read,scim.write
         access-token-validity: 7200
         refresh-token-validity: 1209600
     scim:
       users:
       - admin|c1oudc0w|scim.write,scim.read,openid,cloud_controller.admin
       - services|c1oudc0w|scim.write,scim.read,openid,cloud_controller.admin









---
Thank you!
DuJun


2013/12/28 Paramveer Singh <paramveer@gmail.com>
Could you send your manifest?

Sent from my iPhone
M - (714) 322 8049

On Dec 26, 2013, at 4:22 AM, dj199008@gmail.com wrote:

Hi James and paramveer,
I am using bosh to deploy cf-147 and meet a similar problem--fail to start
up cloudcontroller_ng job. And the error message
in /var/vcap/sys/log/cloud_controller_ng/jobs_work.stderr.log is show below:
rake aborted!
SIGTERM
/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/fog-1.16.0/lib/fog/ecloud/compute.rb:3:in
`require'
/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/fog-1.16.0/lib/fog/ecloud/compute.rb:3:in
`<top (required)>'
/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/fog-1.16.0/lib/fog/core/provider.rb:27:in
`require'
/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/fog-1.16.0/lib/fog/core/provider.rb:27:in
`service'
/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/fog-1.16.0/lib/fog/ecloud.rb:9:in
`<module:Ecloud>'
/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/fog-1.16.0/lib/fog/ecloud.rb:4:in
`<module:Fog>'
/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/fog-1.16.0/lib/fog/ecloud.rb:3:in
`<top (required)>'
/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/fog-1.16.0/lib/fog.rb:19:in
`require'
/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/fog-1.16.0/lib/fog.rb:19:in
`<top (required)>'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/lib/cloud_controller/blobstore/blobstore.rb:3:in
`require'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/lib/cloud_controller/blobstore/blobstore.rb:3:in
`<top (required)>'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/app/controllers/runtime/stagings_controller.rb:2:in
`require'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/app/controllers/runtime/stagings_controller.rb:2:in
`<top (required)>'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/lib/cloud_controller/controllers.rb:4:in
`require'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/lib/cloud_controller/controllers.rb:4:in
`block in <top (required)>'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/lib/cloud_controller/controllers.rb:3:in
`each'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/lib/cloud_controller/controllers.rb:3:in
`<top (required)>'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/lib/cloud_controller.rb:111:in
`require'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/lib/cloud_controller.rb:111:in
`<top (required)>'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/Rakefile:7:in
`require'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/Rakefile:7:in
`<top (required)>'
(See full trace by running task with --trace)
rake aborted!
undefined method `kill_after_multiple_restarts' for class
`VCAP::CloudController::App'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/app/models/runtime/app.rb:102:in
`<class:App>'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/app/models/runtime/app.rb:5:in
`<module:CloudController>'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/app/models/runtime/app.rb:4:in
`<top (required)>'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/lib/cloud_controller/db.rb:54:in
`require'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/lib/cloud_controller/db.rb:54:in
`load_models'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/Rakefile:100:in
`setup_environment'
/var/vcap/data/packages/cloud_controller_ng/28.1/cloud_controller_ng/Rakefile:73:in
`block (2 levels) in <top (required)>'
Tasks: TOP => jobs:work

Meanwhile, ccdb also throws some exceptions:
{"timestamp":1388057991.6519554,"message":"PG::UndefinedTable: ERROR:
relation \"billing_events\" does not exist\nLINE 1: ...\".\"attnum\" > 0)
AND (\"pg_class\".\"oid\" = CAST(CAST('\"billing_...\n

^: SELECT \"pg_attribute\".\"attname\" AS \"name\",
CAST(\"pg_attribute\".\"atttypid\" AS integer) AS \"oid\",
CAST(\"basetype\".\"oid\" AS integer) AS \"base_oid\",
format_type(\"basetype\".\"oid\", \"pg_type\".\"typtypmod\")
AS \"db_base_type\", format_type(\"pg_type\".\"oid\",
\"pg_attribute\".\"atttypmod\") AS \"db_type\",
pg_get_expr(\"pg_attrdef\".\"adbin\", \"pg_class\".\"oid\") AS \"default\",
NOT \"pg_attribute\".\"attnotnull\" AS \"allow_null\",
COALESCE((\"pg_attribute\".\"attnum\" = ANY(\"pg_index\".\"indkey\")),
false) AS \"primary_key\" FROM \"pg_class\" INNER JOIN \"pg_attribute\" ON
(\"pg_attribute\".\"attrelid\" = \"pg_class\".\"oid\") INNER JOIN
\"pg_type\" ON (\"pg_type\".\"oid\" = \"pg_attribute\".\"atttypid\") LEFT
OUTER JOIN \"pg_type\" AS \"basetype\" ON (\"basetype\".\"oid\" =
\"pg_type\".\"typbasetype\") LEFT OUTER JOIN \"pg_attrdef\" ON
((\"pg_attrdef\".\"adrelid\" = \"pg_class\".\"oid\") AND
(\"pg_attrdef\".\"adnum\" = \"pg_attribute\".\"attnum\")) LEFT OUTER JOIN
\"pg_index\" ON ((\"pg_index\".\"indrelid\" = \"pg_class\".\"oid\") AND
(\"pg_index\".\"indisprimary\" IS TRUE)) WHERE
((\"pg_attribute\".\"attisdropped\" IS FALSE) AND
(\"pg_attribute\".\"attnum\" > 0) AND (\"pg_class\".\"oid\" =
CAST(CAST('\"billing_events\"' AS regclass) AS oid))) ORDER BY
\"pg_attribute\".\"attnum\"","log_level":"error","source":"cc.db.migrations","data":{},"thread_id":19410940,"fiber_id":38703020,"process_id":18421,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sequel-3.48.0/lib/sequel/database/logging.rb","lineno":70,"method":"block
in log_each"}

It seems that ccdb fails to do db migration. But, I don't know the root
cause. I can confirm that there is nothing wrong with my bosh dns, and the
address of each job VM is also okay. Could you please give me some advice
to find out the cause?

--
Best regards,
DuJun


在 2013年12月25日星期三UTC+8上午8时55分54秒,Paramveer Singh写道:
Thanks James

The issue got resolved - I was deploying v153 and the problem was that in
my manifest there were domain names in the properties section that had an
underscore in them. Net net, a connection from the api vm to the nfs server
was not succeeding. A better error message could have helped, but this was
clearly a newbie mistake on my part.

regards

On Mon, Dec 23, 2013 at 5:28 PM, James Bayer wrote:

typically it's helpful to know how are you deloying cf and which release
do you have deployed.

when you see an undefined method error, that's usually indicative of
having inconsistent software deployed (which typically can be avoided by
using BOSH to deploy and using the latest cf-release available), a race
condition due to db migrations, or something else i'm not sure.

is that error you are sharing from stderr of the cloud controller log?
On Mon, Dec 23, 2013 at 3:22 PM, Paramveer Singh wrote:

Hi

I am trying to install CF on OpenStack and I have everything working
except that the CC VM is not coming up. I am facing the same error -
undefined method `kill_after_multiple_restarts' for class
`VCAP::CloudController::App'

As faced by another developer here<https://groups.google.com/a/cloudfoundry.org/forum/#!searchin/vcap-dev/kill_after_multiple_restarts/vcap-dev/G7vbJ00a6Rk/7ogkc0Er8YIJ>,
except that the error was coming in that scenaio because the cc machine was
not able to hit the go-router. I have confirmed that this is not a problem
in my case - the DNS entries have been set up properly.

I am not able to understand what else could be wrong.

Please help!

thanks

To unsubscribe from this group and stop receiving emails from it, send
an email to vcap-dev+u...@cloudfoundry.org.


--
Thank you,

James Bayer

To unsubscribe from this group and stop receiving emails from it, send
an email to vcap-dev+u...@cloudfoundry.org.
To unsubscribe from this group and stop receiving emails from it, send
an email to vcap-dev+unsubscribe@cloudfoundry.org.

To unsubscribe from this group and stop receiving emails from it, send an
email to vcap-dev+unsubscribe@cloudfoundry.org.
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+unsubscribe@cloudfoundry.org.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 8 | next ›
Discussion Overview
groupvcap-dev @
postedDec 23, '13 at 11:22p
activeDec 30, '13 at 7:36p
posts8
users4

People

Translate

site design / logo © 2021 Grokbase