メインコンテンツへスキップ

Openstack:正規表現パターンマッチングが「netapp_pool_name_search_pattern」cinderドライバー設定オプションで機能しません

Views:
40
Visibility:
Public
Votes:
0
Category:
openstack
Specialty:
virt
Last Updated:

環境

  • Openstack(SteinからTrainまで、複数のバージョンで確認済み)
  • Cinderドライバ

問題

cinder.conf の「netapp_pool_name_search_pattern」設定オプションを使用して利用可能なプールをフィルタリングする場合:

  • 正規表現によるパターンマッチングは機能しないようなので、実際に使えるものは限られています。
  • OpenStackのドキュメントによると、正規表現がサポートされているとのことです。
  • テストの結果、'netapp_pool_name_search_pattern' 構成オプションは、cinder get-pools --detailで報告された正確な 'pool_name' を指定した場合に機能することがわかっています。 

例えば、次のような名前の Cinder プールが 3 つあるとします:

  • openstack_iscsi_backing_01
  • openstack_iscsi_backing_02
  • openstack_iscsi_backing_03

'netapp_pool_name_search_pattern' を以下のように設定すると、フィルタリングは期待どおりに機能します:

  • netapp_pool_name_search_pattern=(openstack_iscsi_backing_01)
  • netapp_pool_name_search_pattern=(openstack_iscsi_backing_01|openstack_iscsi_backing_02| openstack_iscsi_backing_03)

正規表現パターンマッチングを使用して'netapp_pool_name_search_pattern'を設定すると、フィルタリングが機能しません。  たとえば、次のような設定は機能しません:

netapp_pool_name_search_pattern=(openstack)
netapp_pool_name_search_pattern=(openstack_*)

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.