Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove pbench-generate-token agent CLI functionality #3383

Merged
merged 4 commits into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion agent/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ util-scripts = \
# Scripts based on the Python Click package, which are generated during
# installation.
click-scripts = \
pbench-generate-token \
pbench-cleanup \
pbench-clear-results \
pbench-clear-tools \
Expand Down
9 changes: 0 additions & 9 deletions contrib/containerized-pbench/gen-token.sh

This file was deleted.

13 changes: 9 additions & 4 deletions contrib/containerized-pbench/pbench_demo
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,21 @@ export PB_AGENT_IMAGE_NAME=quay.io/pbench/pbench-agent-all-fedora-36:main

mkdir -p ${FIOTEST}

# Before we run the demo, we need a Pbench API key. The key can be an
# environment variable of PBENCH_API_KEY or need to be supplied to this
# script as an argument.
api_key=${1:-${PBENCH_API_KEY}}
if [[ -z "${api_key}" ]]; then
echo "Pbench API key must be provided, either on the command line or via the PBENCH_API_KEY environment variable"
exit 2
fi
#+
# Run the demo!
#-
pbench pbench-generate-token --output=/var/lib/pbench-agent/.token
pbench pbench-register-tool-set light
pbench pbench-list-tools
pbench pbench-user-benchmark --config example-workload -- \
fio --directory=/fiotest --name fio_test_file --direct=1 --rw=randread \
--bs=16k --size=100M --numjobs=8 --time_based --runtime=5s \
--group_reporting --norandommap
# Note that the token file location below is evaluated -outside- the container,
# unlike in the pbench-generate-token command above.
pbench pbench-results-move --token=$(< /var/tmp/${USER}/pbench-agent/run/.token)
pbench pbench-results-move --token=${api_key}
95 changes: 0 additions & 95 deletions lib/pbench/cli/agent/commands/generate_token.py

This file was deleted.

224 changes: 0 additions & 224 deletions lib/pbench/test/unit/agent/task/test_generate_token.py

This file was deleted.

Loading