ManilaShare

class playback.manila_share.ManilaShare(user='ubuntu', hosts=None, key_filename=None, password=None, parallel=True, *args, **kwargs)

Bases: playback.common.Common

Install manila share service

Parameters:
  • user(str) – the user for remote server to login
  • hosts(list) – this is a second param
  • key_filename(str) – the ssh private key to used, default None
  • password(str) – the password for remote server
  • parallel(bool) – paralleler execute on remote server, default True
Returns:

None

Examples:
# create manila share instances
manila_share1 = ManilaShare(user='ubuntu', hosts=['controller1'])
manila_share2 = ManilaShare(user='ubuntu', hosts=['controller2'])

# install manila share service the same as manila service nodes
manila_share1.install_manila_share(
    connection='mysql+pymysql://manila:changeme@192.168.1.1/manila',
    auth_uri='http://192.168.1.1:5000',
    auth_url='http://192.168.1.1:35357',
    manila_pass='changeme',
    my_ip='192.168.1.2',
    memcached_servers='192.168.1.2:11211,192.168.1.3:11211',
    rabbit_hosts='192.168.1.2,192.168.1.3',
    rabbit_user='openstack',
    rabbit_pass='changeme',
    neutron_endpoint='http://192.168.1.1:9696',
    neutron_pass='changeme',
    nova_pass='changeme',
    cinder_pass='changeme'
)
manila_share2.install_manila_share(
    connection='mysql+pymysql://manila:changeme@192.168.1.1/manila',
    auth_uri='http://192.168.1.1:5000',
    auth_url='http://192.168.1.1:35357',
    manila_pass='changeme',
    my_ip='192.168.1.3',
    memcached_servers='192.168.1.2:11211,192.168.1.3:11211',
    rabbit_hosts='192.168.1.2,192.168.1.3',
    rabbit_user='openstack',
    rabbit_pass='changeme',
    neutron_endpoint='http://192.168.1.1:9696',
    neutron_pass='changeme',
    nova_pass='changeme',
    cinder_pass='changeme'
)

# create the service image for manila
http://docs.openstack.org/mitaka/install-guide-ubuntu/launch-instance-manila.html

# create shares with share servers management support
http://docs.openstack.org/mitaka/install-guide-ubuntu/launch-instance-manila-dhss-true-option2.html
install_manila_share(*args, **kwargs)

Install manila share service

Parameters:
  • connection – The SQLAlchemy connection string to use to connect to the database. (string value) e.g. mysql+pymysql://manila:MANILA_PASS@CONTROLLER_VIP/manila
  • auth_uri – Complete public Identity API endpoint. (string value) e.g. http://CONTROLLER_VIP:5000
  • auth_url – Authentication URL (unknown value) e.g. http://CONTROLLER_VIP:35357
  • manila_pass – passowrd of manila user
  • my_ip – IP address of this host. (string value)
  • memcached_servers – Memcached servers or None for in process cache. (list value) e.g. CONTROLLER1:11211,CONTROLLER2:11211
  • rabbit_hosts – RabbitMQ HA cluster host:port pairs. (list value) e.g. CONTROLLER1,CONTROLLER2
  • rabbit_user – The RabbitMQ userid. (string value) e.g. openstack
  • rabbit_pass – The RabbitMQ password. (string value)
  • neutron_endpoint – neutron endpoint e.g. http://CONTROLLER_VIP:9696
  • neutron_pass – the password of neutron user
  • nova_pass – the passowrd of nova user
  • cinder_pass – the passowrd of cinder user
Returns:

None