Bug 1746954 - Host Path Provisioner - Datavolume image created on wrong node
Summary: Host Path Provisioner - Datavolume image created on wrong node
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 2.2.0
Assignee: Alexander Wels
QA Contact: Kevin Alon Goldblatt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-29 15:19 UTC by Kevin Alon Goldblatt
Modified: 2020-01-30 16:27 UTC (History)
5 users (show)

Fixed In Version: virt-cdi-operator-container-v2.2.0-2 hco-bundle-registry-container-v2.2.0-21
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-30 16:27:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2020:0307 0 None None None 2020-01-30 16:27:23 UTC

Comment 2 Adam Litke 2019-10-07 20:55:02 UTC
Will address in 2.2 when we will ship the hostpath provisioner.

Comment 3 Ying Cui 2019-11-06 13:29:26 UTC
Kevin, could you help to retest this issue on 2.2 env. then?

Comment 4 Fred Rolland 2019-11-07 13:28:03 UTC
This issue should be fixed by:
https://github.com/kubevirt/containerized-data-importer/pull/899/

The annotations are copied from the DV to the PVC

Comment 5 Ying Cui 2019-11-25 05:59:24 UTC
Pending on the d/s test environment, so we can not verify this bug now.

Comment 7 Kevin Alon Goldblatt 2019-12-23 12:02:40 UTC
Please ignore Comment 6 - this information is not relevant to this bug
Moving back to ON-QA

Comment 8 Kevin Alon Goldblatt 2019-12-25 11:42:59 UTC
Verified with Code:
-----------------------------------------------
container-native-virtualization-virt-cdi-uploadserver:v2.2.0-3
OCP 4.3 CNV 2.2
registry-proxy.engineering.redhat.com/rh-osbs/container-native-virtualization-hostpath-provisioner-rhel8-operator:v2.2.0-8



Verified with the following scenario:
-----------------------------------------------
Create a DataVolume on node 0 >>>>> The image is created node 0
Create a second DataVolume on node 1 >>>>> The image is created on node 1

apiVersion: cdi.kubevirt.io/v1alpha1
kind: DataVolume
metadata:
  name: hostpath-dv-import11
  annotations:
    kubevirt.io/provisionOnNode: cnv-executor-kev4322e-rhel-worker-0
spec:
  source:
      http:
         url: "https://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img"
  pvc:
    accessModes:
      - ReadWriteOnce
    resources:
      requests:
        storage: 100Mi
    storageClassName: hostpath-provisioner




[cloud-user@cnv-executor-kev4322e-rhel-worker-0 ~]$ ls -ltr /var/hpvolumes/pvc-c8001476-64d1-4572-b2c2-276503ee4d8a
total 102404
-rw-r--r--. 1 root root 104857600 Dec 25 05:07 disk.img

Moving to verified

Comment 9 Kevin Alon Goldblatt 2019-12-25 12:24:48 UTC
Verified

Comment 11 errata-xmlrpc 2020-01-30 16:27:13 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, 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/RHEA-2020:0307


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