Skip to content

Commit

Permalink
Remove postgres and old db migration tasks from the upgrade cmd
Browse files Browse the repository at this point in the history
This removes the ansible tasks related to postgres image upgrade
and OMR migration from 1.2.9 to 1.3.0.
  • Loading branch information
harishsurf committed May 15, 2024
1 parent 251134e commit c69e540
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 133 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
state: absent
when: container_result.rc == 0

# for local dev only
- name: Update DB_URI in config.yaml
replace:
path: "{{ quay_root }}/quay-config/config.yaml"
Expand Down Expand Up @@ -79,3 +78,28 @@
force: yes
scope: "{{ systemd_scope }}"
when: container_result.rc == 0

- name: Delete Postgres Storage named volume
containers.podman.podman_volume:
state: absent
name: pg-storage
when: auto_approve|bool == true and pg_storage == "pg-storage" and container_result.rc == 0

- name: Delete Postgres Password Secret
containers.podman.podman_secret:
state: absent
name: pgdb_pass
when: container_result.rc == 0

- name: Delete necessary directory for Postgres persistent data
ansible.builtin.file:
path: "{{ pg_storage }}"
state: absent
become: yes
when: auto_approve|bool == true and pg_storage.startswith('/') and container_result.rc == 0

- name: Cleanup quay-postgres systemd unit file
file:
state: absent
path: "{{ systemd_unit_dir }}/quay-postgres.service"
when: container_result.rc == 0

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,9 @@
- name: Set SELinux Rules
include_tasks: set-selinux-rules.yaml

# - name: Create secret vars
# include_tasks: secret-vars.yaml

- name: Autodetect existing Secrets in config.yaml
include_tasks: upgrade-config-vars.yaml

# - name: Autodetect root or rootless from previous install
# include_tasks: migrate-pre-1_3_0.yaml

- name: Migrate postgres db to sqlite for Quay
include_tasks: migrate.yaml

Expand All @@ -25,9 +19,6 @@
- name: Upgrade Quay Pod Service
include_tasks: upgrade-pod-service.yaml

# - name: Upgrade Postgres Service
# include_tasks: upgrade-postgres-service.yaml

- name: Upgrade Redis Service
include_tasks: upgrade-redis-service.yaml

Expand Down

0 comments on commit c69e540

Please sign in to comment.