In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces the operation steps of openstack certification management, which has certain reference value and can be used for reference by friends who need it. The following information is about the detailed steps of openstack certification management.
OpenStack Dashboard operation
After logging in first, you can change the language to Chinese and change the time zone in the settings.
Then select "identity Management-roles" in the left navigation bar, enter the role list, and click "create role"
Create a role named "Role_web" and click submit to complete the creation of the role
Select "identity Management-user" in the left navigation bar, enter the user list, and click "create user" in the upper right corner of the page.
User name User_web_01, password abc@123, project selection system has created the project admin, role Role_web, others remain default
Repeat the above steps to create the user "User_web_02" and select the role "admin"
Select identity Management-groups in the left navigation bar, enter the list of user groups, and click "Create Group" in the upper right corner.
Enter the user group name, "Group_web", and then click "create Group"
Return to the list of user groups, and click "manage members" in the "Actions" of the row of the user group to be operated.
Enter the list of user group members and click add user
Select the users "User_web_01" and "User_web_02" of the user group you joined in the user list
Then check the user you just added, click the user name to go to the user overview page and view the details
Then log out of the admin user and log in using User_web_01 and User_web_02
Create projects, modify project quotas
Log in as admin and select "identity Management-Project" in the navigation bar to create the project
An error will be reported when creating.
At this point, you need to create a role "user" in "identity Management-roles"
In "Project Information", fill in the project name "Project_web" and leave everything else by default.
Select "Project member", add the user "User_web_01", and select the role "admin"
Then click create Project to complete the creation of the project
Return to the project list and click the project name "Project_web" to view the project information
Log out of admin, log in as User_web_01, verify
Log in as admin user again, select "identity Management-Project", view the "Project_web" project, and configure "modify quota" as follows
Modify the quota, modify it in "instance", "volume" and "network" respectively, and modify it to 5pd5 and 10 respectively for resource restriction
Log out of admin, log in as User_web_01, select to enter the Project_web project, and enter "calculation-Overview" to confirm the change of project quota.
The Openstack cli operation creates roles, users, and user groups
Go to the controller node and import the environment variables
. Admin-openrc.sh
View the usage of commands related to Openstack roles
Openstack role-help
The specific usage of subcommands can be viewed as follows
Openstack role create-help
Create a Role_cli using the command
Openstack role create Role_cli
Then use the openstack user command to view the command usage through the-- help parameter
Opesntack user-helpopenstack user create-help
Create the User_cli_01 and set the password as follows
Openstack user create-domain default-project admin-password-prompt User_cli_01
Add the role Role_cli to the project admin for user User_cli_01
Openstack role add-project admin-user User_cli_01 Role_cli
Then create a user User_cli_02 and add the role admin to the project admin
Openstack user create-domain default-project admin-password-prompt User_cli_02
Openstack role add-project admin-user User_cli_02 admin
Then check the role assignment.
Openstack role assignment list-- names | grep User_cli
Create user group "Group_cli"
Openstack group create Group_cli
Then add user members "User_cli_01" and "User_cli_02" to the user group "Group_cli"
Openstack group add user Group_cli User_cli_01 User_cli_02
Create the environment variable User_cli_01-openrc.sh for User_cli_01, and edit
Cp admin-openrc.sh User_cli_01-openrc.shvi cp admin-openrc.sh User_cli_01-openrc.sh
Important change of user name and password
Import the environment variable file of User_cli_01 and view the project list. You can only see the project admin.
User_cli_01-openrc.sh openstack project list
Create the environment variable file User_cli_02-openrc.sh for User_cli_02, and then import the environment variables
Cp admin-openrc.sh User_cli_02-openrc.shvi cp admin-openrc.sh User_cli_02-openrc.sh
Check the list of projects and you can see all the projects
Disable users, delete users
Import admini-opensrc.sh environment variables to operate as admin
Remove user "User_cli_02" from user group "Group_cli"
Openstack group remove user Group_cli User_cli_02
Check whether the user group Group_cli contains the user "User_cli_02"
Openstack group contains user Group_cli User_cli_02
Disable user "User_cli_02"
Openstack user set-disable User_cli_02
View the disabled status of the user "User_cli_02"
Openstack user show User_cli_02
Delete User_cli_02
Openstack user delete User_cli_02
View a list of users
Openstack user list
It can be seen that the user User_cli_02 no longer exists
Create projects and modify project quotas
The project-related commands are mainly openstack project
Create the project "Project_cli"
Openstack project create-domain default Project_cli
Add the role "admin" to the project "Project_cli" for the user "User_cli_02"
Openstack role add-project Project_cli-user User_cli_01 admin
View role assignments
Openstack role assignment list-- name | grep User_cli_01
Modify the user "User_cli_01" environment variable "User_cli_01-openstack.sh", and change the project to Project_cli
Import "User_cli_01" environment variable
Check the project list
Openstack project list
The openstack quota-related commands are
Oepnstack quota
View the default quota for the project Project_cli
Then modify the default quota for the project "Project_cli" to change the number of instances to 5, the number of volumes to 5 and the network to 10
Openstack quota set-instances 5-volumes 5-networks 10 Project_cli
Check for quota changes for project "Project_cli"
Openstack quota show Project_cli | grep-E "instances | volumes | networks"
Confirm that the modification is successful
Create services and service endpoints
Using openstack cli, you can also perform operations that cannot be done on the openstack dashboard, such as creating services and service endpoints.
Now let's start to create swift services and service endpoint descriptions
First import the admin environment variable
Openstack service is a service-related command
Create the service "swift"
Openstack service create-name swift-description "Openstack Object Storage" object-store
View a list of services
Openstack service list
Openstack endpoint is the endpoint-related command
Create a service endpoint for the service "swift"
Openstack endpoint create-- region RegionOne object-store public http://controller:8080/v1/AUTH_%\(tenant_id\)s
Openstack endpoint create-- region RegionOne object-store internal http://controller:8080/v1/AUTH_%\(tenant_id\)s
Openstack endpoint create-- region RegionOne object-store admin http://controller:8080/v1/AUTH_%\(tenant_id\)s
View the service endpoint of the swif service
Openstack endpoint list | grep swift
Log in to the opesntack dashboard interface and go to "Project-object Storage-Container" to confirm
On the openstack certification management is shared here, I hope that the above content can have a certain reference value for everyone, can learn to apply. If you like this article, you might as well share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.