openstack的配置整理

为方便大家初期的配置 我在此特意为大家整理了下 所有服务配置文件的信息 其实也不建议大家在部署的时候为了方便直接覆盖配置文件,因为在后期的参数优化上 你只能自己手动添加

一、mysql在centos7里叫mariadb 配置文件/etc/my.cnf

[mysqld]

datadir=/var/lib/mysql

socket=/var/lib/mysql/mysql.sock

symbolic-links=0

bind-address = 管理地址

default-storage-engine = innodb

innodb_file_per_table

collation-server = utf8_general_ci

init-connect = ‘SET NAMES utf8‘

character-set-server = utf8

[mysqld_safe]

log-error=/var/log/mariadb/mariadb.log

pid-file=/var/run/mariadb/mariadb.pid

!includedir /etc/my.cnf.d

二、Keystone的配置文件/etc/keystone/keystone.conf

[DEFAULT]

admin_token = 6361d684821608179ce2

verbose = true

[assignment]

[auth]

[cache]

[catalog]

[credential]

[database]

connection = mysql://keystone:[email protected]的ip/keystone

[domain_config]

[endpoint_filter]

[endpoint_policy]

[eventlet_server]

[eventlet_server_ssl]

[federation]

[fernet_tokens]

[identity]

[identity_mapping]

[kvs]

[ldap]

[matchmaker_redis]

[matchmaker_ring]

[memcache]

[oauth1]

[os_inherit]

[oslo_messaging_amqp]

[oslo_messaging_qpid]

[oslo_messaging_rabbit]

[oslo_middleware]

[oslo_policy]

[paste_deploy]

[policy]

[resource]

[revoke]

driver = keystone.contrib.revoke.backends.sql.Revoke

[role]

[saml]

[signing]

[ssl]

[token]

provider = keystone.token.providers.uuid.Provider

driver = keystone.token.persistence.backends.sql.Token

[trust]

三、Glance的配置 /etc/glance/glance-api.conf

[DEFAULT]

verbose=True

show_image_direct_url=True

notification_driver = noop

[oslo_policy]

[database]

connection=mysql://glance:[email protected]/glance

[oslo_concurrency]

[keystone_authtoken]

identity_uri=http://controlIP:35357

admin_tenant_name=service

admin_user=glance

admin_password=secret

auth_uri=http://controlIP:5000/v2.0

[paste_deploy]

flavor=keystone

[store_type_location_strategy]

[profiler]

[task]

[taskflow_executor]

[glance_store]

stores=glance.store.rbd.Store,

default_store=rbd

filesystem_store_datadir=/var/lib/glance/images/

rbd_store_ceph_conf=/etc/ceph/ceph.conf

rbd_store_user=glance

rbd_store_pool=images

rbd_store_chunk_size=8

四、Glance的registry /etc/glance/glance-registry.conf

[DEFAULT]

verbose=True

notification_driver = noop

[oslo_policy]

[database]

connection=mysql://glance:[email protected]/glance

[keystone_authtoken]

identity_uri=http://controlIP:35357

admin_tenant_name=service

admin_user=glance

admin_password=secret

auth_uri=http://controlIP:5000/v2.0

[paste_deploy]

flavor=keystone

[profiler]

五、控制节点上nova的配置/etc/nova/nova.conf

[DEFAULT]

rpc_backend=rabbit

my_ip=controlIP

auth_strategy=keystone

network_api_class=nova.network.api.API

security_group_api=nova

verbose=true

vncserver_listen=controlIP

vncserver_proxyclient_address=controlIP

[api_database]

[barbican]

[cells]

[cinder]

[conductor]

[database]

connection=mysql://nova:[email protected]=MysqlIP/nova

[ephemeral_storage_encryption]

[glance]

host=GlanceIP

[guestfs]

[hyperv]

[image_file_url]

[ironic]

[keymgr]

[keystone_authtoken]

auth_uri=http://controlIP:5000/v2.0

identity_uri=http://controlIP:35357

admin_user=nova

admin_password=secret

admin_tenant_name=service

[libvirt]

[metrics]

[neutron]

[osapi_v3]

[rdp]

[serial_console]

[spice]

[ssl]

[trusted_computing]

[upgrade_levels]

[vmware]

[workarounds]

[xenserver]

[zookeeper]

[matchmaker_redis]

[matchmaker_ring]

[oslo_concurrency]

[oslo_messaging_amqp]

[oslo_messaging_qpid]

[oslo_messaging_rabbit]

rabbit_host=rebbitIP

rabbit_password=secret

六、在nova节点上nova的配置文件 /etc/nova/nova.conf

[DEFAULT]

rpc_backend=rabbit

my_ip=novaIP

network_manager=nova.network.manager.FlatDHCPManager

auth_strategy=keystone

network_api_class=nova.network.api.API

send_arp_for_ha=True

flat_network_bridge=br0

network_size=254

force_dhcp_release=True

multi_host=True

security_group_api=nova

share_dhcp_address=True

verbose=true

firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver

allow_same_net_traffic=False

novncproxy_base_url=http://controlIP:6080/vnc_auto.html

vncserver_listen=0.0.0.0

vncserver_proxyclient_address=novaIP

vnc_enabled=true

[api_database]

[barbican]

[cells]

[cinder]

[conductor]

[database]

connection=mysql://nova:[email protected]/nova

[ephemeral_storage_encryption]

[glance]

host=GlanceIP

[guestfs]

[hyperv]

[image_file_url]

[ironic]

[keymgr]

[keystone_authtoken]

identity_uri=http://controlIP:35357

auth_uri=http://controlIP:5000/v2.0

admin_user=nova

admin_password=secret

admin_tenant_name=service

[libvirt]

inject_password=false

inject_key=false

inject_partition=-2

live_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE, VIR_MIGRATE_PEER2PEER, VIR_MIGRATE_LIVE, VIR_MIGRATE_TUNNELLED

disk_cachemodes="network=writeback"

images_type=rbd

images_rbd_pool=vms

images_rbd_ceph_conf=/etc/ceph/ceph.conf

hw_disk_discard=unmap

rbd_user=cinder

rbd_secret_uuid=38b62426-ff7d-435b-bf59-c88f5c48edfa

[metrics]

[neutron]

[osapi_v3]

[rdp]

[serial_console]

[spice]

[ssl]

[trusted_computing]

[upgrade_levels]

[vmware]

[workarounds]

[xenserver]

[zookeeper]

[matchmaker_redis]

[matchmaker_ring]

[oslo_concurrency]

[oslo_messaging_amqp]

[oslo_messaging_qpid]

[oslo_messaging_rabbit]

rabbit_host=rabbitIP

rabbit_password=secret

七、控制节点上Cinder的配置文件/etc/cinder/cinder.conf

[DEFAULT]

rpc_backend=rabbit

my_ip=controlIP

auth_strategy=keystone

enabled_backends=ceph

[BRCD_FABRIC_EXAMPLE]

[CISCO_FABRIC_EXAMPLE]

[database]

connection=mysql://cinder:[email protected]/cinder

[fc-zone-manager]

[keymgr]

[keystone_authtoken]

auth_uri = http://controlIP:5000/v2.0

identity_uri = http://controlIP:35357

admin_user = cinder

admin_password = secret

admin_tenant_name = service

[matchmaker_redis]

[matchmaker_ring]

[oslo_messaging_amqp]

[oslo_messaging_qpid]

[oslo_messaging_rabbit]

rabbit_host=rabbitIP

rabbit_password=secret

[profiler]

[ceph]

volume_driver = cinder.volume.drivers.rbd.RBDDriver

rbd_pool = volumes

rbd_ceph_conf = /etc/ceph/ceph.conf

rbd_flatten_volume_from_snapshot = false

rbd_max_clone_depth = 5

rbd_store_chunk_size = 4

rados_connect_timeout = -1

glance_api_version = 2

rbd_user = cinder

rbd_secret_uuid = 38b62426-ff7d-435b-bf59-c88f5c48edfa

八、存储节点Cinder的配置文件/etc/cinder/cinder.conf

[DEFAULT]

rpc_backend=rabbit

my_ip=selfIP

glance_host=GlanceIP

auth_strategy=keystone

iscsi_helper=lioadm

[BRCD_FABRIC_EXAMPLE]

[CISCO_FABRIC_EXAMPLE]

[database]

connection=mysql://cinder:[email protected]/cinder

[fc-zone-manager]

[keymgr]

[keystone_authtoken]

auth_uri = http://controlIP:5000/v2.0

identity_uri = http://controlIP:35357

admin_user = cinder

admin_password = secret

admin_tenant_name = service

[matchmaker_redis]

[matchmaker_ring]

[oslo_messaging_amqp]

[oslo_messaging_qpid]

[oslo_messaging_rabbit]

rabbit_host=rabbitIP

rabbit_password=secret

[profiler]

[ceph]

volume_driver = cinder.volume.drivers.rbd.RBDDriver

rbd_pool = volumes

rbd_ceph_conf = /etc/ceph/ceph.conf

rbd_flatten_volume_from_snapshot = false

rbd_max_clone_depth = 5

rbd_store_chunk_size = 4

rados_connect_timeout = -1

glance_api_version = 2

rbd_user = cinder

rbd_secret_uuid = 38b62426-ff7d-435b-bf59-c88f5c48edfa

目前先整理这些后续在补充 其中里包括了ceph的配置

时间: 2024-10-08 02:30:14

openstack的配置整理的相关文章

apache2.2 + tomcat6 整合以及集群配置整理

运行环境:apache2.2.X + tomcat6.0.X + window xp 1. 安装Apache,服务启动后在浏览器中输入http://localhost进行测试,如果能看到一个"It works!"的页面就代表Apache已经正常工作了 2. 安装Tomcat,略. 3. Apache配置 由于Apache 2.2.x集成了mod_jk功能,相对于1.3版本,不需要再进行繁琐的worker.properties配置,配置过程大幅简化. 3.1. 在Apache安装目录下找

web.xml配置整理

虽然是做web开发,但是web中的很多配置有的时候却不是很清楚,只是知道怎么配置,于是就把在网上看到各种关于web.xml的东西整理一下: web.xml中url-pattern的3种写法 1完全匹配 <url-pattern>/test/list.do</url-pattern> 2 路径匹配 <url-pattern>/*</url-pattern> <!--匹配根路径下的全部请求--> 3扩展名匹配 <url-pattern>*

openstack newton 配置glusterfs 作cinder backend

一.搭建gluster 1.节点准备 hostname ip 数据盘vdb g0 192.168.10.10 10G g1 192.168.10.11 10G g2 192.168.10.12 10G 2.安装glusterfs yum install centos-release-gluster310 yum install glusterfs-server 3.创建glusterfs,登录g0 gluster peer probe g1 gluster peer probe g2 4.对vd

VPN相关知识点及ASA上VPN的配置整理

VPN只是IPSec的一种应用方式,IPSec其实是IPSecurity的简称,它的目的是为IP提供高安全性特性,VPN则是在实现这种安全特性的方式下产生的解决方案 IPSEC VPN 预先协商加密协议.散列函数.封装协议.封装模式和秘钥有效期等内容.具体执行协商任务的协议叫做互联网秘钥交换协议IKE.协商完成后的结果就叫做安全关联SA(IKE SA和IPSEC SA) IKE建立了安全关联(SA) IPSec 协议不是一个单独的协议,它给出了应用于IP层上网络数据安全的一整套体系结构,包括网络

openstack安装配置—— file share node 配置

实际生产中,很多时候需要数据源的共享来实现多节点的实时数据保持一致,openstack官方提供了manila服务模块实现了云盘共享,manila服务也是需要manila服务端和存储节点共同组成的,本实验中为了节约虚机节点,就把manila服务端安装在了controller节点上,manila数据存储节点和cinder存储节点合并使用一个虚机节点,各自使用了一块独立硬盘. manila服务端配置 准备数据库 [[email protected] ~]# mysql Welcome to the M

openstack安装配置—— 实例启动(双网络模型)

    启动实例前至少需要配置好nova和neutron服务,当然实际中cinder服务也是必须的,否则一台虚拟是可以启动,但没有数据卷也是不合常理的.启动实例之前需要事先创建好网络模型,私有网络模型是包含公有网络模型的,所以我们前面配置netron服务时直接选择了私有网络模型,当然此时我们要想启动实例,公有网络模型和私有网络模型我们都可以选择,本实验中我们会先带大家在公有网络模型下启动一个实例,私有网络模型下启动实例要比公有网络下复杂一些. 第一步:创建物理网络 [[email protect

openstack安装配置—— orchestration安装配置

    如果一次需要启动10个实例,手动一个一个的去套模版启动,相信也行太low了吧,openstack官方也为运维人员准备了强大的利器,那就是任务编排orchestration服务模块了,当然如果要想用好这一工具来帮我解决低级趣味的任务编排,还需要我们专业去学习一下heat模版语法了,在这里我只是带大家简单实现一下通过任务编排模版自动创建并启动一个实例,具体语法规则不这里不详细陈述. controller节点安装配置 准备数据库 [[email protected] ~]# mysql Wel

openstack安装配置—— block node配置

    对于云主机来说,机器可以随时销毁再创建,但数据一定不能,所以就需要数据的持久存储,openstack官方给出的数据存储方案就是cinder模块,cinder模块需要cinder服务端和cinder存储节点共同构成,在本实验中,我们把cinder服务端一并安装在了controller节点上,另行配置一台cinder存储节点,也就是我们的block节点. block节点基础配置 [[email protected] ~]# lscpu Architecture:          x86_6

openstack安装配置—— controller node配置

    实际生产环境中,每个服务模块很有可能都是一个集群,但我们这里只是带大家配置了一个实验环境,所以我们这里把keystone.nova.neutron.glance.dashboard都安装在了contoller节点上. controller节点基础配置 [[email protected] ~]# hostname controller [[email protected] ~]# lscpu Architecture:          x86_64 CPU op-mode(s):