Attempting to debug snapshot issues
This commit is contained in:
parent
02ad266448
commit
6e39251a65
2 changed files with 8 additions and 7 deletions
12
.github/workflows/deploy.yml
vendored
12
.github/workflows/deploy.yml
vendored
|
|
@ -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 }}
|
||||
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 }}
|
||||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue