instana/instana-agent-operator

v2.0.5 fails to install on OKD 4.10

Closed this issue · 4 comments

Hello guys, I tried installing the latest version of the instana-agent-operator from the OpenShift Marketplace through OLM and it gets stuck in the 'Pending' state.
When I check the status there's a problem with one of the requirements:

oc get csv instana-agent-operator.v2.0.5 -o yaml
...
requirementStatus:
...
  - group: ""
    kind: ServiceAccount
    message: Service account does not exist
    name: controller-manager
    status: NotPresent
    version: v1

So basically the CSV needs a ServiceAccount that is not there. I could create it manually, but I don't think it's supposed to be like this & this is also not listed in the installation requirements.
I checked the manual from the OLM and found this page:

Ensure that the serviceAccountName used in the deployment spec matches one of the Roles described under permissions.

However, the permissions section is completely missing from the instana-agent-operator CSV install spec. Could this be the problem?

Hi @dznaiko. Unfortunately operator installation problems in OpenShift can be difficult to debug. The missing serviceaccount that you are seeing is specifically used for the operator itself and will be automatically created by OpenShift as part of the operator installation process. The fact that it is showing up as missing most likely means that the installation failed at some point prior to the serviceaccount creation step. If possible could you post the result of the following commands within the namespace that you are attempting to install the agent operator into?

oc get csv -o yaml 
oc get installplan -o yaml
oc get subscription -o yaml
oc get operatorgroup -o yaml

@dznaiko Is this still an issue for you?

@zach-robinson since there were no fixes I believe this is still going to be an issue
let me provide you with the requested outputs in the next comment

For the moment I couldn't reproduce the issue on a fresh OKD install.
The issue can be closed.