Author:
2 node with:
root@controller-01 ~]# grep ENA /etc/sysconfig/yum-autoupdate # ENABLED ENABLED="false"
/etc/selinux/config
)192.168.60.180
)192.168.60.180
for mgmt net and 90.147.143.10
for public net)Note 1: that the specified endpoint must belong to the SAN network in order to make the cinder-generated traffic pass through the SAN network. In this case all compute node must be connected to SAN network.
The host's IP address where Cinder Volume will be installed into is 192.168.60.150
and '192.168.60.151
. In addition consider the two controller IPs where clustered RabbitMQ and the glance-api services are running: 192.168.60.152
and 192.168.60.153
.
yum install -y openstack-cinder openstack-utils openstack-config --set /etc/cinder/cinder.conf DEFAULT my_ip 192.168.60.150 openstack-config --set /etc/cinder/cinder.conf DEFAULT iscsi_ip_address 192.168.40.100 openstack-config --set /etc/cinder/cinder.conf DEFAULT san_ip 192.168.40.100 openstack-config --set /etc/cinder/cinder.conf DEFAULT san_login grpadmin #insert corretc value openstack-config --set /etc/cinder/cinder.conf DEFAULT san_password xxxxx #insert correct value openstack-config --set /etc/cinder/cinder.conf DEFAULT eqlx_group_name group-0 #insert correct value openstack-config --set /etc/cinder/cinder.conf DEFAULT eqlx_pool default #insert correct value openstack-config --set /etc/cinder/cinder.conf DEFAULT volume_driver cinder.volume.drivers.eqlx.DellEQLSanISCSIDriver openstack-config --set /etc/cinder/cinder.conf DEFAULT auth_strategy keystone openstack-config --set /etc/cinder/cinder.conf DEFAULT rpc_backend cinder.openstack.common.rpc.impl_kombu openstack-config --set /etc/cinder/cinder.conf DEFAULT rabbit_hosts 192.168.60.152:5672,192.168.60.153:5672 openstack-config --set /etc/cinder/cinder.conf DEFAULT rabbit_ha_queues True openstack-config --set /etc/cinder/cinder.conf DEFAULT sql_idle_timeout 30 openstack-config --set /etc/cinder/cinder.conf DEFAULT rootwrap_config /etc/cinder/rootwrap.conf openstack-config --set /etc/cinder/cinder.conf DEFAULT api_paste_confg /etc/cinder/api-paste.ini openstack-config --set /etc/cinder/cinder.conf DEFAULT control_exchange cinder openstack-config --set /etc/cinder/cinder.conf DEFAULT sql_connection "mysql://cinder:<CINDER_DB_PWD>@192.168.60.180:4306/cinder" openstack-config --set /etc/cinder/cinder.conf DEFAULT glance_api_servers 192.168.60.152:9292,192.168.60.153:9292 openstack-config --set /etc/cinder/api-paste.ini filter:authtoken paste.filter_factory keystoneclient.middleware.auth_token:filter_factory
systemctl start openstack-cinder-volume
systemctl enable openstack-cinder-volume
connect to mysql and change databse: mysql> use cinder; search all virtual disk available: mysql> select id,host from volumes where status='available'; +--------------------------------------+-----------------------------+ | id | host | +--------------------------------------+-----------------------------+ | 0a729195-2e97-414c-8fc2-f5e20da138c8 | cld-blu-02.cloud.pd.infn.it | | 6a58891d-22d7-4303-8417-221623941214 | cld-blu-02.cloud.pd.infn.it | | 817641fe-be18-45dc-8c34-283b368edfc5 | cld-blu-02.cloud.pd.infn.it | | ae108c93-a4e5-44c9-88b4-e3b00a3e368a | cld-blu-01.cloud.pd.infn.it | | df8ea9f9-2e69-41a9-aedb-bab471f55d87 | cld-blu-02.cloud.pd.infn.it | +--------------------------------------+-----------------------------+ 5 rows in set (0.00 sec) change host for the virtual disk with selected id: mysql> update volumes set host='cld-blu-01.cloud.pd.infn.it' where id ='ae108c93-a4e5-44c9-88b4-e3b00a3e368a'