2013-07-10 07:11 AM
Looking at the sample code it always seems to just check na_results_status(out) for not NA_OK as an indication of error. In most cases it we got NA_OK it says we're good.
I'm trying to use snapshot-multicreate and it seems I can get na_results_status(out) as NA_OK but the call didn't work. What SHOULD I check...
Options seem to be to see if there was any <volume-error> tag or a <status>false</status>. I'm still surprised that I didn't get a non OK result from na_results_status(out)
This is ONTAP 8.2 cluster mode. The output buffer looks like:
<?xml version='1.0' encoding='UTF-8' ?>
<netapp version='1.20' xmlns='http://www.netapp.com/filer/admin'>
<reason>Snapshot operation failed: No space left on device.</reason>
2013-07-10 08:00 AM
It looks like the status returned by snapshot-multicreate works a bit differently from other APIs for Clustered ONTAP. The documentation notes:
For clustered systems, the output 'status' will be set to FALSE in case of failure. In such case the caller should look at the output 'volume-errors' to find out in which volume snapshot creation failed.
So in most cases, keep checking for NA_OK. But here, check the status output.