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

ApplicationCR: New application is created without deleting old application when AccountCR reference changes

XMLWordPrintable

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

      None

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

      What

      Modifying the AccountCR reference to link to a different valid account results in the creation of a new application associated with the updated account. The original application, however, persists in the system, becoming an orphaned application.

      Proposed solution:

      Option 1: 

      Update the operator code to manage changes in account references. This include detecting incoming changes, deleting the old application, and creating a new one. 

      Option 2:

      Mark both the account and product references as immutable, meaning the field cannot be changed once set.

      How to reproduce: 

      1. Create a 2 DeveloperUserCR, 2 DeveloperAccountCR, Product and an ApplicationCR 
      2. Wait for operator to sync all CR's, and check the assigned applicationID of application
      3. Check the application has been created in the admin portal
      4. Update ApplicationCR to reference the other account
      5. Visit the admin portal again, you should see another new application created under the new account, while the old application is still exist under the old account

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

                Created:
                Updated: