According to http://developer.openstack.org/api-ref-compute-v2.1.html#createServer , the perameter personality
has limits about path length and content length. And it is pointed out that the content should be base64 encoded
string and the content length limit is the limit of base64 decoded raw data, not the base64 encoded data.
But in the current implementation:
https://github.com/openstack/nova/blob/master/nova/compute/api.py#L266-L277
we are checking the base64 encoded data.
That is, for example, the quota limit for content length is 256, and user provided a file with the length of 256,
exception.OnsetFileContentLimitExceeded error will rasie as after base64 encoding, the file length will grow.
Change abandoned by Zhenyu Zheng (<email address hidden>) on branch: master /review. openstack. org/285649
Review: https:/