OpenStack Discussions

Openstack Ocatal manila failed to connect Netapp FAS8040

MarginHu2017
4,205 Views

Hi  Experts,

 

I'm using Openstack upstream Ocata version, and netapp FAS8040 as Manila backend.

 

manila.conf

 

[netapp]
share_backend_name = netapp
share_driver = manila.share.drivers.netapp.common.NetAppDriver
driver_handles_share_servers = False
netapp_storage_family = ontap_cluster
netapp_server_hostname = 192.168.140.51
netapp_server_port = 80
netapp_login = admin
netapp_password = XXXXX
netapp_vserver = svm_nfs
netapp_transport_type = http
netapp_aggregate_name_search_pattern = ^((?!aggr1_sas).)*$

 

 

manila.log

 

2017-12-20 17:06:02.088 25 ERROR oslo_service.periodic_task [req-b6309f63-d206-410e-9eb8-4730e9082f1f - - - - -] Error during ShareManager._report_driver_status
2017-12-20 17:06:02.088 25 ERROR oslo_service.periodic_task Traceback (most recent call last):
2017-12-20 17:06:02.088 25 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/oslo_service/periodic_task.py", line 220, in run_periodic_tasks
2017-12-20 17:06:02.088 25 ERROR oslo_service.periodic_task     task(self, context)
2017-12-20 17:06:02.088 25 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/manila/utils.py", line 518, in wrapper
2017-12-20 17:06:02.088 25 ERROR oslo_service.periodic_task     raise exception.DriverNotInitialized(driver=driver_name)
2017-12-20 17:06:02.088 25 ERROR oslo_service.periodic_task DriverNotInitialized: Share driver 'NetAppCmodeSingleSvmShareDriver' not initialized.
2017-12-20 17:06:02.088 25 ERROR oslo_service.periodic_task

 

 

I'm sure  all parameters are right, but don't know why driver failed to initialize? 

 

1 ACCEPTED SOLUTION

MarginHu2017
4,008 Views
Finally , I solved this issue by the following command: ntap01::> vserver modify -vserver svm_nfs -aggr-list

View solution in original post

4 REPLIES 4

martyt
4,153 Views

Two suggestions for you to consider:

  • Check to make sure you have enabled http communication on the cluster. It’s disabled by default and needs priv advanced to set.
  • Check the regex... ^((?!aggr1_sas).)*$ should be ^((?!aggr1_sas).*)$

 

MarginHu2017
4,125 Views

Hi,

 

I‘m sure my netapp fas8040 is using http protocol not https, because my openstack cinder use http to connnect the equipment successfully.

 

 

Still failed after modify the paramter :

 

 netapp_aggregate_name_search_pattern = FAS8040_01_aggr1_sas

 
 
 2017-12-21 15:17:02.292 23 DEBUG manila.share.drivers.netapp.dataontap.client.api [req-05aae1ea-2ed3-43ec-b62d-ce81e774f293 - - - - -] Using NetApp controller: 192.168.40.5 __init__ /usr/lib/python2.7/site-packages/manila/share/drivers/netapp/dataontap/client/api.py:85
2017-12-21 15:17:02.354 23 WARNING manila.share.drivers.netapp.dataontap.client.client_cmode [req-05aae1ea-2ed3-43ec-b62d-ce81e774f293 - - - - -] No aggregates assigned to Vserver svm_nfs.
 2017-12-21 15:17:02.499 23 ERROR manila.share.manager [req-05aae1ea-2ed3-43ec-b62d-ce81e774f293 - - - - -] Error encountered during initialization of driver 'NetAppCmodeSingleSvmShareDriver' on 'cloud-sz-control-b13-01.sz.cloud.genomics.cn@netapp' host.
2017-12-21 15:17:02.499 23 ERROR manila.share.manager Traceback (most recent call last):
2017-12-21 15:17:02.499 23 ERROR manila.share.manager   File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 277, in init_host
2017-12-21 15:17:02.499 23 ERROR manila.share.manager     self.driver.check_for_setup_error()
2017-12-21 15:17:02.499 23 ERROR manila.share.manager   File "/usr/lib/python2.7/site-packages/manila/share/drivers/netapp/dataontap/cluster_mode/drv_single_svm.py", line 43, in check_for_setup_error
2017-12-21 15:17:02.499 23 ERROR manila.share.manager     self.library.check_for_setup_error()
2017-12-21 15:17:02.499 23 ERROR manila.share.manager   File "/usr/lib/python2.7/site-packages/manila/share/drivers/netapp/utils.py", line 86, in trace_wrapper
2017-12-21 15:17:02.499 23 ERROR manila.share.manager     result = f(self, *args, **kwargs)
2017-12-21 15:17:02.499 23 ERROR manila.share.manager   File "/usr/lib/python2.7/site-packages/manila/share/drivers/netapp/dataontap/cluster_mode/lib_single_svm.py", line 73, in check_for_setup_error
2017-12-21 15:17:02.499 23 ERROR manila.share.manager     raise exception.NetAppException(msg)
2017-12-21 15:17:02.499 23 ERROR manila.share.manager NetAppException: No aggregates are available to Vserver svm_nfs for provisioning shares. Ensure that one or more aggregates are assigned to the Vserver and that the configuration option netapp_aggregate_name_search_pattern is set correctly.
2017-12-21 15:17:02.499 23 ERROR manila.share.manager




ntap01::> aggr show
                                                                      

Aggregate     Size Available Used% State   #Vols  Nodes            RAID Status
--------- -------- --------- ----- ------- ------ ---------------- ------------
FAS8040_01_aggr1_sas
           79.42TB   53.84TB   32% online      25 ntap01-01        raid_dp,
                                                                   normal
FAS8040_02_aggr1_ssd
            5.89TB    5.89TB    0% online       0 ntap01-02        raid_dp,
                                                                   normal
aggr0_ntap01_01
            1.40TB   69.34GB   95% online       1 ntap01-01        raid_dp,
                                                                   normal
aggr0_ntap01_02
            1.40TB   69.36GB   95% online       1 ntap01-02        raid_dp,
                                                                   normal
4 entries were displayed.

MarginHu2017
4,121 Views

ntap01::> vserver show
                               Admin      Operational Root
Vserver     Type    Subtype    State      State       Volume     Aggregate
----------- ------- ---------- ---------- ----------- ---------- ----------
ntap01      admin   -          -          -           -          -
ntap01-01   node    -          -          -           -          -
ntap01-02   node    -          -          -           -          -
svm_iscsi   data    default    running    running     svm_iscsi_ FAS8040_
                                                      root       01_aggr1_
                                                                 sas
svm_nfs     data    default    running    running     svm_nfs_   FAS8040_
                                                      root       01_aggr1_
                                                                 sas
svm_openstack
            data    default    running    running     svm_       FAS8040_
                                                      openstack_ 01_aggr1_
                                                      root       sas
6 entries were displayed.

MarginHu2017
4,009 Views
Finally , I solved this issue by the following command: ntap01::> vserver modify -vserver svm_nfs -aggr-list
Public