In the old version of OpenPAI, when deployed in basic authentication mode, pai didn't provide explicit group information for the admins, thus raising confusion when managing the platform. In latest version(>=0.16.0), pai will provide direct group management.
This document will introduce how to manage user, group and teamwise storage in OpenPAI basic authentication mode in the latest version(>=0.16.0).
To add a new user to the cluster, cluster admin needs to do:
- create user using create user api
- users' username and password must be given when creating a user.
In basic authentication mode, admin can update the existing users' information directly.
- User name, password and email can be changed by using user apis.
- User's grouplist can be updated by using user group apis. Only admins can update users' group information.
- delete user using delete user api
In basic authentication mode, a group named default
and a group named admingroup
will be created when deploy OpenPAI. Every user needs to be in a group to have access to VCs and teamwise storages.
When creating a user without assigning any group to it. The user will be assigned to group default
.
For the admingroup
, it has the permission to access all VCs and teamwise storages.
In basic authentication mode, group is bind to virtual cluster. Admin can not create group directly in this mode. To create a new group, admin needs to do:
- Create a new group by using create group api.
- Update teamwise storages, using command line tool to update storage configs in the group.
- Update VCs. Using virtual cluster api to change the VCs that this group have access to.
- Update adminrole. Using group extension update api to update group's adminrole information,only users in admin group have access to administration.
- Use delete group api to remove a group from a cluster, the users in this group will be updated.
To use teamwise storage, admin needs to do these things:
-
Config storagemanager, follow the guide on storagemanager
-
Use storage cmd line tool, like shown in storage plugin to create storage config and add it to groups.