Bug 1845189 - Error is displayed in VM template disk tab when UI-created PVC is in same namespace
Summary: Error is displayed in VM template disk tab when UI-created PVC is in same nam...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.6.0
Assignee: Phillip Bailey
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks: 1845231
TreeView+ depends on / blocked
 
Reported: 2020-06-08 15:37 UTC by Phillip Bailey
Modified: 2020-10-27 16:06 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1845197 (view as bug list)
Environment:
Last Closed: 2020-10-27 16:05:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 5690 0 None closed Bug 1845189: Fix NPE in combinedDisk 2020-09-28 13:21:52 UTC
Github openshift console pull 5922 0 None closed Bug 1845189: Fix NPE on VM Templates Disks tab 2020-09-28 13:21:52 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:06:27 UTC

Description Phillip Bailey 2020-06-08 15:37:40 UTC
Description of problem:
An error is displayed in the disks tab if a PVC created through the PVC wizard is in the same namespace as the VM template.


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


How reproducible:


Steps to Reproduce:
1. Navigate to Storage > Persistent Volume Claims
2. Click the 'Create Persistent Volume Claim' button
3. Complete the form and click the 'Create' button
4. Navigate to Workloads > Virtualization > Virtual Machine Templates
5. Create a VM template in the same workspace (the PVC you created need not be used)
6. Go to the VM templates overview page and click the Disks tab

Actual results:
An error that says "Oh no! Something went wrong." is displayed along with a stack trace.


Expected results:
The list of disks should be displayed.


Additional info:
This appears to occur because PVCs created through the PVC wizard don't have the metadata.ownerReferences property. This causes an NPE, which then causes the error.

Comment 4 Guohua Ouyang 2020-07-02 03:46:35 UTC
It's still reproduced on master.

Comment 5 Tomas Jelinek 2020-07-10 05:36:51 UTC
has been fixed, only waiting for the new build

Comment 7 Guohua Ouyang 2020-07-14 06:15:12 UTC
verified on upstream 4.6 branch

Comment 9 errata-xmlrpc 2020-10-27 16:05: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 (OpenShift Container Platform 4.6 GA Images), 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/RHBA-2020:4196


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