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

system-app-pre/post hook always trigger

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.15.0 GA, 2.15.1 GA, 2.15.2 GA, 2.15.3 GA
    • 3scale Operator
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • RHOAM Sprint 77

      In 3scale 2.15 we migrated all components from DeploymentConfigs to Deployment. Deployment don't support lifecycle hooks we use Jobs as equivalent. 

      However, with the current implementation, the operator will always run system-app-pre/post Job. This lead to the issue when the user scale down the APIManager 3scale version (2.15.3) by setting the replicas to 0 for the 3scale components, system-app-pre continues to run and reports the following error:

      Errno::ECONNREFUSED: Connection denied - connect(2) for "backend-listener" port 3000.

      The reason for this because we are reconciling the backend component first, so when system-app-pre runs the backend listener is already terminated.

      Expected behaviour

      To match previous 3scale behavior [1], scaling components should not trigger the system-app-pre/post hook

      Workaround:

      Keep the backend components running and scale down the system components first. Once all system components are terminated scale down backend components.

      Reference:

      [1] https://github.com/openshift/origin/blob/main/docs/proposals/post-deployment-hooks.md?plain=1

              Unassigned Unassigned
              rhn-support-atra An Tran
              An Tran An Tran
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: