Feature #1093
Implementation of <personality> in Compute API POST /servers requests
Status: | Closed | Start date: | 09/13/2011 | |
---|---|---|---|---|
Priority: | Medium | Due date: | 09/19/2011 | |
Assignee: | Giorgos Verigakis | % Done: | 0% |
|
Category: | Cyclades API | Spent time: | - | |
Target version: | v0.7 |
Description
Implement the <personality>
element in POST /servers
OpenStack Compute API requests, to allow the users to upload arbitrary files for injection into VMs on server creation.
Investigate ways of passing the names and contents of these files to the Synnefo-specific Ganeti OS provider
(e.g., pickle, JSON dicts).
Related issues
Associated revisions
Send personality as a backend parameter
Use a JSON dump the follows OpenStack syntax (list of dictionaries with 'path' and 'contents' keys)
Contents are base64 encoded.
Refs #1093
Pass personality in osparams instead of beparams
Use 'img_personality' key inside osparams.
The format remains the same as before and follows OpenStack:
{{{
[{'path': '/path/to/file1', 'contents': 'base64-contents1'}, {'path': '/path/to/file2', 'contents': 'base64-contents2'}]
}}}
Refs #1093
Add size limits for personality on server create
Refs #1093
History
#1 Updated by Vangelis Koukis over 12 years ago
Please also limit the maximum number of files and the maximum size per file, making them configurable options.
Such limits are also mentioned by the OpenStack API spec.
#2 Updated by Vangelis Koukis over 12 years ago
- Status changed from Assigned to Closed
Merged into master, closing ticket.