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