网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

swift和keystone集成的配置方法

本篇内容主要讲解“swift和keystone集成的配置方法”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“swift和keystone集成的配置方法”吧!

创新互联于2013年成立,先为高昌等服务建站,高昌等地企业,进行企业商务咨询服务。为高昌企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。

swift部署略

keystone部署略


172.18.48.21  proxy01和keystone验证节点

172.18.48.22  proxy02节点


注:proxy01和proxy02都有环境边变量openrc ,各节点swift.conf也要一样


进入正题:

1.keystone所在节点执行:


keystone user-create --name=swift --pass=password --email=swift@example.com

keystone user-role-add --user=swift --tenant=service --role=admin

keystone user-role-add --user=swift --tenant=service --role=admin

keystone service-create --name=swift --type=object-store --description="openstack object storage"

keystone endpoint-create --service-id=$(keystone service-list | awk '/ object-store / {print $2}') --publicurl='http://172.18.48.21:8080/v1/AUTH_%(tenant_id)s' --internalurl='http://172.18.48.21:8080/v1/AUTH_%(tenant_id)s' --adminurl=http://172.18.48.21:8080


如有多个proxy节点,可用keystone分别创建endpoint,注意不同的endpoint要有不同的region

比如在proxy2(172.18.48.22)节点添加验证服务,只许在keystone节点执行


keystone endpoint-create --region RegionTwo --service-id=$(keystone service-list | awk '/ object-store / {print $2}') --publicurl='http://172.18.48.22:8080/v1/AUTH_%(tenant_id)s' --internalurl='http://172.18.48.22:8080/v1/AUTH_%(tenant_id)s' --adminurl=http://172.18.48.22:8080


2.proxy节点proxy-server.conf设置如下

[DEFAULT] 
bind_port = 8080 
workers = 8 
user = swift 

[pipeline:main] 

pipeline = catch_errors cache authtoken keystoneauth proxy-server 

[app:proxy-server] 

use = egg:swift#proxy 
account_autocreate = true 

[filter:keystoneauth] 

use = egg:swift#keystoneauth 
operator_roles = Member,admin,swift 

[filter:healthcheck] 

use = egg:swift#healthcheck 

[filter:authtoken] 

paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory 
delay_auth_decision = 10 
auth_protocol = http 
service_port = 5000 
service_host = 172.18.48.21 
auth_port = 35357 
auth_host = 172.18.48.21 
auth_url = http://172.18.48.21:5000/ 
admin_token = password 
cache = swift.cache 
admin_tenant_name = service 
admin_user = admin 
admin_password = password 

[filter:cache] 

use = egg:swift#memcache 
set log_name = cache 
memcache_servers = 172.18.48.22:11211,172.18.48.21:11211 

[filter:catch_errors] 
use = egg:swift#catch_errors

重启proxy服务

swift-init proxy restart

到此,相信大家对“swift和keystone集成的配置方法”有了更深的了解,不妨来实际操作一番吧!这里是创新互联网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!


网站栏目:swift和keystone集成的配置方法
网站网址:http://bjjierui.cn/article/gspoci.html

其他资讯