OpenStack Liberty : Configure Manila#2 ( Compute Node )2015/12/05 |
Install OpenStack Shared File System (Manila).
This example shows to install Shared File Systems on the existing environment like follows.
| +----------------------+ | +-----------------------+ | [ Control Node ] | | | [ Network Node ] | | Keystone |10.0.0.30 | 10.0.0.50| DHCP Agent | | Glance |------------+------------| L3 Agent | | Nova API |eth0 | eth0| L2 Agent | | Neutron Server | | | Metadata Agent | | Cinder API | | | Cinder Volume | | Manila API | | | | +----------------------+ | +-----------------------+ eth0|10.0.0.51 +----------------------+ | [ Compute Node ] | | Nova Compute | | L2 Agent | | Manila Share | +----------------------+ |
Configure Compute Node on this section.
|
|
[1] | Install Manila Share. |
[root@node01 ~]# yum --enablerepo=centos-openstack-liberty,epel -y install openstack-manila-share python-manilaclient
|
[2] | Configure Manila Share. |
[root@node01 ~]# mv /etc/manila/manila.conf /etc/manila/manila.conf.org
[root@node01 ~]#
vi /etc/manila/manila.conf # create new [DEFAULT] api_paste_config = /etc/manila/api-paste.ini rootwrap_config = /etc/manila/rootwrap.conf state_path = /var/lib/manila auth_strategy = keystone # IP address of Glance glance_host = 10.0.0.30 nova_catalog_info = compute:nova:publicURL nova_catalog_admin_info = compute:nova:adminURL # auth info for Nova nova_admin_username = nova nova_admin_password = servicepassword nova_admin_tenant_name =service nova_admin_auth_url = http://10.0.0.30:5000/v2.0 cinder_catalog_info = volume:cinder:publicURL # auth info for Cinder cinder_admin_username = cinder cinder_admin_password = servicepassword cinder_admin_tenant_name = service cinder_admin_auth_url = http://10.0.0.30:5000/v2.0 # auth info for Neutron neutron_admin_username = neutron neutron_admin_password = servicepassword neutron_admin_tenant_name = service neutron_admin_auth_url = http://10.0.0.30:5000/v2.0 neutron_url = http://10.0.0.30:9696 network_api_class=manila.network.neutron.neutron_network_plugin.NeutronNetworkPlugin rpc_backend = rabbit control_exchange = openstack default_share_type = default_share_type enabled_share_backends = backend01 # auth info for MariaDB [database] connection = mysql://manila:password@10.0.0.30/manila # auth info for Keystone [keystone_authtoken] auth_uri = http://10.0.0.30:5000 auth_url = http://10.0.0.30:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = manila password = servicepassword
[oslo_concurrency]
lock_path = $state_path/tmp # auth info for RabbitMQ [oslo_messaging_rabbit] rabbit_host = 10.0.0.30 rabbit_port = 5672 rabbit_userid = guest rabbit_password = password
[backend01]
share_backend_name = backend01 share_mount_path = /shares share_driver = manila.share.drivers.generic.GenericShareDriver share_helpers = CIFS=manila.share.drivers.generic.CIFSHelper,NFS=manila.share.drivers.generic.NFSHelper share_volume_fstype = ext4 driver_handles_share_servers = True volume_name_template = manila-share-%s volume_snapshot_name_template = manila-snapshot-%s interface_driver = manila.network.linux.interface.OVSInterfaceDriver service_instance_user = manila service_instance_password = manila service_image_name = manila-service-image service_instance_network_helper_type = neutron service_instance_name_template = manila_service_instance_%s service_instance_flavor_id = 2 service_network_cidr = 10.254.0.0/16 service_instance_smb_config_path = $share_mount_path/smb.conf smb_template_config_path = $state_path/smb.conf
[root@node01 ~]#
[root@node01 ~]# chmod 640 /etc/manila/manila.conf [root@node01 ~]# chgrp manila /etc/manila/manila.conf [root@node01 ~]# mkdir /var/lib/manila [root@node01 ~]# chown manila. /var/lib/manila [root@node01 ~]# systemctl start openstack-manila-share [root@node01 ~]# systemctl enable openstack-manila-share
manila-manage service list Binary Host Zone Status State Updated At manila-scheduler dlp nova enabled :-) 2015-12-05 09:37:15 manila-share node01 nova enabled :-) 2015-12-05 09:37:07 |
Sponsored Link |
|