Code Monkey home page Code Monkey logo

Comments (15)

NV-LijonFogel avatar NV-LijonFogel commented on August 26, 2024 1

Did a fallback to previous version and AWX came up.

Oh, how did you do that? I have deployed AWX via AWX-Operator as a subscirption and did not see an obvious way to downgrade. Also isn't the database incompatible now? A few migrations did run, so the tables are definitly altered.

from awx.

adpavlov avatar adpavlov commented on August 26, 2024 1

@adpavlov Try 24.3.1

Migration passed fine. Thanks for the fix!

from awx.

NV-LijonFogel avatar NV-LijonFogel commented on August 26, 2024

Ah you have the same issue, I thought I was alone! I have commented on the PR from @AlanCoding which is responsible for that change.

Environment is external Postgres, but I guess this issue is Django related. Hope to see this fixed soon

from awx.

josduppen avatar josduppen commented on August 26, 2024

Same issue here as well

from awx.

adpavlov avatar adpavlov commented on August 26, 2024

Ah you have the same issue, I thought I was alone! I have commented on the PR from @AlanCoding which is responsible for that change.

Environment is external Postgres, but I guess this issue is Django related. Hope to see this fixed soon

Yes, same issue. And one day I will hardcode awx and operator version and wait at least 2 weeks after new release, but not now:)

postgres is not external in my case, but I also don’t think it’s related.

Did a fallback to previous version and AWX came up.

from awx.

kzinas-adv avatar kzinas-adv commented on August 26, 2024

Also upgrade to awx-migration-24.3.0 fail with same error:

AttributeError: 'ContentType' object has no attribute 'model_class'
  Applying main.0192_custom_roles...

from awx.

ihriel avatar ihriel commented on August 26, 2024

Same error here,

And like Adpavlov, my postgres is not external.

from awx.

AlanCoding avatar AlanCoding commented on August 26, 2024

Thank you for the report. I have put a patch up at #15138 but it will take a while to fully verify it because the migration testing takes a while.

from awx.

adpavlov avatar adpavlov commented on August 26, 2024

Thank you for the report. I have put a patch up at #15138 but it will take a while to fully verify it because the migration testing takes a while.

Probably mark current release as not good for installation?

from awx.

adpavlov avatar adpavlov commented on August 26, 2024

Did a fallback to previous version and AWX came up.

Oh, how did you do that? I have deployed AWX via AWX-Operator as a subscirption and did not see an obvious way to downgrade. Also isn't the database incompatible now? A few migrations did run, so the tables are definitly altered.

Seems like data not affected much and back compatible.
I have local installation and deploying operator as following:

    - name: Download and extract awx-operator into "{{ role_path }}/files"
      ansible.builtin.unarchive:
        src: "https://github.com/ansible/awx-operator/archive/{{ awx_operator_version }}.zip"
        dest: "{{ role_path }}/files"
        owner: "{{ devops.user.name }}"
        group: "{{ devops.user.group }}"
        mode: "0775"
        remote_src: true

    - name: Set DEFAULT_AWX_VERSION to {{ awx_version }} for awx-operator
      ansible.builtin.lineinfile:
        path: "{{ role_path }}/files/awx-operator-{{ awx_operator_version }}/config/manager/manager.yaml"
        regexp: '^.*{{ item }}.*$'
        line: '{{ item }}'
        insertafter: 'env:'
        firstmatch: true
        state: present
        backup: false
      loop:
        - '          value: {{ awx_version }}'
        - '        - name: DEFAULT_AWX_VERSION'
      loop_control:
        label: "Adding {{ item }}"

    - name: Deploy AWX Operator
      ansible.builtin.shell: |
        export DEFAULT_AWX_VERSION={{ awx_version }}
        make deploy
      args:
        chdir: "{{ role_path }}/files/awx-operator-{{ awx_operator_version }}"
      environment:
        PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin"
        NAMESPACE: awx
        VERSION: "{{ awx_operator_version }}"
        DEFAULT_AWX_VERSION: "{{ awx_version }}"

from awx.

thedoubl3j avatar thedoubl3j commented on August 26, 2024

@adpavlov it will be marked as such shortly but not just for this issue, see also #15136

from awx.

adpavlov avatar adpavlov commented on August 26, 2024

@adpavlov it will be marked as such shortly but not just for this issue, see also #15136

Haven’t reached this issue yet as failed in earlier step😂

from awx.

AlanCoding avatar AlanCoding commented on August 26, 2024

The patch for this issue is merged into the devel branch.

from awx.

diarhussein avatar diarhussein commented on August 26, 2024

@AlanCoding Trying to deploy using helm install, but i still get the error. What can i do to make it work?

from awx.

Nyralei avatar Nyralei commented on August 26, 2024

@adpavlov Try 24.3.1

from awx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.