GithubHelp home page GithubHelp logo

[OCP] Using the olm script manually to apply does not work in OpenShift environment (no marketplace namespace) about ibm-spectrum-scale-csi HOT 6 CLOSED

ibm avatar ibm commented on May 20, 2024
[OCP] Using the olm script manually to apply does not work in OpenShift environment (no marketplace namespace)

from ibm-spectrum-scale-csi.

Comments (6)

whowutwut avatar whowutwut commented on May 20, 2024

@mew2057 just for kicks....

I did the following:

  1. search/replace for marketplace to ibm-spectrum-scale-csi-driver in the deploy/olm-scripts/operator-source.yaml
  2. applied namespace/secret/olm yamls 👇
[root@c943f4n01-pvt ibm-spectrum-scale-csi-operator]# oc apply -f deploy/namespace.yaml
namespace/ibm-spectrum-scale-csi-driver created
[root@c943f4n01-pvt ibm-spectrum-scale-csi-operator]# oc apply -f /root/csi-operator-ansible/secrets.json -n ibm-spectrum-scale-csi-driver
secret/spectrum-scale-gui-secret created
[root@c943f4n01-pvt ibm-spectrum-scale-csi-operator]# oc apply -f deploy/olm-scripts/operator-source.yaml
clusterrolebinding.rbac.authorization.k8s.io/olm-crb configured
operatorsource.operators.coreos.com/ibm-spectrum-scale-csi-operator-app created
operatorgroup.operators.coreos.com/operator-group created
subscription.operators.coreos.com/oper-sub created

But nothing happened:

[root@c943f4n01-pvt csi-operator-ansible]# oc get pods  -n ibm-spectrum-scale-csi-driver
No resources found.
[root@c943f4n01-pvt csi-operator-ansible]#

Any pointers?

from ibm-spectrum-scale-csi.

mew2057 avatar mew2057 commented on May 20, 2024

So this was a documentation gap on my part. In OpenShift you don't need operator-source.yaml, you need deploy/olm-scripts/operator-source-oc.yaml.

The operator-source-oc.yaml file does one thing, subscribe to the CSV. After that you need to access the GUI and set up the operator for use:
https://github.com/IBM/ibm-spectrum-scale-csi-operator/issues/25#issuecomment-557251170

Alternatively, follow this guide https://github.com/operator-framework/community-operators/blob/master/docs/testing-operators.md

from ibm-spectrum-scale-csi.

mew2057 avatar mew2057 commented on May 20, 2024

Here's the Revised documentation:

Option B: Using Operator Lifecycle Manager (OLM)

NOTE: This will be the prefered method. However, work is ongoing.

NOTE: Installing OLM is out of the scope of this document, please refer to the official documentation. If you're still having trouble, this guide goes even deeper.

The following will subscribe the quay.io version of the operator assuming OLM is installed.

cd ${OPERATOR_DIR}/stable/ibm-spectrum-scale-csi-operator-bundle/operators/ibm-spectrum-scale-csi-operator

kubectl apply -f deploy/olm-scripts/operator-source.yaml

NOTE: Kubernetes use kubectl command, replace with oc if deploying in OpenShift.

cd ${OPERATOR_DIR}/stable/ibm-spectrum-scale-csi-operator-bundle/operators/ibm-spectrum-scale-csi-operator

oc apply -f deploy/olm-scripts/operator-source-oc.yaml

from ibm-spectrum-scale-csi.

mew2057 avatar mew2057 commented on May 20, 2024

Also, until we're in OperatorHub this documentation is actually not terribly accurate, this is just a for example. I don't know if we should actually support OLM officially until we're there, because the current model is pointing to a bundle I made by hand that isn't even up to date?

from ibm-spectrum-scale-csi.

smitaraut avatar smitaraut commented on May 20, 2024

This should have been addressed with the GA. OLM instructions here-
https://www.ibm.com/support/knowledgecenter/STXKQY_5.0.4/com.ibm.spectrum.scale.csi.v5r04.doc/bl1csi_install_usingOLM.html

from ibm-spectrum-scale-csi.

deeghuge avatar deeghuge commented on May 20, 2024

Following document provide the mechanism for OLM pre release test.
https://github.com/IBM/ibm-spectrum-scale-csi/blob/dev/tools/ansible/olmupgrade.md

Please reopen if above document is not sufficient

from ibm-spectrum-scale-csi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.