.. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Cinder provider =============== Cinder volume provider enables Fuxi create volume from OpenStack Cinder and provides them to Docker containers. Cinder provider configuration setttings --------------------------------------- The following parameters in `cinder` group need to be set: - `region_name` = - `volume_connector` = - `fstype` = - `multiattach` = .. note:: * If want to use keystone v3, please set authtoken configuration in group `cinder` or other group with `auth_section` marking it. * `multiattach` must be setting properly according to the enabled volume driver backends in Cinder. Supported connectors -------------------- - osbrick: fuxi.connector.osbrickconnector.CinderConnector - openstack: fuxi.connector.cloudconnector.openstack.CinderConnector Connector osbrick ----------------- osbrick connector uses OpenStack library package `os-brick`_ to manage the connection with Cinder volume. With this connector, `fuxi-server` could run in baremetal or VM normally. Requirements ~~~~~~~~~~~~ - Install related client for connecting Cinder volume. eg: open-iscsi, nfs-common. - When iSCSI client used and `fuxi-server` is running in root user, must make a link for executable file `/lib/udev/scsi_id` :: ln -s /lib/udev/scsi_id /usr/local/bin Connector openstack ------------------- This connector is only supported when running the containers inside OpenStack Nova instances due to its usage of OpenStack Nova API 'connect' and 'disconnet' verbs. Usage ----- The example for creating volume from Cinder with Docker volume command: :: docker volume create --driver fuxi --name \ --opt size=1 \ --opt fstype=ext4 \ --opt multiattach=true Use existing Cinder volume: :: docker volume create --driver fuxi --name test_vol \ --opt size=1 \ --opt volume_id= .. _os-brick: https://github.com/openstack/os-brick