redhat-performance / odf-grafana

Playbook and dashboards to help with ODF performance analysis
GNU General Public License v3.0
5 stars 11 forks source link

install on OCP v4.15 is failing due to serviceaccount changes #25

Closed ekuric closed 5 months ago

ekuric commented 5 months ago

In OCP v4.15 installation of odf-grafana will fail. The reason is that OCP v4.15 has somehow different way to handle service accounts ( sa )

For OCP v4.15 we have

oc create sa test1
serviceaccount/test1 created
[root@f08-h02-000-1029u odf-grafana]# oc describe sa test1
Name:                test1
Namespace:           perfscale
Labels:              <none>
Annotations:         <none>
Image pull secrets:  <none>
Mountable secrets:   <none>
Tokens:              <none>
Events:              <none>

For OCP v4.14 we have

# oc create sa test1
serviceaccount/test1 created
08:46:30 root@d16-h02-000-r650:~/odf-grafana# oc describe sa test1
Name:                test1
Namespace:           default
Labels:              <none>
Annotations:         <none>
Image pull secrets:  test1-dockercfg-t88rt
Mountable secrets:   test1-dockercfg-t88rt
Tokens:              test1-token-mhr2h
Events:              <none>

It will be necessary to narrow down changes introduced in OCP v4.15 regarding sa and accordingly update roles/datasource/tasks/main.yml to handle that change. This issue is only placeholder where we can track it. I am working on this

ekuric commented 5 months ago

turned out that it was necessary to run oc patch configs.imageregistry.operator.openshift.io cluster --type merge --patch '{"spec":{"managementState":"Managed"}}' after OCP cluster installation in order for sa to be able to be created with their proper secrets. closing issue.