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

3scale Backend Operator capability does not allow creating more than 500 Backends

    XMLWordPrintable

Details

    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
      • Use 3scale toolbox or 3scale APIs.
    • Hide
      • With the operator capabilities create +500 backends
        #bin/sh
        for i in {1..550}
        do
            cat <<EOF | oc create -f-
        kind: Backend
        apiVersion: capabilities.3scale.net/v1beta1
        metadata:
          name: backend-$i
          namespace: <NAMESPACE>
        spec:
          name: backend-$i
          privateBaseURL: 'https://api.example.com'
        EOF
        done
        
      • Check the status of the Backend CR 501, it will fail
      Show
      With the operator capabilities create +500 backends #bin/sh for i in {1..550} do cat <<EOF | oc create -f- kind: Backend apiVersion: capabilities.3scale.net/v1beta1 metadata: name: backend-$i namespace: <NAMESPACE> spec: name: backend-$i privateBaseURL: 'https://api.example.com' EOF done Check the status of the Backend CR 501, it will fail

    Description

      Current behavior
      When creating a Backend using the Backend CR capabilities the Operator will only sync 500 backends at most. The Backend API will be created in the admin portal however the Backend CR will remain in failed state with the following error:

      {"level":"info","ts":1679916282.9784565,"logger":"controllers.Backend","msg":"LookupProviderAccount providerAccountRef found","backend":"backend-501","adminURL":"https://3scale-admin.apps.test3scale.<wildcard>.com"}
      {"level":"error","ts":1679916283.3551319,"logger":"controllers.Backend","msg":"Failed to reconcile","backend":"3scaleupgrade/backend-501","error":"Task failed SyncBackend: Error sync backend [backend501]: error calling 3scale system - reason: {\"system_name\":[\"has already been taken\"]} - code: 422","stacktrace":...
      

      This is an issue because:

      • Any updates in the backend would need to be done from the admin portal. This means the data has been managed from the Baceknd CR and admin portal. It can lead to inconsistencies in the future. This should be avoided.
      • Customers won't be able to work with Operator Capabilites after creating 500 backends and will need to use another means to create backends like Toolbox,

      Desired behavior
      Do not have a limitation for creating backends using the operator capabilities.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-avilatus Anna Vila Tusell
            Martin Kudlej Martin Kudlej
            Eguzki Astiz Lezaun Eguzki Astiz Lezaun
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: