Hi,
I am using manageontap-5.3.jar from scala and I am seeing this error intermittently when trying to create/delete snapshots:
not authorized for that command (errno=13003)
Here is the code that I am using in order to reproduce this (can rewrite in java if needed, but its fairly self-explanatory)
import netapp.manage.{NaAPIFailedException, NaElement, NaServer}
val srvr = new netapp.manage.NaServer("ourserver",1,20)
srvr.setStyle(NaServer.STYLE_LOGIN_PASSWORD)
srvr.setAdminUser("ouruser", "ourpass")
srvr.setVserver("vs01")
val api = new NaElement("snapshot-create")
api.addNewChild("comment","User=" + System.getProperty("user.name"))
api.addNewChild("snapshot","testsnapshot11")
api.addNewChild("volume","volumenamehere")
srvr.invokeElem(api)
It is quite easy to reproduce this error, I can run the above code several times (changing the snapshot name), and it would work sometimes and not others, which makes the "not authorized" error confusing, since I would expect to be either authorized with the given credentials all the time or never!
Also, on occasion when it works, I also see a NullPointerException when using snapshot-list-info. e.g. running this immediately after the above code:
val api2 = new NaElement("snapshot-list-info")
api2.addNewChild("volume","HTD_na_test")
val res = srvr.invokeElem(api2)
// throws nullpointerexception
Also worth noting that snapshot-delete always fails with the above message. I am not sure how to proceed, please advise.
Thank you
David