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)
- I want to use my privet registry for all images
- The catalog source pod can not migrate when the node becomes NotReady HOT 2
- Subscription is stuck when installing same operator multiple times into different namespaces at different dates
- Improve Makefile to avoid unnecessarily shelling out multiple times for the same variables
- support cacheless catalogsources
- Deployment "olm/packageserver" never appears on install HOT 1
- Startup Probe kills "/bin/opm serve" process and prevents operatorhubio pod to start HOT 4
- Unpin prometheus library versions from go.mod
- Unpin google.golang.org/grpc from go.mod
- Move away from actions/create-release@v1 HOT 1
- Remove downstream e2e test
- error: the server doesn't have a resource type "packagemanifest"; operator-lifecycle-manager apiServices not installed [GKE] HOT 3
- Automate test image (re)generation
- Drop quay.io/olmtest
- OLM - running in a restricted environment.
- OLM v0.28.0 - Subscription with toleration NOT WORKING (Bug)
- Critical and High CVEs in latest OLM version ("operatorhubio/catalog")
- Trying to add an updated version of a CRD and encountering problems
- I can't delete OLM and all namespaces created by OLM - Namespaces stuck terminating. HOT 1
- OLM Bundle unpacker fails when default service account automounting token is disabled
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.