メインコンテンツまでスキップ

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

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

環境

  • OpenStack (複数の versions...from Stein to Train で観察)
  • Cinder ドライバ

問題

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

  • 正規表現パターンマッチングが機能しているようには見えないため、実際に使用できるものには限りがあります。
  • OpenStack のドキュメントに、正規表現がサポートされていることが記載されて
  • テストで cinder get-pools --detailは、で報告される正確な「 pool_name 」を指定すると、「 NetApp_pool_name _search_pattern 」設定オプションが機能することが確認されました。 

たとえば、次の名前の Cinder プールが 3 つあるとします。

  • openstack_iscsi_back_01
  • openstack_iscsi_back_02
  • openstack_iscsi_back_03

「 NetApp_pool_name _search_pattern 」を次のように設定すると、フィルタリングは想定どおりに機能します。

  • NetApp_pool_name _search_pattern = ( openstack_iscsi_back_01 )
  • NetApp_pool_name _search_pattern = ( openstack_iscsi_back_01 | openstack_iscsi_back_02 | openstack_iscsi_back_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.