Bug 2117480 - [ACM 2.6] infra-id of HypershiftDeployment doesn't work
Summary: [ACM 2.6] infra-id of HypershiftDeployment doesn't work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: Cluster Lifecycle
Version: rhacm-2.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: rhacm-2.6
Assignee: Le Yang
QA Contact: Hui Chen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-11 06:32 UTC by Song Lai
Modified: 2022-09-06 22:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-06 22:35:31 UTC
Target Upstream Version:
Embargoed:
bot-tracker-sync: rhacm-2.6+
cbynum: rhacm-2.6.z+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github stolostron backlog issues 25030 0 None None None 2022-08-11 07:00:56 UTC
Red Hat Product Errata RHSA-2022:6370 0 None None None 2022-09-06 22:35:39 UTC

Description Song Lai 2022-08-11 06:32:46 UTC
Description of the problem:
- create a managedcluster cr for hypershift provisioning 
```
oc apply -f - <<EOF
apiVersion: cluster.open-cluster-management.io/v1
kind: ManagedCluster
metadata:
  name: hypershift-cluster2
  annotations:
    import.open-cluster-management.io/klusterlet-deploy-mode: Hosted
    import.open-cluster-management.io/hosting-cluster-name: hosting-cluster
    import.open-cluster-management.io/klusterlet-namespace: hypershift-cluster2-onsite
    addon.open-cluster-management.io/disable-automatic-installation: "true"
spec:
  hubAcceptsClient: true
EOF
```

- create HypershiftDeployment
```
oc apply -f - <<EOF
apiVersion: cluster.open-cluster-management.io/v1alpha1
kind: HypershiftDeployment
metadata:
  name: song-hypershift2
  namespace: default
spec:
  hostingCluster: hosting-cluster
  hostingNamespace: clusters
  infra-id: hypershift-cluster2
  infrastructure:
    cloudProvider:
      name: song-aws-conn
    configure: True
    platform:
      aws:
        region: us-east-1
EOF
```

- result: 

```
% oc get mcl
NAME                  HUB ACCEPTED   MANAGED CLUSTER URLS                                                                         JOINED   AVAILABLE   AGE
customer-cluster1     true           https://api.slai-aws-spoke1.dev09.red-chesterfield.com:6443                                  True     True        142m
hosting-cluster       true           https://api.slai-aws-spoke2.dev09.red-chesterfield.com:6443                                  True     True        149m
hypershift-cluster1   true           https://aab5777c8c1de4cd98a72a353c60657e-2a06a7ede3782f92.elb.us-east-1.amazonaws.com:6443   True     True        138m
hypershift-cluster2   true                                                                                                                 Unknown     8m8s
local-cluster         true           https://api.slai-aws-hub2.dev09.red-chesterfield.com:6443                                    True     True        5h8m
song-hypershift       true           https://aab5777c8c1de4cd98a72a353c60657e-2a06a7ede3782f92.elb.us-east-1.amazonaws.com:6443   True     True        137m
song-hypershift2      true                                                                                                        True     True        7m40s
```

Release version:
2.6

Operator snapshot version:
2.0.1-DOWNANDBACK-2022-06-20-19-01-04

OCP version:
4.10.24


Browser Info:
Firefox


Steps to reproduce:
1.

Actual results:


Expected results:


Additional info:

Comment 1 Song Lai 2022-08-11 07:10:13 UTC
doc issue, downgrade the severity.

Comment 2 Le Yang 2022-08-11 08:27:11 UTC
SD doc has been updated. Please verify.

Comment 3 bot-tracker-sync 2022-08-15 22:24:38 UTC
G2Bsync 1211670959 comment 
 elgnay Thu, 11 Aug 2022 08:04:02 UTC 
 G2Bsync  Some [changes](https://github.com/stolostron/hypershift-deployment-controller/pull/151) made on hypershift-deployment-controller repo recently to support `HypershiftDeployment` creates `ManagedCluster` with `HypershiftDeployment.Name`. `HypershiftDeployment.Spec.InfraID` no longer works.

I have updated the [SD doc](https://docs.google.com/document/d/13NPcFrQAYe4ar9uC_a7hEQ4jVUS-q8HT2Q4t5lmXd0Q/edit?usp=sharing) to reflect this change. Please verify with the latest doc.

Comment 7 errata-xmlrpc 2022-09-06 22:35:31 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.6.0 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:6370


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