Updating HTK commit ID for etcd backup/restore
Include fix [0] return code when remote rgw fails. Moving set -x in backup/restore.tpl below the source of the framework code to reduce debug output. [0] https://review.opendev.org/#/c/738665/ Change-Id: If9b7b317dff439ecb293d9837cac256884c53c6a
This commit is contained in:
parent
ec1b75ebea
commit
cb4ae15eb1
|
@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/}}
|
*/}}
|
||||||
set -x
|
|
||||||
BACKUP_DIR={{ .Values.backup.host_backup_path }}
|
BACKUP_DIR={{ .Values.backup.host_backup_path }}
|
||||||
BACKUP_LOG={{ .Values.backup.backup_log_file | quote }}
|
BACKUP_LOG={{ .Values.backup.backup_log_file | quote }}
|
||||||
NUM_TO_KEEP={{ .Values.backup.no_backup_keep | quote }}
|
NUM_TO_KEEP={{ .Values.backup.no_backup_keep | quote }}
|
||||||
|
@ -33,6 +33,7 @@ export REMOTE_DAYS_TO_KEEP=$REMOTE_BACKUP_DAYS_TO_KEEP
|
||||||
export ARCHIVE_DIR=${BACKUP_DIR}/db/${DB_NAMESPACE}/${DB_NAME}/archive
|
export ARCHIVE_DIR=${BACKUP_DIR}/db/${DB_NAMESPACE}/${DB_NAME}/archive
|
||||||
|
|
||||||
dump_databases_to_directory() {
|
dump_databases_to_directory() {
|
||||||
|
set -x
|
||||||
TMP_DIR=$1
|
TMP_DIR=$1
|
||||||
LOG_FILE=${2:-BACKUP_LOG}
|
LOG_FILE=${2:-BACKUP_LOG}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
set -x
|
|
||||||
# Capture the user's command line arguments
|
# Capture the user's command line arguments
|
||||||
ARGS=("$@")
|
ARGS=("$@")
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ get_databases() {
|
||||||
}
|
}
|
||||||
|
|
||||||
restore_single_db() {
|
restore_single_db() {
|
||||||
|
set -x
|
||||||
SINGLE_DB_NAME=$1
|
SINGLE_DB_NAME=$1
|
||||||
TMP_DIR=$2
|
TMP_DIR=$2
|
||||||
ANCHOR_POD=$SINGLE_DB_NAME
|
ANCHOR_POD=$SINGLE_DB_NAME
|
||||||
|
|
|
@ -112,7 +112,7 @@ data:
|
||||||
type: git
|
type: git
|
||||||
location: https://git.openstack.org/openstack/openstack-helm-infra
|
location: https://git.openstack.org/openstack/openstack-helm-infra
|
||||||
subpath: helm-toolkit
|
subpath: helm-toolkit
|
||||||
reference: 1da7a5b0f8b66f2012e664de4ee7240627385210
|
reference: 1508324ce7f683da93c5344343e3da031fac816d
|
||||||
dependencies: []
|
dependencies: []
|
||||||
---
|
---
|
||||||
schema: armada/Chart/v1
|
schema: armada/Chart/v1
|
||||||
|
@ -136,7 +136,7 @@ data:
|
||||||
type: git
|
type: git
|
||||||
location: https://git.openstack.org/openstack/openstack-helm-infra
|
location: https://git.openstack.org/openstack/openstack-helm-infra
|
||||||
subpath: helm-toolkit
|
subpath: helm-toolkit
|
||||||
reference: 1da7a5b0f8b66f2012e664de4ee7240627385210
|
reference: 1508324ce7f683da93c5344343e3da031fac816d
|
||||||
dependencies: []
|
dependencies: []
|
||||||
---
|
---
|
||||||
schema: armada/Chart/v1
|
schema: armada/Chart/v1
|
||||||
|
|
|
@ -153,7 +153,7 @@ data:
|
||||||
type: git
|
type: git
|
||||||
location: https://git.openstack.org/openstack/openstack-helm-infra
|
location: https://git.openstack.org/openstack/openstack-helm-infra
|
||||||
subpath: helm-toolkit
|
subpath: helm-toolkit
|
||||||
reference: 1da7a5b0f8b66f2012e664de4ee7240627385210
|
reference: 1508324ce7f683da93c5344343e3da031fac816d
|
||||||
dependencies: []
|
dependencies: []
|
||||||
---
|
---
|
||||||
schema: armada/Chart/v1
|
schema: armada/Chart/v1
|
||||||
|
@ -178,7 +178,7 @@ data:
|
||||||
type: git
|
type: git
|
||||||
location: https://git.openstack.org/openstack/openstack-helm-infra
|
location: https://git.openstack.org/openstack/openstack-helm-infra
|
||||||
subpath: helm-toolkit
|
subpath: helm-toolkit
|
||||||
reference: 1da7a5b0f8b66f2012e664de4ee7240627385210
|
reference: 1508324ce7f683da93c5344343e3da031fac816d
|
||||||
dependencies: []
|
dependencies: []
|
||||||
---
|
---
|
||||||
schema: armada/Chart/v1
|
schema: armada/Chart/v1
|
||||||
|
|
|
@ -112,7 +112,7 @@ data:
|
||||||
type: git
|
type: git
|
||||||
location: https://opendev.org/openstack/openstack-helm-infra.git
|
location: https://opendev.org/openstack/openstack-helm-infra.git
|
||||||
subpath: helm-toolkit
|
subpath: helm-toolkit
|
||||||
reference: 1da7a5b0f8b66f2012e664de4ee7240627385210
|
reference: 1508324ce7f683da93c5344343e3da031fac816d
|
||||||
dependencies: []
|
dependencies: []
|
||||||
---
|
---
|
||||||
schema: armada/Chart/v1
|
schema: armada/Chart/v1
|
||||||
|
@ -136,7 +136,7 @@ data:
|
||||||
type: git
|
type: git
|
||||||
location: https://opendev.org/openstack/openstack-helm-infra.git
|
location: https://opendev.org/openstack/openstack-helm-infra.git
|
||||||
subpath: helm-toolkit
|
subpath: helm-toolkit
|
||||||
reference: 1da7a5b0f8b66f2012e664de4ee7240627385210
|
reference: 1508324ce7f683da93c5344343e3da031fac816d
|
||||||
dependencies: []
|
dependencies: []
|
||||||
---
|
---
|
||||||
schema: armada/Chart/v1
|
schema: armada/Chart/v1
|
||||||
|
|
|
@ -112,7 +112,7 @@ data:
|
||||||
type: git
|
type: git
|
||||||
location: https://opendev.org/openstack/openstack-helm-infra.git
|
location: https://opendev.org/openstack/openstack-helm-infra.git
|
||||||
subpath: helm-toolkit
|
subpath: helm-toolkit
|
||||||
reference: 1da7a5b0f8b66f2012e664de4ee7240627385210
|
reference: 1508324ce7f683da93c5344343e3da031fac816d
|
||||||
dependencies: []
|
dependencies: []
|
||||||
---
|
---
|
||||||
schema: armada/Chart/v1
|
schema: armada/Chart/v1
|
||||||
|
@ -136,7 +136,7 @@ data:
|
||||||
type: git
|
type: git
|
||||||
location: https://opendev.org/openstack/openstack-helm-infra.git
|
location: https://opendev.org/openstack/openstack-helm-infra.git
|
||||||
subpath: helm-toolkit
|
subpath: helm-toolkit
|
||||||
reference: 1da7a5b0f8b66f2012e664de4ee7240627385210
|
reference: 1508324ce7f683da93c5344343e3da031fac816d
|
||||||
dependencies: []
|
dependencies: []
|
||||||
---
|
---
|
||||||
schema: armada/Chart/v1
|
schema: armada/Chart/v1
|
||||||
|
|
|
@ -20,7 +20,7 @@ HELM=${1}
|
||||||
HELM_PIDFILE=${2}
|
HELM_PIDFILE=${2}
|
||||||
SERVE_DIR=$(mktemp -d)
|
SERVE_DIR=$(mktemp -d)
|
||||||
|
|
||||||
HTK_STABLE_COMMIT=${HTK_COMMIT:-"1da7a5b0f8b66f2012e664de4ee7240627385210"}
|
HTK_STABLE_COMMIT=${HTK_COMMIT:-"1508324ce7f683da93c5344343e3da031fac816d"}
|
||||||
|
|
||||||
${HELM} init --client-only
|
${HELM} init --client-only
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue