Comment 0 for bug 1451640

Revision history for this message
Jamie Lennox (jamielennox) wrote : Calling quota set in 1.0 sends invalid messages to cinder

Calling:

# openstack --debug --os-identity-api-version=3 --os-user-domain-id default --os-project-domain-id default quota set --cores 4 demo

on OSC 1.0.3 results in a request that looks like:

'{"quota_set": {"gigabytes": null, "tenant_id": "9d33152f0d27406382b072806bbf66bf", "snapshots": null, "volumes": null}}'

There are two problems here:

1. Cinder cannot handle Null values for its values and returns a 400 which fails the command
2. OSC should not send this request to cinder if there are no cinder values present. This can be handled in another bug.

This was fixed in OSC 1.1.0 as a side effect of bug 1438377 where you can see the addition of the if value check, however this does not get backported into the stable 1.0 series.