Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create a binding to existing Cloudant service #69

Closed
lionelvillard opened this issue Oct 17, 2019 · 5 comments
Closed

Cannot create a binding to existing Cloudant service #69

lionelvillard opened this issue Oct 17, 2019 · 5 comments
Assignees

Comments

@lionelvillard
Copy link
Member

I'm trying to apply this yaml:

apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
    name: cloudant
spec:
    plan: Alias
    serviceName: cloudant
    serviceClass: cloudantnosqldb

After applying and waiting 3-4mn I see:

Status:
  Message:  Processing Resource
  State:    Pending

It'd be nice if the status section reports what's wrong with either spec or my configuration.

@lionelvillard
Copy link
Member Author

logs:


{"level":"info","ts":1571344992.572309,"logger":"binding","msg":"Binding could not read service","cloudant":"Service.ibmcloud.ibm.com \"cloudant\" not found"}

@vazirim vazirim self-assigned this Oct 17, 2019
@pdettori
Copy link
Member

The plan Alias should be applied to a Service CR, not to a Binding (see https://github.com/IBM/cloud-operators/blob/master/docs/user-guide.md#referencing-an-existing-service ). Is this issue more about not getting some message about the error in the status then about binding ?

@vazirim
Copy link
Member

vazirim commented Oct 17, 2019

This should be written as:

apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
    name: cloudant
spec:
    plan: Alias
    serviceName: cloudant
    serviceClass: cloudantnosqldb
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
  name: binding-cloudant
spec:
  serviceName: cloudant

The binding is failing because we are getting a 500 error from Bluemix. Investigating...

@vazirim
Copy link
Member

vazirim commented Oct 17, 2019

In the original yaml, the plan:alias is ignored, the Binding object is just waiting for its service to be online and that is what the log message is indicating.

@lionelvillard
Copy link
Member Author

@paolo yes this is more an issue about exposing the error at the CR level (inside status). Originally I had only the Binding object stuck in Pending state, and I had not idea why.

Now it is all working like a charm :-)

@vazirim vazirim closed this as completed Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants