Skip to content

Commit

Permalink
Merge pull request #201 from feichashao/hs-mg-fix
Browse files Browse the repository at this point in the history
OSD-25772 fix permission issue and add note for debug handler
  • Loading branch information
openshift-merge-bot[bot] authored Sep 27, 2024
2 parents 02def5c + 4b78bd6 commit f43d311
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion scripts/CEE/hs-must-gather/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ The script will upload the compressed dump to the [SFTP](https://access.redhat.c

Parameters:
- CLUSTER_ID: hosted cluster id.
- DUMP_GUEST_CLUSTER(true|false): also dump the must gather in the guest cluster.

In the management cluster:
```bash
ocm backplane managedjob create CEE/hs-must-gather -p CLUSTER_ID=my-hs-cluster-id
ocm backplane managedjob create CEE/hs-must-gather -p CLUSTER_ID=my-hs-cluster-id -p DUMP_GUEST_CLUSTER=false
```

Note:
The debug handler is disabled in the production environment. Logs can not be collected by hypershift dump, and DUMP_GUEST_CLUSTER won't work in the production environment. Please use `osdctl cluster dt gather-logs` to collect logs in the production environment.
2 changes: 1 addition & 1 deletion scripts/CEE/hs-must-gather/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source /managed-scripts/lib/sftp_upload/lib.sh

# Define expected values
HS_BINARY_PATH="/usr/local/bin/hypershift"
DUMP_DIR="${PWD}/${CLUSTER_ID}"
DUMP_DIR="/tmp/${CLUSTER_ID}"
TODAY=$(date -u +%Y%m%d)
TARBALL_NAME="${TODAY}_${CLUSTER_ID}_dump.tar.gz"
TARBALL_PATH="${DUMP_DIR}/${TARBALL_NAME}"
Expand Down

0 comments on commit f43d311

Please sign in to comment.