# how to upgrade from 0.21 ?

**URL:** <https://forum.ansible.com/t/how-to-upgrade-from-0-21/37138>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 22, 2022, 4:08pm UTC](https://forum.ansible.com/t/how-to-upgrade-from-0-21/37138 "2022-09-22T16:08:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![HG1](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HG1](https://forum.ansible.com/u/HG1)\
**Post date:** [September 22, 2022, 4:08pm UTC](https://forum.ansible.com/t/how-to-upgrade-from-0-21/37138/1 "2022-09-22T16:08:28Z")

</div>

Hi,

My current version is 0.21.

1. do I need to go to 0.22 first?
2. 

awx-operator says that I need to do  
$ kubectl -n default delete deployment awx-operator

$ kubectl -n default delete serviceaccount awx-operator  
$ kubectl -n default delete clusterrolebinding awx-operator

$ kubectl -n default delete clusterrole awx-operator

I do not have deployment awx-operator  
awx awx-operator-controller-manager 1/1 1 1 108s

---

<div class="post-metadata">

**Author:** ![HG1](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HG1](https://forum.ansible.com/u/HG1)\
**Post date:** [September 22, 2022, 4:09pm UTC](https://forum.ansible.com/t/how-to-upgrade-from-0-21/37138/2 "2022-09-22T16:09:40Z")

</div>

Hit enter to early

The postgres database is unmanaged  
How are schema changes performed?

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [September 23, 2022, 5:22pm UTC](https://forum.ansible.com/t/how-to-upgrade-from-0-21/37138/3 "2022-09-23T17:22:35Z")

</div>

Hello!

What version of AWX are you currently on, and which version do you plan to upgrade to?

You shouldn’t need to do incremental upgrades, but be sure to do a backup of your db first, as outlined in the instructions for upgrading

[https://github.com/ansible/awx-operator#upgrading](https://github.com/ansible/awx-operator#upgrading)

let us know if you run into issue going from 0.21 to 0.29 operator.

AWX Team

---

<div class="post-metadata">

**Author:** ![Anando\_Singh](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Anando\_Singh](https://forum.ansible.com/u/Anando_Singh)\
**Post date:** [September 27, 2022, 3:08am UTC](https://forum.ansible.com/t/how-to-upgrade-from-0-21/37138/4 "2022-09-27T03:08:46Z")

</div>

I am also facing issues in the upgrade from awx-operator 0.24.0.to 0.26.0.

Environment:  
OS: Redhat 9.0  
awx-operator: 0.24.0  
k3s : v1.24.4+k3s1

Here is the steps I have followed to upgrade

1. Deploy awx-operator 0.24.0  
a.cd ~  
b. git clone [https://github.com/ansible/awx-operator.git](https://github.com/ansible/awx-operator.git)  
c. cd awx-operator  
d. git checkout 0.24.0 # Checkout the version to upgrade to # Deploy AWX Operator  
e. export NAMESPACE=hpeda # Specify the namespace where the old AWX Operator exists  
f. make deploy

2. deploy awx using YAML file

---

<div class="post-metadata">

**Author:** ![HG1](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HG1](https://forum.ansible.com/u/HG1)\
**Post date:** [September 27, 2022, 1:28pm UTC](https://forum.ansible.com/t/how-to-upgrade-from-0-21/37138/5 "2022-09-27T13:28:02Z")

</div>

This is probably because of the switch to postgres-13.  
The fact that you namespace is not awx may complicate matters.

---

<div class="post-metadata">

**Author:** ![HG1](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HG1](https://forum.ansible.com/u/HG1)\
**Post date:** [September 27, 2022, 2:25pm UTC](https://forum.ansible.com/t/how-to-upgrade-from-0-21/37138/6 "2022-09-27T14:25:15Z")

</div>

Could you attach the awx deployment file?

---

<div class="post-metadata">

**Author:** ![HG1](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HG1](https://forum.ansible.com/u/HG1)\
**Post date:** [September 30, 2022, 11:20am UTC](https://forum.ansible.com/t/how-to-upgrade-from-0-21/37138/7 "2022-09-30T11:20:04Z")

</div>

Hi,

I am a little bit confused.  
You say: I am also facing issues in the upgrade from awx-operator [0.24.0.to](http://0.24.0.to) 0.26.0.

But you check out 0.24

Version 0.26 uses AWX : AWX 21.4.0

I think you need to change that.

---

<div class="post-metadata">

**Author:** ![Anando\_Singh](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Anando\_Singh](https://forum.ansible.com/u/Anando_Singh)\
**Post date:** [October 6, 2022, 7:20am UTC](https://forum.ansible.com/t/how-to-upgrade-from-0-21/37138/8 "2022-10-06T07:20:58Z")

</div>

Its the same issue after changing to 0.26.0

Here is updated steps and let me know if there is any missing/error steps

1. Deploy awx-operator 0.24.0  
a.cd ~  
b. git clone [https://github.com/ansible/awx-operator.git](https://github.com/ansible/awx-operator.git)  
c. cd awx-operator  
d. git checkout 0.24.0 # Checkout the version to upgrade to # Deploy AWX Operator  
e. export NAMESPACE=hpeda # Specify the namespace where the old AWX Operator exists  
f. make deploy
2. deploy awx using YAML file

---

<div class="post-metadata">

**Author:** ![HG1](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HG1](https://forum.ansible.com/u/HG1)\
**Post date:** [October 10, 2022, 10:59am UTC](https://forum.ansible.com/t/how-to-upgrade-from-0-21/37138/9 "2022-10-10T10:59:34Z")

</div>

Hi,

This due to the change to postgres 13.  
I am using a an external database and also so do not have this issue.

Regards Hans
