Community

Subscribe
Highlighted

how to handle NaAPIFailedException : Unable to create iterator (errno=13001) Exception

I observed below exception from NetApps API jar File : manageontap.jar while accessing volumes in Filer.

Can please state the reasons for NaAPIFailedException and below is the stacktrace

Exception StackTrace:

netapp.manage.NaAPIFailedException: Unable to create iterator (errno=13001)

at netapp.manage.NaServer.invokeElem(NaServer.java:653)

...........................

Similar issue is discussed in NetApp community Portal at below URL :https://communities.netapp.com/thread/16241

but not with sufficient information.

Re: how to handle NaAPIFailedException : Unable to create iterator (errno=13001) Exception

Hi,

Could you check if your volume is full (or almost full) ?

The iterative APIs will create few intermediate files which needs some writable space in volume. And this is not possible when the root volume(/vol/vol0) is full. This could be a reason for the error 'NaAPIFailedException:Unable to create iterator'.

- Aashray Arora

Re: how to handle NaAPIFailedException : Unable to create iterator (errno=13001) Exception

Hey AAshray,

Thanks for reply.

When got the issue for first time the volume size is 50GB and 100% full (50GB) in the filer. Later, i added 5 GB to the volume size then the volume size is 55GB and 90% used.

Still i got the same issue.

Can you please suggest any alternate.

Re: how to handle NaAPIFailedException : Unable to create iterator (errno=13001) Exception

I'll try to find out soon. Can you please share with me your code that is failing and also can you let me know if other APIs are working fine?

Are you using 7-mode or C-mode?

Re: how to handle NaAPIFailedException : Unable to create iterator (errno=13001) Exception

Hi Aashar,

Thanks for your reply.

The issue is at last line of our sample code. After 155 successful Iterations, The API invocation is failed

with following exception Stack Trace:

Exception Stack Trace

netapp.manage.NaAPIFailedException: Unable to create iterator (errno=13001)

at netapp.manage.NaServer.invokeElem(NaServer.java:653)

.........

Sample Code:

//We observed above exception from NetApps API jar File : manageontap.jar

  NaElement xi, xo, xii, xoo, xiii, xooo;

  String volName="xxxx"

  xi=new NaElement("snapshot-list-info");

  xi.addChildElem(new NaElement("terse", "true"));

  xi.addChildElem(new NaElement("volume", volName));

  xo=server.invokeElem(xi);

  List snapshots= xo.getChildByName("snapshots").getChildren();

  List snapshots= xo.getChildByName("snapshots").getChildren();

  for(Iterator k=snapshots.iterator(); k.hasNext()Smiley Wink{

   NaElement snapshot=(NaElement) k.next();

   String snapshotName=snapshot.getChildContent("name");

   String dirpath="/vol/"+volName+"/.snapshot/"+snapshotName;

   xii=new NaElement("file-list-directory-iter-start");

   xii.addChildElem(new NaElement("path", dirpath));

      xoo=server.invokeElem(xii);

   ......

I am not sure about which mode is using whether 7-mode or C-mode we are using 7-Mode and Can you please explain how this mode related to this issue ?


Re: how to handle NaAPIFailedException : Unable to create iterator (errno=13001) Exception

Can any one help me and please state the reasons for NaAPIFailedException

Re: how to handle NaAPIFailedException : Unable to create iterator (errno=13001) Exception

Hi,

If you are looking for how to handle the NaAPIFailedException and get the reason of the failure, please see the snippet below:

...

...

...

xii=new NaElement("file-list-directory-iter-start");

xii.addChildElem(new NaElement("path", dirpath));

try {

} catch (NaAPIFailedException e) {

     String message ="results status=\"failed\" reason=\""

+ e.getReason() + "\" errno=\"" + e.getErrno() + "\"";

System.out.println("Exception Occured:\n" + message);

}

However, if you are looking for the root cause of the failure, then it will require a little more investigation.

Can you kindly let us know which Data ONTAP version and NetApp Manageability SDK (formerly known as ManageONTAP SDK) you are using?

On what platform are you running your client (this program)? Is this issue reproducible using "apitest" and "ZExplore Development Interface (ZEDI)"?

Regards,

Sen.

Re: how to handle NaAPIFailedException : Unable to create iterator (errno=13001) Exception

Hi Sens,

Thanks for your reply.

I am for looking for the root cause of the failure and below are required details

ONTAP              : NetApp Release 8.1.1 7-Mode

Mode      :7-Mode

OS         : Windows Server 2008

ManageONTAP  : manage-ontap-sdk-3.0R1

APITEST/ZEDI    : Not tested

We have implemented java program to communicate with NetApps using manageontap.jar File.

With Regards,

kasim Basha

Re: how to handle NaAPIFailedException : Unable to create iterator (errno=13001) Exception

Sen,

any update for me

Re: how to handle NaAPIFailedException : Unable to create iterator (errno=13001) Exception

Can any one help me and please state root cause for NaAPIFailedException: NaAPIFailedException: Unable to create iterator (errno=13001),details are mentioned in the issue description.