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

Reconciliation error after updating the secret that contains the OpenAPI spec

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.15.3 GA
    • 3scale Operator
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      Current Behaviour
      When updating the OpenAPI spec in the secret linked to the OpenAPI CR, the operator throws an error when reconciling the product: 

      {"level":"error","ts":"2025-07-02T11:13:17Z","logger":"controllers.Product","msg":"Failed to reconcile","product":{"name":"testapi-18eeaec0-d874-4e94-bc4c-f10ff7a43bfe","namespace":"3scale"},"error":"Task failed SyncApplicationPlans: Error sync product [test] plans: product [test] delete applicationPlan: error calling 3scale system - reason: {\"errors\":{\"base\":[\"This application plan cannot be deleted! At least one application depends on it.\"]}} - code: 403","stacktrace":
      

      Steps to reproduce
      1. Create a secret that contains an OpenAPI spec
      2. Create the OpenAPI CR
      3. Create an application plan from the 3scale UI
      4. Create an application with a user_key from the 3scale UI
      5. Make sure that at least apicast-staging has a route created. Otherwise create a route and make a curl request to test that it works.
      6. Update the secret that contains the OpenAPI, for example update the mapping rule

      Expected behaviour
      When updating the OpenAPI spec in the secret, even though the Product has applications and application plans, the new information is updated in the Product. Any update should be feasible to modify the Product through the secret, the same way it is possible when configuring a Product through the 3scale admin portal UI.

              Unassigned Unassigned
              rhn-support-avilatus Anna Vila Tusell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: