From affec587e06c9c728dbb471458e465ef6c28f833 Mon Sep 17 00:00:00 2001 From: "Zhang Rong(Jon)" Date: Mon, 18 Nov 2024 06:39:17 +0000 Subject: [PATCH] Change deployment strategy to Recreate The default deployment strategy is RollingUpdate, which causes the application update to fail. Since the Pods share the same Persistent Volume for their database, the original Pod must be shut down before creating a new one. This commit resolves the application issue by switching the deployment strategy to Recreate. This ensures the old Pod is shut down before a new Pod is created during the upgrade process. Test Plan: PASS: Validate basic application lifecycle operations: upload/apply/remove/delete PASS: Upgrade the application on Duplex nodes, confirming a successful upgrade to the new version without issues. Closes-Bug: 2088424 Change-Id: Ide821620ffedfd0a8e58ad2883e3348fddb6994f Signed-off-by: Zhang Rong(Jon) --- .../upstream/oran-o2-helm/debian/deb_folder/changelog | 6 ++++++ helm-charts/upstream/oran-o2-helm/debian/meta_data.yaml | 6 +++--- stx-oran-o2-helm/debian/deb_folder/changelog | 6 ++++++ stx-oran-o2-helm/debian/meta_data.yaml | 2 +- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/helm-charts/upstream/oran-o2-helm/debian/deb_folder/changelog b/helm-charts/upstream/oran-o2-helm/debian/deb_folder/changelog index 7e7baf4..dcd2b9c 100644 --- a/helm-charts/upstream/oran-o2-helm/debian/deb_folder/changelog +++ b/helm-charts/upstream/oran-o2-helm/debian/deb_folder/changelog @@ -1,3 +1,9 @@ +oran-o2-helm (2.0.4-2) unstable; urgency=medium + + * Deployment strategy type update + + -- Jon Zhang Mon, 18 Nov 2024 09:40:00 +0000 + oran-o2-helm (2.0.4-1) unstable; urgency=medium * ORAN release J diff --git a/helm-charts/upstream/oran-o2-helm/debian/meta_data.yaml b/helm-charts/upstream/oran-o2-helm/debian/meta_data.yaml index fe4fe9f..d75260c 100644 --- a/helm-charts/upstream/oran-o2-helm/debian/meta_data.yaml +++ b/helm-charts/upstream/oran-o2-helm/debian/meta_data.yaml @@ -1,14 +1,14 @@ --- debname: oran-o2-helm -debver: 2.0.4-1 +debver: 2.0.4-2 src_path: oran-o2-helm src_files: - oran-o2-helm/files/Makefile dl_files: pti-o2.tgz: topdir: pti-o2 - url: https://github.com/o-ran-sc/pti-o2/archive/585eb7242c683657997e8b5ab0ce01213086dcec.tar.gz - md5sum: 2483280a37e674059172e6f4510df50f + url: https://github.com/o-ran-sc/pti-o2/archive/012ba0127481023de4cdcb4e9b77ee5e10f8e5ad.tar.gz + md5sum: 78fa0b993c5b68d8ee5c0ec0a80bc948 revision: dist: $STX_DIST GITREVCOUNT: diff --git a/stx-oran-o2-helm/debian/deb_folder/changelog b/stx-oran-o2-helm/debian/deb_folder/changelog index 4a6583a..643ca42 100644 --- a/stx-oran-o2-helm/debian/deb_folder/changelog +++ b/stx-oran-o2-helm/debian/deb_folder/changelog @@ -1,3 +1,9 @@ +stx-oran-o2-helm (1.2-2) unstable; urgency=medium + + * Deployment strategy type update + + -- Jon Zhang Mon, 18 Nov 2024 09:40:00 +0000 + stx-oran-o2-helm (1.2-1) unstable; urgency=medium * Auto chart increment update diff --git a/stx-oran-o2-helm/debian/meta_data.yaml b/stx-oran-o2-helm/debian/meta_data.yaml index 9478f10..c0c87aa 100644 --- a/stx-oran-o2-helm/debian/meta_data.yaml +++ b/stx-oran-o2-helm/debian/meta_data.yaml @@ -1,6 +1,6 @@ --- debname: stx-oran-o2-helm -debver: 1.2-1 +debver: 1.2-2 src_path: stx-oran-o2-helm revision: dist: $STX_DIST