OLM on MicroK8s

Has anyone had success installing OLM on MicroK8s? I’m running 1.17/stable. Tried installing OLM 0.15.0 from https://github.com/operator-framework/operator-lifecycle-manager/releases

The packageserver pods go through ContainerCreating > Running > Terminating but never reach stable state. The OLM operator pod repeats log entries:

time="2020-06-17T19:53:23Z" level=info msg="could not query for GVK in api discovery" err="the server is currently unable to handle the request" group=packages.operators.coreos.com kind=PackageManifest version=v1
time="2020-06-17T19:53:23Z" level=info msg="csv in operatorgroup" csv=packageserver id=ljV+c namespace=olm opgroup=olm-operators phase=Installing
time="2020-06-17T19:53:23Z" level=info msg="could not query for GVK in api discovery" err="the server is currently unable to handle the request" group=packages.operators.coreos.com kind=PackageManifest version=v1
time="2020-06-17T19:53:23Z" level=info msg="csv in operatorgroup" csv=packageserver id=fvkpg namespace=olm opgroup=olm-operators phase=Installing
I0617 19:53:23.707207       1 event.go:278] Event(v1.ObjectReference{Kind:"ClusterServiceVersion", Namespace:"olm", Name:"packageserver", UID:"2025ec9a-4b82-42cb-a368-71aad1d61dbd", APIVersion:"operators.coreos.com/v1alpha1", ResourceVersion:"115423", FieldPath:""}): type: 'Normal' reason: 'InstallWaiting' installing: waiting for deployment packageserver to become ready: Waiting for rollout to finish: 1 out of 2 new replicas have been updated...
time="2020-06-17T19:53:23Z" level=info msg="csv in operatorgroup" csv=packageserver id=Q1DPf namespace=olm opgroup=olm-operators phase=Installing
I0617 19:53:23.857233       1 event.go:278] Event(v1.ObjectReference{Kind:"ClusterServiceVersion", Namespace:"olm", Name:"packageserver", UID:"2025ec9a-4b82-42cb-a368-71aad1d61dbd", APIVersion:"operators.coreos.com/v1alpha1", ResourceVersion:"115423", FieldPath:""}): type: 'Normal' reason: 'InstallWaiting' installing: waiting for deployment packageserver to become ready: Waiting for rollout to finish: 1 old replicas are pending termination...
time="2020-06-17T19:53:23Z" level=info msg="error updating ClusterServiceVersion status: Operation cannot be fulfilled on clusterserviceversions.operators.coreos.com \"packageserver\": the object has been modified; please apply your changes to the latest version and try again" csv=packageserver id=7yT2S namespace=olm phase=Installing
E0617 19:53:23.859687       1 queueinformer_operator.go:290] sync {"update" "olm/packageserver"} failed: error updating ClusterServiceVersion status: Operation cannot be fulfilled on clusterserviceversions.operators.coreos.com "packageserver": the object has been modified; please apply your changes to the latest version and try again
time="2020-06-17T19:53:23Z" level=info msg="csv in operatorgroup" csv=packageserver id=TAiKj namespace=olm opgroup=olm-operators phase=Installing
I0617 19:53:24.007304       1 event.go:278] Event(v1.ObjectReference{Kind:"ClusterServiceVersion", Namespace:"olm", Name:"packageserver", UID:"2025ec9a-4b82-42cb-a368-71aad1d61dbd", APIVersion:"operators.coreos.com/v1alpha1", ResourceVersion:"115460", FieldPath:""}): type: 'Normal' reason: 'InstallWaiting' installing: waiting for deployment packageserver to become ready: Waiting for rollout to finish: 1 old replicas are pending termination...
time="2020-06-17T19:53:24Z" level=info msg="csv in operatorgroup" csv=packageserver id=jQz6F namespace=olm opgroup=olm-operators phase=Installing
I0617 19:53:24.157142       1 event.go:278] Event(v1.ObjectReference{Kind:"ClusterServiceVersion", Namespace:"olm", Name:"packageserver", UID:"2025ec9a-4b82-42cb-a368-71aad1d61dbd", APIVersion:"operators.coreos.com/v1alpha1", ResourceVersion:"115460", FieldPath:""}): type: 'Normal' reason: 'InstallWaiting' installing: waiting for deployment packageserver to become ready: Waiting for rollout to finish: 1 old replicas are pending termination...
time="2020-06-17T19:53:24Z" level=info msg="error updating ClusterServiceVersion status: Operation cannot be fulfilled on clusterserviceversions.operators.coreos.com \"packageserver\": the object has been modified; please apply your changes to the latest version and try again" csv=packageserver id=YkBF/ namespace=olm phase=Installing
E0617 19:53:24.159747       1 queueinformer_operator.go:290] sync {"update" "olm/packageserver"} failed: error updating ClusterServiceVersion status: Operation cannot be fulfilled on clusterserviceversions.operators.coreos.com "packageserver": the object has been modified; please apply your changes to the latest version and try again

Any help is appreciated. Thanks.

The resolution was: microk8s enable rbac

1 Like