Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-11558

Operator fails to reconcile 3scale Product {"system_name":["has already been taken"]} - code: 422

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 2.14.0 GA, 2.15.0 GA
    • 3scale Operator
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • RHOAM Sprint 68
    • Critical

      When deploying a product, application, and backend via the operator in 3scale 2.14 & 2.15, the product, application, and backend are created. 

      After deleting the same from the operator and immediately creating it again throws the below error. 

       

      37m         Warning   ReconcileError   product/example-service-product   reconcile3scaleProduct product [example-service-product]: error calling 3scale system - reason: {"system_name":["has already been taken"]} - code: 422 

       

      The operator pod log shows the below error.

      {"level":"error","ts":1735825738.9546885,"msg":"Reconciler error","controller":"product","controllerGroup":"capabilities.3scale.net","controllerKind":"Product","product":{"name":"example-service-product","namespace":"3scale"},"namespace":"3scale","name":"example-service-product","reconcileID":"ae5b8e66-46f9-4cf3-a54c-b03b39dfedc0","error":"reconcile3scaleProduct product [example-service-product]: error calling 3scale system - reason: {\"system_name\":[\"has already been taken\"]} - code: 422","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.2/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.2/pkg/internal/controller/controller.go:234"} 

      Steps to reproduce:

      1. Deploy Backend, application & Product via operator.
      2. Delete  Backend, application & Product via operator.
      3. Deploy Backend, application & Product via operator again immediately.
      4. Product deployment fails with the above error mentioned.

      Note: The issue automatically gets corrected after ~3 or ~5 minutes & product becomes available in the 3scale.

       

       

       

       

       

              Unassigned Unassigned
              aakhtar@redhat.com Arshad Aziz
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: