Skip to content

Commit c4c962f

Browse files
Merge pull request #1043 from vakwetu/fix_db_name
Fix cleanup statements to reflect db name
2 parents 6d3e441 + bdfb917 commit c4c962f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@ barbican_deploy_cleanup: ## cleans up the service instance, Does not affect the
12381238
$(eval $(call vars,$@,barbican))
12391239
oc kustomize ${DEPLOY_DIR} | oc delete --ignore-not-found=true -f -
12401240
${CLEANUP_DIR_CMD} ${OPERATOR_BASE_DIR}/barbican-operator ${DEPLOY_DIR}
1241-
oc rsh -t mariadb-openstack mysql -u root --password=${PASSWORD} -e "drop database barbican;" || true
1241+
oc rsh -t $(DBSERVICE_CONTAINER) mysql -u root --password=${PASSWORD} -e "flush tables; drop database if exists barbican;" || true
12421242

12431243
##@ MARIADB
12441244
mariadb_prep: export IMAGE=${MARIADB_IMG}
@@ -1677,7 +1677,7 @@ designate_deploy_cleanup: ## cleans up the service instance, Does not affect the
16771677
$(eval $(call vars,$@,designate))
16781678
oc kustomize ${DEPLOY_DIR} | oc delete --ignore-not-found=true -f -
16791679
${CLEANUP_DIR_CMD} ${OPERATOR_BASE_DIR}/designate-operator ${DEPLOY_DIR}
1680-
oc rsh -t mariadb-openstack mysql -u root --password=${PASSWORD} -e "flush tables; drop database if exists designate;" || true
1680+
oc rsh -t $(DBSERVICE_CONTAINER) mysql -u root --password=${PASSWORD} -e "flush tables; drop database if exists designate;" || true
16811681

16821682
##@ NOVA
16831683
.PHONY: nova_prep
@@ -2574,7 +2574,7 @@ manila_deploy_cleanup: ## cleans up the service instance, Does not affect the op
25742574
$(eval $(call vars,$@,manila))
25752575
oc kustomize ${DEPLOY_DIR} | oc delete --ignore-not-found=true -f -
25762576
${CLEANUP_DIR_CMD} ${OPERATOR_BASE_DIR}/manila-operator ${DEPLOY_DIR}
2577-
oc rsh -t mariadb-openstack mysql -u root --password=${PASSWORD} -e "flush tables; drop database if exists manila;" || true
2577+
oc rsh -t $(DBSERVICE_CONTAINER) mysql -u root --password=${PASSWORD} -e "flush tables; drop database if exists manila;" || true
25782578

25792579
##@ TELEMETRY
25802580
.PHONY: telemetry_prep

0 commit comments

Comments
 (0)