计算机软件及应用]openstack完整安装手册centos62_by_yz内容摘要:

keystone userroleadd user $ADMIN_USER role $ADMIN_ROLE tenant_id $ADMIN_TENANT keystone userroleadd user $ADMIN_USER role $ADMIN_ROLE tenant_id $DEMO_TENANT keystone userroleadd user $DEMO_USER role $ANOTHER_ROLE tenant_id $DEMO_TENANT TODO(termie): these two might be dubious keystone userroleadd user $ADMIN_USER role $KEYSTONEADMIN_ROLE tenant_id $ADMIN_TENANT keystone userroleadd user $ADMIN_USER role $KEYSTONESERVICE_ROLE tenant_id $ADMIN_TENANT The Member role is used by Horizon and Swift so we need to keep it: MEMBER_ROLE=$(get_id keystone rolecreate name=Member) keystone userroleadd user $DEMO_USER role $MEMBER_ROLE tenant_id $DEMO_TENANT keystone userroleadd user $DEMO_USER role $MEMBER_ROLE tenant_id $INVIS_TENANT NOVA_USER=$(get_id keystone usercreate name=nova \ pass=$SERVICE_PASSWORD \ tenant_id $SERVICE_TENANT \ ) keystone userroleadd tenant_id $SERVICE_TENANT \ user $NOVA_USER \ role $ADMIN_ROLE GLANCE_USER=$(get_id keystone usercreate name=glance \ pass=$SERVICE_PASSWORD \ tenant_id $SERVICE_TENANT \ ) keystone userroleadd tenant_id $SERVICE_TENANT \ user $GLANCE_USER \ role $ADMIN_ROLE SWIFT_USER=$(get_id keystone usercreate name=swift \ pass=$SERVICE_PASSWORD \ tenant_id $SERVICE_TENANT \ ) keystone userroleadd tenant_id $SERVICE_TENANT \ user $SWIFT_USER \ role $ADMIN_ROLE RESELLER_ROLE=$(get_id keystone rolecreate name=ResellerAdmin) keystone userroleadd tenant_id $SERVICE_TENANT \ user $NOVA_USER \ role $RESELLER_ROLE  建立 KEYSTONE服务数据库结构 keystonemanage db_sync  执行初始化数据脚本 bash GLANCE镜像存储服务配置 建立 GLANCE服务数据库 mysql uroot popenstack e 39。 create database glance39。  建立 GLANCE服务配置文件存放目录 mkdir /etc/glance  建立 GLANCE服务启动用户 useradd s /sbin/nologin m d /var/log/glance glance  在 /etc/glance建立 GLANCEAPI服务配置文件,内容如下: [DEFAULT] Show more verbose log output (sets INFO log level output) verbose = True Show debugging output in logs (sets DEBUG log level output) debug = True Which backend store should Glance use by default is not specified in a request to add a new image to Glance? Default: 39。 file39。 Available choices are 39。 file39。 , 39。 swift39。 , and 39。 s339。 default_store = file Address to bind the API server bind_host = Port the bind the API server to bind_port = 9292 Address to find the registry server registry_host = Port the registry server is listening on registry_port = 9191 Log to this file. Make sure you do not set the same log file for both the API and registry servers! log_file = /var/log/glance/ Send logs to syslog (/dev/log) instead of to file specified by `log_file` use_syslog = False ============ Notification System Options ===================== Notifications can be sent when images are create, updated or deleted. There are three methods of sending notifications, logging (via the log_file directive), rabbit (via a rabbitmq queue) or noop (no notifications sent, the default) notifier_strategy = noop Configuration options if sending notifications via rabbitmq (these are the defaults) rabbit_host = localhost rabbit_port = 5672 rabbit_use_ssl = false rabbit_userid = guest rabbit_password = openstack rabbit_virtual_host = / rabbit_notification_topic = glance_notifications ============ Filesystem Store Options ======================== Directory that the Filesystem backend store writes image data to filesystem_store_datadir = /var/lib/glance/images/ ============ Swift Store Options ============================= Address where the Swift authentication service lives swift_store_auth_address = :8080/ User to authenticate against the Swift authentication service swift_store_user = jdoe Auth key for the user authenticating against the Swift authentication service swift_store_key = a86850deb2742ec3cb41518e26aa2d89 Container within the account that the account should use for storing images in Swift swift_store_container = glance Do we create the container if it does not exist? swift_store_create_container_on_put = False What size, in MB, should Glance start chunking image files and do a large object manifest in Swift? By default, this is the maximum object size in Swift, which is 5GB swift_store_large_object_size = 5120 When doing a large object manifest, what size, in MB, should Glance write chunks to Swift? This amount of data is written to a temporary disk buffer during the process of chunking the image file, and the default is 200MB swift_store_large_object_chunk_size = 200 Whether to use ServiceNET to municate with the Swift storage servers. (If you aren39。 t RACKSPACE, leave this False!) To use ServiceNET for authentication, prefix hostname of `swift_store_auth_address` with 39。 s39。 . Ex. swift_enable_s = False ============ S3 Store Options ============================= Address where the S3 authentication service lives s3_store_host = :8080/ User to authenticate against the S3 authentication service s3_store_access_key = 20char AWS access key Auth key for the user auth。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。