ceph / teuthology-api

A REST API to execute teuthology commands.
MIT License
2 stars 10 forks source link

services/kill: make username check case-insensitive #43

Closed VallariAg closed 8 months ago

VallariAg commented 10 months ago

Kill route checks if github_username == run_owner (from paddles). Github returns username like "JohnDoe" while run-names scheduled via teuthology machines have no capitalisation like "johndoe". This results in error like: ERROR:teuthology_api.services.kill:JohnDoe doesn't have permission to kill a job scheduled by: johndoe

Runs scheduled by teuthology-api would not have above error because they would have run-name capitalised too like "JohnDoe-2024-01-08_10:32:53-teuthology:no-ceph-main-distro-default-testnode".

Contribution Guidelines

To sign and test your commits, please refer to Contibution guidelines.

Checklist