Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-33745

[CAPI install] failed to run command 'openshift-install destroy bootstrap'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.16
    • None
    • Important
    • No
    • Sprint 254
    • 1
    • Approved
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • In Progress

      Description of problem:

      Follow up the step described in https://github.com/openshift/installer/pull/8350 to destroy bootstrap server manually, failed with error `FATAL error destroying bootstrap resources failed to delete bootstrap machine: machines.cluster.x-k8s.io "jimatest-5sjqx-bootstrap" not found`
      
      
      # ./openshift-install version
      ./openshift-install 4.16.0-0.nightly-2024-05-15-001800
      built from commit 494b79cf906dc192b8d1a6d98e56ce1036ea932f
      release image registry.ci.openshift.org/ocp/release@sha256:d055d117027aa9afff8af91da4a265b7c595dc3ded73a2bca71c3161b28d9d5d
      release architecture amd64
      
      On AWS:
      # ./openshift-install create cluster --dir ipi-aws
      INFO Credentials loaded from the "default" profile in file "/root/.aws/credentials" 
      WARNING failed to find default instance type: no instance type found for the zone constraint 
      WARNING failed to find default instance type for worker pool: no instance type found for the zone constraint 
      INFO Consuming Install Config from target directory 
      WARNING failed to find default instance type: no instance type found for the zone constraint 
      WARNING FeatureSet "TechPreviewNoUpgrade" is enabled. This FeatureSet does not allow upgrades and may affect the supportability of the cluster. 
      INFO Creating infrastructure resources...         
      INFO Creating IAM roles for control-plane and compute nodes 
      INFO Started local control plane with envtest     
      INFO Stored kubeconfig for envtest in: /tmp/jima/ipi-aws/auth/envtest.kubeconfig 
      INFO Running process: Cluster API with args [-v=2 --diagnostics-address=0 --health-addr=127.0.0.1:44379 --webhook-port=44331 --webhook-cert-dir=/tmp/envtest-serving-certs-1391600832] 
      INFO Running process: aws infrastructure provider with args [-v=4 --diagnostics-address=0 --health-addr=127.0.0.1:42725 --webhook-port=45711 --webhook-cert-dir=/tmp/envtest-serving-certs-1758849099 --feature-gates=BootstrapFormatIgnition=true,ExternalResourceGC=true] 
      INFO Created manifest *v1.Namespace, namespace= name=openshift-cluster-api-guests 
      INFO Created manifest *v1beta2.AWSClusterControllerIdentity, namespace= name=default 
      INFO Created manifest *v1beta1.Cluster, namespace=openshift-cluster-api-guests name=jima16a-2xszh 
      INFO Created manifest *v1beta2.AWSCluster, namespace=openshift-cluster-api-guests name=jima16a-2xszh 
      INFO Waiting up to 15m0s (until 11:01PM EDT) for network infrastructure to become ready... 
      INFO Network infrastructure is ready              
      INFO Creating private Hosted Zone                 
      INFO Creating Route53 records for control plane load balancer 
      INFO Created manifest *v1beta2.AWSMachine, namespace=openshift-cluster-api-guests name=jima16a-2xszh-bootstrap 
      INFO Created manifest *v1beta2.AWSMachine, namespace=openshift-cluster-api-guests name=jima16a-2xszh-master-0 
      INFO Created manifest *v1beta2.AWSMachine, namespace=openshift-cluster-api-guests name=jima16a-2xszh-master-1 
      INFO Created manifest *v1beta2.AWSMachine, namespace=openshift-cluster-api-guests name=jima16a-2xszh-master-2 
      INFO Created manifest *v1beta1.Machine, namespace=openshift-cluster-api-guests name=jima16a-2xszh-bootstrap 
      INFO Created manifest *v1beta1.Machine, namespace=openshift-cluster-api-guests name=jima16a-2xszh-master-0 
      INFO Created manifest *v1beta1.Machine, namespace=openshift-cluster-api-guests name=jima16a-2xszh-master-1 
      INFO Created manifest *v1beta1.Machine, namespace=openshift-cluster-api-guests name=jima16a-2xszh-master-2 
      INFO Created manifest *v1.Secret, namespace=openshift-cluster-api-guests name=jima16a-2xszh-bootstrap 
      INFO Created manifest *v1.Secret, namespace=openshift-cluster-api-guests name=jima16a-2xszh-master 
      INFO Waiting up to 15m0s (until 11:07PM EDT) for machines to provision... 
      INFO Control-plane machines are ready             
      INFO Cluster API resources have been created. Waiting for cluster to become ready... 
      INFO Waiting up to 20m0s (until 11:12PM EDT) for the Kubernetes API at https://api.jima16a.qe.devcluster.openshift.com:6443... 
      INFO API v1.29.4+4a87b53 up                       
      INFO Waiting up to 30m0s (until 11:25PM EDT) for bootstrapping to complete... 
      ^CWARNING Received interrupt signal                    
      INFO Shutting down local Cluster API control plane... 
      INFO Stopped controller: Cluster API              
      INFO Stopped controller: aws infrastructure provider 
      INFO Local Cluster API system has completed operations 
      
      # ./openshift-install destroy bootstrap --dir ipi-aws
      INFO Started local control plane with envtest     
      INFO Stored kubeconfig for envtest in: /tmp/jima/ipi-aws/auth/envtest.kubeconfig 
      INFO Running process: Cluster API with args [-v=2 --diagnostics-address=0 --health-addr=127.0.0.1:45869 --webhook-port=43141 --webhook-cert-dir=/tmp/envtest-serving-certs-3670728979] 
      INFO Running process: aws infrastructure provider with args [-v=4 --diagnostics-address=0 --health-addr=127.0.0.1:46111 --webhook-port=35061 --webhook-cert-dir=/tmp/envtest-serving-certs-3674093147 --feature-gates=BootstrapFormatIgnition=true,ExternalResourceGC=true] 
      FATAL error destroying bootstrap resources failed to delete bootstrap machine: machines.cluster.x-k8s.io "jima16a-2xszh-bootstrap" not found 
      INFO Shutting down local Cluster API control plane... 
      INFO Stopped controller: Cluster API              
      INFO Stopped controller: aws infrastructure provider 
      INFO Local Cluster API system has completed operations 
      
      Same issue on vSphere:
      # ./openshift-install create cluster --dir ipi-vsphere/
      INFO Consuming Install Config from target directory 
      WARNING FeatureSet "CustomNoUpgrade" is enabled. This FeatureSet does not allow upgrades and may affect the supportability of the cluster. 
      INFO Creating infrastructure resources...         
      INFO Started local control plane with envtest     
      INFO Stored kubeconfig for envtest in: /tmp/jima/ipi-vsphere/auth/envtest.kubeconfig 
      INFO Running process: Cluster API with args [-v=2 --diagnostics-address=0 --health-addr=127.0.0.1:39945 --webhook-port=36529 --webhook-cert-dir=/tmp/envtest-serving-certs-3244100953] 
      INFO Running process: vsphere infrastructure provider with args [-v=2 --diagnostics-address=0 --health-addr=127.0.0.1:45417 --webhook-port=37503 --webhook-cert-dir=/tmp/envtest-serving-certs-3224060135 --leader-elect=false] 
      INFO Created manifest *v1.Namespace, namespace= name=openshift-cluster-api-guests 
      INFO Created manifest *v1beta1.Cluster, namespace=openshift-cluster-api-guests name=jimatest-5sjqx 
      INFO Created manifest *v1beta1.VSphereCluster, namespace=openshift-cluster-api-guests name=jimatest-5sjqx 
      INFO Created manifest *v1.Secret, namespace=openshift-cluster-api-guests name=vsphere-creds 
      INFO Waiting up to 15m0s (until 10:47PM EDT) for network infrastructure to become ready... 
      INFO Network infrastructure is ready              
      INFO Created manifest *v1beta1.VSphereMachine, namespace=openshift-cluster-api-guests name=jimatest-5sjqx-bootstrap 
      INFO Created manifest *v1beta1.VSphereMachine, namespace=openshift-cluster-api-guests name=jimatest-5sjqx-master-0 
      INFO Created manifest *v1beta1.VSphereMachine, namespace=openshift-cluster-api-guests name=jimatest-5sjqx-master-1 
      INFO Created manifest *v1beta1.VSphereMachine, namespace=openshift-cluster-api-guests name=jimatest-5sjqx-master-2 
      INFO Created manifest *v1beta1.Machine, namespace=openshift-cluster-api-guests name=jimatest-5sjqx-bootstrap 
      INFO Created manifest *v1beta1.Machine, namespace=openshift-cluster-api-guests name=jimatest-5sjqx-master-0 
      INFO Created manifest *v1beta1.Machine, namespace=openshift-cluster-api-guests name=jimatest-5sjqx-master-1 
      INFO Created manifest *v1beta1.Machine, namespace=openshift-cluster-api-guests name=jimatest-5sjqx-master-2 
      INFO Created manifest *v1.Secret, namespace=openshift-cluster-api-guests name=jimatest-5sjqx-bootstrap 
      INFO Created manifest *v1.Secret, namespace=openshift-cluster-api-guests name=jimatest-5sjqx-master 
      INFO Waiting up to 15m0s (until 10:47PM EDT) for machines to provision... 
      INFO Control-plane machines are ready             
      INFO Cluster API resources have been created. Waiting for cluster to become ready... 
      INFO Waiting up to 20m0s (until 10:57PM EDT) for the Kubernetes API at https://api.jimatest.qe.devcluster.openshift.com:6443... 
      INFO API v1.29.4+4a87b53 up                       
      INFO Waiting up to 1h0m0s (until 11:37PM EDT) for bootstrapping to complete... 
      ^CWARNING Received interrupt signal                    
      INFO Shutting down local Cluster API control plane... 
      INFO Stopped controller: Cluster API              
      INFO Stopped controller: vsphere infrastructure provider 
      INFO Local Cluster API system has completed operations 
       
      # ./openshift-install destroy bootstrap --dir ipi-vsphere/
      INFO Started local control plane with envtest     
      INFO Stored kubeconfig for envtest in: /tmp/jima/ipi-vsphere/auth/envtest.kubeconfig 
      INFO Running process: Cluster API with args [-v=2 --diagnostics-address=0 --health-addr=127.0.0.1:34957 --webhook-port=34511 --webhook-cert-dir=/tmp/envtest-serving-certs-94748118] 
      INFO Running process: vsphere infrastructure provider with args [-v=2 --diagnostics-address=0 --health-addr=127.0.0.1:42073 --webhook-port=46721 --webhook-cert-dir=/tmp/envtest-serving-certs-4091171333 --leader-elect=false] 
      FATAL error destroying bootstrap resources failed to delete bootstrap machine: machines.cluster.x-k8s.io "jimatest-5sjqx-bootstrap" not found 
      INFO Shutting down local Cluster API control plane... 
      INFO Stopped controller: Cluster API              
      INFO Stopped controller: vsphere infrastructure provider 
      INFO Local Cluster API system has completed operations 
      
      
      

      Version-Release number of selected component (if applicable):

          4.16.0-0.nightly-2024-05-15-001800

      How reproducible:

          Always

      Steps to Reproduce:

          1. Create cluster
          2. Interrupt the installation when waiting for bootstrap completed
          3. Run command "openshift-install destroy bootstrap --dir <dir>" to destroy bootstrap manually
          

      Actual results:

          Failed to destroy bootstrap through command 'openshift-install destroy bootstrap --dir <dir>'

      Expected results:

          Bootstrap host is destroyed successfully

      Additional info:

          

            padillon Patrick Dillon
            jinyunma Jinyun Ma
            Jinyun Ma Jinyun Ma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: