The OpenStack family of file Share Service (Manila)

Source: Internet
Author: User

OpenStack File Share Service (Manila) for Centos

Introduction:

Manila is the File Shareservice project for OpenStack. To administer the OpenStack File Share service,it are helpful to understand a number of concepts like Share networks, Share S,multi-tenancy and back ends the can is configured with Manila. Whenconfiguring the File Share service, it is required to declare at least one backend. Manila can configured to run in a single-node configuration or acrossmultiple nodes. Manila can configured to provision shares from one or moreback ends. The OpenStack File Share service allows you-to-offer file-shareservices-to-users of an OpenStack installation.


1 . Create the database.

Mysql-u root-pcreate DATABASE Manila; GRANT all privileges the manila.* to ' Manila ' @ ' localhost ' identified by ' password '; GRANT all privileges the manila.* to ' Manila ' @ '% ' identified by ' password ';
2 . Create users, Roles,service and API endpoint.
OpenStack user Create--password-prompt manilaopenstack role add--project service--user Manila adminopenstack service CR Eate--name Manila--description "OpenStack Shared filesystems" Shareopenstack endpoint Create--publicurlhttp://10.4.15 .150:8786/v1/%\ (tenant_id\) s--internalurlhttp://10.4.15.150:8786/v1/%\ (tenant_id\) s--adminurlhttp:// 10.4.15.150:8786/v1/%\ (tenant_id\) s--regionregionone share

3.Install required packages on controller NODE.OPENSTACK-MANILA-API and Openstack-manila-scheduler Services would run on Thecontroller node.

Yum Install Openstack-manila python-manilapython-manilaclient

4. installed required packages on Compute Node.openstack-manila-share Service would run on the compute node.

Yum Install Openstack-mania-share Python-manila

5. Edit the/etc/manila/manila.conf file Andapi-paste.ini

[Default]osapi_share_listen=0.0.0.0api_paste_config=/etc/manila/api-paste.inistate_path=/var/lib/manilaglance_ host=x.x.x.xstorage_availability_zone=novarootwrap_config=/etc/manila/rootwrap.confauth_strategy= Keystoneenabled_share_backends=backend1nova_catalog_info=compute:nova:publicurlnova_catalog_admin_info=compute : Nova:adminurlnova_api_insecure=falsenova_admin_username=novanova_admin_password=passwordnova_admin_tenant_ Name=servicenova_admin_auth_url=http://x.x.x.x:5000/v2.0network_api_class=manila.network.neutron.neutron_ Network_plugin. Neutronnetworkplugindebug=trueverbose=truelog_dir=/var/log/manilause_syslog=falserpc_backend=rabbitcontrol_ Exchange=openstackamqp_durable_queues=falsecinder_catalog_info=volume:cinder:publicurlneutron_api_insecure= Falsecinder_admin_username=cinderneutron_auth_strategy=keystonecinder_admin_password=passwordnotification_ driver=messagingneutron_admin_tenant_name=servicecinder_cross_az_attach=trueneutron_url=http://x.x.x.x : 9696cinder_api_insecure=falsecindEr_admin_auth_url=http://x.x.x.x:5000/v2.0cinder_http_retries=3cinder_admin_tenant_name=serviceneutron_admin_ Password=passwordneutron_admin_username=neutronneutron_admin_auth_url=http://x.x.x.x:5000/v2.0neutron_url_ timeout=30default_share_type = defaultsql_connection = mysql://manila:[email  protected]/manila[oslo_messaging_rabbit]rabbit_host = controllerrabbit_userid =  Openstackrabbit_password = password[oslo_concurrency]lock_path=/var/lock/manilawarning!!! This manila share backend is configure on manila share node,so  manila-api and manila-scheduler not configure. [Backend1]service_network_division_mask=28volume_name_template=manila-share-%sservice_instance_network_helper_ Type=neutronmax_time_to_build_instance=300share_mount_path=/sharesmanila_service_keypair_name= Manila-serviceservice_network_name=manila_service_networkinterface_driver=manila.network.linux.interfAce. Ovsinterfacedriverservice_network_cidr=10.254.0.0/16service_instance_flavor_id=100service_instance_smb_config_ Path= $share _mount_path/smb.confvolume_snapshot_name_template=manila-snapshot-%sshare_backend_name=backend1smb_ Template_config_path= $state _path/smb.confservice_instance_name_template=manila_service_instance_%sdriver_ handles_share_servers = trueservice_instance_user = manilaservice_instance_password= Manilaservice_image_name = manila-service-imagepath_to_private_key = /root/.ssh/id_rsapath _to_public_key = /root/.ssh/id_rsa.pubshare_backend_name = generic1share_driver =  manila.share.drivers.generic.genericsharedrivershare_helpers=cifs= Manila.share.drivers.generic.cifshelper,nfs=manila.share.drivers.generic.nfshelpershare_volume_fstype=ext4max_ time_to_attach=120service_instance_security_group=manila-serviceconnect_share_server_to_tenant_network= Falsereplace /etc/manila/api-paste.ini,configure keystone authtoken.service_protocol = httpservice_host = x.x.x.xservice_port =  5000auth_host = x.x.x.xauth_port = 35357auth_protocol = httpadmin_tenant_name  = serviceadmin_user = manilaadmin_password = passwordsigning_dir = / Var/lib/manilaauth_uri=http://x.x.x.x:5000/

6.Populate the Manila Database.

Su-s/bin/sh-c "Manila-manage db Sync" Manila

7.Start and enable Manila services.

Systemctl start Openstack-manila-apisystemctl start Openstack-manila-schedulersystemctl enable Openstack-manila-apisystemctl Enable Openstack-manila-schedulersystemctl start Openstack-manila-sharesystemctl Enable Openstack-manila-share

8.Upload Manila Service Imageto glance.

wget https://github.com/uglide/manila-image-elements/releases/download/0.1.0/manila-service-image.qcow2glance Image-create--name "manila-service-image-new"--file manila-service-image.qcow2--disk-format Qcow2-- Container-format Bare--visibility Public--progress

9.Create Default share type.

Manila type-create Default True

Create Manila flavor type.

Nova flavor-create manila-service-flavor 100 128 0 1

Create nova for Manila Security Group.

nova secgroup-create manila-service  ' manila-service  Description ' nova secgroup-add-rule manila-service icmp -1 -1 0.0.0.0/0nova  secgroup-add-rule manila-service tcp 22 22 0.0.0.0/0nova secgroup-add-rule  Manila-service tcp 2049 2049 0.0.0.0/0nova secgroup-add-rule manila-service  udp 2049 2049 0.0.0.0/0nova secgroup-add-rule manila-service udp 445  445 0.0.0.0/0nova secgroup-add-rule manila-service tcp 445 445  0.0.0.0/0nova secgroup-add-rule manila-service tcp 137 139 0.0.0.0/0nova  secgroup-add-rule manila-service udp 137 139 0.0.0.0/0 

Create share network.

Manila share-network-create--name devinshare--neutron-net-id XXXXXXX--neutron-subnet-id XXXXXXX

Create NFS share.

MANILA Create NFS 1--name Devin--share-network Devinshare

Configure Manila access.

Manila access-allow Devin IP XXX (instance_ip)--access-level RW


This article is from the "Attitude decides everything" blog, please make sure to keep this source http://sangh.blog.51cto.com/6892345/1745324

The OpenStack family of file Share Service (Manila)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.