Jump to: navigation, search

Difference between revisions of "SpecTemplate"

Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
* '''Launchpad Entry''': [[GlanceSpec]]:server-templates
 +
* '''Created''': 28 Sep 2011
 +
* '''Contributors''': Glen Campbell
  
* '''Launchpad Entry''': [[NovaSpec]]:foo or [[SwiftSpec]]:foo
+
== Summary ==
* '''Created''':
 
* '''Contributors''':
 
  
== Summary ==
+
A server template consists of a base image plus the definitions of configuration metadata. For example, a server template might include an Apache HTTP server; the metadata would include the server name, location of the HTML root directory, and tuning parameters. Glance stores the template in its registry; Nova, when creating a new server from the template, would validate the required metadata and configure the internal applications directly.
 +
 
 +
The metadata could also be used to drive automatically-generated web interfaces to solicit the configuration metadata.
 +
 
 +
Server templates could greatly increase the flexibility and usability of compute clouds; rather than creating a "bare" server and configuring it manually, this could allow users to prepopulate applications in a server image and configure them automatically.
  
 
== Release Note ==
 
== Release Note ==
Line 18: Line 23:
  
 
== Assumptions ==
 
== Assumptions ==
 +
 +
Glance ''stores'' the server template and metadata map; Nova must ''implement'' the server template.
  
 
== Design ==
 
== Design ==
  
You can have subsections that better describe specific parts of the issue.
+
This is just one possible design for this feature (keep that in mind). At its simplest, a server template consists of a core image and a ''metadata map''. The metadata map defines metadata that must be collected during server creation and a list of files (on the server) that must be modified using the defined metadata.
 +
 
 +
Here is a simple example: let's assume that the server template has a Linux server with Apache HTTP installed. Apache needs to know the IP address of the server and the directory on the server that contains the HTML files.
 +
 
 +
The metadata map would look something like this:
 +
 
 +
metadata {
 +
  IP_ADDRESS;
 +
  HTML_ROOT : string(1,255) : required;
 +
}
 +
map {
 +
  /etc/httpd/includes/server.inc
 +
}
 +
 
 +
In this case
  
 
== Implementation ==
 
== Implementation ==

Revision as of 16:27, 28 September 2011

  • Launchpad Entry: GlanceSpec:server-templates
  • Created: 28 Sep 2011
  • Contributors: Glen Campbell

Summary

A server template consists of a base image plus the definitions of configuration metadata. For example, a server template might include an Apache HTTP server; the metadata would include the server name, location of the HTML root directory, and tuning parameters. Glance stores the template in its registry; Nova, when creating a new server from the template, would validate the required metadata and configure the internal applications directly.

The metadata could also be used to drive automatically-generated web interfaces to solicit the configuration metadata.

Server templates could greatly increase the flexibility and usability of compute clouds; rather than creating a "bare" server and configuring it manually, this could allow users to prepopulate applications in a server image and configure them automatically.

Release Note

This section should include a paragraph describing the end-user impact of this change. It is meant to be included in the release notes of the first release in which it is implemented. (Not all of these will actually be included in the release notes, at the release manager's discretion; but writing them is a useful exercise.)

It is mandatory.

Rationale

User stories

Assumptions

Glance stores the server template and metadata map; Nova must implement the server template.

Design

This is just one possible design for this feature (keep that in mind). At its simplest, a server template consists of a core image and a metadata map. The metadata map defines metadata that must be collected during server creation and a list of files (on the server) that must be modified using the defined metadata.

Here is a simple example: let's assume that the server template has a Linux server with Apache HTTP installed. Apache needs to know the IP address of the server and the directory on the server that contains the HTML files.

The metadata map would look something like this:

metadata {
  IP_ADDRESS;
  HTML_ROOT : string(1,255) : required;
}
map {
  /etc/httpd/includes/server.inc
}

In this case

Implementation

This section should describe a plan of action (the "how") to implement the changes discussed. Could include subsections like:

UI Changes

Should cover changes required to the UI, or specific UI that is required to implement this

Code Changes

Code changes should include an overview of what needs to change, and in some cases even the specific details.

Migration

Include:

  • data migration, if any
  • redirects from old URLs to new ones, if any
  • how users will be pointed to the new way of doing things, if necessary.

Test/Demo Plan

This need not be added or completed until the specification is nearing beta.

Unresolved issues

This should highlight any issues that should be addressed in further specifications, and not problems with the specification itself; since any specification with problems cannot be approved.

BoF agenda and discussion

Use this section to take notes during the BoF; if you keep it in the approved spec, use it for summarising what was discussed and note any options that were rejected.