Background:

There are situations where a larger amount of userdata is required. For example, in order to bootstrap secure SSL connections to a VM, with a unique private key, it is useful to transmit the SSL certificate and corresponding private key in the userdata field to the VM.  A typical certificate and private key will be multiple KB in size. AWS, for instance, allows up to 16KB of userdata.

Requirement:

Allow the caller to specify up to 32KB of user data in the "deployVirtualMachine" call. The limit should be 32KB of actual user data (not the base64 encoded value)

Implications to consider:

There's 2 system impacts:

A database column is used to store the data – this is per VM.

The default query method is a HTTP GET — usually clients/servers restrict this to a max of about 8KB.While CS does support the POST method also, we are not aware of any cloudstack clients using this.

  • No labels