https://wiki.openstack.org/w/index.php?title=GlanceServerTemplates&feed=atom&action=historyGlanceServerTemplates - Revision history2024-03-29T05:37:02ZRevision history for this page on the wikiMediaWiki 1.28.2https://wiki.openstack.org/w/index.php?title=GlanceServerTemplates&diff=16853&oldid=prevRyan Lane: Text replace - "__NOTOC__" to ""2013-02-17T23:29:29Z<p>Text replace - "__NOTOC__" to ""</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 23:29, 17 February 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">__NOTOC__</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* '''Launchpad Entry''': [[GlanceSpec]]:server-templates</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* '''Launchpad Entry''': [[GlanceSpec]]:server-templates</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* '''Created''': 28 Sep 2011</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* '''Created''': 28 Sep 2011</div></td></tr>
</table>Ryan Lanehttps://wiki.openstack.org/w/index.php?title=GlanceServerTemplates&diff=3277&oldid=prevGlenCampbell at 16:34, 28 September 20112011-09-28T16:34:36Z<p></p>
<p><b>New page</b></p><div>__NOTOC__<br />
* '''Launchpad Entry''': [[GlanceSpec]]:server-templates<br />
* '''Created''': 28 Sep 2011<br />
* '''Contributors''': Glen Campbell<br />
<br />
== Summary ==<br />
<br />
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.<br />
<br />
The metadata could also be used to drive automatically-generated web interfaces to solicit the configuration metadata.<br />
<br />
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.<br />
<br />
== Release Note ==<br />
<br />
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.)<br />
<br />
It is mandatory.<br />
<br />
== Rationale ==<br />
<br />
== User stories ==<br />
<br />
== Assumptions ==<br />
<br />
Glance ''stores'' the server template and metadata map; Nova must ''implement'' the server template. <br />
<br />
== Design ==<br />
<br />
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.<br />
<br />
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.<br />
<br />
The metadata map would look something like this:<br />
<br />
<br />
<pre><nowiki><br />
metadata {<br />
IP_ADDRESS;<br />
HTML_ROOT : string(1,255) : "/var/www/";<br />
}<br />
map {<br />
/etc/httpd/includes/server.inc<br />
}<br />
</nowiki></pre><br />
<br />
<br />
In this case, the <code><nowiki>metadata</nowiki></code> section defines the metadata components required; the <code><nowiki>map</nowiki></code> section defines the files that must be parsed and have the metadata configured. Within the <code><nowiki>metadata</nowiki></code> section, there are two defined items. <code><nowiki>IP_ADDRESS</nowiki></code> is a predefined (built-in) value, and <code><nowiki>HTML_ROOT</nowiki></code> is the root directory of the web server.<br />
<br />
For <code><nowiki>HTML_ROOT</nowiki></code>, there are three sub-fields: the name, the data type, and (in this case) the default value. The token <code><nowiki>required</nowiki></code> could be used for items that must be supplied by the user. <br />
<br />
When the server is created, a (as-yet-undefined) process would look at the files in the <code><nowiki>map</nowiki></code> section and replace metadata tokens with the defined values. For example, the file might contain:<br />
<br />
<br />
<pre><nowiki><br />
<VirtualHost {{IP_ADDRESS}}:*><br />
DocumentRoot "{{HTML_ROOT}}";<br />
</VirtualHost><br />
</nowiki></pre><br />
<br />
<br />
== Implementation ==<br />
<br />
This section should describe a plan of action (the "how") to implement the changes discussed. Could include subsections like:<br />
<br />
=== UI Changes ===<br />
<br />
Should cover changes required to the UI, or specific UI that is required to implement this<br />
<br />
=== Code Changes ===<br />
<br />
Code changes should include an overview of what needs to change, and in some cases even the specific details.<br />
<br />
=== Migration ===<br />
<br />
Include:<br />
* data migration, if any<br />
* redirects from old URLs to new ones, if any<br />
* how users will be pointed to the new way of doing things, if necessary.<br />
<br />
== Test/Demo Plan ==<br />
<br />
This need not be added or completed until the specification is nearing beta.<br />
<br />
== Unresolved issues ==<br />
<br />
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.<br />
<br />
== BoF agenda and discussion ==<br />
<br />
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.<br />
<br />
----<br />
[[Category:Spec]]</div>GlenCampbell