Skip to main content
NetApp Knowledge Base

Openstack: Regular expression pattern matching does not work with "netapp_pool_name_search_pattern" cinder driver configuration option

Last Updated:

Applies to

  • Openstack (observed with multiple versions...from Stein to Train)
  • Cinder driver


When filtering available pools using the 'netapp_pool_name_search_pattern' configuration option in cinder.conf:

  • You're limited on what you can actually use as it doesn't seem that regex pattern matching works.
  • Openstack documentation indicates that regular expressions are supported.
  • Testing shows that the 'netapp_pool_name_search_pattern' configuration option works when you specify the exact 'pool_name' as reported by cinder get-pools --detail

For example, say you have three Cinder pools with the following names:

  • openstack_iscsi_backing_01
  • openstack_iscsi_backing_02
  • openstack_iscsi_backing_03

If you configure 'netapp_pool_name_search_pattern' as follows, filtering works as expected:

  • 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)

When configuring 'netapp_pool_name_search_pattern' using regex pattern matching, filtering does not work.  For example, the following does not work:



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.