Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1697286

Summary: [Kubevirt-Foreman] VM creation fails with PVC having empty selector
Product: Red Hat Satellite Reporter: Vatsal Parekh <vparekh>
Component: Compute Resources - CNVAssignee: Moti Asayag <masayag>
Status: CLOSED ERRATA QA Contact: Vladimír Sedmík <vsedmik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: egolov, masayag, vsedmik
Target Milestone: 6.6.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-fog-kubevirt-1.2.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 19:50:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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