2016-07-12 19:45:25 |
Matthew Edmonds |
description |
I don't quite understand what a quota class set is, since there is no documentation (see https://bugs.launchpad.net/cinder/+bug/1415214), but no matter what it is the API isn't working properly... You have to specify a class set, but any name you give is accepted, with the only difference in the response being that the "id" returns back whatever name you gave. Surely class sets with these names don't actually exist and the API should be returning an error.
E.g. where class set is "g":
# curl http://localhost:9000/v2/67154cb74e9a45b19423d164f180e2db/os-quota-class-sets/g -H "Accept: application/json" -H "X-Auth-Token: e21820a0fc1147f9baa58fcb08243aa8"; echo
{"quota_class_set": {"per_volume_gigabytes": -1, "gigabytes_svc186 base template": 1000000, "volumes": 100000, "snapshots_svc186 base template": 100000, "gigabytes": 1000000, "backup_gigabytes": 1000, "snapshots": 100000, "volumes_svc186 base template": 100000, "backups": 10, "id": "g"}}
E.g. where class set is "x":
# curl http://localhost:9000/v2/67154cb74e9a45b19423d164f180e2db/os-quota-class-sets/x -H "Accept: application/json" -H "X-Auth-Token: e21820a0fc1147f9baa58fcb08243aa8"; echo
{"quota_class_set": {"per_volume_gigabytes": -1, "gigabytes_svc186 base template": 1000000, "volumes": 100000, "snapshots_svc186 base template": 100000, "gigabytes": 1000000, "backup_gigabytes": 1000, "snapshots": 100000, "volumes_svc186 base template": 100000, "backups": 10, "id": "x"}} |
I don't quite understand what a quota class set is, since there is no documentation (see https://bugs.launchpad.net/cinder/+bug/1602400), but no matter what it is the API isn't working properly... You have to specify a class set, but any name you give is accepted, with the only difference in the response being that the "id" returns back whatever name you gave. Surely class sets with these names don't actually exist and the API should be returning an error.
E.g. where class set is "g":
# curl http://localhost:9000/v2/67154cb74e9a45b19423d164f180e2db/os-quota-class-sets/g -H "Accept: application/json" -H "X-Auth-Token: e21820a0fc1147f9baa58fcb08243aa8"; echo
{"quota_class_set": {"per_volume_gigabytes": -1, "gigabytes_svc186 base template": 1000000, "volumes": 100000, "snapshots_svc186 base template": 100000, "gigabytes": 1000000, "backup_gigabytes": 1000, "snapshots": 100000, "volumes_svc186 base template": 100000, "backups": 10, "id": "g"}}
E.g. where class set is "x":
# curl http://localhost:9000/v2/67154cb74e9a45b19423d164f180e2db/os-quota-class-sets/x -H "Accept: application/json" -H "X-Auth-Token: e21820a0fc1147f9baa58fcb08243aa8"; echo
{"quota_class_set": {"per_volume_gigabytes": -1, "gigabytes_svc186 base template": 1000000, "volumes": 100000, "snapshots_svc186 base template": 100000, "gigabytes": 1000000, "backup_gigabytes": 1000, "snapshots": 100000, "volumes_svc186 base template": 100000, "backups": 10, "id": "x"}} |
|