NetApp 7mode NFS driver doesnt honor netapp_vfiler option

Bug #1381716 reported by Andrew Kerr
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Andrew Kerr
Icehouse
Fix Released
Undecided
Unassigned
Juno
Fix Released
Undecided
Unassigned

Bug Description

Some 7mode zapis require vfiler tunneling when a vfiler is set in the cinder.conf. This does not appear to be honored by the 7mode nfs driver.

Reproduction Steps:
1. Create a vfiler and associate a flexvol
2. export the flexvol for NFS
3. setup cinder to use the flexvol via the 'netapp_vfiler' config option under the backend in cinder.conf
4. Create a volume
5. create a snapshot from the volume

You will see errors similar to the following:

2014-10-14 15:57:11.248 28322 INFO cinder.volume.manager [req-afe53f1a-00eb-45c2-9795-7a39f3ff65a2 33f73f0b227b4be8a22d3106c8e143d7 b32db514c3ce4ebfbe0b5e3e3275ff5e - - -] snapshot ca709afb-877b-4e41-a402-8afb796b3bb5: creating
2014-10-14 15:57:11.252 28322 DEBUG cinder.volume.manager [req-afe53f1a-00eb-45c2-9795-7a39f3ff65a2 33f73f0b227b4be8a22d3106c8e143d7 b32db514c3ce4ebfbe0b5e3e3275ff5e - - -] snapshot ca709afb-877b-4e41-a402-8afb796b3bb5: creating create_snapshot /opt/stack/new/cinder/cinder/volume/manager.py:520
2014-10-14 15:57:11.382 28322 ERROR oslo.messaging.rpc.dispatcher [req-afe53f1a-00eb-45c2-9795-7a39f3ff65a2 33f73f0b227b4be8a22d3106c8e143d7 b32db514c3ce4ebfbe0b5e3e3275ff5e - - -] Exception during message handling: NetApp api failed. Reason - 13114:No actual-pathname for /vol/vol_7637d1cc
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher return f(*args, **kwargs)
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/manager.py", line 535, in create_snapshot
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher {'status': 'error'})
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/openstack/common/excutils.py", line 82, in __exit__
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/manager.py", line 526, in create_snapshot
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher model_update = self.driver.create_snapshot(snapshot_ref)
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/drivers/netapp/nfs.py", line 124, in create_snapshot
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher snapshot['volume_id'])
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/drivers/netapp/nfs.py", line 1292, in _clone_volume
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher storage_path = self.zapi_client.get_actual_path_for_export(export_path)
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/drivers/netapp/client/seven_mode.py", line 244, in get_actual_path_for_export
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher result = self.connection.invoke_successfully(storage_path)
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/drivers/netapp/api.py", line 227, in invoke_successfully
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher raise NaApiError(code, msg)
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher NaApiError: NetApp api failed. Reason - 13114:No actual-pathname for /vol/vol_7637d1cc
2014-10-14 15:57:11.382 28322 TRACE oslo.messaging.rpc.dispatcher

tags: added: icehouse-backport-potential juno-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/138513

Changed in cinder:
assignee: nobody → Andrew Kerr (andrew-kerr)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/138513
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=504cb9f3d9954138fcb62d2fbb20b8505ca0f0ac
Submitter: Jenkins
Branch: master

commit 504cb9f3d9954138fcb62d2fbb20b8505ca0f0ac
Author: Andrew Kerr <email address hidden>
Date: Mon Dec 1 16:32:02 2014 -0500

    NetApp 7mode NFS driver doesn't honor netapp_vfiler option

    This patch fixes the NetApp 7mode NFS driver to register and use
    the netapp_vfiler option if it is configured in cinder.conf.

    DocImpact
    Change-Id: I4db42d2521d7e6018f4f7ad0c4ab13441871675e
    Closes-Bug: 1381716

Changed in cinder:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/139093

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/140324

Thierry Carrez (ttx)
Changed in cinder:
milestone: none → kilo-1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/juno)

Reviewed: https://review.openstack.org/139093
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=dc008376dcdd772710e815aaf67f1adbfd1e8840
Submitter: Jenkins
Branch: stable/juno

commit dc008376dcdd772710e815aaf67f1adbfd1e8840
Author: Andrew Kerr <email address hidden>
Date: Wed Oct 15 14:22:40 2014 -0400

    NetApp 7mode NFS driver doesn't honor netapp_vfiler option

    This patch fixes the NetApp 7mode NFS driver to register and use
    the netapp_vfiler option if it is configured in cinder.conf.

    DocImpact
    Change-Id: I4db42d2521d7e6018f4f7ad0c4ab13441871675e
    Closes-Bug: 1381716
    (inspired by commit: 504cb9f3d9954138fcb62d2fbb20b8505ca0f0ac)

tags: added: in-stable-juno
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/icehouse)

Reviewed: https://review.openstack.org/140324
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=2670384c59cb572c5aba3ce5eb4f5e698c277ecb
Submitter: Jenkins
Branch: stable/icehouse

commit 2670384c59cb572c5aba3ce5eb4f5e698c277ecb
Author: Andrew Kerr <email address hidden>
Date: Wed Oct 15 14:22:40 2014 -0400

    NetApp 7mode NFS driver doesn't honor netapp_vfiler option

    This patch fixes the NetApp 7mode NFS driver to register and use
    the netapp_vfiler option if it is configured in cinder.conf.

    DocImpact
    Change-Id: I4db42d2521d7e6018f4f7ad0c4ab13441871675e
    Closes-Bug: 1381716
    (inspired by commit: 504cb9f3d9954138fcb62d2fbb20b8505ca0f0ac)

tags: added: in-stable-icehouse
Thierry Carrez (ttx)
Changed in cinder:
milestone: kilo-1 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.