Manila NetApp driver don't delete share-server when cifs configured manually

Bug #1700138 reported by Yogesh on 2017-06-23
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Manila
Low
Lucio Seki

Bug Description

If I configure the CIFS server manually on a share-server created from Manila, then when I try to delete this server, I get below error -

un 23 13:41:21.793719 openstack7 manila-share[15893]: 2017-06-23 13:41:21.791 ERROR manila.share.manager [req-4e5b3fc3-2ab1-4fce-90dc-b52bfdb654ac bbf164e28864491587e27383f9ac1a6f 00b62ce618d94
7f780266881fc4f238c] Share server '07f2751e-cf8c-4f0b-833c-f395d12ac1b1' failed on deletion.: NaApiError: NetApp API failed. Reason - 18939:Cannot delete Vserver. Failed to remove CIFS server. R
eason: The Vserver is associated with Active Directory configured CIFS server "TEST" . The deletion is partially complete. Please delete the CIFS server using "cifs delete" and retry to complete
 the deletion.
Jun 23 13:41:21.863014 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 ERROR oslo_messaging.rpc.server [req-4e5b3fc3-2ab1-4fce-90dc-b52bfdb654ac bbf164e28864491587e27383f9ac1a6f 00b62ce6
18d947f780266881fc4f238c] Exception during message handling: NaApiError: NetApp API failed. Reason - 18939:Cannot delete Vserver. Failed to remove CIFS server. Reason: The Vserver is associated
with Active Directory configured CIFS server "TEST" . The deletion is partially complete. Please delete the CIFS server using "cifs delete" and retry to complete the deletion.
Jun 23 13:41:21.864154 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server Traceback (most recent call last):
Jun 23 13:41:21.864506 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line
153, in _process_incoming
Jun 23 13:41:21.864831 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
Jun 23 13:41:21.865166 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", l
ine 213, in dispatch
Jun 23 13:41:21.865487 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
Jun 23 13:41:21.865808 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", l
ine 183, in _do_dispatch
Jun 23 13:41:21.866252 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server result = func(ctxt, **new_args)
Jun 23 13:41:21.866625 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server File "/opt/stack/manila/manila/share/manager.py", line 169, in wrapped
Jun 23 13:41:21.866889 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server return f(self, *args, **kwargs)
Jun 23 13:41:21.867158 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server File "/opt/stack/manila/manila/utils.py", line 548, in wrapper
Jun 23 13:41:21.867447 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server return func(self, *args, **kwargs)
Jun 23 13:41:21.867811 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server File "/opt/stack/manila/manila/share/manager.py", line 3321, in delete_share_serv
er
Jun 23 13:41:21.868195 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server _wrapped_delete_share_server()
Jun 23 13:41:21.868584 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line
 271, in inner
Jun 23 13:41:21.868889 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server return f(*args, **kwargs)
Jun 23 13:41:21.869150 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server File "/opt/stack/manila/manila/share/manager.py", line 3317, in _wrapped_delete_s
hare_server
Jun 23 13:41:21.869453 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server context, server_id, {'status': constants.STATUS_ERROR})
Jun 23 13:41:21.869771 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, i
n __exit__
Jun 23 13:41:21.870169 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server self.force_reraise()
Jun 23 13:41:21.870445 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, i
n force_reraise
Jun 23 13:41:21.870620 openstack7 manila-share[15893]: 2017-06-23 13:41:21.841 TRACE oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)

Changed in manila:
importance: Undecided → Low
status: New → Confirmed
tags: added: cdot drivers netapp
Tom Barron (tpb) on 2018-06-19
tags: added: driver
removed: drivers
Lucio Seki (lseki) on 2019-04-18
Changed in manila:
assignee: nobody → Lucio Seki (lseki)
Lucio Seki (lseki) wrote :

According to gouthamr,

> OP assigned a security service "manually" - i.e, they began with a NFS share server, and configured cifs directly on the backend
> manila doesn't know about this security service, and the driver fails to perform cleanup
> seems legit to me to call it a feature and not a bug :)
 > i.e, if someone configures something on the backend, manila fails to delete it - and that sounds appropriate

I'll confirm this behavior and mark it as Invalid.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers