Bug 2020904 - When trying to create a connection from the Developer view between VMs, it fails
Summary: When trying to create a connection from the Developer view between VMs, it fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.10.0
Assignee: Mohammed Saud
QA Contact: spathak@redhat.com
Rolfe Dlugy-Hegwer
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-07 07:10 UTC by Yaacov Zamir
Modified: 2022-03-10 16:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
* Before this update, trying to create connections between virtual machines (VMs) in the *Topology* view failed with an "Error creating connection" message. This issue happened because this action relied on a method that did not support custom resource definition (CRDs). This update resolves the issue by adding support for CRDs. Now you can create connections between VMs. (link:https://bugzilla.redhat.com/show_bug.cgi?id=2020904[BZ#2020904])
Clone Of:
Environment:
Last Closed: 2022-03-10 16:25:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
error popup (100.77 KB, image/png)
2021-11-07 07:10 UTC, Yaacov Zamir
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 10584 0 None open Bug 2020904: Add edge items in kubevirt topology data model factory 2021-11-30 13:10:38 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:25:52 UTC

Description Yaacov Zamir 2021-11-07 07:10:07 UTC
Created attachment 1840517 [details]
error popup

Description of problem:
When trying to create a connection from the Developer view between VMs, it fails 

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


How reproducible:


Steps to Reproduce:
1. go to topology  view
2. try to create a connection from the Developer view between VMs
3.

Actual results:
An error: Unable to retrieve model for VirtualMachine

Expected results:
A connection is made

Additional info:
The dev view is using `allModels` method that does not work on CRD's (VirtualMachine is a CRD)
[1] 
https://github.com/openshift/console/blob/68f58f20c2ad43b0cab33d5a4719900ff17caf44/frontend/packages/topology/src/utils/connector-utils.ts#L20

[2] https://github.com/openshift/console/blob/f33a05b60993fa0947e21a678bad2e2d8f258096/frontend/public/module/k8s/k8s-models.ts#L120

Comment 2 Karthik Jeeyar 2021-12-17 12:08:07 UTC
Verified on 
build : 4.10.0-0.ci-2021-12-16-184808
browswer: chrome-96.0

Comment 8 errata-xmlrpc 2022-03-10 16:25:33 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 (Moderate: OpenShift Container Platform 4.10.3 security update), 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-2022:0056


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