I added the echo service and found that while it is started by cf with the "~/cloudfoundry/vcap/dev_setup/bin/vcap_dev restart" as per the docs (https://github.com/cloudfoundry/oss-docs/tree/master/vcap/adding_a_system_service) and it does not show up in the vmc service list and cannot be provisioned as a service.
cloud_controller : RUNNING
router : RUNNING
stager : RUNNING
health_manager : RUNNING
dea : RUNNING
uaa : RUNNING
redis_node : RUNNING
mysql_node : RUNNING
mongodb_node : RUNNING
rabbitmq_node : RUNNING
postgresql_node : RUNNING
vblob_node : RUNNING
redis_gateway : RUNNING
mysql_gateway : RUNNING
mongodb_gateway : RUNNING
rabbitmq_gateway : RUNNING
postgresql_gateway : RUNNING
vblob_gateway : RUNNING
filesystem_gateway : RUNNING
echo_node : RUNNING
echo_gateway : RUNNING
cfadmin@sclu128:~$ vmc target api.vcap.me
Successfully targeted to [http://api.vcap.me]
cfadmin@sclu128:~$ vmc services
============== System Services ==============
+------------+---------+-------------------------------+
| Service | Version | Description |
+------------+---------+-------------------------------+
| blob | 0.51 | Blob service |
| filesystem | 1.0 | Persistent filesystem service |
| mongodb | 1.8 | MongoDB NoSQL store |
| mysql | 5.1 | MySQL database service |
| postgresql | 9.0 | PostgreSQL database service |
| rabbitmq | 2.4 | RabbitMQ message queue |
| redis | 2.2 | Redis key-value store service |
+------------+---------+-------------------------------+
=========== Provisioned Services ============
cfadmin@sclu128:~$
When I issue the vmc create-service echo myecho i get -
cfadmin@sclu128:~$ vmc create-service echo myecho
Creating Service: Service [echo] is not a valid service choice
[2012-10-11 12:11:28.832292] echo_gateway - pid=31462 tid=22c9 fid=09ef INFO -- Fetching handles from cloud controller @ http://api.vcap.me/services/v1/offerings/echo-1.0/handles
[2012-10-11 12:11:28.920515] echo_gateway - pid=31462 tid=22c9 fid=09ef ERROR -- Failed fetching handles, status=404
[2012-10-11 12:11:29.588243] echo_gateway - pid=31462 tid=22c9 fid=09ef DEBUG -- [EchoaaS-Provisioner] Received node announcement: {"available_capacity":200,"capacity_unit":1,"id":"echo_node_1","plan":"free","supported_versions":["1.0"]}
[2012-10-15 09:43:09.665888] cc_events - pid=17127 tid=82e6 fid=77cd INFO -- [2012-10-15 09:43:09 -0400, :USER, "N/A", "POST:/services/v1/offerings", :SUCCEEDED]
[2012-10-15 09:43:09.666206] cc - pid=17127 tid=82e6 fid=77cd DEBUG -- Connection checked in (checked out: 2/4)
[2012-10-15 09:43:10.187237] cc - pid=17127 tid=82e6 fid=77cd DEBUG -- Connection checked out (checked out: 3/4)
[2012-10-15 09:43:10.190211] cc_events - pid=17127 tid=82e6 fid=77cd INFO -- [2012-10-15 09:43:10 -0400, :USER, "N/A", "GET:/services/v1/offerings/echo-1.0/handles", :FAILED, "Service not found"]
[2012-10-15 09:43:10.190569] cc - pid=17127 tid=82e6 fid=77cd DEBUG -- Connection checked in (checked out: 2/4)
[2012-10-15 09:43:11.358825] cc - pid=17127 tid=82e6 fid=77cd DEBUG -- Connection checked out (checked out: 3/4)
[2012-10-15 09:43:11.361746] cc_events - pid=17127 tid=82e6 fid=77cd INFO -- [2012-10-15 09:43:11 -0400, :USER, "N/A", "GET:/services/v1/offerings/echo-1.0/handles", :FAILED, "Service not found"]
[2012-10-15 09:43:11.362104] cc - pid=17127 tid=82e6 fid=77cd DEBUG -- Connection checked in (checked out: 2/4)
[2012-10-15 09:43:12.530138] cc - pid=17127 tid=82e6 fid=77cd DEBUG -- Connection checked out (checked out: 3/4)
[2012-10-15 09:43:12.533181] cc_events - pid=17127 tid=82e6 fid=77cd INFO -- [2012-10-15 09:43:12 -0400, :USER, "N/A", "GET:/services/v1/offerings/echo-1.0/handles", :FAILED, "Service not found"]
[2012-10-15 09:43:12.533540] cc - pid=17127 tid=82e6 fid=77cd DEBUG -- Connection checked in (checked out: 2/4)
[2012-10-15 09:43:13.701546] cc - pid=17127 tid=82e6 fid=77cd DEBUG -- Connection checked out (checked out: 3/4)
[2012-10-15 09:43:13.704563] cc_events - pid=17127 tid=82e6 fid=77cd INFO -- [2012-10-15 09:43:13 -0400, :USER, "N/A", "GET:/services/v1/offerings/echo-1.0/handles", :FAILED, "Service not found"]
[2012-10-15 09:43:13.704925] cc - pid=17127 tid=82e6 fid=77cd DEBUG -- Connection checked in (checked out: 2/4)
[2012-10-15 09:43:14.870785] cc - pid=17127 tid=82e6 fid=77cd DEBUG -- Connection checked out (checked out: 3/4)
[2012-10-15 09:43:14.873678] cc_events - pid=17127 tid=82e6 fid=77cd INFO -- [2012-10-15 09:43:14 -0400, :USER, "N/A", "GET:/services/v1/offerings/echo-1.0/handles", :FAILED, "Service not found"]
[2012-10-15 09:43:14.874038] cc - pid=17127 tid=82e6 fid=77cd DEBUG -- Connection checked in (checked out: 2/4)
[2012-10-15 09:43:15.357453] cc - pid=17127 tid=82e6 fid=77cd DEBUG -- Connection checked out (checked out: 3/4)
[2012-10-15 09:43:15.358787] cc - pid=17127 tid=82e6 fid=77cd DEBUG -- Create service request: {"label":"rabbitmq-2.4","url":"http://10.13.181.128:53789","plans":["free"],"cf_plan_id":null,"tags":["message-queue","amqp"],"active":true,"description":"RabbitMQ message queue","plan_options":null,"acls":null,"timeout":15,"provider":null,"default_plan":"free","supported_versions":["2.4"],"version_aliases":{"current":"2.4"}}
[2012-10-15 09:43:15.361555] cc - pid=17127 tid=82e6 fid=77cd DEBUG -- Found svc = #<Service id: 4, label: "rabbitmq-2.4", url: "http://10.13.181.128:53789", token: "changerabbitmqtoken", name: "rabbitmq", version: "2.4", description: "RabbitMQ message queue", info_url: ni
These are running ont he same machine. The point is not the time difference but the errors. I restarted cf and synced the time.
cloud_controller log -
[2012-10-15 11:39:53.768782] cc - pid=2414 tid=0d40 fid=e8f5 ERROR -- Failure decoding service offering request: Field: supported_versions, Error: Missing field supported_versions, Field: version_aliases, Error: Missing field version_aliases
[2012-10-15 11:39:53.769587] cc_events - pid=2414 tid=0d40 fid=e8f5 INFO -- [2012-10-15 11:39:53 -0400, :USER, "N/A", "POST:/services/v1/offerings", :SUCCEEDED]
[2012-10-15 11:39:53.769819] cc - pid=2414 tid=0d40 fid=e8f5 DEBUG -- Connection checked in (checked out: 2/3)
[2012-10-15 11:39:53.770380] cc - pid=2414 tid=0d40 fid=e8f5 DEBUG -- Connection checked out (checked out: 3/3)
[2012-10-15 11:39:53.773011] cc_events - pid=2414 tid=0d40 fid=e8f5 INFO -- [2012-10-15 11:39:53 -0400, :USER, "N/A", "GET:/services/v1/offerings/echo-1.0/handles", :FAILED, "Service not found"]
[2012-10-15 11:39:53.773211] cc - pid=2414 tid=0d40 fid=e8f5 DEBUG -- Connection checked in (checked out: 2/3)
[2012-10-15 11:39:54.621453] cc - pid=2414 tid=0d40 fid=e8f5 DEBUG -- Connection checked out (checked out: 3/3)
[2012-10-15 11:39:54.623329] cc_events - pid=2414 tid=0d40 fid=e8f5 INFO -- [2012-10-15 11:39:54 -0400, :USER, "N/A", "GET:/services/v1/offerings/echo-1.0/handles", :FAILED, "Service not found"]
[2012-10-15 11:39:54.623534] cc - pid=2414 tid=0d40 fid=e8f5 DEBUG -- Connection checked in (checked out: 2/3)
[2012-10-15 11:39:55.790535] cc - pid=2414 tid=0d40 fid=e8f5 DEBUG -- Connection checked out (checked out: 3/3)
gateway log -
[2012-10-15 11:39:53.464144] echo_gateway - pid=4297 tid=658d fid=4131 INFO -- EchoaaS-Provisioner: Initializing
[2012-10-15 11:39:53.471642] echo_gateway - pid=4297 tid=658d fid=4131 DEBUG -- Register update handle callback with #<Proc:0x000000034a3cd0@/home/cfadmin/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/bundler/gems/vcap-services-base-e54a821c72f1/lib/base/asynchronous_service_gateway.rb:130>
>> Thin web server (v1.3.1 codename Triple Espresso)
>> Maximum connections set to 1024
>> Listening on 10.13.181.128:58103, CTRL+C to stop
[2012-10-15 11:39:53.570505] echo_gateway - pid=4297 tid=658d fid=4131 INFO -- Sending info to cloud controller: http://api.vcap.me/services/v1/offerings
[2012-10-15 11:39:53.656392] echo_gateway - pid=4297 tid=658d fid=4131 INFO -- Fetching handles from cloud controller @ http://api.vcap.me/services/v1/offerings/echo-1.0/handles
[2012-10-15 11:39:53.765393] echo_gateway - pid=4297 tid=658d fid=4131 DEBUG -- [EchoaaS-Provisioner] Connected to node mbus..
[2012-10-15 11:39:53.775066] echo_gateway - pid=4297 tid=658d fid=4131 ERROR -- Failed registering with cloud controller, status=400
[2012-10-15 11:39:53.775201] echo_gateway - pid=4297 tid=658d fid=4131 ERROR -- Failed fetching handles, status=404
[2012-10-15 11:39:53.815328] echo_gateway - pid=4297 tid=658d fid=4131 DEBUG -- [EchoaaS-Provisioner] Received node announcement: {"available_capacity":100,"capacity_unit":1,"id":"echo_node_0","plan":"free","supported_versions":["1.0"]}
[2012-10-15 11:39:54.536697] echo_gateway - pid=4297 tid=658d fid=4131 INFO -- Fetching handles from cloud controller @ http://api.vcap.me/services/v1/offerings/echo-1.0/handles
[2012-10-15 11:39:54.624074] echo_gateway - pid=4297 tid=658d fid=4131 ERROR -- Failed fetching handles, status=404
[2012-10-15 11:39:55.705840] echo_gateway - pid=4297 tid=658d fid=4131 INFO -- Fetching handles from cloud controller @ http://api.vcap.me/services/v1/offerings/echo-1.0/handles
[2012-10-15 11:39:55.793124] echo_gateway - pid=4297 tid=658d fid=4131 ERROR -- Failed fetching handles, status=404
[2012-10-15 11:39:56.874788] echo_gateway - pid=4297 tid=658d fid=4131 INFO -- Fetching handles from cloud controller @ http://api.vcap.me/services/v1/offerings/echo-1.0/handles
[2012-10-15 11:39:56.991443] echo_gateway - pid=4297 tid=658d fid=4131 ERROR -- Failed fetching handles, status=404
service:
name: echo
version: "1.0"
description: 'Echo key-value store service'
plans: ['free']
tags: ['echo', 'echo-1.0', 'echobased', 'demo']
supported_versions: ["1.0']
version_aliases:
"current": "1.0"
)
supported_versions: ['1.0']
version_aliases:
"current": "1.0"