第一范文网 - 专业文章范例文档资料分享平台

Openstack-newton手动安装配置

来源:用户分享 时间:2025/5/16 19:31:33 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

Create the user role:

openstack role create user Add the user role to the demo project and user:

openstack role add --project demo --user demo user

Verify operation

1.For security reasons, disable the temporary authentication token mechanism:

Edit the /etc/keystone/keystone-paste.ini file and remove admin_token_auth from the [pipeline:public_api],[pipeline:admin_api], and [pipeline:api_v3] sections. 2.Unset the temporary OS_AUTH_URL and OS_PASSWORD environment variable:

unset OS_AUTH_URL OS_PASSWORD 3.As the admin user, request an authentication token:

$openstack --os-auth-url http://controller:35357/v3 \\ --os-project-domain-name default --os-user-domain-name default \\ --os-project-name admin --os-username admin token issue

Creating the scripts

1.Edit the admin-openrc file and add the following content:

exportOS_PROJECT_DOMAIN_NAME=default exportOS_USER_DOMAIN_NAME=default exportOS_PROJECT_NAME=admin exportOS_USERNAME=admin exportOS_PASSWORD=ADMIN_PASS exportOS_AUTH_URL=http://controller:35357/v3 exportOS_IDENTITY_API_VERSION=3 exportOS_IMAGE_API_VERSION=2 执行

[root@controller ~]# . admin-openrc [root@controller~]#openstack --os-project-domain-name

--os-auth-url default

http://controller:35357/v3

default

--os-user-domain-name

--os-project-name admin --os-username admin token issue

Using the scripts

1.Load the admin-openrc file to populate environment variables with the location of the

Identity service and the adminproject and user credentials:

$ . admin-openrc 2.Request an authentication token:

openstack token issue Image service

1.To create the database, complete these steps:

Use the database access client to connect to the database server as the root user:

mysql -u root -p Create the glance database:

mysql> CREATE DATABASE glance; Grant proper access to the glance database:

mysql> GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost' \\ IDENTIFIED BY 'GLANCE_DBPASS'; mysql> GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%' \\ IDENTIFIED BY 'GLANCE_DBPASS';

3. To create the service credentials, complete these steps: $openstack user create --domain default --password-prompt glance Add the admin role to the glance user and service project:

openstack role add --project service --user glance admin Create the glance service entity:

openstack service create --name glance \\ --description \ Create the Image service API endpoints:

openstack endpoint create --region RegionOne\\ image public http://controller:9292

搜索更多关于: Openstack-newton手动安装配置 的文档
Openstack-newton手动安装配置.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c4zksw306xu0zdc523xwm17c19373ml00go8_4.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top