Jump to: navigation, search

Manila/ManilaDevstack

Steps

  1. Clone Devstack to the home directory of the VM
  2. Enable Manila in local.conf file
  3. Run stack.sh from the ~/devstack directory

Kilo

Clone Devstack to your home directory

   git clone git://github.com/openstack-dev/devstack.git

Create stack user by running

   sudo devstack/tools/create-stack-user.sh

Change stack user password if needed

   sudo passwd stack

Login as stack

   su - stack

You should have ~/devstack

   cd ~/devstack

Copy samples/local.conf to the upper level and and add the following to the file (enable manila, and neutron, and to disable horizon and nova-network)

  $ cat << EOF >> local.conf

   disable_service horizon
   disable_service n-net

   enable_service neutron
   enable_service q-svc
   enable_service q-agt
   enable_service q-dhcp
   enable_service q-l3
   enable_service q-meta
 
   enable_plugin manila https://github.com/openstack/manila

   Q_PLUGIN=ml2
   ENABLE_TENANT_VLANS=True
   ML2_VLAN_RANGES=physnet1:100:200
   PHYSICAL_NETWORK=physnet1
   OVS_PHYSICAL_BRIDGE=br-eth1
   Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch
   Q_ML2_PLUGIN_TYPE_DRIVERS=vlan,vxlan
   EOF

Master

Ubuntu-16.04.1-server-amd64, Tested on Nov 11-23-2016

Clone Devstack to your home directory

   git clone git://github.com/openstack-dev/devstack.git

Create stack user by running

   sudo devstack/tools/create-stack-user.sh

Change stack user password if needed

   sudo passwd stack

Login as stack

   su - stack

You should have ~/devstack

   cd ~/devstack

Copy samples/local.conf to the upper level and and add the following to the file (enables manila)

   enable_plugin manila https://github.com/openstack/manila

run ./stack.sh
Once stack is up, you can verify by

   manila service-list

Troubleshooting

As of 11/30/2016, ssh login to share VM is broken https://bugs.launchpad.net/manila/+bug/1646135

Workaroundː edit the /etc/manila/manila.conf and add the following in [generic1] section

   service_instance_password = manila

and comment following lines

   #path_to_private_key = /home/manila/.ssh/id_rsa
   #path_to_public_key = /home/manila/.ssh/id_rsa.pub

Test

   neutron net-list
   neutron subnet-list
   manila share-network-create --neutron-net-id <PRIVATE_NET_ID> --neutron-subnet-id <PRIVATE_SUBNET_ID> --name manila_share
   manila share-network-list
   manila create --name devstack_share --share-network <SHARE_NET_ID> NFS 1
   manila list