Jump to: navigation, search

Difference between revisions of "Obsolete:Manila/ManilaDevstack"

Line 5: Line 5:
 
#Run stack.sh from the ~/devstack directory
 
#Run stack.sh from the ~/devstack directory
  
=== Ubuntu-16.04.1-server-amd64, Tested on Nov 11-23-2016 ===
+
=== Kilo ===
  
git clone git://github.com/openstack-dev/devstack.git<br />
+
Clone Devstack to your home directory
 +
    git clone git://github.com/openstack-dev/devstack.git<br />
 
Create stack user by running
 
Create stack user by running
 
     sudo devstack/tools/create-stack-user.sh
 
     sudo devstack/tools/create-stack-user.sh
Line 13: Line 14:
 
     sudo passwd stack
 
     sudo passwd stack
 
Login as stack<br />
 
Login as stack<br />
     git clone git://github.com/openstack-dev/devstack.git
+
    su - stack
You should have /opt/stack/devstack
+
You should have ~/devstack
     cd to devstack
+
    cd ~/devstack
vi local.conf and add the following to the file
+
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<br />
 +
Create stack user by running
 +
    sudo devstack/tools/create-stack-user.sh
 +
Change stack user password if needed
 +
    sudo passwd stack
 +
Login as stack<br />
 +
    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
 
     enable_plugin manila https://github.com/openstack/manila
 
run ./stack.sh<br />
 
run ./stack.sh<br />

Revision as of 15:03, 5 December 2016

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