From 09b10046475ca327464bfc62d02ae1f92453b8b3 Mon Sep 17 00:00:00 2001 From: tengqm Date: Fri, 26 Dec 2014 13:52:17 +0800 Subject: [PATCH] Initial version Initial version that documents our vocabulary. --- doc/source/glossary.rst | 133 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 doc/source/glossary.rst diff --git a/doc/source/glossary.rst b/doc/source/glossary.rst new file mode 100644 index 000000000..f2f9737c8 --- /dev/null +++ b/doc/source/glossary.rst @@ -0,0 +1,133 @@ +.. + Licensed under the Apache License, Version 2.0 (the "License"); you may + not use this file except in compliance with the License. You may obtain + a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + License for the specific language governing permissions and limitations + under the License. + +========== + Glossary +========== + +.. glossary:: + :sorted: + + Action + An action is an operation that can be performed on a :term:`Cluster`, a + :term:`Node, a :term:`Policy`, etc. Different types of objects support + different set of actions. An action is executed by a :term:`Worker` thread + when the action becomes ready. Most Senlin APIs create actions in database + for worker threads to execute asynchronously. An action, when executed, + will check and enforce :term:`Policy` associated with the cluster. An + action can be triggered via :term:`Webhook`. + + API server + HTTP REST API service for Senlin. + + Cluster + A cluster is a group of homogeneous objects (i.e. :term:`Node`s). A + cluster consists of 0 or more nodes and it can be associated with 0 or + more :term:`Policy` objects. It is associated with a :term:`Profile Type` + when created. + + Dependency + The :term:`Action` objects are stored into database for execution. These + actions may have dependencies among them. + + Driver + A driver is a Senlin internal module that enables Senlin :term:`Engine` to + interact with other :term:`OpenStack` services. The interactions here are + usually used to create, destroy, update the objects exposed by those + services. + + Environment + Used to specify user provided :term:`Plugin` that implement a + :term:`Profile Type` or a :term:`Policy Type'. User can provide plugins + that override the default plugins by customizing an environment. + + Event + An event is a record left in Senlin database when something matters to + users happened. A event can be of different criticality levels. + + Index + An integer property of a :term:`Node` when it is a member of a + :term:`Cluster`. Each node has an auto-generated index value that is + unique in the cluster. + + Nested Cluster + A cluster that serves a member of another :term:`Cluster`. + + Node + A node is an object that belongs to at most one :term:`Cluster`. A node + can become an 'orphaned node' when it is not a member of any clusters. + All nodes in a cluster must be of the same :term:`Profile Type` of the + owning cluster. In general, a node represents a physical object exposed + by other OpenStack services. A node has a unique :term:`Index` value + scoped to the cluster that owns it. + + Permission + A string dictating which user (role or group) has what permissions on a + given object (i.e. :term:`Cluster`, :term:`Node`, :term:`Profile` and + :term:`Policy` etc.) + + Plugin + A plugin is an implementation of a :term:`Policy Type` or :term:`Profile + Type` that can be dynamically loaded and registered to Senlin engine. + Senlin engine comes with a set of builtin plugins. Users can add their own + plugins by customizing the :term:`Environment` configuration. + + Policy + A policy is a set of rules that can be checked and/or enforced when an + :term:`Action` is performed on a :term:`Cluster`. A policy is an instance + of a particular :term:`Policy Type`. Users can specify the enforcement + level when creating a policy object. Such a policy object can be attached + to and detached from a cluster. + + Policy Type + A policy type is an abstraction of :term:`Policy` objects. The + implementation of a policy type specifies when the policy should be + checked and/or enforce, what profile types are supported, what operations + are to be done before, during and after each :term:`Action`. All policy + types are provided as Senlin plugins. + + Profile + A profile is a mould used for creating objects (i.e. :term:`Node`). A + profile is an instance of a :term:`Profile Type` with all required + information specified. Each profile has an unique ID. As a guideline, a + profile cannot be updated once created. To change a profile, you have to + create a new instance. + + Profile Type + A profile type is an abstraction of objects that are backed by some + :term:`Driver`s. The implementation of a profile type calls the driver(s) + to create objects that are managed by Senlin. The implementation also + serves a factory that can 'produce' objects given a profile. All profile + types are provided as Senlin plugins. + + Role + A role is a string property that can be assigned to a :term:`Node`. + Nodes in the same cluster may assume a role for certain reason such as + application configuration. The default role for a node is empty. + + OpenStack + Open source software for building private and public clouds. + + Webhook + A webhook is an encoded URI (Universion Resource Identifier) that + encapsulates a tuple (user, object, action), where the user is a Keystone + entity that initiates an action and the object is a specific + :term:`Cluster`, a :term:`Node` or a :term:`Policy` etc. The action item + specifies an :term:`Action` to be triggered. Such a Webhook is the only + thing one needs to know to trigger an action on an object in Senlin. + + Worker + A worker is the thread created and managed by Senlin engine to execute + an :term:`Action` that becomes ready. When the current action completes + (with a success or failure), a worker will check the database to find + another action for execution.