Feature #1093

Implementation of <personality> in Compute API POST /servers requests

Added by Vangelis Koukis over 12 years ago. Updated over 12 years ago.

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

related to Synnefo - Feature #1645: Support setting owner and mode in files injected into new... Closed 11/11/2011 11/16/2011
related to Synnefo - Feature #985: New parameters passed through the Ganeti OS Interface (us... Closed 08/03/2011
related to Synnefo - Feature #1517: Support creation and management of SSH public keys in UI,... Closed 10/18/2011 11/11/2011
blocks Synnefo - Feature #991: Extend Synnefo mechanism to support custom Images Assigned 08/03/2011
blocks Synnefo - Feature #491: Χειρισμός του συστήματος αρχείων νέων εικονικών μηχανών Closed 05/10/2011

Associated revisions

Revision 0419e0c1
Added by Giorgos Verigakis over 12 years ago

Placeholder for personality support

Just log a warning for now.

Refs #1093

Revision 2b1db26f
Added by Giorgos Verigakis over 12 years ago

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

Revision e3b5be49
Added by Giorgos Verigakis over 12 years ago

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

Revision fc443bcd
Added by Giorgos Verigakis over 12 years ago

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.

Also available in: Atom PDF