Bug 2033051 - ACM application placement fails after renaming the application name
Summary: ACM application placement fails after renaming the application name
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: App Lifecycle
Version: rhacm-2.4.z
Hardware: All
OS: All
unspecified
high
Target Milestone: ---
: rhacm-2.4.3
Assignee: Feng Xiang
QA Contact: Almen Ng
bswope@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-15 19:03 UTC by Neha Chugh
Modified: 2022-04-20 23:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-20 23:47:28 UTC
Target Upstream Version:
Embargoed:
bot-tracker-sync: rhacm-2.4.z+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github open-cluster-management backlog issues 18550 0 None None None 2021-12-15 21:29:26 UTC
Red Hat Product Errata RHSA-2022:1476 0 None None None 2022-04-20 23:48:48 UTC

Description Neha Chugh 2021-12-15 19:03:36 UTC
Description of the problem:

ACM application placement doesn't update with change of the application name

Release version:
2.4.1

Operator snapshot version:

NA

OCP version:
NA


Browser Info:
NA

Steps to reproduce:
1. Navigate to Application -> create a subscription.
2. Enter application name as "abc" and select the placement configuration based on label for example environment=dev
3. Then change the name of application to "xyz" and save the changes.

Now, in topological view of the application it will appear like below:

Subscription failed with below status:

Cluster deploy status
local-cluster: PropagationFailed
Error: PlacementRule.apps.open-cluster-management.io "abc-placement-1" not found


Actual results:

When the placement selected based on the label, it automatically name the placement in context to application name as prefix and when we change the application name to "xyz" the placement name doesn't refresh with the new updation and the subscription failed as the old name doesn't found.

Expected results:

New placement name should be updated with any updation made in the application name.

Additional info:

Comment 2 Almen Ng 2022-01-31 21:53:27 UTC
Tested on `2.4.2-DOWNSTREAM-2022-01-28-23-20-07` on OCP `4.8.2`. The bug is still reproduceable.

Comment 3 bot-tracker-sync 2022-02-02 18:44:18 UTC
G2Bsync 1028160653 comment 
 KevinFCormier Wed, 02 Feb 2022 17:10:44 UTC 
 G2Bsync @almen-ng Thanks Almen. I was able to reproduce. @jeswanke the fix seems to miss the placementRef of the Subscription.

Comment 10 errata-xmlrpc 2022-04-20 23:47:28 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: Red Hat Advanced Cluster Management 2.4.3 security updates and bug fixes), 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:1476


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