Open adpavlov opened 1 week ago
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
Same issue here as well
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.
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.
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...
Same error here,
And like Adpavlov, my postgres is not external.
Thank you for the report. I have put a patch up at https://github.com/ansible/awx/pull/15138 but it will take a while to fully verify it because the migration testing takes a while.
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?
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 }}"
@adpavlov it will be marked as such shortly but not just for this issue, see also #15136
@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😂
The patch for this issue is merged into the devel
branch.
@AlanCoding Trying to deploy using helm install, but i still get the error. What can i do to make it work?
@adpavlov Try 24.3.1
@adpavlov Try 24.3.1
Migration passed fine. Thanks for the fix!
Please confirm the following
security@ansible.com
instead.)Bug Summary
awx-migration-24.3.0 failing with following error:
AWX version
24.3.0
Select the relevant components
Installation method
kubernetes
Modifications
no
Ansible version
No response
Operating system
No response
Web browser
No response
Steps to reproduce
upgrade ax-operator
Expected results
all working
Actual results
migration failed
Additional information
No response