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

web console does not recognized failed provision #14629

Closed
bparees opened this issue Jun 14, 2017 · 8 comments
Closed

web console does not recognized failed provision #14629

bparees opened this issue Jun 14, 2017 · 8 comments
Assignees
Labels
component/web kind/bug Categorizes issue or PR as related to a bug. priority/P2

Comments

@bparees
Copy link
Contributor

bparees commented Jun 14, 2017

If i do a provision operation that fails (jenkins-ephemeral currently fails due to permissions issues), the SC instance object reports:

  status:
    asyncOpInProgress: false
    conditions:
    - lastTransitionTime: 2017-06-14T05:11:30Z
      message: 'Provision call failed. Error provisioning Instance "p3/jenkins-e
phemeral-fln2k"
        of ServiceClass "jenkins-ephemeral" at Broker "template-broker": Service
 instance
        with same id but different attributes exists'
      reason: ProvisionCallFailed
      status: "False"
      type: Ready
    lastOperation: provisioning

and the templateinstance reports:

  status:
    conditions:
    - lastTransitionTime: 2017-06-14T05:10:54Z
      message: User "system:serviceaccount:openshift-infra:template-instance-con
troller"
        cannot create rolebindings in project "p3"
      reason: Failed
      status: "True"
      type: InstantiateFailure

but the web console just spins saying "provisioning", it doesn't seem to recognize the provision has failed already.

@bparees bparees added component/web kind/bug Categorizes issue or PR as related to a bug. priority/P2 labels Jun 14, 2017
@bparees
Copy link
Contributor Author

bparees commented Jun 14, 2017

(it's possible the SC needs to be making the state of the instance clearer, so this might need to go to @pmorie instead)

@jwforres
Copy link
Member

We have the same question for @pmorie that we had for binding in openshift/origin-web-console#1466 (comment)

Is this a terminal condition for the provision. Can we rely on this condition meaning that provision is perm failed.

@jwforres
Copy link
Member

cc @spadgett

@bparees
Copy link
Contributor Author

bparees commented Jun 14, 2017

Sounds like there are two issues for @pmorie here:

  1. the SC should not be retrying the provision since the broker told it it failed.
  2. the SC is not marking the provision to a failed state that the web console can understand.

@spadgett
Copy link
Member

We could show an error for reason: Failed if it's the right thing to do. Right now we're just looking at type: Ready / status: False and showing the pending message.

I think we should show the ready condition message somewhere in the UI if available since it's likely helpful, maybe in the expanded provision service row on the overview.

@jwforres
Copy link
Member

jwforres commented Jun 14, 2017 via email

@jwforres
Copy link
Member

relevant changes in service catalog API https://github.com/kubernetes-incubator/service-catalog/pull/1017/files

@spadgett spadgett assigned spadgett and unassigned jwforres Jul 21, 2017
@spadgett
Copy link
Member

spadgett commented Sep 6, 2017

@spadgett spadgett closed this as completed Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/web kind/bug Categorizes issue or PR as related to a bug. priority/P2
Projects
None yet
Development

No branches or pull requests

3 participants