From 6e39251a6598067bdc61d0e8a67e9bf809e48f7b Mon Sep 17 00:00:00 2001 From: Alan Bridgeman Date: Wed, 14 May 2025 10:15:55 -0500 Subject: [PATCH] Attempting to debug snapshot issues --- .github/workflows/deploy.yml | 12 ++++++------ snapshot-server/server.py | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 28deed5..50c0418 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -114,9 +114,9 @@ jobs: # --image-name ${{ secrets.REPOSITORY_HOSTNAME }}/k8s/${{ env.IMAGE_NAME }} # Update the Hashicorp Vault instance for the Accessible Events Platform (AEP) - #update-k8s-deployment-image \ - # --image-version ${{ env.CONTAINER_IMAGE_VERSION }} \ - # --namespace aep \ - # --deployment-name aep-vault \ - # --container-name aep-vault \ - # --image-name ${{ secrets.REPOSITORY_HOSTNAME }}/k8s/${{ env.IMAGE_NAME }} \ No newline at end of file + update-k8s-deployment-image \ + --image-version ${{ env.CONTAINER_IMAGE_VERSION }} \ + --namespace aep \ + --deployment-name aep-vault \ + --container-name aep-vault \ + --image-name ${{ secrets.REPOSITORY_HOSTNAME }}/k8s/${{ env.IMAGE_NAME }} \ No newline at end of file diff --git a/snapshot-server/server.py b/snapshot-server/server.py index 155413a..e6bb8ad 100644 --- a/snapshot-server/server.py +++ b/snapshot-server/server.py @@ -29,6 +29,8 @@ class VaultSnapshotHandler(BaseHTTPRequestHandler): os.remove(snapshot_file) return + + print(f'Snapshot output: %s', process.stdout.strip()) # Read the snapshot file content with open(snapshot_file, 'rb') as f: @@ -42,7 +44,6 @@ class VaultSnapshotHandler(BaseHTTPRequestHandler): with tempfile.NamedTemporaryFile(delete=False) as tmp_file: snapshot_file = tmp_file.name print(f"Temporary file created for snapshot: {snapshot_file}") - try: snapshot_data = self.create_and_serve_snapshot(snapshot_file)