In Chapter 2, Exploring AWS Cloud, we discussed the OpenStack Identity Service. The OpenStack Identity Service (Keystone) provides identity management and also manages and maintains the creation of users, projects, roles, and so on. This is one of the most important services that all OpenStack applications consume.
An OpenStack user is simply an entity that has an associated username and password along with certain roles that allow the user to perform certain actions on the OpenStack platform. An OpenStack user with administrative privileges is allowed to manipulate users.
To create a new OpenStack user using the Python SDK, we first need to define the properties of the user. A Python dictionary is used to define the properties of the user.
A new OpenStack user can be created by simply invoking the create_user()
and passing the Python dictionary to the function:
def create_user(conn): user_parameters = {...