Skip to content

Conversation

hippogr
Copy link
Contributor

@hippogr hippogr commented Sep 8, 2025

add common tools for PAI administration

@hippogr hippogr requested review from Copilot and zhogu September 8, 2025 03:10
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a collection of Python administration tools for PAI (Platform for AI) cluster management. The tools provide functionality for managing jobs, users, groups, and storage configurations through REST API interactions.

Key changes:

  • Database job management tools for updating waiting jobs and handling PostgreSQL operations
  • User administration tools for setting VC admins, job expiration, and token revocation
  • Group management tools for updating group configurations and blob storage setup

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
tools/updateWaitingJob.py Database utility for updating job states in PostgreSQL with snapshot management
tools/updateGroupInfo.py Group management tool for adding/removing virtual clusters and blob storage
tools/setupBlobForPAI.py Blob storage setup automation with Kubernetes PV/PVC creation
tools/setUserVcAdmin.py User administration tool for setting virtual cluster admin permissions
tools/setUserJobExpiration.py User management tool for setting job expiration dates
tools/revokeAllTokens.py Token management utility for revoking all user tokens
tools/displayUser.py User information display tool with detailed user data retrieval
tools/displayGroup.py Group information display tool for viewing group configurations
tools/deleteGroup.py Group deletion utility for removing groups via REST API
tools/cleanStorageList.py Storage management tool for refreshing storage configurations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@yukirora yukirora changed the title add common tools for PAI administration Tools - add common tools for LTP administration Sep 9, 2025
hippogr and others added 2 commits September 11, 2025 10:14
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@hippogr hippogr requested review from yukirora and Copilot September 11, 2025 06:21
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@hippogr hippogr merged commit a05308c into dev Sep 12, 2025
1 check passed
This was referenced Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants