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

after upgrading to 2.16 system-app has still old db schema

XMLWordPrintable

    • False
    • Hide

      None

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

      When updating from 2.15 to 2.16-cr6, system-app pod is most likely started before db migration from system-app-pre job is executed. Existing products works.

      Creation of new accounts fails with 500 (system-app contains NoMethodError error). 

      Started GET "/admin/api/accounts.json?access_token=[FILTERED]"
      Processing by Admin::Api::AccountsController#index as JSON
      ...
      Completed 500 Internal Server Error in 358ms (ActiveRecord: 61.0ms | Allocations: 68076)
      NoMethodError (super: no superclass method `admin_bot_protection_level' for #<...>):
      app/models/settings.rb:106:in `admin_bot_protection_level'
      lib/three_scale/lazy_initialization.rb:60:in `lazily_initialize'
      lib/three_scale/lazy_initialization.rb:42:in `block (3 levels) in lazy_initialization_for
      app/representers/account_representer.rb:71:in `monthly_billing_enabled'
      app/lib/three_scale/api/collection.rb:21:in `to_json'
      app/lib/three_scale/collection_representer.rb:27:in `to_json'
      app/lib/three_scale/api/responder.rb:11:in `api_behavior'
      app/controllers/admin/api/accounts_controller.rb:17:in `index'
      app/lib/api_authentication/by_access_token.rb:170:in `enforce'
      app/lib/api_authentication/by_access_token.rb:120:in `enforce_access_token_permission'
      app/controllers/admin/api/base_controller.rb:44:in `block in notification_center'
      lib/notification_center.rb:30:in `silent_about'
      app/controllers/application_controller.rb:143:in `silent_about'
      app/controllers/admin/api/base_controller.rb:43:in `notification_center'
      lib/three_scale/middleware/multitenant.rb:106:in `_call'
      lib/three_scale/middleware/multitenant.rb:101:in `call'
      lib/three_scale/middleware/presigned_downloads.rb:62:in `call'
      lib/three_scale/middleware/cors.rb:21:in `call'

      restart of system-app resolves this problem.

              Unassigned Unassigned
              mdujava@redhat.com Matej Dujava
              An Tran An Tran
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: