Feature #1095
Implement file injection in the Synnefo-specific Ganeti OS provider
Status: | Closed | Start date: | 09/13/2011 | |
---|---|---|---|---|
Priority: | Medium | Due date: | ||
Assignee: | Constantinos Venetsanopoulos | % Done: | 0% |
|
Category: | Cyclades Images | Spent time: | - | |
Target version: | v0.7 |
Description
Get file data to be injected in a newly deployed Image, from the API layer.
The data will be passed encoded in a Ganeti OS provider parameter, based on the results of #985.
Related issues
History
#1 Updated by Constantinos Venetsanopoulos over 12 years ago
- Assignee changed from Nikos Skalkotos to Constantinos Venetsanopoulos
The Ganeti OS Parameter OSP_IMG_PERSONALITY contains a string dump of the following json:
[ { 'path':'/path/to/file1', 'contents':'base64encodedfile1' }, { 'path':'/path/to/file2', 'contents':'base64encodedfile2' }, ... ... ]
This list of dictionaries contains all the files (base64 encoded) that need to be injected in the newly deployed Image.
The 'snf-image' OS Provider runs a hook that loads the json, decodes and stores the files in the corresponding paths.
If identical files already exist they are backed up as proposed by the OpenStack API:
http://docs.openstack.org/cactus/openstack-compute/developer/openstack-compute-api-1.1/content/Server_Personality-d1e2543.html
#2 Updated by Constantinos Venetsanopoulos over 12 years ago
- Status changed from New to Feedback
An initial version of the hook has been commited in the snf-image repository.
#3 Updated by Vangelis Koukis over 12 years ago
- Target version changed from v0.8.0 to v0.7
#4 Updated by Vangelis Koukis over 12 years ago
- Status changed from Feedback to Closed
This has been implemented as a hook inside the snf-image OS provider, closing ticket.