Available plans to create the Tone Analyzer service in IBM Cloud - ibm-cloud

I tried to create the Tone Analyzer service in IBM Cloud using
cf create-service tone_analyzer beta rtt-tone-analyzer
but I got "Could not find plan with name beta".
What is the correct cf command or service plan?

You can find information about the Tone Analyzer in the IBM Cloud Catalog. There is a Lite, Standard and Premium plan available. Those plans can be specified in the create-service command.
As an alternative, you could use the inofficial tool mycatalog, select the Tone Analyzer service, click on the CLI link. It brings up the possible CLI commands to create the different services. Here is the syntax for the free Lite plan.
ibmcloud cf create-service tone-analyzer lite <service-name>
Because most services are IAM-controlled, the Cloud Foundry-related syntax above should be replaced with the general resource command:
ibmcloud resource service-instance-create <service-name> tone-analyzer lite <region>

Related

Cannot deploy Kubeflow on GCP: tells me to enable APIs that are already enabled

I am trying to install Kubeflow on Google Cloud Platform (GCP) and Kubernetes Engine (GKE), following the GCP deployment guide.
I created a GCP project of which I am the owner, I enabled billing, set up OAuth credentials and enabled the following APIs:
Compute Engine API
Kubernetes Engine API
Identity and Access Management (IAM) API
Deployment Manager API
Cloud Resource Manager API
Cloud Filestore API
AI Platform Training & Prediction API
However, when I want to deploy Kubeflow using the UI, I get the following error:
So I doublechecked and those APIs are already enabled:
The log messages at the bottom of the screen are:
2020-03-0614:14:04.629: Getting enabled services for project <projectname>..
2020-03-0614:14:16.909: Could not configure communication with GCP, exiting
The Could not configure communication with GCP, exiting is triggered when _enableGcpServices() fails.
The line Getting enabled services for project ... is printed but not the line Proceeding with project number: ..., so the error must be triggered somewhere in the block of code between those lines.
The call to Gapi.cloudresourcemanager.getProjectNumber(project) has its own try/catch with a slightly different error message and title (only talks about the cloud resource manager API, not the IAM API), so I assume it is the call to Gapi.getSignedInEmail() that fails??
I'd suggest having a look at the service management API, IAM service credentials API and cloud identity aware proxy API possibly. I've only used the CLI install tool previously and not run into these problems, but you might require these services for the IAP deployment?
I faced the same issue and was able to solve by correcting the project id.
Make sure that the project id on the UI form is specified correctly as it is on the GCP project - and that it does not have any leading or trailing spaces if you copy pasted from the GCP project details like I did.
I had the same issue. I was using in trial. Seems they allow a limited project to use billing account at same time. So I shut down unused ones . Went to Billing-->my projects. Disabled unused with 3 dots. Then tried to enable the billing account for current project. It worked.

Service broker error: delete your existing Lite plan instance

I have received this message:
Service broker error: You can only have one instance of a Lite plan per service. To create a new instance, either delete your existing Lite plan instance or select a paid plan.
I do not know how to delete the previous Lite plan instance, can someone help please?
This error comes if you have already lite plan instance, so you needs to delete existing to create a new one.
Go to the below address, You would found your existing lite instance list.
IBM service Resources https://cloud.ibm.com/resources
You need to remove all existing service's, because in LITE plan you can have one lite instance at a time only.
You can use the IBM Cloud dashboard (UI) or the command line interface (CLI) to check for instances of that service.
In the UI, there is a context menu on each service. Use it to delete the service instance.
With the CLI and within a space, you can use ibmcloud cf services to list service. For services in resource groups use ibmcloud resource service-instances. Then use either ibmcloud cf delete-service or ibmcloud resource service-instance-delete to remove that instance.

How to get meaningful alias or name for provisioned service in IBM Cloud?

I am using the CLI command bx service create to provision a new service. Some of the services support resource groups. For them, I noticed that the service itself has a long generic name and is listed under "Services". The name I chose is only associated with an alias, listed under "Cloud Foundry Services".
How can I get those services to use the name I picked?
The trick is to use another IBM Cloud CLI command. It is part of the set of commands to manage resource groups and its objects:
bx resource service-instance-create
Using the above command, the name is used for the service and there is no alias created. The service is only listed under "Services". Here is a full example:
bx resource service-instance-create ghstatsDDE dynamic-dashboard-embedded lite us-south

Provisioning lite monitoring plan fails with "not allowed to provision non-lite plan"

"Lite org is not allowed to provision non-lite plans"
Even though I'm requesting a lite plan it tells me I'm trying to provision a non-lite plan.
I've tried this through the console AND the CLI. CLI command was:
bx cf create-service Monitoring lite my_monitoring_service
Is the MONITORING service not available for lite plans even though it has a lite plan option?
Definitely a bug - on my list of things to fix this week.
You don't really need to provision a lite plan for the monitoring service. Any platform metrics that are published by services are available directly from the monitoring service URL via https://metrics.<env>.bluemix.net ( ie. https://metrics.ng.bluemix.net ).
The provisioned instance within the bluemix console provides you with the launching point to access the monitoring service UI via the Launch button and the ability to upgrade to a paid plan (which won't be possible from the lite account).
The workaround for you to view the platform metrics in the mean time is to launch directly against https://metrics.ng.bluemix.net ( or other regional endpoint ).

How can I look up a valid label name for use as declared service in IBM Bluemix manifest.yml

Is there a valid list of label names for the "declared services" (https://github.com/IBM/watson-calorie-counter/blob/master/manifest.yml#L4) that can be used in a bluemix deployment documented somewhere?
This blog post describes how to get the label name for a specific service with the UI: https://www.ibm.com/blogs/bluemix/2016/01/deploy-to-bluemix-button-example/ -- But I was hoping there was a single source of truth documented somewhere, or I could find the information programmatically with the cf or bx CLIs.
What you are looking for is the documentation on how the declared-services section work. It is an IBM extension to regular Cloud Foundry manifest files. The extension is described in the IBM Cloud documentation for Continuous Delivery. That section also has details on how to look up the service names, labels:
Declared services, a manifest extension which creates or looks for the
required or optional services that are expected to be set up before
the app is deployed, such as a data cache service. You can find a list
of the eligible Bluemix services, labels, and plans by using the CF
Command Line Interface command cf marketplace or by browsing the Bluemix catalog.
So you would look up how a service is named and what plans are offered.