|
21 | 21 | - name: create mariadb-client container |
22 | 22 | no_log: "{{ use_no_log }}" |
23 | 23 | ansible.builtin.shell: | |
| 24 | + {{ shell_header_no_xtrace }} |
24 | 25 | {{ oc_header }} |
25 | 26 | {{ mariadb_copy_shell_vars_src }} |
26 | 27 | # delete existing mariadb-client pods |
|
31 | 32 | - name: wait until SOURCE_MARIADB_IP is reachable |
32 | 33 | no_log: "{{ use_no_log }}" |
33 | 34 | ansible.builtin.shell: | |
| 35 | + {{ shell_header_no_xtrace }} |
34 | 36 | {{ oc_header }} |
35 | 37 | {{ mariadb_copy_shell_vars_src }} |
36 | 38 | oc rsh mariadb-client mysql -rsh ${SOURCE_MARIADB_IP[default]} -uroot -p${SOURCE_DB_ROOT_PASSWORD[default]} -e 'select 1;' |
|
45 | 47 | - name: test connection to the original DB |
46 | 48 | no_log: "{{ use_no_log }}" |
47 | 49 | ansible.builtin.shell: | |
| 50 | + {{ shell_header_no_xtrace }} |
48 | 51 | {{ oc_header }} |
49 | 52 | {{ mariadb_copy_shell_vars_src }} |
50 | 53 | unset PULL_OPENSTACK_CONFIGURATION_DATABASES |
|
57 | 60 | - name: run mysqlcheck on the original DB to look for things that are not OK |
58 | 61 | no_log: "{{ use_no_log }}" |
59 | 62 | ansible.builtin.shell: | |
| 63 | + {{ shell_header_no_xtrace }} |
60 | 64 | {{ oc_header }} |
61 | 65 | {{ mariadb_copy_shell_vars_src }} |
62 | 66 | unset PULL_OPENSTACK_CONFIGURATION_MYSQLCHECK_NOK |
|
86 | 90 | block: |
87 | 91 | - name: get Nova cells mappings from database |
88 | 92 | ansible.builtin.shell: | |
| 93 | + {{ shell_header_no_xtrace }} |
89 | 94 | {{ oc_header }} |
90 | 95 | {{ mariadb_copy_shell_vars_src }} |
91 | 96 | export PULL_OPENSTACK_CONFIGURATION_NOVADB_MAPPED_CELLS=$(oc rsh mariadb-client \ |
|
94 | 99 |
|
95 | 100 | - name: get the host names of the registered Nova compute services |
96 | 101 | ansible.builtin.shell: | |
| 102 | + {{ shell_header_no_xtrace }} |
97 | 103 | {{ oc_header }} |
98 | 104 | {{ mariadb_copy_shell_vars_src }} |
99 | 105 | unset PULL_OPENSTACK_CONFIGURATION_NOVA_COMPUTE_HOSTNAMES |
|
113 | 119 | - name: store exported variables for future use |
114 | 120 | no_log: "{{ use_no_log }}" |
115 | 121 | ansible.builtin.shell: | |
| 122 | + {{ shell_header_no_xtrace }} |
116 | 123 | {{ oc_header }} |
117 | 124 | {{ mariadb_copy_shell_vars_src }} |
118 | 125 | for CELL in $(echo $CELLS); do |
|
0 commit comments