安装cinder 控制节点
MariaDB [(none)]> CREATE DATABASE cinder; Grant proper access to the cinder database:
MariaDB [(none)]> GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'localhost'
IDENTIFIED BY '123456';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'%'
IDENTIFIED BY '123456';
openstack user create --domain default --password-prompt cinder
openstack role add --project service --user cinder admin
openstack service create --name cinderv2
--description "OpenStack Block Storage" volumev2
openstack service create --name cinderv3
--description "OpenStack Block Storage" volumev3
openstack endpoint create --region RegionOne
volumev2 public http://192.168.1.100:8776/v2/%(project_id)s
openstack endpoint create --region RegionOne
volumev2 internal http://192.168.1.100:8776/v2/%(project_id)s
openstack endpoint create --region RegionOne
volumev2 admin http://192.168.1.100:8776/v2/%(project_id)s
openstack endpoint create --region RegionOne
volumev3 public http://192.168.1.100:8776/v3/%(project_id)s
openstack endpoint create --region RegionOne
volumev3 internal http://192.168.1.100:8776/v3/%(project_id)s
openstack endpoint create --region RegionOne
volumev3 admin http://192.168.1.100:8776/v3/%(project_id)s
yum install openstack-cinder -y
[root@ct1 ~]# grep -vE "^#|^$" /etc/cinder/cinder.conf [DEFAULT] state_path = /var/lib/cinder my_ip = 192.168.1.10 glance_api_servers = http://192.168.1.100:9292 auth_strategy = keystone osapi_volume_listen =$my_ip osapi_volume_listen_port = 8776 [backend] [backend_defaults] [barbican] [brcd_fabric_example] [cisco_fabric_example] [coordination] [cors] [database] connection = mysql+pymysql://cinder:123456@192.168.1.100:3307/cinder [fc-zone-manager] [healthcheck] [key_manager] [keystone_authtoken] auth_uri = http://192.168.1.100:5000 auth_url = http://192.168.1.100:35357 memcached_servers = ct1:11211,ct2:11211,ct3:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = cinder password = 123456 [matchmaker_redis] [nova] [oslo_concurrency] [oslo_messaging_amqp] [oslo_messaging_kafka] [oslo_messaging_notifications] transport_url=rabbit://guest:guest@ct1:5672,guest:guest@ct2:5672,guest:guest@ct3:5672 [oslo_messaging_rabbit] rabbit_hosts = 192.168.1.10:5672,192.168.1.11:5672,192.168.1.12:5672 rabbit_userid = guest rabbit_password = guest rabbit_retry_interval=1 rabbit_retry_backoff=2 rabbit_max_retries=0 rabbit_durable_queues=true rabbit_ha_queues=true [oslo_messaging_zmq] [oslo_middleware] [oslo_policy] [oslo_reports] [oslo_versionedobjects] [profiler] [ssl] su -s /bin/sh -c "cinder-manage db sync" cinder vi /etc/nova/nova.conf [cinder] os_region_name = RegionOne systemctl enable openstack-cinder-api.service openstack-cinder-scheduler.service systemctl start openstack-cinder-api.service openstack-cinder-scheduler.service openstack volume service list