第3章 単一バックエンドの定義
本項では、単一のバックエンドのデプロイメントについて説明します。Dell Storage Center バックエンドの複数のインスタンスをデプロイするには、カスタムのバックエンド設定 が必要です。手順については、Custom Block Storage Back End Deployment Guideを参照してください。
director のデプロイメントでは、単一の Dell Storage Center バックエンドを定義する最も簡単な方法は、統合環境ファイルを使用することです。このファイルは、アンダークラウドノードの以下のパスにあります。
/usr/share/openstack-tripleo-heat-templates/environments/cinder-dellsc-config.yaml
このファイルを、編集して後で呼び出すことができローカルパスにコピーします。たとえば、~/templates/ にコピーするには、以下のコマンドを実行します。
cp /usr/share/openstack-tripleo-heat-templates/environments/cinder-dellsc-config.yaml ~/templates/
$ cp /usr/share/openstack-tripleo-heat-templates/environments/cinder-dellsc-config.yaml ~/templates/
その後、コピー (~/templates/cinder-dellsc-config.yaml) を開き、必要に応じてこれを編集します。以下のスニペットに、このファイルのデフォルトの内容を示します。
- 1
resource_registryセクションの OS::TripleO::ControllerExtraConfigPre: パラメーターは、cinder-dellsc.yamlという名前の Heat テンプレートを参照します。これは、Director がバックエンドの設定に必要なリソースをロードするために使用するテンプレートです。デフォルトでは、このパラメーターはcinder-dellsc.yamlへのパスを比較的指定します。そのため、このパラメーターをファイルへの絶対パスで更新します。resource_registry: OS::TripleO::ControllerExtraConfigPre: /usr/share/openstack-tripleo-heat-templates/puppet/extraconfig/pre_deploy/controller/cinder-dellsc.yaml
resource_registry: OS::TripleO::ControllerExtraConfigPre: /usr/share/openstack-tripleo-heat-templates/puppet/extraconfig/pre_deploy/controller/cinder-dellsc.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow - 2
- parameter_defaults セクションには、バックエンドの定義が含まれます。具体的には、director が
cinder-dellsc.yamlで定義されたリソースに渡す必要があるパラメーターが含まれます。 - 3
- CinderEnableDellScBackend: true の行は、Dell Storage Center バックエンドのデフォルト設定に必要な Puppet マニフェストを使用するように director に指示します。これには、Block Storage サービスが使用するボリュームドライバー(具体的には
cinder.volume.drivers.dell_storagecenter_iscsi.DellStorageCenterISCSIDriver)の定義が含まれます。
Dell Storage Center バックエンドを定義するには、適宜parameter_defaults セクションの設定を編集します。以下の表は、各パラメーターと、対応する /etc/cinder/cinder.conf 設定のリストを示します。
| パラメーター | /etc/cinder/cinder.conf setting | 説明 |
|---|---|---|
| CinderDellScBackendName | volume_backend_name | (必須)ボリュームのバックエンドを識別する任意の名前。 |
| CinderDellScSanIp | san_ip | (オプション)Dell Enterprise Manager に到達するのに使用される IP アドレス。 |
| CinderDellScSanLogin | san_login |
(必須)CinderDellScSanIp の Dell Enterprise Manager にログインするためのユーザー名。デフォルトのユーザー名は |
| CinderDellScSanPassword | san_password | (オプション)CinderDellScSanLogin の対応するパスワード。 |
| CinderDellScSsn | dell_sc_ssn | (必須)使用する Dell Storage Center のシリアル番号。 |
| CinderDellScIscsiIpAddress | iscsi_ip_address | (オプション)ボリュームおよびスナップショットの作成に使用する Dell Storage Center ISCSI IP アドレス。 |
| CinderDellScIscsiPort | iscsi_port | (オプション)Dell Storage Center アレイの ISCSI ポート。 |
| CinderDellScApiPort | dell_sc_api_port | (オプション)Dell Enterprise Manager の API ポート。 |
| CinderDellScServerFolder | dell_sc_server_folder |
(必須)新しいサーバー定義が配置される Dell Storage Center の |
| CinderDellScVolumeFolder | dell_sc_volume_folder |
(必須)新しいボリュームが作成される Dell Storage Center の |