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

[OCP] Using the olm script manually to apply does not work in OpenShift environment (no marketplace namespace) #29

Closed
whowutwut opened this issue Nov 22, 2019 · 6 comments
Labels
Component: Documentation Phase: Development Issue was discovered through development Severity: 3 Indicates the the issue is on the priority list for next milestone. Type: Documentation Idicates issue is related to documentation. Type: Needs Verification by Originator A fix (code, doc update, workaround) has been given and needs verification + closure if agreed
Projects

Comments

@whowutwut
Copy link
Member

Describe the bug

Trying to follow this instruction:
image

Results in this error:

clusterrolebinding.rbac.authorization.k8s.io/olm-crb created
Error from server (NotFound): error when creating "deploy/olm-scripts/operator-source.yaml": namespaces "marketplace" not found
Error from server (NotFound): error when creating "deploy/olm-scripts/operator-source.yaml": namespaces "marketplace" not found
Error from server (NotFound): error when creating "deploy/olm-scripts/operator-source.yaml": namespaces "marketplace" not found
No resources found.

To Reproduce

In Openshift environment, run oc apply -f deploy/olm-scripts/operator-source.yaml

Expected behavior

Operator comes up?

Environment

Running this code:

[root@c943f4n01-pvt csi-operator-ansible]# cd ~/go/src/github.com/IBM/ibm-spectrum-scale-csi-operator/
[root@c943f4n01-pvt ibm-spectrum-scale-csi-operator]# git remote -v
origin	https://github.com/IBM/ibm-spectrum-scale-csi-operator.git (fetch)
origin	https://github.com/IBM/ibm-spectrum-scale-csi-operator.git (push)
[root@c943f4n01-pvt ibm-spectrum-scale-csi-operator]# git branch
* dev
[root@c943f4n01-pvt ibm-spectrum-scale-csi-operator]# git  log -1
commit be2ca36225d6fc5760b69a0595c4a709be7eaf7e
Merge: 3303227 9b1057c
Author: John Dunham <JFDBEar1@gmail.com>
Date:   Thu Nov 21 17:22:08 2019 -0500

    Merge pull request IBM/ibm-spectrum-scale-csi-operator#60 from mew2057/csv-vet

    Cluster Service Version Cleanup

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@whowutwut
Copy link
Member Author

whowutwut commented Nov 22, 2019

@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?

@mew2057
Copy link
Contributor

mew2057 commented Nov 22, 2019

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

@mew2057
Copy link
Contributor

mew2057 commented Nov 22, 2019

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

@mew2057
Copy link
Contributor

mew2057 commented Nov 22, 2019

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?

@mew2057 mew2057 transferred this issue from another repository Jan 27, 2020
@mew2057 mew2057 added Component: Documentation Phase: Development Issue was discovered through development Severity: 3 Indicates the the issue is on the priority list for next milestone. Type: Documentation Idicates issue is related to documentation. labels Jan 27, 2020
dunnevan pushed a commit to dunnevan/ibm-spectrum-scale-csi that referenced this issue Feb 13, 2020
Remove auto unmount functionality
@smitaraut
Copy link
Member

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

@aspalazz aspalazz added the Type: Needs Verification by Originator A fix (code, doc update, workaround) has been given and needs verification + closure if agreed label Mar 19, 2020
@aspalazz aspalazz added this to Open defects in CSI 2.0.0 Mar 26, 2020
@deeghuge
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation Phase: Development Issue was discovered through development Severity: 3 Indicates the the issue is on the priority list for next milestone. Type: Documentation Idicates issue is related to documentation. Type: Needs Verification by Originator A fix (code, doc update, workaround) has been given and needs verification + closure if agreed
Projects
No open projects
CSI 2.0.0
  
Needs assignment
Development

No branches or pull requests

5 participants