Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

'cf create-service' returns 'Incorrect Usage' #158

Open
githubfp opened this issue Sep 4, 2015 · 0 comments
Open

'cf create-service' returns 'Incorrect Usage' #158

githubfp opened this issue Sep 4, 2015 · 0 comments

Comments

@githubfp
Copy link

githubfp commented Sep 4, 2015

this is really mt first post - trying to deploy 'cf-services-contrib-release' and I am htting exactly same problem described by mhlandry

#154

'cf create-service' returns "Incorrect Usage" thought it doesn't seem to be a syntax problem ? any idea would really help me out! thanks in advance

vagrant@bosh-lite:$ wget https://cf-contrib.s3.amazonaws.com/boshrelease-cf-services-contrib-6.tgz
vagrant@bosh-lite:
$ bosh upload release boshrelease-cf-services-contrib-6.tgz

vagrant@bosh-lite:$ git clone https://github.com/cloudfoundry-community/cf-services-contrib-release
vagrant@bosh-lite:
$ cd cf-services-contrib-release
$ git checkout v6

vagrant@bosh-lite:/cf-services-contrib-release$ templates/make_manifest warden
vagrant@bosh-lite:
/cf-services-contrib-release$ bosh -n deploy
vagrant@bosh-lite:~/cf-services-contrib-release$ cf marketplace
Getting services from marketplace in org myorg / space mydept as admin...
OK

service plans description
mongodb default MongoDB NoSQL database
postgresql default PostgreSQL database
rabbitmq default RabbitMQ message queue
redis default Redis key-value store

vagrant@bosh-lite:~/cf-services-contrib-release$ cf create-service-auth-token mongodb core c1oudc0w
Creating service auth token as admin...
OK
Support for the v1 Service Broker API is deprecated and will be removed in the next major version of Cloud Foundry. Consider upgrading your broker to implement the v2 Service Broker API.

vagrant@bosh-lite:~/cf-services-contrib-release$ cf create-service-auth-token postgresql core c1oudc0w
Creating service auth token as admin...
OK
Support for the v1 Service Broker API is deprecated and will be removed in the next major version of Cloud Foundry. Consider upgrading your broker to implement the v2 Service Broker API.

vagrant@bosh-lite:~/cf-services-contrib-release$ cf create-service-auth-token rabbitmq core c1oudc0w
Creating service auth token as admin...
OK
Support for the v1 Service Broker API is deprecated and will be removed in the next major version of Cloud Foundry. Consider upgrading your broker to implement the v2 Service Broker API.

vagrant@bosh-lite:~/cf-services-contrib-release$ cf create-service-auth-token redis core c1oudc0w
Creating service auth token as admin...
OK
Support for the v1 Service Broker API is deprecated and will be removed in the next major version of Cloud Foundry. Consider upgrading your broker to implement the v2 Service Broker API.

vagrant@bosh-lite:~/cf-services-contrib-release$ cf enable-service-access mongodb
Enabling access to all plans of service mongodb for all orgs as admin...
All plans of the service are already accessible for all orgs
OK

vagrant@bosh-lite:~/cf-services-contrib-release$ cf enable-service-access postgresql
Enabling access to all plans of service postgresql for all orgs as admin...
All plans of the service are already accessible for all orgs
OK

vagrant@bosh-lite:/cf-services-contrib-release$ cf enable-service-access rabbitmq
Enabling access to all plans of service rabbitmq for all orgs as admin...
All plans of the service are already accessible for all orgs
OK
vagrant@bosh-lite:
/cf-services-contrib-release$ cf enable-service-access redis
Enabling access to all plans of service redis for all orgs as admin...
All plans of the service are already accessible for all orgs
OK

vagrant@bosh-lite:~/cf-services-contrib-release$ cf service-access
getting service access as admin...

vagrant@bosh-lite:~/cf-services-contrib-release$ cf create-service redis default my-redis1
Creating service my-redis1 in org myorg / space mydept as admin...
FAILED
Server error, status code: 500, error code: 10001, message: An unknown error occurred.

vagrant@bosh-lite:~/cf-services-contrib-release$ cf create-service redis default my-redis1 CF_TRACE=true
FAILED
Incorrect Usage.

NAME:
create-service - Create a service instance

ALIAS:
cs

USAGE:
cf create-service SERVICE PLAN SERVICE_INSTANCE

EXAMPLE:
cf create-service cleardb spark clear-db-mine

TIP:
Use 'cf create-user-provided-service' to make user-provided services available to cf apps

vagrant@bosh-lite:~/cf-services-contrib-release$ cf -v
cf version 6.6.1-b2cdb2b-2014-09-23T23:07:12+00:00

vagrant@bosh-lite:~/cf-services-contrib-release$ cf service-access
getting service access as admin...

vagrant@bosh-lite:~/cf-services-contrib-release$ cf curl /v2/info
{
"name": "vcap",
"build": "2222",
"support": "http://support.cloudfoundry.com",
"version": 2,
"description": "Cloud Foundry sponsored by Pivotal",
"authorization_endpoint": "http://login.10.244.0.34.xip.io",
"token_endpoint": "https://uaa.10.244.0.34.xip.io",
"api_version": "2.18.0",
"logging_endpoint": "wss://loggregator.10.244.0.34.xip.io:443"
}

vagrant@bosh-lite:/cf-services-contrib-release$ cf curl /v2/info
{
"name": "vcap",
"build": "2222",
"support": "http://support.cloudfoundry.com",
"version": 2,
"description": "Cloud Foundry sponsored by Pivotal",
"authorization_endpoint": "http://login.10.244.0.34.xip.io",
"token_endpoint": "https://uaa.10.244.0.34.xip.io",
"api_version": "2.18.0",
"logging_endpoint": "wss://loggregator.10.244.0.34.xip.io:443"
}
vagrant@bosh-lite:
/cf-services-contrib-release$ cf curl /v2/service_plans -X 'GET'
{
"total_results": 4,
"total_pages": 1,
"prev_url": null,
"next_url": null,
"resources": [
{
"metadata": {
"guid": "6e0c12aa-c547-427e-83ec-5a2de5536dca",
"url": "/v2/service_plans/6e0c12aa-c547-427e-83ec-5a2de5536dca",
"created_at": "2015-09-03T17:40:45+00:00",
"updated_at": "2015-09-03T20:55:42+00:00"
},
"entity": {
"name": "default",
"free": true,
"description": "Developer, 250MB storage, 10 connections",
"service_guid": "4e71ab56-1661-4a44-a9b6-620d82e5cc23",
"extra": "",
"unique_id": "default-acc65758-191f-4cc7-a295-34a11e731b01",
"public": true,
"active": true,
"service_url": "/v2/services/4e71ab56-1661-4a44-a9b6-620d82e5cc23",
"service_instances_url": "/v2/service_plans/6e0c12aa-c547-427e-83ec-5a2de5536dca/service_instances"
}
},
{
"metadata": {
"guid": "f5566c05-8165-43f4-9867-27fada9a6e66",
"url": "/v2/service_plans/f5566c05-8165-43f4-9867-27fada9a6e66",
"created_at": "2015-09-03T17:40:50+00:00",
"updated_at": "2015-09-03T20:55:39+00:00"
},
"entity": {
"name": "default",
"free": true,
"description": "Developer, shared VM, 250MB storage, 10 connections",
"service_guid": "12f51c6b-c16c-46e2-9672-1b13631f3550",
"extra": "",
"unique_id": "default-8f4af9f9-0f29-4957-87a3-1039ce983ede",
"public": true,
"active": true,
"service_url": "/v2/services/12f51c6b-c16c-46e2-9672-1b13631f3550",
"service_instances_url": "/v2/service_plans/f5566c05-8165-43f4-9867-27fada9a6e66/service_instances"
}
},
{
"metadata": {
"guid": "37214276-cf04-4c45-a927-6816f028818a",
"url": "/v2/service_plans/37214276-cf04-4c45-a927-6816f028818a",
"created_at": "2015-09-03T17:41:23+00:00",
"updated_at": "2015-09-03T20:55:42+00:00"
},
"entity": {
"name": "default",
"free": true,
"description": "Developer, 250MB storage, 10 connections",
"service_guid": "6d615670-a3cd-41cb-9fc1-31cb8cbadc8b",
"extra": "",
"unique_id": "default-b98ab4cc-53e3-44a0-a53b-f09d7827f950",
"public": true,
"active": true,
"service_url": "/v2/services/6d615670-a3cd-41cb-9fc1-31cb8cbadc8b",
"service_instances_url": "/v2/service_plans/37214276-cf04-4c45-a927-6816f028818a/service_instances"
}
},
{
"metadata": {
"guid": "2a201849-b3c2-40ef-9279-d4116614c3cf",
"url": "/v2/service_plans/2a201849-b3c2-40ef-9279-d4116614c3cf",
"created_at": "2015-09-03T17:41:25+00:00",
"updated_at": "2015-09-03T20:55:43+00:00"
},
"entity": {
"name": "default",
"free": true,
"description": "Developer, 250MB storage, 100 connections",
"service_guid": "b55fb809-e2c9-41c6-9eec-82c4850aa335",
"extra": "",
"unique_id": "default-bfd55f2a-25c8-4444-9200-4e7d2d443467",
"public": true,
"active": true,
"service_url": "/v2/services/b55fb809-e2c9-41c6-9eec-82c4850aa335",
"service_instances_url": "/v2/service_plans/2a201849-b3c2-40ef-9279-d4116614c3cf/service_instances"
}
}
]
}
vagrant@bosh-lite:~/cf-services-contrib-release$

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant