Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
43f30ee6
Commit
43f30ee6
authored
16 years ago
by
Iustin Pop
Browse files
Options
Downloads
Patches
Plain Diff
Fix formatting in design-2.0-os-interface
Reviewed-by: imsnah
parent
109509e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/design-2.0-os-interface.rst
+7
-3
7 additions, 3 deletions
doc/design-2.0-os-interface.rst
with
7 additions
and
3 deletions
doc/design-2.0-os-interface.rst
+
7
−
3
View file @
43f30ee6
...
...
@@ -20,6 +20,7 @@ The current Ganeti OS interface, version 5, is tailored for Ganeti 1.2. The
interface is composed by a series of scripts which get called with certain
parameters to perform OS-dependent operations on the cluster. The current
scripts are:
create
called when a new instance is added to the cluster
export
...
...
@@ -70,6 +71,7 @@ The Scripts
As in Ganeti 1.2, every OS which wants to be installed in Ganeti needs to
support the following functionality, through scripts:
create:
used to create a new instance running that OS. This script should prepare the
block devices, and install them so that the new OS can boot under the
...
...
@@ -95,6 +97,7 @@ Incompatibilities with 1.2
We expect the following incompatibilities between the OS scripts for 1.2 and
the ones for 2.0:
- Input parameters: in 1.2 those were passed on the command line, in 2.0 we'll
use environment variables, as there will be a lot more information and not
all OSes may care about all of it.
...
...
@@ -114,6 +117,7 @@ Input
Rather than using command line flags, as they do now, scripts will accept
inputs from environment variables. We expect the following input values:
INSTANCE_NAME
Name of the instance acted on
HYPERVISOR
...
...
@@ -150,6 +154,7 @@ page. All these variables will be available to all scripts.
Some scripts will need a few more information to work. These will have
per-script variables, such as for example:
NEW_INSTANCE_NAME
rename: the name the instance should be renamed to.
EXPORT_NODE
...
...
@@ -172,7 +177,7 @@ command line, so we'll move it for uniformity.)
Output/Behaviour
~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~
~
As discussed scripts should only send user-targeted information to stdout. The
create and import scripts are supposed to format/initialise the given block
...
...
@@ -194,7 +199,7 @@ subset of the ganeti hypervisors, by declaring them in the 'hypervisors' file.
Caveats/Notes
------------
------------
-
We might want to have a "default" import/export behaviour that just dumps all
disks and restores them. This can save work as most systems will just do this,
...
...
@@ -205,4 +210,3 @@ enough space to store the information we need. If we discover that this is not
the case we may want to go to a more complex API such as storing those
information on the filesystem and providing the OS script with the path to a
file where they are encoded in some format.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment