Shared File Systems Option 2: Driver support for share servers management

Shared File Systems Option 2: Driver support for share servers management

For simplicity, this configuration references the same storage node configuration for the Block Storage service.

Bemerkung

This guide describes how to configure the Shared File Systems service to use the generic driver with the driver handles share server mode (DHSS) enabled. This mode requires Compute (nova), Networking (neutron) and Block storage (cinder) services for managing share servers. The information used for creating share servers is configured as share networks. Generic driver with DHSS enabled also requires network to be attached to a public router.

Voraussetzungen

Before you proceed, verify operation of the Compute, Networking, and Block Storage services. This options requires implementation of Networking option 2 and requires installation of some Networking service components on the storage node.

  • Installieren Sie die Netzwerkdienst-Komponenten:

    # zypper install --no-recommends openstack-neutron-linuxbridge-agent
    

Komponenten konfigurieren

Bemerkung

Default configuration files vary by distribution. You might need to add these sections and options rather than modifying existing sections and options. Also, an ellipsis (...) in the configuration snippets indicates potential default configuration options that you should retain.

  1. Bearbeiten Sie die Datei /etc/manila/manila.conf und führen folgende Schritte durch:

    • In the [DEFAULT] section, enable the generic driver and the NFS/CIFS protocols:

      [DEFAULT]
      ...
      enabled_share_backends = generic
      enabled_share_protocols = NFS,CIFS
      

      Bemerkung

      Backend-Namen sind frei wählbar. Als Beispiel verwendet diese Anleitung den Namen des Treibers als Backend-Namen.

    • Aktivieren Sie in den Abschnitten [neutron], [nova], und [cinder] die Authentifizierung für diese Dienste:

      [neutron]
      ...
      url = http://controller:9696
      auth_uri = http://controller:5000
      auth_url = http://controller:35357
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      region_name = RegionOne
      project_name = service
      username = neutron
      password = NEUTRON_PASS
      
      [nova]
      ...
      auth_uri = http://controller:5000
      auth_url = http://controller:35357
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      region_name = RegionOne
      project_name = service
      username = nova
      password = NOVA_PASS
      
      [cinder]
      ...
      auth_uri = http://controller:5000
      auth_url = http://controller:35357
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      region_name = RegionOne
      project_name = service
      username = cinder
      password = CINDER_PASS
      
    • Konfigurieren Sie den generischen Treiber im Abschnitt [generic]:

      [generic]
      share_backend_name = GENERIC
      share_driver = manila.share.drivers.generic.GenericShareDriver
      driver_handles_share_servers = True
      service_instance_flavor_id = 100
      service_image_name = manila-service-image
      service_instance_user = manila
      service_instance_password = manila
      interface_driver = manila.network.linux.interface.BridgeInterfaceDriver
      

      Bemerkung

      You can also use SSH keys instead of password authentication for service instance credentials.

Zurück zu Finalize installation.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.