安装和配置映像服务_第1页
安装和配置映像服务_第2页
安装和配置映像服务_第3页
安装和配置映像服务_第4页
安装和配置映像服务_第5页
已阅读5页,还剩6页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、云计算基础架构平台应用 1. 安装映像服务 2.配置数据库连接 3.配置映像服务1. 安装映像服务 (1)应用管理用户的环境变量rootcontroller # source admin-openrc.sh(2)安装映像服务glancerootcontroller # yum install openstack-glance python-glanceclient2.配置数据库连接 使用controller节点上的MySQL数据库服务,数据库用户名为glance,密码为000000rootcontroller # openstack-config -set /etc/glance/glance

2、-api.conf database connection mysql:/glance:000000controller/glancerootcontroller # openstack-config -set /etc/glance/glance-registry.conf database connection mysql:/glance:000000controller/glance3.配置映像服务 (1)创建数据库用户名glance,密码为000000rootcontroller # mysql -u root -pEnter password:mysql CREATE DATABAS

3、E glance;mysql GRANT ALL PRIVILEGES ON glance.* TO glancelocalhost IDENTIFIED BY 000000;mysql GRANT ALL PRIVILEGES ON glance.* TO glance% IDENTIFIED BY 000000;mysql exit3.配置映像服务 (2)为映像服务创建数据库表rootcontroller # su -s /bin/sh -c glance-manage db_sync glance(3)创建用户glance,密码为000000,邮箱为glancelocalhost。将该用

4、户关联到租户service,角色为admin。rootcontroller # keystone user-create -name=glance -pass=000000 -email=glancelocalhostrootcontroller # keystone user-role-add -user=glance -tenant=service -role=admin3.配置映像服务 (4)配置映像服务Glance使用Keystone进行认证# openstack-config -set /etc/glance/glance-api.conf keystone_authtoken au

5、th_uri http:/controller:5000# openstack-config -set /etc/glance/glance-api.conf keystone_authtoken auth_host controller# openstack-config -set /etc/glance/glance-api.conf keystone_authtoken auth_port 35357# openstack-config -set /etc/glance/glance-api.conf keystone_authtoken auth_protocol http# open

6、stack-config -set /etc/glance/glance-api.conf keystone_authtoken admin_tenant_name service3.配置映像服务# openstack-config -set /etc/glance/glance-api.conf keystone_authtoken admin_user glance# openstack-config -set /etc/glance/glance-api.conf keystone_authtoken admin_password 000000# openstack-config -se

7、t /etc/glance/glance-api.conf paste_deploy flavor keystone# openstack-config -set /etc/glance/glance-registry.conf keystone_authtoken auth_uri http:/controller:5000# openstack-config -set /etc/glance/glance-registry.conf keystone_authtoken auth_host controller3.配置映像服务# openstack-config -set /etc/gla

8、nce/glance-registry.conf keystone_authtoken auth_port 35357# openstack-config -set /etc/glance/glance-registry.conf keystone_authtoken auth_protocol http# openstack-config -set /etc/glance/glance-registry.conf keystone_authtoken admin_tenant_name service# openstack-config -set /etc/glance/glance-reg

9、istry.conf keystone_authtoken admin_user glance# openstack-config -set /etc/glance/glance-registry.conf keystone_authtoken admin_password 000000# openstack-config -set /etc/glance/glance-registry.conf paste_deploy flavor keystone4.注册服务、创建API端点 (1)注册映像服务Glance,并创建Endpointrootcontroller # keystone ser

10、vice-create -name=glance -type=image -description=OpenStack Image Service“rootcontroller # keystone endpoint-create -service-id=$(keystone service-list | awk / image / print $2) -publicurl=http:/controller:9292 -internalurl=http:/controller:9292 -adminurl=http:/controller:92924.注册服务、创建API端点 2)启动glance-api和glance-registry服务rootcontroller # service openstack-glance-api start

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论