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

Blocked uninstallation: sg can't be deleted - unexpected aws instance

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • No
    • None
    • None
    • Rejected
    • Hypershift Sprint 233, Hypershift Sprint 234
    • 2
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      CPO is stuck uninstalling when trying to delete a security group:

       

      {"level":"error","ts":"2023-03-17T13:10:48Z","msg":"Reconciler error","controller":"hostedcontrolplane","controllerGroup":"hypershift.openshift.io","controllerKind":"HostedControlPlane","hostedControlPlane":{"name":"sda-it-m2g6","namespace":"ocm-staging-22fkumhptsdfbgdph1h4s71mv9kf0vdn-sda-it-m2g6"},"namespace":"ocm-staging-22fkumhptsdfbgdph1h4s71mv9kf0vdn-sda-it-m2g6","name":"sda-it-m2g6","reconcileID":"3e622494-5a02-4c8f-977c-b5e60c1697b8","error":"failed to delete AWS default security group: failed to delete security group sg-08fc0ee2155d2105c: DependencyViolation: resource sg-08fc0ee2155d2105c has a dependent object\n\tstatus code: 400, request id: a7c1fb52-5bec-4411-ba38-e9197f34970a","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:234"} 

       

       

      This SG still has a network interface associated (eni-0f86de8e4dcc95a83), which is associated to a still running aws instance (i-07ca12633de9c9ec7).

      This instance is not tracked by resources anymore:

      $ oc get awsmachines -n ocm-staging-22fkumhptsdfbgdph1h4s71mv9kf0vdn-sda-it-m2g6
      No resources found in ocm-staging-22fkumhptsdfbgdph1h4s71mv9kf0vdn-sda-it-m2g6 namespace.
       
      $ oc get machines.cluster.x-k8s.io -n ocm-staging-22fkumhptsdfbgdph1h4s71mv9kf0vdn-sda-it-m2g6
      No resources found in ocm-staging-22fkumhptsdfbgdph1h4s71mv9kf0vdn-sda-it-m2g6 namespace.

      Hint?: We are potentially skipping deletion of the dependant objects, which result in not being able to delete the SG.

       

      Cluster: 22fkumhptsdfbgdph1h4s71mv9kf0vdn on staging
      CPO version: 4.12.7, HO version: openshift/hypershift 42e85b6ed107c4b99a5ef00b886e1943ea896095

       

              cewong@redhat.com Cesar Wong
              cbusse.openshift Claudio Busse
              Claudio Busse
              None
              Jie Zhao Jie Zhao
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: