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

Lab 1 on OCP 4.4 userX cannot create address space #38

Closed
evanshortiss opened this issue Jul 23, 2020 · 12 comments
Closed

Lab 1 on OCP 4.4 userX cannot create address space #38

evanshortiss opened this issue Jul 23, 2020 · 12 comments
Labels
bug Something isn't working

Comments

@evanshortiss
Copy link
Member

Running on OCP 4.4 the user cannot complete "7. Create your AMQ Online Topic" since they cannot view the catalog. They need "cluserservices" permissions.

@evanshortiss
Copy link
Member Author

Navigating to https://$CLUSTER_HOST/catalog/ns/user1 results in an error or blank page. Web inspector reveals 403 HTTP response from https://$CLUSTER_HOST/api/kubernetes/apis/config.openshift.io/v1/clusterversions/version and 404 from https://$CLUSTER_HOST/api/kubernetes/api/v1/namespaces/openshift-logging/configmaps/sharing-config`

@evanshortiss
Copy link
Member Author

  • /api/kubernetes/apis/ocs.openshift.io/v1/namespaces/openshift-storage/storageclusters/ocs-independent-storagecluster - 403
  • /api/kubernetes/apis/operators.coreos.com/v1alpha1/namespaces/openshift-storage/subscriptions/ocs-subscription - 404
  • api/kubernetes/apis/config.openshift.io/v1/infrastructures/cluster - 403
  • /api/kubernetes/apis/apiregistration.k8s.io/v1/apiservices? - 403

@evanshortiss
Copy link
Member Author

Even after adding full cluster-admin rights (oc adm policy add-cluster-role-to-user cluster-admin user1) the user cannot view the catalog. Might be an issue with this cluster?

@sigreen
Copy link
Contributor

sigreen commented Jul 23, 2020

I had the same issue with two separate workshops today on RHPDS @evanshortiss . Work around is to naviagate to the Administrator Console, select the Operator and create the Address Space that way. Unfortunately this didn't work for Postgres lab as there is no operator available.

@dgutride
Copy link
Contributor

dgutride commented Jul 24, 2020

I also had this issue - it's a missing a displayName in the Infinispan Operator for the Cache - once that was added in the yaml for the operator, the Catalog page was visible. This is because the tileName is undefined.

on this page: /k8s/ns/user2/operators.coreos.comv1alpha1ClusterServiceVersion/infinispan-operator.v2.0.2/yaml (I added displayName)

spec:
customresourcedefinitions:
owned:
- description: Cache is the Schema for the caches API
displayName: Infinispan Cache
kind: Cache
name: caches.infinispan.org
version: v2alpha1

@evanshortiss
Copy link
Member Author

evanshortiss commented Jul 24, 2020

Nice find @dgutride! So do we know if this is isolated to OCP 4.4 or is it an issue with the pre-created Infinispan operator that can be addressed in the installer, or perhaps caused by a mixture of hte the two?

@dgutride
Copy link
Contributor

@evanshortiss - the code is the same between minor versions of OpenShift - I upgraded to try to fix this in the process. I'm not quite sure why they aren't validating the displayName on the operator yaml unless the install process here is doing something unusual.

I think the issue is with infinispan - looks like this commit broke things a few weeks ago: infinispan/infinispan-operator@20e7885#diff-350feddf31ee00a2f0bcf71b204a30c1.

Created this PR: infinispan/infinispan-operator#485 to see if they'll take it in for the issue.

@evanshortiss
Copy link
Member Author

@sigreen looks like that'll do the trick 👍

@dgutride I just checked and the displayName is there on my cluster. So maybe there's another issue at play here?

Screenshot 2020-07-24 at 2 57 10 PM

@dgutride
Copy link
Contributor

@evanshortiss - you need another displayName entry for the cache (line 60 or so)

@sigreen
Copy link
Contributor

sigreen commented Jul 24, 2020

Thanks @dgutride and @evanshortiss . I can confirm that Dana's fix has resolve my issue. I updated the Infinispan operator YAML in userX project at line 55 to the following:

spec:
  customresourcedefinitions:
    owned:
      - description: Cache is the Schema for the caches API
        displayName: Infinispan Cache
        kind: Cache
        name: caches.infinispan.org
        version: v2alpha1
      - description: An Infinispan cluster instance.
        displayName: Infinispan Cluster
        kind: Infinispan
        name: infinispans.infinispan.org

After saving that change, I was able to login to my user project and view the catalog!

@hguerrero hguerrero pinned this issue Jul 24, 2020
@evanshortiss
Copy link
Member Author

Thanks @dgutride, and @sigreen

@hguerrero hguerrero added the bug Something isn't working label Jul 28, 2020
@hguerrero
Copy link
Collaborator

This should have been fixed by the change to Data Grid instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants