{"action":"opened","issue":{"url":"https://api.github.com/repos/kubevirt/kubevirt/issues/1507","repository_url":"https://api.github.com/repos/kubevirt/kubevirt","labels_url":"https://api.github.com/repos/kubevirt/kubevirt/issues/1507/labels{/name}","comments_url":"https://api.github.com/repos/kubevirt/kubevirt/issues/1507/comments","events_url":"https://api.github.com/repos/kubevirt/kubevirt/issues/1507/events","html_url":"https://github.com/kubevirt/kubevirt/issues/1507","id":359619546,"node_id":"MDU6SXNzdWUzNTk2MTk1NDY=","number":1507,"title":"DataVolumeTemplates doesn't copy PVC source to created DataVolume","user":{"login":"awels","id":4523502,"node_id":"MDQ6VXNlcjQ1MjM1MDI=","avatar_url":"https://avatars3.githubusercontent.com/u/4523502?v=4","gravatar_id":"","url":"https://api.github.com/users/awels","html_url":"https://github.com/awels","followers_url":"https://api.github.com/users/awels/followers","following_url":"https://api.github.com/users/awels/following{/other_user}","gists_url":"https://api.github.com/users/awels/gists{/gist_id}","starred_url":"https://api.github.com/users/awels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awels/subscriptions","organizations_url":"https://api.github.com/users/awels/orgs","repos_url":"https://api.github.com/users/awels/repos","events_url":"https://api.github.com/users/awels/events{/privacy}","received_events_url":"https://api.github.com/users/awels/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-12T19:27:39Z","updated_at":"2018-09-12T19:27:39Z","closed_at":null,"author_association":"MEMBER","body":"<!-- This form is for bug reports and feature requests ONLY!\r\nAlso make sure that you visit our User Guide at https://kubevirt.io/user-guide/\r\n-->\r\n\r\n**Is this a BUG REPORT or FEATURE REQUEST?**:\r\n\r\n> Uncomment only one, leave it on its own line:\r\n>\r\n/kind bug\r\n> /kind enhancement\r\n\r\n\r\n**What happened**:\r\nWhen creating a Virtual Machine using a DataVolumeTemplates, the created Data Volume does not pick up a pvc 'source' and thus doesn't trigger the creation of the cloner pods.\r\n\r\n**What you expected to happen**:\r\nThe created DV contains the pvc source from the Template.\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\nApply this yaml file:\r\n```yaml\r\napiVersion: kubevirt.io/v1alpha2\r\nkind: VirtualMachine\r\nmetadata:\r\n  labels:\r\n    kubevirt.io/vm: test\r\n  name: test\r\nspec:\r\n  dataVolumeTemplates:\r\n  - metadata:\r\n      name: vm-test-dv-01\r\n    spec:\r\n      pvc:\r\n        accessModes:\r\n        - ReadWriteOnce\r\n        resources:\r\n          requests:\r\n            storage: 13224673\r\n      source:\r\n        pvc:\r\n          name: template-test-dv-01\r\n          namespace: default\r\n    status: {}\r\n  running: false\r\n  template:\r\n    metadata:\r\n      labels:\r\n        kubevirt.io/vm: test\r\n    spec:\r\n      domain:\r\n        cpu:\r\n          cores: 1\r\n        devices:\r\n          disks:\r\n          - disk:\r\n              bus: virtio\r\n            name: disk0\r\n            volumeName: test-datavolume\r\n        machine:\r\n          type: q35\r\n        resources:\r\n          requests:\r\n            memory: 64Mi\r\n      terminationGracePeriodSeconds: 0\r\n      volumes:\r\n      - dataVolume:\r\n          name: vm-test-dv-01\r\n        name: test-datavolume\r\nstatus: {}\r\n```\r\nThe created DV yaml looks like this:\r\n```yaml\r\napiVersion: cdi.kubevirt.io/v1alpha1\r\nkind: DataVolume\r\nmetadata:\r\n  annotations:\r\n    kubevirt.io/owned-by: virt-controller\r\n  clusterName: \"\"\r\n  creationTimestamp: 2018-09-12T18:59:23Z\r\n  generation: 1\r\n  labels:\r\n    kubevirt.io/created-by: f6c06ae0-b6bd-11e8-b14c-525500d15501\r\n  name: vm-xx-dv-01\r\n  namespace: default\r\n  ownerReferences:\r\n  - apiVersion: kubevirt.io/v1alpha2\r\n    blockOwnerDeletion: true\r\n    controller: true\r\n    kind: VirtualMachine\r\n    name: test\r\n    uid: f6c06ae0-b6bd-11e8-b14c-525500d15501\r\n  resourceVersion: \"30499\"\r\n  selfLink: /apis/cdi.kubevirt.io/v1alpha1/namespaces/default/datavolumes/vm-test-dv-01\r\n  uid: f6c16fa7-b6bd-11e8-b14c-525500d15501\r\nspec:\r\n  pvc:\r\n    accessModes:\r\n    - ReadWriteOnce\r\n    resources:\r\n      requests:\r\n        storage: \"13224673\"\r\n  source: {}\r\nstatus: {}\r\n```\r\n**Anything else we need to know?**:\r\n\r\n**Environment**:\r\n- KubeVirt version (use `virtctl version`):\r\nClient Version: version.Info{GitVersion:\"v0.8.0-16+8112d64eda7255-dirty\", GitCommit:\"8112d64eda725594210ca7f0255a1343b6d4904e\", GitTreeState:\"dirty\", BuildDate:\"2018-09-06T12:38:00Z\", GoVersion:\"go1.10\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\nServer Version: &version.Info{GitVersion:\"v0.8.0-16+8112d64eda7255-dirty\", GitCommit:\"8112d64eda725594210ca7f0255a1343b6d4904e\", GitTreeState:\"dirty\", BuildDate:\"2018-09-06T12:38:00Z\", GoVersion:\"go1.10\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n- Kubernetes version (use `kubectl version`):\r\noc v3.10.0+0c4577e-1\r\nkubernetes v1.10.0+b81c8f8\r\nfeatures: Basic-Auth GSSAPI Kerberos SPNEGO\r\n\r\nServer https://127.0.0.1:8443\r\nopenshift v3.10.0-rc.0+c20e215\r\nkubernetes v1.10.0+b81c8f8\r\n- VM or VMI specifications:\r\nSee reproducer.\r\n- Cloud provider or hardware configuration:\r\nN/A\r\n- OS (e.g. from /etc/os-release):\r\nkubevirtci development environment.\r\n- Kernel (e.g. `uname -a`):\r\n- Install tools:\r\n- Others:\r\nCDI version: latest master (that includes support for data volumes cloning)"}}
{"actor":{"display_login":"awels"}}