Merge "Remove db_sync --migrate command"

This commit is contained in:
Zuul 2024-10-02 14:21:49 +00:00 committed by Gerrit Code Review
commit 199ed67d81
2 changed files with 1 additions and 20 deletions

View File

@ -32,8 +32,6 @@
with_items:
- name: "need_db_expand"
state: "{{ (keystone_db_sync_check.rc | int == 2) | bool }}"
- name: "need_db_migrate"
state: "{{ (keystone_db_sync_check.rc | int in [2, 3]) | bool }}"
- name: "need_db_contract"
state: "{{ (keystone_db_sync_check.rc | int in [2, 3, 4]) | bool }}"
@ -63,8 +61,7 @@
delay: 2
with_items: "{{ keystone_service_exists.results }}"
when:
- "(ansible_local['openstack_ansible']['keystone']['need_db_expand'] | bool) or
(ansible_local['openstack_ansible']['keystone']['need_db_migrate'] | bool)"
- "(ansible_local['openstack_ansible']['keystone']['need_db_expand'] | bool)"
- "(item.status['LoadState'] == 'loaded' | bool)"
notify:
- Restart uWSGI
@ -79,16 +76,6 @@
run_once: yes
notify: flush cache
- name: Perform a Keystone DB sync migrate
command: "{{ keystone_bin }}/keystone-manage db_sync --migrate"
changed_when: false
become: yes
become_user: "{{ keystone_system_user_name }}"
when:
- "ansible_local['openstack_ansible']['keystone']['need_db_migrate'] | bool"
run_once: yes
notify: flush cache
- name: Perform a Keystone DB sync contract
command: "{{ keystone_bin }}/keystone-manage db_sync --contract"
changed_when: false

View File

@ -84,9 +84,6 @@
- section: "keystone"
option: "need_db_expand"
value: "True"
- section: "keystone"
option: "need_db_migrate"
value: "True"
- section: "keystone"
option: "need_db_contract"
value: "True"
@ -134,8 +131,6 @@
with_items:
- name: "need_db_expand"
state: "True"
- name: "need_db_migrate"
state: "True"
- name: "need_db_contract"
state: "True"
- name: "install_method"
@ -145,7 +140,6 @@
('openstack_ansible' not in ansible_local) or
('keystone' not in ansible_local['openstack_ansible']) or
('need_db_expand' not in ansible_local['openstack_ansible']['keystone']) or
('need_db_migrate' not in ansible_local['openstack_ansible']['keystone']) or
('need_db_contract' not in ansible_local['openstack_ansible']['keystone'])
- name: Create WSGI symlinks