Bug 2110570

Summary: Topology sidebar: Edit pod count shows not the latest replicas value when edit the count again
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Lokananda Prabhu <lprabhu>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: high    
Version: 4.9CC: hyupark, lprabhu, nmukherj
Target Milestone: ---   
Target Release: 4.13.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: The topology sidebar action dropdown uses a resource copy when opening the topology sidebar and doesn't update it after that. Consequence: The data used in the actions don't reflect the latest resource data shown in the topology graph and topology sidebar. The user needs to close and reopen the topology sidebar to see the latest data. Fix: The "Edit Pod Count" action uses now the latest data. Result: The user can now edit the pod count twice and saw the latest changes when changing it again. Known issue: Other actions still use old data. We track this issue at https://issues.redhat.com/browse/OCPBUGS-4691
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-17 22:46:56 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:
Attachments:
Description Flags
edit-pod-count-is-not-updated-in-topology-sidebar.mp4 none

Description Christoph Jerolimov 2022-07-25 16:18:41 UTC
Description of problem:
This is a follow-up bug report on the issue https://bugzilla.redhat.com/show_bug.cgi?id=2064256, https://bugzilla.redhat.com/show_bug.cgi?id=2103031, and many others. See also: https://github.com/openshift/console/pull/11420

The issue was found by @hyupark in https://bugzilla.redhat.com/show_bug.cgi?id=2103031#c27

The action "Edit Pod count" doesn't show the latest deployment replicas values when opening multiple times. The same action works fine when right-clicking the deployment or opening the action on the Deployment list page or the Deployment details page.

(This might also affect DeploymentConfigs and Serverless Services?)

Version-Release number of selected component (if applicable):
Works fine on 4.8
Could reproduce this issue on 4.9-4.12

How reproducible:
Always

Steps to Reproduce:
1. Switch to developer perspective
2. Import a Deployment from a container image or from git
3. Select the Deployment in the topology to open the sidebar
4. Select the Action "Edit pod count" and change the pod (replicas) count
5. Select the Action again

Actual results:
The pod count in the modal (replicas) shows the old value and not the updated replicas count.

Expected results:
The pod count in the modal (replicas) should show the latest replicas value.

Additional info:

Comment 2 Lokananda Prabhu 2022-08-08 05:19:06 UTC
Moving back to todo list as it is not only issue with pod count, most of the topology sidebar action menus are having same issue. Description needs to be updated along with bug summary.

Comment 9 Christoph Jerolimov 2022-12-15 11:34:32 UTC
Verified this fix on 4.13.0-0.nightly-2022-12-12-210406

"Edit Pod count" shows now the latest Deployment replicas count.

But I also notice that other items don't show the latest values.

I created a follow-up ticket for this: https://issues.redhat.com/browse/OCPBUGS-4691
And raised a fix for 4.13 which is already merged: https://github.com/openshift/console/pull/12365

We will also backport this to older versions.

Comment 12 errata-xmlrpc 2023-05-17 22:46:56 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.13.0 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-2023:1326

Comment 13 Red Hat Bugzilla 2023-09-18 04:42:55 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days