Skip to main content

NetApp wins prestigious Coveo Relevance Pinnacle Award. Learn more!

INSIGHT Japan :2023年 1月25日(水)ANAインターコンチネンタルホテル開催 へ参加・申込を行う

NetApp Knowledge Base

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

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

Applies to

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

Issue

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:

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

Scan to view the article on your device