Skip to content

Commit 1795d54

Browse files
committed
S3UTILS-222: preserve buckets-with-replication.json for re-running checks
Use cp instead of mv so the bucket list file remains at /root/ on the runner, allowing steps 3-5 to be repeated without re-running the list script.
1 parent 5a9b98f commit 1795d54

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

replicationAudit/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ansible -i env/$ENV_DIR/inventory md1-cluster1 -m shell \
4646
LEADER_IP=<leader-ip-from-step-3>
4747

4848
ansible -i env/$ENV_DIR/inventory runners_s3[0] -m shell \
49-
-a "mv /root/buckets-with-replication.json {{ env_host_logs}}/scality-vault{{ container_name_suffix | default("")}}/logs && \
49+
-a "cp /root/buckets-with-replication.json {{ env_host_logs}}/scality-vault{{ container_name_suffix | default("")}}/logs && \
5050
ctrctl exec scality-vault{{ container_name_suffix | default("")}} node /logs/check-replication-permissions.js \
5151
/logs/buckets-with-replication.json $LEADER_IP /logs/missing.json"
5252

@@ -82,7 +82,8 @@ ansible -i env/$ENV_DIR/inventory runners_s3[0] -m shell \
8282
{{ env_host_logs}}/scality-vault{{ container_name_suffix | default("")}}/logs/buckets-with-replication.json \
8383
{{ env_host_logs}}/scality-vault{{ container_name_suffix | default("")}}/logs/replication-fix-results.json \
8484
{{ env_host_logs}}/scality-vault{{ container_name_suffix | default("")}}/logs/admin1.json \
85-
/root/list-buckets-with-replication.sh'
85+
/root/list-buckets-with-replication.sh \
86+
/root/buckets-with-replication.json'
8687
```
8788

8889
# Scripts Documentation

0 commit comments

Comments
 (0)