-
Bug
-
Resolution: Done-Errata
-
Normal
-
4.16, 4.17
This is a clone of issue OCPBUGS-35852. The following is the description of the original issue:
—
Description of problem:
When setting ENV OPENSHIFT_INSTALL_PRESERVE_BOOTSTRAP to keep bootstrap, and launch capi-based installation, installer exit with error when collecting applied cluster api manifests..., since local cluster api was already stopped. 06-20 15:26:51.216 level=debug msg=Machine jima417aws-gjrzd-bootstrap is ready. Phase: Provisioned 06-20 15:26:51.216 level=debug msg=Checking that machine jima417aws-gjrzd-master-0 has provisioned... 06-20 15:26:51.217 level=debug msg=Machine jima417aws-gjrzd-master-0 has status: Provisioned 06-20 15:26:51.217 level=debug msg=Checking that IP addresses are populated in the status of machine jima417aws-gjrzd-master-0... 06-20 15:26:51.217 level=debug msg=Checked IP InternalDNS: ip-10-0-50-47.us-east-2.compute.internal 06-20 15:26:51.217 level=debug msg=Found internal IP address: 10.0.50.47 06-20 15:26:51.217 level=debug msg=Machine jima417aws-gjrzd-master-0 is ready. Phase: Provisioned 06-20 15:26:51.217 level=debug msg=Checking that machine jima417aws-gjrzd-master-1 has provisioned... 06-20 15:26:51.217 level=debug msg=Machine jima417aws-gjrzd-master-1 has status: Provisioned 06-20 15:26:51.217 level=debug msg=Checking that IP addresses are populated in the status of machine jima417aws-gjrzd-master-1... 06-20 15:26:51.218 level=debug msg=Checked IP InternalDNS: ip-10-0-75-199.us-east-2.compute.internal 06-20 15:26:51.218 level=debug msg=Found internal IP address: 10.0.75.199 06-20 15:26:51.218 level=debug msg=Machine jima417aws-gjrzd-master-1 is ready. Phase: Provisioned 06-20 15:26:51.218 level=debug msg=Checking that machine jima417aws-gjrzd-master-2 has provisioned... 06-20 15:26:51.218 level=debug msg=Machine jima417aws-gjrzd-master-2 has status: Provisioned 06-20 15:26:51.218 level=debug msg=Checking that IP addresses are populated in the status of machine jima417aws-gjrzd-master-2... 06-20 15:26:51.218 level=debug msg=Checked IP InternalDNS: ip-10-0-60-118.us-east-2.compute.internal 06-20 15:26:51.218 level=debug msg=Found internal IP address: 10.0.60.118 06-20 15:26:51.218 level=debug msg=Machine jima417aws-gjrzd-master-2 is ready. Phase: Provisioned 06-20 15:26:51.218 level=info msg=Control-plane machines are ready 06-20 15:26:51.218 level=info msg=Cluster API resources have been created. Waiting for cluster to become ready... 06-20 15:26:51.219 level=warning msg=OPENSHIFT_INSTALL_PRESERVE_BOOTSTRAP is set, shutting down local control plane. 06-20 15:26:51.219 level=info msg=Shutting down local Cluster API control plane... 06-20 15:26:51.473 level=info msg=Stopped controller: Cluster API 06-20 15:26:51.473 level=info msg=Stopped controller: aws infrastructure provider 06-20 15:26:52.830 level=info msg=Local Cluster API system has completed operations 06-20 15:26:52.830 level=debug msg=Collecting applied cluster api manifests... 06-20 15:26:52.831 level=error msg=failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: [failed to get manifest openshift-cluster-api-guests: Get "https://127.0.0.1:46555/api/v1/namespaces/openshift-cluster-api-guests": dial tcp 127.0.0.1:46555: connect: connection refused, failed to get manifest default: Get "https://127.0.0.1:46555/apis/infrastructure.cluster.x-k8s.io/v1beta2/awsclustercontrolleridentities/default": dial tcp 127.0.0.1:46555: connect: connection refused, failed to get manifest jima417aws-gjrzd: Get "https://127.0.0.1:46555/apis/cluster.x-k8s.io/v1beta1/namespaces/openshift-cluster-api-guests/clusters/jima417aws-gjrzd": dial tcp 127.0.0.1:46555: connect: connection refused, failed to get manifest jima417aws-gjrzd: Get "https://127.0.0.1:46555/apis/infrastructure.cluster.x-k8s.io/v1beta2/namespaces/openshift-cluster-api-guests/awsclusters/jima417aws-gjrzd": dial tcp 127.0.0.1:46555: connect: connection refused, failed to get manifest jima417aws-gjrzd-bootstrap: Get "https://127.0.0.1:46555/apis/infrastructure.cluster.x-k8s.io/v1beta2/namespaces/openshift-cluster-api-guests/awsmachines/jima417aws-gjrzd-bootstrap": dial tcp 127.0.0.1:46555: connect: connection refused, failed to get manifest jima417aws-gjrzd-master-0: Get "https://127.0.0.1:46555/apis/infrastructure.cluster.x-k8s.io/v1beta2/namespaces/openshift-cluster-api-guests/awsmachines/jima417aws-gjrzd-master-0": dial tcp 127.0.0.1:46555: connect: connection refused, failed to get manifest jima417aws-gjrzd-master-1: Get "https://127.0.0.1:46555/apis/infrastructure.cluster.x-k8s.io/v1beta2/namespaces/openshift-cluster-api-guests/awsmachines/jima417aws-gjrzd-master-1": dial tcp 127.0.0.1:46555: connect: connection refused, failed to get manifest jima417aws-gjrzd-master-2: Get "https://127.0.0.1:46555/apis/infrastructure.cluster.x-k8s.io/v1beta2/namespaces/openshift-cluster-api-guests/awsmachines/jima417aws-gjrzd-master-2": dial tcp 127.0.0.1:46555: connect: connection refused, failed to get manifest jima417aws-gjrzd-bootstrap: Get "https://127.0.0.1:46555/apis/cluster.x-k8s.io/v1beta1/namespaces/openshift-cluster-api-guests/machines/jima417aws-gjrzd-bootstrap": dial tcp 127.0.0.1:46555: connect: connection refused, failed to get manifest jima417aws-gjrzd-master-0: Get "https://127.0.0.1:46555/apis/cluster.x-k8s.io/v1beta1/namespaces/openshift-cluster-api-guests/machines/jima417aws-gjrzd-master-0": dial tcp 127.0.0.1:46555: connect: connection refused, failed to get manifest jima417aws-gjrzd-master-1: Get "https://127.0.0.1:46555/apis/cluster.x-k8s.io/v1beta1/namespaces/openshift-cluster-api-guests/machines/jima417aws-gjrzd-master-1": dial tcp 127.0.0.1:46555: connect: connection refused, failed to get manifest jima417aws-gjrzd-master-2: Get "https://127.0.0.1:46555/apis/cluster.x-k8s.io/v1beta1/namespaces/openshift-cluster-api-guests/machines/jima417aws-gjrzd-master-2": dial tcp 127.0.0.1:46555: connect: connection refused, failed to get manifest jima417aws-gjrzd-bootstrap: Get "https://127.0.0.1:46555/api/v1/namespaces/openshift-cluster-api-guests/secrets/jima417aws-gjrzd-bootstrap": dial tcp 127.0.0.1:46555: connect: connection refused, failed to get manifest jima417aws-gjrzd-master: Get "https://127.0.0.1:46555/api/v1/namespaces/openshift-cluster-api-guests/secrets/jima417aws-gjrzd-master": dial tcp 127.0.0.1:46555: connect: connection refused]
Version-Release number of selected component (if applicable):
4.16/4.17 nightly build
How reproducible:
always
Steps to Reproduce:
1. Set ENV OPENSHIFT_INSTALL_PRESERVE_BOOTSTRAP 2. Trigger the capi-based installation 3.
Actual results:
Installer exited when collecting capi manifests.
Expected results:
Installation should be successful.
Additional info:
- clones
-
OCPBUGS-35852 [CAPI Install] Fail to collect applied cluster api manifests when setting ENV OPENSHIFT_INSTALL_PRESERVE_BOOTSTRAP
- Verified
- is blocked by
-
OCPBUGS-35852 [CAPI Install] Fail to collect applied cluster api manifests when setting ENV OPENSHIFT_INSTALL_PRESERVE_BOOTSTRAP
- Verified
- links to
-
RHBA-2024:4316 OpenShift Container Platform 4.16.z bug fix update