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

Upgrade from 3scale 2.6 fails on pre-hook pod

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 2.7 ER1
    • None
    • System
    • None
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • 3scale 2019-09-09, 3scale 2019-09-30

      Hi,

      When trying to upgrade from 3scale 2.6 to master branches in the components, I observed the system-app pre-hook pod in OpenShift shows the following error that prevents system-app to start later:

      == 20190716110520 CreateTheBackendApisOfServices: migrating ===================
      -- Migrating proxies api_backend to slugs...
      rake aborted!
      StandardError: An error has occurred, all later migrations canceled:
      undefined method `state=' for #<BackendApi:0x000000000a518ba0>
      Did you mean?  state?
      /opt/system/vendor/bundle/ruby/2.4.0/gems/activemodel-4.2.11.1/lib/active_model/attribute_methods.rb:433:in `method_missing'
      /opt/system/vendor/bundle/ruby/2.4.0/gems/state_machines-0.5.0/lib/state_machines/machine.rb:1078:in `write'
      

      It seems to be a problem related to the migrations that the pre-hook pod applies.

            Unassigned Unassigned
            msorianod Miguel Soriano
            Guilherme Cassolato Guilherme Cassolato
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: