Comments (8)
I think the command should probably be:
oc cluster up --enable="service-catalog"
instead of
oc cluster up --service-catalog
Edit:
The above should apply for 3.10, but I'm also thinking we may want to enable other cluster components to get OLM to work in the Web UI on 3.10, so trying now with --enable="*"
Edit 2:
Changing --service-catalog
to --enable=*
in build_local_shift.sh
got me a running cluster again. Still struggling to get the OKD console to work with ./scripts/run_console_local.sh
, but will open a separate issue for that.
from operator-lifecycle-manager.
@djwhatle Good catch. Also, OLM currently requires Kubernetes v1.11 and I believe the version of OpenShift (v3.10) that minishift starts corresponds to Kube v1.10.
from operator-lifecycle-manager.
@njhale I see! Did OLM work with OpenShift <=v3.10 at one point? Is minikube
with Kubernetes v1.11 the only recommended option right now?
from operator-lifecycle-manager.
At some point OLM did work with <=v3.10. We've confirmed with our internal CI environment that it works with v3.11. Until minishift
can run a v3.11 cluster it looks like minikube
is the best option.
from operator-lifecycle-manager.
You could try 0.5.0 against 3.10? I can't recall if that will definitely work or not: https://github.com/operator-framework/operator-lifecycle-manager/tree/master/deploy/aos-olm/manifests/0.5.0
from operator-lifecycle-manager.
@ecordell is there a variable I can tweak somewhere to switch make run-local
or make run-local-shift
over to deploying 0.5.0
?
Edit: grabbing release 0.5.0 zip and running that. Crossing fingers.
from operator-lifecycle-manager.
@ecordell checked out 0.5.0
tag and tried running against 3.10. Appears to have trouble logging into 3.10 cluster (tries to use -u system:admin
) and also has trouble building even when you tweak the script to login with admin/foo
instead.
Here are the build errors:
Sending build context to Docker daemon 92.06 MB
Step 1/6 : FROM golang:1.10
Trying to pull repository docker.io/library/golang ...
1.10: Pulling from docker.io/library/golang
55cbf04beb70: Pull complete
1607093a898c: Pull complete
9a8ea045c926: Pull complete
d4eee24d4dac: Pull complete
9c35c9787a2f: Pull complete
1701d74f449a: Pull complete
ed9b85f3273c: Pull complete
Digest: sha256:b38130c9826dc4eff5375f7deeac6dc9c2b9947f194229fac34712f549d03361
Status: Downloaded newer image for docker.io/golang:1.10
---> 5b1054129196
Step 2/6 : WORKDIR /go/src/github.com/operator-framework/operator-lifecycle-manager
---> 624abfbb1d14
Removing intermediate container e937dad76936
Step 3/6 : COPY . .
---> 5aecf0418b7f
Removing intermediate container 7efe9901077c
Step 4/6 : RUN make build && cp bin/alm /bin/alm && cp bin/catalog /bin/catalog && cp bin/servicebroker /bin/servicebroker
---> Running in 2ab4373bd690
/bin/bash: docker: command not found
/bin/bash: docker: command not found
/bin/bash: docker: command not found
/bin/bash: docker: command not found
if [ 1 = 1true ]; then \
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go test -o bin/alm -c -covermode=count -coverpkg ./pkg/... github.com/operator-framework/operator-lifecycle-manager/cmd/alm; \
else \
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o bin/alm github.com/operator-framework/operator-lifecycle-manager/cmd/alm; \
fi
vendor/github.com/emicklei/go-restful/container.go:17:2: cannot find package "github.com/emicklei/go-restful/log" in any of:
/go/src/github.com/operator-framework/operator-lifecycle-manager/vendor/github.com/emicklei/go-restful/log (vendor tree)
/usr/local/go/src/github.com/emicklei/go-restful/log (from $GOROOT)
/go/src/github.com/emicklei/go-restful/log (from $GOPATH)
Makefile:40: recipe for target 'bin/alm' failed
make: *** [bin/alm] Error 1
The command '/bin/sh -c make build && cp bin/alm /bin/alm && cp bin/catalog /bin/catalog && cp bin/servicebroker /bin/servicebroker' returned a non-zero code: 2
make: *** [Makefile:74: run-local-shift] Error 2
[dwhatley@precision-t operator-lifecycle-manager]$
from operator-lifecycle-manager.
Latest attempt with an oc cluster up
OpenShift I created without minishift
:
Is this a known issue?
ConfigMap too long error
The ConfigMap "ocs" is invalid: metadata.annotations: Too long: must have at most 262144 characters
Full output of oc apply -f deploy/upstream/manifests/0.6.0/
$ oc version
oc v3.11.0-alpha.0+36137de-1235
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO
Server https://<my_cluster_ip>:8443
kubernetes v1.11.0+d4cacc0
$ oc apply -f deploy/upstream/manifests/0.6.0/
serviceaccount/olm-operator-serviceaccount created
clusterrolebinding.rbac.authorization.k8s.io/olm-operator-binding-kube-system created
customresourcedefinition.apiextensions.k8s.io/clusterserviceversions.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/catalogsources.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/installplans.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/subscriptions.operators.coreos.com created
catalogsource.operators.coreos.com/ocs created
deployment.apps/alm-operator created
deployment.apps/catalog-operator created
clusterrole.rbac.authorization.k8s.io/aggregate-olm-edit created
clusterrole.rbac.authorization.k8s.io/aggregate-olm-view created
The ConfigMap "ocs" is invalid: metadata.annotations: Too long: must have at most 262144 characters
Edit (RESOLVED):
Resolved the "must have at most 262144 characters" issue by using oc create -f
instead of oc apply -f
based on the following from @njhale:
@njhale: try
oc replace
oroc create
. Apply creates an annotation containing the previous config map.
Posted docs update PR: #449
from operator-lifecycle-manager.
Related Issues (20)
- VolumeMount not replace existing item by name
- CatalogSource fails to create the Pod in user namespace with PSA 'restricted' HOT 2
- packages.operators apiregistration fails to authenticate to packageserver endpoint. HOT 1
- How do we uninstall OLM HOT 2
- How to disable seccomp runtime/default profile for operators? HOT 1
- Getting FATA[0120] rollout: timed out waiting for the conditon when installing olm in cluster
- Add CSV finalizers to OLM HOT 2
- FLAKE E2E: [FAIL] MagicCatalog when an existing magic catalog exists [It] should succeed when the magic catalog is updated HOT 6
- [Flake] End-to-end.[It] Subscription can reconcile InstallPlan status
- as long as there is a manual Subscription, other automatic operators cannot be automatically installed or upgraded HOT 1
- Add InstallPlan Finalizers to OLM
- Operator do not upgrade with error "no owned roles found" from olm operator HOT 6
- OLM happily creates duplicate `PackageManifest` resources in the same namespace HOT 3
- Resolution error `constraints not satisfiable: no operator found from catalog` is not cleared after CatalogSource is made available again HOT 1
- OperatorGroup documentation with label selectors provides incorrect example format
- nil pointer panic when deleting a CSV HOT 4
- Subscription Conditions should be set to false, instead of being removed.
- Cannot render multiple bundles with same name in semver template
- Allow force recreate of controller-manager pods through CSV upgrade options and be smarter about upgrade monitoring
- CSV stuck in install loop with auth-delegator already exists error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from operator-lifecycle-manager.