Bug 1697286 - [Kubevirt-Foreman] VM creation fails with PVC having empty selector
Summary: [Kubevirt-Foreman] VM creation fails with PVC having empty selector
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Compute Resources - CNV
Version: 6.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.6.0
Assignee: Moti Asayag
QA Contact: Vladimír Sedmík
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-08 09:41 UTC by Vatsal Parekh
Modified: 2019-10-22 19:50 UTC (History)
3 users (show)

Fixed In Version: tfm-rubygem-fog-kubevirt-1.2.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-22 19:50:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github fog fog-kubevirt pull 108 0 None closed Do not pass an empty selector 2021-01-07 12:09:40 UTC

Description Vatsal Parekh 2019-04-08 09:41:38 UTC
Description of problem:
Creating a VM with PVC fails with the error `Failed to provision volume with StorageClass "glusterfs-storage": not able to parse your claim Selector` in PVC events.
PVC spec:
```
[cloud-user@cnv-executor-vatsal-master1 ~]$ oc get pvc saul-nassif-example-com-claim-1 -o yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  annotations:
    volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/glusterfs
  creationTimestamp: 2019-04-08T07:02:49Z
  finalizers:
  - kubernetes.io/pvc-protection
  name: saul-nassif-example-com-claim-1
  namespace: default
  resourceVersion: "3476464"
  selfLink: /api/v1/namespaces/default/persistentvolumeclaims/saul-nassif-example-com-claim-1
  uid: 523adbc5-59cc-11e9-bdca-fa163e387aec
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 1G
  selector: {}
  storageClassName: glusterfs-storage
  volumeMode: Filesystem
status:
  phase: Pending
```

Version-Release number of selected component (if applicable):
plugin master

How reproducible:


Steps to Reproduce:
1.Create a Host with a PVC
2.
3.

Actual results:
Creates a PVC but with a empty selector

Expected results:
Should not have the selector field if there are no selector

Additional info:

Comment 3 Moti Asayag 2019-04-10 04:19:50 UTC
Please attach production.log with the exception to this bug.

Comment 6 Bryan Kearney 2019-10-22 19:50:58 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/RHSA-2019:3172


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