CONTAP-665777: A specific AWS FSx for NetApp ONTAP API does not update storage_capacity after instance storage capacity shrink
Issue
- API call to
/api/private/cli/system/node/virtual-machine/instance/show-settingsreturns expected storage_capacityvvalue after FSXn instance creation or expansion
- After shrinking FSXn instance,
storage_capacityvalue in API response does not decrease
- Example API response shows
storage_capacityremains at previous higher value after instance is reduced
- Data Infrastructure Insights licensing impacted due to incorrect sizing input from API
Example:
$ curl -X GET "https://10.1.2.3/api/private/cli/system/node/virtual-machine/instance/show-settings?fields=node,consumer,storage_type,storage_capacity,iops,throughput_capacity" \
-u "user@pass" \
-H "Accept: application/json" \
-k
{
"records": [
{ "node": "FsxId1234567890abcdef0-01", "consumer": "FSx", "storage_type": "SSD", "storage_capacity": 1024, "iops": 3072, "throughput_capacity": 384 }
,
{ "node": "FsxId1234567890abcdef0-02", "consumer": "FSx", "storage_type": "SSD", "storage_capacity": 1024, "iops": 3072, "throughput_capacity": 384 }
],
"num_records": 2
}
$ curl -X GET "https://10.1.2.3/api/private/cli/system/node/virtual-machine/instance/show-settings?fields=node,consumer,storage_type,storage_capacity,iops,throughput_capacity" -u "user@pass" -H "Accept: application/json" -k
{
"records": [
{ "node": "FsxId1234567890abcdef0-01", "consumer": "FSx", "storage_type": "SSD", "storage_capacity": 11264, "iops": 33792, "throughput_capacity": 384 }
,
{ "node": "FsxId1234567890abcdef0-02", "consumer": "FSx", "storage_type": "SSD", "storage_capacity": 11264, "iops": 33792, "throughput_capacity": 384 }
],
"num_records": 2
}
$ curl -X GET "https://10.1.2.3/api/private/cli/system/node/virtual-machine/instance/show-settings?fields=node,consumer,storage_type,storage_capacity,iops,throughput_capacity" -u "user@pass" -H "Accept: application/json" -k
{
"records": [
{ "node": "FsxId1234567890abcdef0-01", "consumer": "FSx", "storage_type": "SSD", "storage_capacity": 11264, "iops": 33792, "throughput_capacity": 384 }
,
{ "node": "FsxId1234567890abcdef0-02", "consumer": "FSx", "storage_type": "SSD", "storage_capacity": 11264, <-this should be 1024 GB not 11,264 GB "iops": 33792, "throughput_capacity": 384 }
],
"num_records": 2
}
