Attempting to debug snapshot issues

This commit is contained in:
Alan Bridgeman 2025-05-14 10:15:55 -05:00
parent 02ad266448
commit 6e39251a65
2 changed files with 8 additions and 7 deletions

View file

@ -114,9 +114,9 @@ jobs:
# --image-name ${{ secrets.REPOSITORY_HOSTNAME }}/k8s/${{ env.IMAGE_NAME }} # --image-name ${{ secrets.REPOSITORY_HOSTNAME }}/k8s/${{ env.IMAGE_NAME }}
# Update the Hashicorp Vault instance for the Accessible Events Platform (AEP) # Update the Hashicorp Vault instance for the Accessible Events Platform (AEP)
#update-k8s-deployment-image \ update-k8s-deployment-image \
# --image-version ${{ env.CONTAINER_IMAGE_VERSION }} \ --image-version ${{ env.CONTAINER_IMAGE_VERSION }} \
# --namespace aep \ --namespace aep \
# --deployment-name aep-vault \ --deployment-name aep-vault \
# --container-name aep-vault \ --container-name aep-vault \
# --image-name ${{ secrets.REPOSITORY_HOSTNAME }}/k8s/${{ env.IMAGE_NAME }} --image-name ${{ secrets.REPOSITORY_HOSTNAME }}/k8s/${{ env.IMAGE_NAME }}

View file

@ -30,6 +30,8 @@ class VaultSnapshotHandler(BaseHTTPRequestHandler):
return return
print(f'Snapshot output: %s', process.stdout.strip())
# Read the snapshot file content # Read the snapshot file content
with open(snapshot_file, 'rb') as f: with open(snapshot_file, 'rb') as f:
file_data = f.read() file_data = f.read()
@ -42,7 +44,6 @@ class VaultSnapshotHandler(BaseHTTPRequestHandler):
with tempfile.NamedTemporaryFile(delete=False) as tmp_file: with tempfile.NamedTemporaryFile(delete=False) as tmp_file:
snapshot_file = tmp_file.name snapshot_file = tmp_file.name
print(f"Temporary file created for snapshot: {snapshot_file}") print(f"Temporary file created for snapshot: {snapshot_file}")
try: try:
snapshot_data = self.create_and_serve_snapshot(snapshot_file) snapshot_data = self.create_and_serve_snapshot(snapshot_file)