Bug 2080873 - Topology graph crashes after update to 4.11 when Layout 2 (ColaForce) was selected previously
Summary: Topology graph crashes after update to 4.11 when Layout 2 (ColaForce) was sel...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.11
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.11.0
Assignee: Christoph Jerolimov
QA Contact: spathak@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-02 08:59 UTC by Christoph Jerolimov
Modified: 2022-08-10 11:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 11:09:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11427 0 None open Bug 2080873: Fix crash when stored topology layout isn't supported anymore 2022-05-03 10:32:55 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:10:02 UTC

Description Christoph Jerolimov 2022-05-02 08:59:03 UTC
Description of problem:
When the user has selected 'Layout 2' (internal called ColaForce layout) the topology crashes and catches an error:

  Could not find layout for type: ColaForce

The old layout could be selected in 4.10 and is not available anymore in 4.11.


Version-Release number of selected component (if applicable):
4.11 (master, tested with ea282e6a617b1a0638be23058a37c5914f3c8ccc)

How reproducible:
Always

Steps to Reproduce:
In theory, update a cluster from 4.10 to 4.11...

Local development:
1. Checkout `branch-4.10`, build it, run it
2. Import an application, open the topology graph view and switch to Layout 2
3. Checkout `branch-4.11`, or master, build it, run it.
4. Re-open or refresh your browser and open the same namespace

Or setting the ConfigMap manually:
1. Search in the namespace "openshift-console-user-settings" for the user settings ConfigMap of your user.
2. Override this topology YAML (replace sidebar1 with your namespace):

  devconsole.topology.layout: '{"sidebar1":{"nodes":[],"layout":"ColaForce"}}'


Actual results:
Topology crashes with error: Could not find layout for type: ColaForce

Expected results:
Topology should not crash and should unset the removed layout

Additional info:

Comment 3 Christoph Jerolimov 2022-05-23 08:53:30 UTC
Verified on 4.11.0-0.nightly-2022-05-20-213928

Comment 5 errata-xmlrpc 2022-08-10 11:09:50 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 (Important: OpenShift Container Platform 4.11.0 bug fix and 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:5069


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