NetApp: Failed to get info for aggregate

Bug #1660870 reported by Oisin
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Jose Porrua

Bug Description

NetApp driver is attempting and failing to get the aggregate capacity for the scheduler;
https://github.com/openstack/cinder/blob/master/cinder/volume/drivers/netapp/dataontap/client/client_cmode.py#L1510

I suspect this occurs as the driver is attempting to access a cluster level API with a SVM scoped account.

Looks like this bug was introduced in the "NetApp: Add aggregate capacity info to scheduler" commit;
https://review.openstack.org/#/c/335103/

The change was added to address the "Report NetApp cDOT aggregate capacity info to scheduler" blueprint;
https://blueprints.launchpad.net/cinder/+spec/netapp-report-aggregate-utilization

The following error message and traceback is spamming the cinder volume log;

[req-10239228-7cfe-44ee-8578-370761de516a - - - - -] Failed to get info for aggregate aggr1_02.
 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/dataontap/client/client_cmode.py", line 1352, in get_aggregate_capacity
     desired_attributes=desired_attributes)
   File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 842, in trace_method_logging_wrapper
     return f(*args, **kwargs)
   File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 842, in trace_method_logging_wrapper
     return f(*args, **kwargs)
   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/dataontap/client/client_cmode.py", line 1173, in _get_aggregates
     enable_tunneling=False)
   File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 842, in trace_method_logging_wrapper
     return f(*args, **kwargs)
   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/dataontap/client/client_base.py", line 93, in send_request
     return self.connection.invoke_successfully(request, enable_tunneling)
   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/dataontap/client/api.py", line 222, in invoke_successfully
     raise NaApiError(code, msg)
 NaApiError: NetApp API failed. Reason - 13005:Unable to find API: aggr-get-iter

This issue was encountered in Newton with Cinder 9.1.0

Oisin (oisin-omalley)
description: updated
Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :

"I suspect this occurs as the driver is attempting to access a cluster level API with a SVM scoped account."

Your suspicion is correct.

We're spamming the log; this sort of check can be done and logged once.

Changed in cinder:
assignee: nobody → Jose Porrua (jose-porrua)
Changed in cinder:
status: New → In Progress
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/433251

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/433251
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=0f9b6e9ac2ddfd4f90b1a3a71ec46fa56008aaee
Submitter: Jenkins
Branch: master

commit 0f9b6e9ac2ddfd4f90b1a3a71ec46fa56008aaee
Author: Jose Porrua <email address hidden>
Date: Tue Feb 7 10:33:26 2017 -0500

    NetApp: Track SVM and Cluster scoped credentials

    This fix avoids logging an exception when a user
    chooses to use an SVM scoped account. cDOT
    driver requires cluster scoped privileges to
    gather backend statistics, performance
    counters, etc. These APIs are not available for
    SVM scoped credentials.

    Change-Id: If2e3bae98db225ff0cfc9e868eaaeef088135562
    Closes-Bug: #1660870

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
Oisin (oisin-omalley) wrote :

@Jose,

Would it be possible to have this fix back ported to the Newton release?

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

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/444048

Revision history for this message
Giuseppe Paterno' (gpaterno) wrote :

+1 on backport for newton

Jorge Martinez (jorgemg)
no longer affects: ubuntu
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/ocata)

Reviewed: https://review.openstack.org/444048
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=109177a366b2440f31d5994df0318bdc0124a88b
Submitter: Jenkins
Branch: stable/ocata

commit 109177a366b2440f31d5994df0318bdc0124a88b
Author: Jose Porrua <email address hidden>
Date: Tue Feb 7 10:33:26 2017 -0500

    NetApp: Track SVM and Cluster scoped credentials

    This fix avoids logging an exception when a user
    chooses to use an SVM scoped account. cDOT
    driver requires cluster scoped privileges to
    gather backend statistics, performance
    counters, etc. These APIs are not available for
    SVM scoped credentials.

    Change-Id: If2e3bae98db225ff0cfc9e868eaaeef088135562
    Closes-Bug: #1660870
    (cherry picked from commit 0f9b6e9ac2ddfd4f90b1a3a71ec46fa56008aaee)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/451548

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

Reviewed: https://review.openstack.org/451548
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=ff961336eeeaa35f77230b69519fb3fab4a35d83
Submitter: Jenkins
Branch: stable/newton

commit ff961336eeeaa35f77230b69519fb3fab4a35d83
Author: Jose Porrua <email address hidden>
Date: Tue Feb 7 10:33:26 2017 -0500

    NetApp: Track SVM and Cluster scoped credentials

    This fix avoids logging an exception when a user
    chooses to use an SVM scoped account. cDOT
    driver requires cluster scoped privileges to
    gather backend statistics, performance
    counters, etc. These APIs are not available for
    SVM scoped credentials.

    Closes-Bug: #1660870
    Change-Id: If2e3bae98db225ff0cfc9e868eaaeef088135562
    (cherry picked from commit 0f9b6e9ac2ddfd4f90b1a3a71ec46fa56008aaee)
    (cherry picked from commit 109177a366b2440f31d5994df0318bdc0124a88b)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 10.0.1

This issue was fixed in the openstack/cinder 10.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 11.0.0.0b1

This issue was fixed in the openstack/cinder 11.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 9.1.4

This issue was fixed in the openstack/cinder 9.1.4 release.

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.