Bug 2121063 - Production RHACM upgrade from v2.4.2 to 2.5.1
Summary: Production RHACM upgrade from v2.4.2 to 2.5.1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: App Lifecycle
Version: rhacm-2.5
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: rhacm-2.5.3
Assignee: Feng Xiang
QA Contact: Almen Ng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-24 11:22 UTC by mheppler
Modified: 2022-10-13 19:42 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-10-13 19:42:47 UTC
Target Upstream Version:
Embargoed:
dho: qe_test_coverage+
bot-tracker-sync: rhacm-2.5.z+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github stolostron backlog issues 25279 0 None None None 2022-08-24 14:39:25 UTC
Red Hat Product Errata RHSA-2022:6954 0 None None None 2022-10-13 19:42:54 UTC

Description mheppler 2022-08-24 11:22:22 UTC
Description of the problem:

After upgrade to v2.5.1 from v2.4.2, there is a RHACM application that wants to deploy on the target clusters OpenShift GitOps/Argo CD applications and applicationsets, but it fails with the following error:

```
Error: This application has no matched subscription. Make sure the subscription match selector spec.selector.matchExpressions exists and matches a Subscription resource created in the namespace.
```

This application worked on RHACM version 2.4.x and earlier.
From the error above, it seems to me that it is misinterpreting the type of resource, expecting an application Argo CD to have an associated subscription.
An Argo CD application does not have the attribute `spec.selector.matchExpressions`.
All other resources, except the kind Application and Applicationsets, are deployed correctly.


Release version:

ACM 2.5.1

Operator snapshot version:

OCP version:

Browser Info:

Steps to reproduce:
1.
2.
3.

Actual results:

Expected results:

Additional info:

namespaces/open-cluster-management/pods/multicluster-operators-application-b67f6ccc7-mtc2w


./namespaces/open-cluster-management/pods/multicluster-operators-application-b67f6ccc7-mtc2w/multicluster-operators-application/multicluster-operators-application/logs/current.log:2022-08-23T08:30:57.037013402Z E0823 08:30:57.036971       1 application_controller.go:235] Error returned when updating application :Operation cannot be fulfilled on applications.app.k8s.io "argocd": the object has been modified; please apply your changes to the latest version and try againinstance:openshift-gitops/argocd
./namespaces/open-cluster-management/pods/multicluster-operators-application-b67f6ccc7-mtc2w/multicluster-operators-application/multicluster-operators-application/logs/current.log:2022-08-23T08:34:32.537520749Z E0823 08:34:32.537472       1 application_controller.go:235] Error returned when updating application :Operation cannot be fulfilled on applications.app.k8s.io "argocd": the object has been modified; please apply your changes to the latest version and try againinstance:openshift-gitops/argocd

Comment 3 bot-tracker-sync 2022-08-31 21:04:01 UTC
G2Bsync 1233395339 comment 
 fxiang1 Wed, 31 Aug 2022 20:36:00 UTC 
 G2Bsync
Fix delivered to 2.7. Still waiting for 2.5.z and 2.6.z streams open so I can cherry pick the fixes to those streams.

Comment 4 bot-tracker-sync 2022-09-15 15:46:56 UTC
G2Bsync 1248176735 comment 
 fxiang1 Thu, 15 Sep 2022 14:24:04 UTC 
 G2Bsync
Fix cherry picked to the 2.5.z stream. Now just waiting for the 2.6.z stream to open up.

Comment 5 bot-tracker-sync 2022-09-26 19:44:19 UTC
G2Bsync 1258506590 comment 
 fxiang1 Mon, 26 Sep 2022 19:20:43 UTC 
 G2Bsync
Fix cherry picked to the 2.6.z stream.

Comment 6 Ishmam Amin 2022-10-04 17:46:17 UTC
Created attachment 1916010 [details]
ApplicationSet and Application deploys successfully

In ACM 2.5.3, the ApplicationSet and Application resource topology deploys as expected with no errors present

Comment 7 Ishmam Amin 2022-10-05 19:29:17 UTC
Verified on Fresh install environment and Y-upgrade environment

Comment 12 errata-xmlrpc 2022-10-13 19:42:47 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.5.3 security fixes 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:6954


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