Bug 1969547 - [master] SNO with AI/operator - kubeconfig secret is not created until the spoke is deployed
Summary: [master] SNO with AI/operator - kubeconfig secret is not created until the sp...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.9.0
Assignee: Fred Rolland
QA Contact: Omri Hochman
URL:
Whiteboard: AI-Team-Hive KNI-EDGE-4.8
Depends On:
Blocks: 1970395
TreeView+ depends on / blocked
 
Reported: 2021-06-08 15:03 UTC by Alexander Chuzhoy
Modified: 2021-10-18 17:33 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1970395 (view as bug list)
Environment:
Last Closed: 2021-10-18 17:33:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift assisted-service pull 2041 0 None open Bug 1969547: Create KubeConfig Secret when install starts 2021-06-20 12:14:29 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:33:36 UTC

Internal Links: 1970395

Description Alexander Chuzhoy 2021-06-08 15:03:48 UTC
Version:
4.8.0-fc.7

The <clusterdeployment name>-admin-kubeconfig secret doesn't get created until the spoke cluster is successfully deployed.
Ths makes it harder to debug issues during deployment


Steps to reproduce: attempt to deploy a spoke cluster with AI/operator.
Try to retrieve the secret with kubeconfig:
oc get secret `oc get cd -o custom-columns=:.metadata.name`-admin-kubeconfig  -o json|jq -r ".data.kubeconfig"|base64 -d



result:

Error from server (NotFound): secrets "<clusterdeployment>-admin-kubeconfig" not found                                                                               


Expected result:
we should get the secret sooner in order to debug possible issues.

Comment 1 Michael Filanov 2021-06-10 12:04:42 UTC
Need to upload the secret twice, once when the installation stars, that will upload the kubeconfig without ingress CA and once again when the installation finish.

Comment 3 Alexander Chuzhoy 2021-06-23 18:06:07 UTC
I'm still seeing this issue with:
HUB: 4.8.0-0.nightly-2021-06-23-045512
quay.io/acm-d/acm-custom-registry:2.3.0-DOWNSTREAM-2021-06-22-17-34-59

SPOKE: 4.8.0-fc.9

Which version should I look for?

Comment 4 Fred Rolland 2021-06-24 05:04:18 UTC
Hi, this is the master bug.
You should look at https://bugzilla.redhat.com/show_bug.cgi?id=1970395

Comment 7 errata-xmlrpc 2021-10-18 17:33:16 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: OpenShift Container Platform 4.9.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-2021:3759


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