Bug 1982269 - [4.8.1] Cloning DataVolumes between namespaces fails while creating cdi-upload pod
Summary: [4.8.1] Cloning DataVolumes between namespaces fails while creating cdi-uploa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.8.0
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
: 4.8.1
Assignee: Alexander Wels
QA Contact: Kevin Alon Goldblatt
URL:
Whiteboard:
Depends On: 1967086
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-14 15:10 UTC by Adam Litke
Modified: 2021-08-24 12:49 UTC (History)
7 users (show)

Fixed In Version: v4.8.1-12
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1967086
Environment:
Last Closed: 2021-08-24 12:49:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt containerized-data-importer pull 1856 0 None open [release-v1.34] Set some reasonable requests/limits for workloads 2021-08-09 20:57:42 UTC
Red Hat Product Errata RHSA-2021:3259 0 None None None 2021-08-24 12:49:30 UTC

Comment 1 Adam Litke 2021-07-14 15:12:48 UTC
Alexander, please attach the 4.8 cherrypick PR and move this bug to POST.

Comment 2 Kevin Alon Goldblatt 2021-08-19 12:20:45 UTC
Verified with the following code:
------------------------------------
oc version
Client Version: 4.8.0-202106281541.p0.git.1077b05.assembly.stream-1077b05
Server Version: 4.8.0
Kubernetes Version: v1.21.1+f36aa36
[cnv-qe-jenkins@alex48-451-xzjsk-executor ~]$  oc get csv -n openshift-cnv
NAME                                      DISPLAY                    VERSION   REPLACES                                  PHASE
kubevirt-hyperconverged-operator.v4.8.1   OpenShift Virtualization   4.8.1     kubevirt-hyperconverged-operator.v4.8.0   Succeeded



Verified with the following scenario:
---------------------------------------

1. Created ns source-ns and target-ns

2. Created a limitrange in source-ns
apiVersion: v1
kind: LimitRange
metadata:
  creationTimestamp: "2021-08-19T07:20:06Z"
  name: cpu-limit-range
  namespace: source-ns
  resourceVersion: "53908165"
  uid: f3638eb4-b78b-4cf3-aaa8-ef9ecd643cf5
spec:
  limits:
  - defaultRequest:
      cpu: 1m
    type: Container

3. Created a dv in source-ns
apiVersion: cdi.kubevirt.io/v1alpha1
kind: DataVolume
metadata: 
  name: source-fedora
  namespace: source-ns
spec:
  source:
          #namespace: source-ns
      http:
         url: "http://cnv-qe-server.rhevdev.lab.eng.rdu2.redhat.com/files/cnv-tests/fedora-images/Fedora-Cloud-Base-33-1.2.x86_64.qcow2"
  pvc:
    storageClassName: ocs-storagecluster-ceph-rbd
    accessModes: 
      - ReadWriteOnce
    resources: 
      requests: 
        storage: 5Gi

oc get dv -A
NAMESPACE                            NAME            PHASE              PROGRESS   RESTARTS   AGE
source-ns                            source-fedora   Succeeded          100.0%                171m

4. Created a dv clone target-fedora of source dv source-fedora
apiVersion: cdi.kubevirt.io/v1alpha1
kind: DataVolume
metadata: 
  name: target-fedora
  namespace: target-ns
spec: 
  pvc:
    storageClassName: ocs-storagecluster-ceph-rbd
    accessModes: 
      - ReadWriteOnce
    resources: 
      requests: 
        storage: 5Gi
  source: 
    pvc: 
      name: source-fedora
      namespace: source-ns

oc get dv -A -w
NAMESPACE                            NAME            PHASE              PROGRESS   RESTARTS   AGE
source-ns                            source-fedora   Succeeded          100.0%                166m
target-ns                            target-fedora   CloneScheduled     N/A                   7s
target-ns                            target-fedora   CloneInProgress    N/A                   13s
target-ns                            target-fedora   CloneInProgress    N/A                   15s
target-ns                            target-fedora   CloneInProgress    N/A                   16s
target-ns                            target-fedora   CloneInProgress    N/A                   16s
target-ns                            target-fedora   CloneInProgress    N/A                   25s
target-ns                            target-fedora   CloneInProgress    0.92%                 26s
target-ns                            target-fedora   CloneInProgress    0.92%                 27s
target-ns                            target-fedora   CloneInProgress    1.60%                 27s
.
.
.
target-ns                            target-fedora   CloneInProgress    43.14%                111s
target-ns                            target-fedora   Succeeded          100.0%                2m22s

oc get dv -A
NAMESPACE                            NAME            PHASE              PROGRESS   RESTARTS   AGE
source-ns                            source-fedora   Succeeded          100.0%                171m
target-ns                            target-fedora   Succeeded          100.0%                4m20s

Moving to verified!

Comment 7 errata-xmlrpc 2021-08-24 12:49:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Virtualization 4.8.1 Images security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:3259


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