Bug 2080873

Summary: Topology graph crashes after update to 4.11 when Layout 2 (ColaForce) was selected previously
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Christoph Jerolimov <cjerolim>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: high Docs Contact:
Priority: high    
Version: 4.11CC: aos-bugs, nmukherj
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 11:09:50 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 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