Bug 1710261 - CDI: missing permissions for HCO deployment
Summary: CDI: missing permissions for HCO deployment
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 2.0
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: ---
: 2.0
Assignee: Simone Tiraboschi
QA Contact: Natalie Gavrielov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-15 08:17 UTC by Natalie Gavrielov
Modified: 2019-10-22 12:33 UTC (History)
8 users (show)

Fixed In Version: hco-bundle-registry:v2.0.0-15
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-22 12:33:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt hyperconverged-cluster-operator pull 97 0 None closed * Vendor cdi related csv methods from cdi v1.9.1 2021-01-12 08:33:49 UTC

Description Natalie Gavrielov 2019-05-15 08:17:50 UTC
Description of problem:
Last few hco builds are failing installation 
Bug is opened following this comment:
https://bugzilla.redhat.com/show_bug.cgi?id=1709677#c6

Version-Release number of selected component (if applicable):
CDI 1.9 (2.0.0-11, 2.0.0-12)

How reproducible:
100%

Steps to Reproduce:
Install hco with the above versions

Actual results:
CDI pods, except for the operator fails to install

Expected results:
Installation to finish successfully, have CDI pods running.

Comment 1 Anna Stopel 2019-05-15 10:47:15 UTC
Assigning to Simone. The bug is to be closed once a new hco build is issued with the bellow rbac for cdi-operator:
```
 - serviceAccountName: cdi-operator
          rules:
            - apiGroups:
              - rbac.authorization.k8s.io
              resources:
              - roles
              - rolebindings
              - clusterrolebindings
              - clusterroles
              verbs:
              - '*'
            - apiGroups:
              - security.openshift.io
              resources:
              - securitycontextconstraints
              verbs:
              - get
              - list
              - watch
            - apiGroups:
              - security.openshift.io
              resourceNames:
              - privileged
              resources:
              - securitycontextconstraints
              verbs:
              - get
              - patch
              - update
            - apiGroups:
              - ""
              resources:
              - serviceaccounts
              - services
              verbs:
              - '*'
            - apiGroups:
              - ""
              resources:
              - nodes
              verbs:
              - get
              - list
              - watch
              - update
              - patch
            - apiGroups:
              - extensions
              resources:
              - deployments
              verbs:
              - '*'
            - apiGroups:
              - extensions
              resources:
              - ingresses
              verbs:
              - get
              - list
              - watch
            - apiGroups:
              - ""
              resources:
              - configmaps
              verbs:
              - watch
              - create
              - delete
              - get
              - update
              - patch
              - list
            - apiGroups:
              - batch
              resources:
              - jobs
              verbs:
              - create
              - delete
              - get
              - update
              - patch
              - list
            - apiGroups:
              - apiextensions.k8s.io
              resources:
              - customresourcedefinitions
              verbs:
              - create
              - delete
              - get
              - update
              - patch
              - list
              - watch
            - apiGroups:
              - apps
              resources:
              - deployments
              - daemonstes
              verbs:
              - create
              - get
              - list
              - delete
              - watch
              - update
            - apiGroups:
              - admissionregistration.k8s.io
              resources:
              - validatingwebhookconfigurations
              verbs:
              - get
              - create
              - update
            - apiGroups:
              - apiregistration.k8s.io
              resources:
              - apiservices
              verbs:
              - get
              - list
              - watch
              - create
              - update
              - patch
            - apiGroups:
              - cdi.kubevirt.io
              resources:
              - '*'
              verbs:
              - '*'
            - apiGroups:
              - storage.k8s.io
              resources:
              - storageclasses
              verbs:
              - get
              - list
            - apiGroups:
              - ""
              resources:
              - events
              verbs:
              - create
              - update
              - patch
            - apiGroups:
              - ""
              resources:
              - pods
              - persistentvolumeclaims
              verbs:
              - get
              - list
              - watch
              - create
              - update
              - patch
              - delete
            - apiGroups:
              - ""
              resources:
              - persistentvolumeclaims/finalizers
              - pods/finalizers
              verbs:
              - update
            - apiGroups:
              - ""
              resources:
              - services
              verbs:
              - get
              - list
              - watch
              - create
              - delete
            - apiGroups:
              - ""
              resources:
              - secrets
              verbs:
              - get
              - list
              - watch
              - create
            - apiGroups:
              - ""
              resources:
              - namespaces
              verbs:
              - get
              - list
            - apiGroups:
              - route.openshift.io
              resources:
              - routes
              verbs:
              - get
              - list
              - watch
              - create
              - update
              - patch
            - apiGroups:
              - route.openshift.io
              resources:
              - routes/custom-host
              verbs:
              - create
              - update

```

Comment 2 David Zager 2019-05-15 12:44:47 UTC
The long term method for fixing this issue is for:

1) This PR to be merged https://github.com/kubevirt/containerized-data-importer/pull/798
2) Changes to be vendored into HCO project
3) Update HCO manifest generation to use vendored CDI

I don't want for us to manually update HCO and then have to manually update later when CDI is updated.

Comment 3 Adam Litke 2019-05-20 19:11:41 UTC
Simone, can we move this to ON_QA yet?

Comment 4 Simone Tiraboschi 2019-05-21 09:03:43 UTC
Yes, ON_QA since hco-bundle-registry:v2.0.0-15

Comment 5 Natalie Gavrielov 2019-05-21 15:21:03 UTC
Verified, build: 2.0.0-15


Note You need to log in before you can comment on or make changes to this bug.