Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Unable to create a volume (or volume clone) using REST API when using SVM management IP.
2023-03-06
07:50 AM
2,517 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi folks,
If I use the REST API along with an SVM management IP, creating a volume or volume clone fails. It doesn't return an HTTP error, but in the "Events & Jobs" section, I see an error message indicating that an aggregate doesn't exist. However, issuing the same volume creation command using the cluster management IP works fine. Perhaps the SVM doesn't have visibility to the aggregate. Just a guess.
REST command and error message on server:
------------------------------------
curl -u vsadmin:FAKE_PASSWORD -X POST --data {\"name\":\"vol_create_test_1\",\"size\":\"1000000000\",\"svm.name\":\"svm1\",\"aggregates.name\":[\"ONTAP912clst_VM_DISK_1\"]} -k https://172.20.2.55/api/storage/volumes
------------------------------------
"POST /api/storage/volumes/d535ab75-bc27-11ed-8613-00a0b8fd52c5","failure","Aggregate ONTAP912clst_VM_DISK_1 not found. Reason: entry doesn't exist. ","2023-03-06T14:04:38+00:00","2023-03-06T14:04:38+00:00"
Solved! See The Solution
1 ACCEPTED SOLUTION
Shadari has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Don't know about the REST API (syntax error) thing, but I am just wondering is it b'cos of the fact that 'aggr' is not assigned to SVM as you guessed it ?
Is that aggregate assigned to the SVM ?
::> vserver show -fields aggr-list
Try to add that aggr to the SVM and try the command again?
::> vserver add-aggregates -vserver svm1 -aggregates ONTAP912clst_VM_DISK_1
2 REPLIES 2
Shadari has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Don't know about the REST API (syntax error) thing, but I am just wondering is it b'cos of the fact that 'aggr' is not assigned to SVM as you guessed it ?
Is that aggregate assigned to the SVM ?
::> vserver show -fields aggr-list
Try to add that aggr to the SVM and try the command again?
::> vserver add-aggregates -vserver svm1 -aggregates ONTAP912clst_VM_DISK_1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ontapforrum, adding the aggregate to the SVM worked. Thanks for the advice.
