Upgrade AWX 19.0.0 to 19.1.0

544 views
Skip to first unread message

Andrea Lenarduzzi

unread,
May 7, 2021, 11:19:38 AM5/7/21
to AWX Project
Hi I'm running awx 19.0.0 on k3s,docker Ubuntu 20.04

How can I upgarde to awx 19.1.0?
Thank you regards

--
Le informazioni, i dati e le notizie contenute nella presente comunicazione e i relativi allegati sono di natura privata e come tali possono essere riservate e sono, comunque, destinate esclusivamente ai destinatari indicati in epigrafe. La diffusione, distribuzione e/o la copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è proibita, sia ai sensi dell'art. 616 c.p., sia ai sensi del D.Lgs. n. 196/2003. Se avete ricevuto questo messaggio per errore, vi preghiamo di distruggerlo e di darcene immediata comunicazione anche inviando un messaggio di ritorno all'indirizzo e-mail del mittente.

This e-mail (including attachments) is intended only for the recipient(s) named above. It may contain confidential or privileged information and should not be read, copied or otherwise used by any other person. If you are not the named recipient, please contact (specificare l'e-mail dell'azienda) and delete the e-mail from your system. Rif. D.L. 196/2003.

Wei-Yen Tan

unread,
May 9, 2021, 2:57:09 AM5/9/21
to Andrea Lenarduzzi, AWX Project
Change the operator to 0.9 and redeploy. I just did mine from 19 to 19.1 in this way 


From: awx-p...@googlegroups.com <awx-p...@googlegroups.com> on behalf of Andrea Lenarduzzi <andre...@gmail.com>
Sent: Saturday, May 8, 2021 3:19:22 AM
To: AWX Project <awx-p...@googlegroups.com>
Subject: [awx-project] Upgrade AWX 19.0.0 to 19.1.0
 
--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/CABKy_H64o-OJhYRG%2BGc7MGEB98oJfSEjNun3bO7tOyV%2BiiY%3DTA%40mail.gmail.com.

Pres

unread,
May 15, 2021, 11:49:18 AM5/15/21
to AWX Project
Could you describe the process of how you did it? I tried to figure out how to change just the operator but I could not find a way. Also how do you just redeploy just one container?

Sorry I am new to containers and trying to figure this all out. Any help would be really appreciated! Thanks in advance.

Selvam Elangovan

unread,
Aug 23, 2021, 7:42:30 AM8/23/21
to Andrea Lenarduzzi, AWX Project
I tried to upgrade from operator from 0.9.0 to 0.13.0 in k8 however it stuck in below.  nothing in the logs or events. 

I used upgrade procedure in the github of awx as kubectl apply -f path to upgraded operator.

Please can some one give us the correct procedure please.

NAME                           READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/awx-operator   0/1     0            0           5m44s

--

Abhinit Mallick

unread,
Aug 23, 2021, 12:09:46 PM8/23/21
to AWX Project
Hi Selva

Please paste the output of 
kubectl describe deployment.apps/awx-operator 

Regards
Abhinit

Bibhuti Bhusan

unread,
Aug 24, 2021, 1:47:47 AM8/24/21
to AWX Project
Hi Guyz,
can anyone give the steps to install AWX in centos, I have tried all the possibilities, but no luck. when I am cloning the git link I could see the /installer file is missing. could you please let me know if any process changed or it's absolute?

Selvam Elangovan

unread,
Oct 6, 2021, 8:02:02 AM10/6/21
to Wei-Yen Tan, AWX Project, Andrea Lenarduzzi
I am still struggling to get the upgrade work.

I am using external postgresql. I modified the mail.yaml file and specified the secret  so that the operator will check and pick the db config when doing the migration.  It is failing on: resources_configuration.yml

- name: Apply Resources
  k8s:
    apply: yes
    definition: "{{ lookup('template', item + '.yaml.j2') }}"
    wait: yes
  register: tower_resources_result
  loop:
    - 'config'
    - 'app_credentials'
    - 'service_account'
    - 'persistent'
    - 'service'
    - 'ingress'
  no_log: false

could some one help me here on how to upgrade with external db?

On Wed, Oct 6, 2021 at 5:29 PM Selvam Elangovan <selva...@gmail.com> wrote:
I am still struggling to get the upgrade work.

I am using external postgresql. I modified the mail.yaml file and specified the secret  so that the operator will check and pick the db config when doing the migration.  It is failing on: resources_configuration.yml

- name: Apply Resources
  k8s:
    apply: yes
    definition: "{{ lookup('template', item + '.yaml.j2') }}"
    wait: yes
  register: tower_resources_result
  loop:
    - 'config'
    - 'app_credentials'
    - 'service_account'
    - 'persistent'
    - 'service'
    - 'ingress'
  no_log: false

could some one help me here on how to upgrade with external db?

On Tue, Oct 5, 2021 at 9:22 PM Selvam Elangovan <selva...@gmail.com> wrote:
we have new release of  awx 0.14.0 however the operator is name based.  The instruction in the Readme says that remove awx operator svc account, role and role binding.

The 0.13.0 operator uses default namespaces and the awx uses awx namespace.

My question here is:

do we need to delete the service account, role and rolebinding in awx name space?
How to upgrade operator from 0.13.0 to 0.14.0? shall we just update the yaml file like below and run kubectl apply -f?

---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx
  namespace: awx
spec:
  image_version: latest
  image_pull_policy: Always
  ingress_type: Ingress
  hostname: example.com
  ingress_annotations: "kubernetes.io/ingress.class: nginx"
  ingress_tls_secret: example.com
  postgres_configuration_secret: tower-postgres-configuration

Please help me here.

Thanks & Regards,
Selvam E.

Selvam Elangovan

unread,
Oct 7, 2021, 7:45:49 AM10/7/21
to Wei-Yen Tan, AWX Project, Andrea Lenarduzzi
I am able to update from 0.13.0 operator to 0.14.0 and awx from 19.3.0 to 19.4.0

Execute below:

Awx upgrade based on k8 operator:
kubectl delete deployment awx-operator
kubectl delete serviceaccount awx-operator
kubectl delete clusterrolebinding awx-operator
kubectl delete clusterrole awx-operator

unzip -d awx-operator-0.14.0.zip
export NAMESPACE=awx
Please go to the unzipped directory and execute below
make deploy

The operator will be successfully installed however the postgress configuration i.e secret is not available in operator hence it will fail to
update the awx ansible tower.

Follow the below to update ansible tower aka awx

kubectl -n awx edit deployment.apps/awx
Change the image_verison to the latest one. example: 19.4.0

It will automatically pull the image and install it.

Once done, run below i.e. after all the pods and container on running.

kubectl -n awx exec -it pod/podname -c awx-web bash
awx-manage showmigrations | grep -v '[X]' | grep '[ ]' | wc -l
awx-manage showmigrations
awx-manage migrate --noinput
awx-manage  changepassword admin

Once above done, then you have successfully updated the awx from 19.x to 19.4.0

Note: THE Postgres is external.
______________________________________________________________

Reply all
Reply to author
Forward
0 new messages