Skip to content

Commit

Permalink
chore: Show the Determined users at startup to help us troubleshoot "…
Browse files Browse the repository at this point in the history
…make slurmcluster" unconfigured user failures [FE-101] (#925)

* chore: Show the Determined users at startup to help us troubleshoot "make slurmcluster" unconfigured user failures [FE-101]

* Display the Determined users before running the tests

* Show the Determined users in config.yml, just prior to running the test

* specify the host and port when calling 'det user list'

* Show the master host being pointed to when showing the 'det user list'

* Show the master host being pointed to when showing the 'det user list'
  • Loading branch information
rcorujo authored and determined-ci committed Mar 12, 2024
1 parent 6b0d136 commit c945536
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .circleci/real_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,8 @@ commands:
DD_CIVISIBILITY_AGENTLESS_ENABLED=true DD_SITE='datadoghq.com' DD_ENV=ci DD_SERVICE='pytest-<<parameters.mark>>' \
# Remove prior test results
rm -f "<<parameters.junit-path>>"
echo "Determined user list from master '<<parameters.master-host>>:<<parameters.master-port>>'"
det --master "<<parameters.master-host>>:<<parameters.master-port>>" user list
DET_MASTER_CERT_FILE=<<parameters.master-cert>> DET_MASTER_CERT_NAME=<<parameters.master-cert-name>> \
IS_CIRCLECI_JOB=1 XDG_CONFIG_HOME=/tmp \
pytest --capture=tee-sys -vv \
Expand Down
2 changes: 2 additions & 0 deletions tools/slurm/scripts/slurmcluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ stages:
curl -H "Authorization: Bearer $(cat /tmp/slurmcluster-token)" -X PATCH -d '{"agent_user_group": {"agent_uid": $OPT_REMOTE_UID, "agent_gid": $OPT_REMOTE_GID, "agent_user": "$OPT_REMOTE_USER", "agent_group": "$OPT_REMOTE_GROUP"}}' localhost:8080/api/v1/users/1
- sh: >
curl -H "Authorization: Bearer $(cat /tmp/slurmcluster-token)" -X PATCH -d '{"agent_user_group": {"agent_uid": $OPT_REMOTE_UID, "agent_gid": $OPT_REMOTE_GID, "agent_user": "$OPT_REMOTE_USER", "agent_group": "$OPT_REMOTE_GROUP"}}' localhost:8080/api/v1/users/2
- sh: >
echo -e "Determined user list from master '$(hostname):8080'\n" && curl -H "Authorization: Bearer $(cat /tmp/slurmcluster-token)" -X GET localhost:8080/api/v1/users
cmdline:
- $OPT_PROJECT_ROOT/master/build/determined-master
- --config-file
Expand Down

0 comments on commit c945536

Please sign in to comment.