Bug 2102123
| Summary: | Cloning virtual machines is failing while creating DV with error "target resources requests storage size is smaller than the source" if source PVC is extended | ||
|---|---|---|---|
| Product: | Container Native Virtualization (CNV) | Reporter: | Tal Nisan <tnisan> |
| Component: | User Experience | Assignee: | Aviv Turgeman <aturgema> |
| Status: | CLOSED WORKSFORME | QA Contact: | Guohua Ouyang <gouyang> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.10.2 | CC: | alitke, aturgema, cnv-qe-bugs, gouyang, nashok, tnisan |
| Target Milestone: | --- | ||
| Target Release: | 4.11.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 2100345 | Environment: | |
| Last Closed: | 2022-06-29 15:00:13 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2100345 | ||
| Bug Blocks: | |||
|
Description
Tal Nisan
2022-06-29 11:16:14 UTC
cant reproduce this bug on main branch,
followed steps of reprocude:
1. created a VM with this YAML example:
```
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: vm-example
labels:
app: vm-example
os.template.kubevirt.io/fedora35: 'true'
flavor.template.kubevirt.io/small: 'true'
vm.kubevirt.io/template: fedora-server-small
workload.template.kubevirt.io/server: 'true'
annotations:
name.os.template.kubevirt.io/fedora35: Fedora 35
description: VM example
namespace: aviv-test
spec:
dataVolumeTemplates:
- apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
creationTimestamp: null
name: dv-example
spec:
source:
registry:
url: 'docker://quay.io/containerdisks/fedora:latest'
pvc:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 30Gi
storageClassName: ocs-storagecluster-ceph-rbd
volumeMode: Block
running: false
template:
metadata:
annotations:
vm.kubevirt.io/flavor: small
vm.kubevirt.io/os: fedora
vm.kubevirt.io/workload: server
labels:
flavor.template.kubevirt.io/small: 'true'
kubevirt.io/domain: vm-example
kubevirt.io/size: small
vm.kubevirt.io/name: vm-example
os.template.kubevirt.io/fedora35: 'true'
workload.template.kubevirt.io/server: 'true'
spec:
domain:
cpu:
cores: 1
sockets: 1
threads: 1
devices:
disks:
- bootOrder: 1
disk:
bus: virtio
name: containerdisk
- disk:
bus: virtio
name: disk-example
- disk:
bus: virtio
name: cloudinitdisk
interfaces:
- masquerade: {}
name: default
model: virtio
networkInterfaceMultiqueue: true
rng: {}
resources:
requests:
memory: 1G
hostname: vm-example
networks:
- name: default
pod: {}
terminationGracePeriodSeconds: 0
volumes:
- containerDisk:
image: 'quay.io/containerdisks/fedora:35'
name: containerdisk
- cloudInitNoCloud:
userData: |-
#cloud-config
password: fedora
chpasswd: { expire: False }
name: cloudinitdisk
- dataVolume:
name: dv-example
name: disk-example
```
2. expended PVC to 40Gi
3. cloned the VM, VM was cloned successfully with 40Gi PVC created also successfully
moving this bug to CLOSED as NOTABUG
|