Browse Source

Add spec repo structure

 This patch add spec repo structure to masakari-specs.
 TODO: Need to add spec tests

Change-Id: I171724efbd716b1f775057bfd117686c086dd09c
Sampath Priyankara 2 years ago
parent
commit
2c10be4ec4

+ 11
- 0
.gitignore View File

@@ -0,0 +1,11 @@
1
+AUTHORS
2
+ChangeLog
3
+build
4
+.tox
5
+.venv
6
+*.egg*
7
+*.swp
8
+*.swo
9
+*.pyc
10
+.testrepository
11
+.DS_Store

+ 7
- 0
.testr.conf View File

@@ -0,0 +1,7 @@
1
+[DEFAULT]
2
+test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
3
+             OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
4
+             OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
5
+             ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
6
+test_id_option=--load-list $IDFILE
7
+test_list_option=--list

+ 3
- 0
LICENSE View File

@@ -0,0 +1,3 @@
1
+This work is licensed under a Creative Commons Attribution 3.0 Unported License.
2
+
3
+http://creativecommons.org/licenses/by/3.0/legalcode

+ 78
- 0
README.rst View File

@@ -0,0 +1,78 @@
1
+===============================
2
+README
3
+===============================
4
+
5
+OpenStack Masakari Specifications
6
+=============================
7
+
8
+
9
+This git repository is used to hold approved design specifications for additions
10
+to the Masakari project. Reviews of the specs are done in gerrit, using a
11
+similar workflow to how we review and merge changes to the code itself.
12
+
13
+The layout of this repository is::
14
+
15
+  specs/<release>/
16
+
17
+Where there are two sub-directories:
18
+
19
+  specs/<release>/approved: specifications approved but not yet implemented
20
+  specs/<release>/implemented: implemented specifications
21
+
22
+
23
+The lifecycle of a specification
24
+--------------------------------
25
+
26
+Developers proposing a specification should propose a new file in the
27
+``approved`` directory. masakari-core will review the change in the usual
28
+manner for the OpenStack project, and eventually it will get merged if a
29
+consensus is reached. At this time the Launchpad blueprint is also approved.
30
+The developer is then free to propose code reviews to implement their
31
+specification. These reviews should be sure to reference the Launchpad
32
+blueprint in their commit message for tracking purposes.
33
+
34
+Once all code for the feature is merged into Masakari,
35
+the Launchpad blueprint is marked complete.
36
+As the developer of an approved specification it is your
37
+responsibility to mark your blueprint complete when all of the required
38
+patches have merged.
39
+
40
+Periodically, someone from masakari-core will move implemented specifications
41
+from the ``approved`` directory to the ``implemented`` directory.
42
+Individual developers are also welcome to propose this move for their
43
+implemented specifications.
44
+It is important to create redirects when this is done so that
45
+existing links to the approved specification are not broken. Redirects aren't
46
+symbolic links, they are defined in a file which sphinx consumes. An example
47
+is at ``specs/ocata/redirects``.
48
+
49
+This directory structure allows you to see what we thought about doing,
50
+decided to do, and actually got done. Users interested in functionality in a
51
+given release should only refer to the ``implemented`` directory.
52
+
53
+
54
+Example specifications
55
+----------------------
56
+
57
+You can find an example spec in ``specs/ocata-template.rst``.
58
+
59
+
60
+Working with gerrit and specification unit tests
61
+------------------------------------------------
62
+
63
+For more information about working with gerrit, see
64
+http://docs.openstack.org/infra/manual/developers.html#development-workflow
65
+
66
+To validate that the specification is syntactically correct (i.e. get more
67
+confidence in the Jenkins result), please execute the following command::
68
+
69
+  $ tox
70
+
71
+After running ``tox``, the documentation will be available for viewing in HTML
72
+format in the ``doc/build/`` directory.
73
+
74
+
75
+* Free software: Apache license
76
+* Documentation: http://docs.openstack.org/developer/masakari-specs
77
+
78
+* TODO

+ 93
- 0
doc/source/conf.py View File

@@ -0,0 +1,93 @@
1
+# -*- coding: utf-8 -*-
2
+# Licensed under the Apache License, Version 2.0 (the "License");
3
+# you may not use this file except in compliance with the License.
4
+# You may obtain a copy of the License at
5
+#
6
+#    http://www.apache.org/licenses/LICENSE-2.0
7
+#
8
+# Unless required by applicable law or agreed to in writing, software
9
+# distributed under the License is distributed on an "AS IS" BASIS,
10
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
11
+# implied.
12
+# See the License for the specific language governing permissions and
13
+# limitations under the License.
14
+
15
+import datetime
16
+import os
17
+import sys
18
+
19
+sys.path.insert(0, os.path.abspath('../..'))
20
+# -- General configuration ----------------------------------------------------
21
+
22
+# Add any Sphinx extension module names here, as strings. They can be
23
+# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
24
+extensions = [
25
+    'sphinx.ext.autodoc',
26
+    #'sphinx.ext.intersphinx',
27
+    'oslosphinx',
28
+    'yasfb',
29
+]
30
+
31
+# Feed configuration for yasfb
32
+feed_base_url = 'http://specs.openstack.org/openstack/masakari-specs'
33
+feed_author = 'OpenStack Development Team'
34
+
35
+exclude_patterns = [
36
+    'template.rst',
37
+]
38
+
39
+# Optionally allow the use of sphinxcontrib.spelling to verify the
40
+# spelling of the documents.
41
+try:
42
+    import sphinxcontrib.spelling
43
+    extensions.append('sphinxcontrib.spelling')
44
+except ImportError:
45
+    pass
46
+
47
+# autodoc generation is a bit aggressive and a nuisance when doing heavy
48
+# text edit cycles.
49
+# execute "export SPHINX_DEBUG=1" in your terminal to disable
50
+
51
+# The suffix of source filenames.
52
+source_suffix = '.rst'
53
+
54
+# The master toctree document.
55
+master_doc = 'index'
56
+
57
+# General information about the project.
58
+project = u'masakari-specs'
59
+copyright = u'%s, OpenStack Foundation' % datetime.date.today().year
60
+
61
+# If true, '()' will be appended to :func: etc. cross-reference text.
62
+add_function_parentheses = True
63
+
64
+# If true, the current module name will be prepended to all description
65
+# unit titles (such as .. function::).
66
+add_module_names = True
67
+
68
+# The name of the Pygments (syntax highlighting) style to use.
69
+pygments_style = 'sphinx'
70
+
71
+# -- Options for HTML output --------------------------------------------------
72
+
73
+# The theme to use for HTML and HTML Help pages.  Major themes that come with
74
+# Sphinx are currently 'default' and 'sphinxdoc'.
75
+# html_theme_path = ["."]
76
+# html_theme = '_theme'
77
+# html_static_path = ['static']
78
+
79
+# Output file base name for HTML help builder.
80
+htmlhelp_basename = '%sdoc' % project
81
+
82
+# Grouping the document tree into LaTeX files. List of tuples
83
+# (source start file, target name, title, author, documentclass
84
+# [howto/manual]).
85
+latex_documents = [
86
+    ('index',
87
+     '%s.tex' % project,
88
+     u'%s Documentation' % project,
89
+     u'OpenStack Foundation', 'manual'),
90
+]
91
+
92
+# Example configuration for intersphinx: refer to the Python standard library.
93
+#intersphinx_mapping = {'http://docs.python.org/': None}

+ 21
- 0
doc/source/contributing.rst View File

@@ -0,0 +1,21 @@
1
+=============================================
2
+Contributing to: masakari-specs
3
+=============================================
4
+
5
+If you would like to contribute to the development of OpenStack, you must
6
+follow the steps in this page:
7
+
8
+   http://docs.openstack.org/infra/manual/developers.html
9
+
10
+If you already have a good understanding of how the system works and your
11
+OpenStack accounts are set up, you can skip to the development workflow
12
+section of this documentation to learn how changes to OpenStack should be
13
+submitted for review via the Gerrit tool:
14
+
15
+   http://docs.openstack.org/infra/manual/developers.html#development-workflow
16
+
17
+Pull requests submitted through GitHub will be ignored.
18
+
19
+Bugs should be filed on Launchpad, not GitHub:
20
+
21
+   https://bugs.launchpad.net/masakari

+ 33
- 0
doc/source/index.rst View File

@@ -0,0 +1,33 @@
1
+.. masakari-specs documentation master file, created by
2
+   sphinx-quickstart on Tue Jul  9 22:26:36 2013.
3
+   You can adapt this file completely to your liking, but it should at least
4
+   contain the root `toctree` directive.
5
+
6
+masakari-specs Design Specifications
7
+==================================================
8
+
9
+Here you can find the specs, and spec template, for each release:
10
+
11
+.. toctree::
12
+   :glob:
13
+   :maxdepth: 1
14
+
15
+   specs/ocata/index
16
+
17
+
18
+masakari-specs Repository Information
19
+===================================================
20
+
21
+.. toctree::
22
+   :maxdepth: 2
23
+
24
+   README <readme>
25
+   contributing
26
+
27
+
28
+Indices and tables
29
+==================
30
+
31
+* :ref:`genindex`
32
+* :ref:`modindex`
33
+* :ref:`search`

+ 1
- 0
doc/source/readme.rst View File

@@ -0,0 +1 @@
1
+.. include:: ../../README.rst

+ 1
- 0
doc/source/specs/ocata/approved View File

@@ -0,0 +1 @@
1
+../../../../specs/ocata/approved/

+ 1
- 0
doc/source/specs/ocata/implemented View File

@@ -0,0 +1 @@
1
+../../../../specs/ocata/implemented/

+ 26
- 0
doc/source/specs/ocata/index.rst View File

@@ -0,0 +1,26 @@
1
+=========================
2
+Masakari Ocata Specifications
3
+=========================
4
+
5
+Template:
6
+
7
+.. toctree::
8
+   :maxdepth: 1
9
+
10
+   Specification Template (Ocata release) <template>
11
+
12
+Ocata implemented specs:
13
+
14
+.. toctree::
15
+   :glob:
16
+   :maxdepth: 1
17
+
18
+   implemented/*
19
+
20
+Ocata approved (but not implemented) specs:
21
+
22
+.. toctree::
23
+   :glob:
24
+   :maxdepth: 1
25
+
26
+   approved/*

+ 1
- 0
doc/source/specs/ocata/redirects View File

@@ -0,0 +1 @@
1
+../../../../specs/ocata/redirects

+ 1
- 0
doc/source/specs/ocata/template.rst View File

@@ -0,0 +1 @@
1
+../../../../specs/ocata-template.rst

+ 86
- 0
doc/source/template.rst View File

@@ -0,0 +1,86 @@
1
+..
2
+
3
+This work is licensed under a Creative Commons Attribution 3.0 Unported License.
4
+http://creativecommons.org/licenses/by/3.0/legalcode
5
+
6
+..
7
+  This template should be in ReSTructured text. The filename in the git
8
+  repository should match the launchpad URL, for example a URL of
9
+  https://blueprints.launchpad.net/masakari/+spec/awesome-thing should be named
10
+  awesome-thing.rst .  Please do not delete any of the sections in this
11
+  template.  If you have nothing to say for a whole section, just write: None
12
+  For help with syntax, see http://sphinx-doc.org/rest.html
13
+  To test out your formatting, see http://www.tele3.cz/jbar/rest/rest.html
14
+
15
+=============================
16
+ The title of your blueprint
17
+=============================
18
+
19
+Include the URL of your launchpad blueprint:
20
+
21
+https://blueprints.launchpad.net/masakari/+spec/example
22
+
23
+Introduction paragraph -- why are we doing anything?
24
+
25
+Problem description
26
+===================
27
+
28
+A detailed description of the problem.
29
+
30
+Proposed change
31
+===============
32
+
33
+Here is where you cover the change you propose to make in detail. How do you
34
+propose to solve this problem?
35
+
36
+If this is one part of a larger effort make it clear where this piece ends. In
37
+other words, what's the scope of this effort?
38
+
39
+Include where in the masakari tree hierarchy this will reside.
40
+
41
+Alternatives
42
+------------
43
+
44
+This is an optional section, where it does apply we'd just like a demonstration
45
+that some thought has been put into why the proposed approach is the best one.
46
+
47
+Implementation
48
+==============
49
+
50
+Assignee(s)
51
+-----------
52
+
53
+Who is leading the writing of the code? Or is this a blueprint where you're
54
+throwing it out there to see who picks it up?
55
+
56
+If more than one person is working on the implementation, please designate the
57
+primary author and contact.
58
+
59
+Primary assignee:
60
+  <launchpad-id or None>
61
+
62
+Can optionally can list additional ids if they intend on doing
63
+substantial implementation work on this blueprint.
64
+
65
+Milestones
66
+----------
67
+
68
+Target Milestone for completion:
69
+  Juno-1
70
+
71
+Work Items
72
+----------
73
+
74
+Work items or tasks -- break the feature up into the things that need to be
75
+done to implement it. Those parts might end up being done by different people,
76
+but we're mostly trying to understand the timeline for implementation.
77
+
78
+
79
+Dependencies
80
+============
81
+
82
+- Include specific references to specs and/or blueprints in masakari, or in other
83
+  projects, that this one either depends on or is related to.
84
+
85
+- Does this feature require any new library dependencies or code otherwise not
86
+  included in OpenStack? Or does it depend on a specific version of library?

+ 4
- 0
requirements.txt View File

@@ -0,0 +1,4 @@
1
+pbr>=1.8 # Apache-2.0
2
+oslosphinx>=4.7.0 # Apache-2.0
3
+sphinx!=1.3b1,<1.4,>=1.2.1 # BSD
4
+yasfb>=0.5.1

+ 24
- 0
setup.cfg View File

@@ -0,0 +1,24 @@
1
+[metadata]
2
+name = masakari-specs
3
+summary = Design Specifications for Masakari
4
+description-file =
5
+    README.rst
6
+author = OpenStack
7
+author-email = openstack-dev@lists.openstack.org
8
+home-page = http://www.openstack.org/
9
+classifier =
10
+    Environment :: OpenStack
11
+    Intended Audience :: Developers
12
+    License :: OSI Approved :: Apache Software License
13
+    Operating System :: POSIX :: Linux
14
+
15
+[build_sphinx]
16
+source-dir = doc/source
17
+build-dir = doc/build
18
+all_files = 1
19
+
20
+[pbr]
21
+warnerrors = True
22
+
23
+[upload_sphinx]
24
+upload-dir = doc/build/html

+ 22
- 0
setup.py View File

@@ -0,0 +1,22 @@
1
+#!/usr/bin/env python
2
+# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
3
+#
4
+# Licensed under the Apache License, Version 2.0 (the "License");
5
+# you may not use this file except in compliance with the License.
6
+# You may obtain a copy of the License at
7
+#
8
+#    http://www.apache.org/licenses/LICENSE-2.0
9
+#
10
+# Unless required by applicable law or agreed to in writing, software
11
+# distributed under the License is distributed on an "AS IS" BASIS,
12
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13
+# implied.
14
+# See the License for the specific language governing permissions and
15
+# limitations under the License.
16
+
17
+# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
18
+import setuptools
19
+
20
+setuptools.setup(
21
+    setup_requires=['pbr'],
22
+    pbr=True)

+ 0
- 0
specs/.gitignore View File


+ 389
- 0
specs/ocata-template.rst View File

@@ -0,0 +1,389 @@
1
+..
2
+ This work is licensed under a Creative Commons Attribution 3.0 Unported
3
+ License.
4
+
5
+ http://creativecommons.org/licenses/by/3.0/legalcode
6
+
7
+==========================================
8
+Example Spec - The title of your blueprint
9
+==========================================
10
+
11
+Include the URL of your launchpad blueprint:
12
+
13
+https://blueprints.launchpad.net/masakari/+spec/example
14
+
15
+Introduction paragraph -- why are we doing anything? A single paragraph of
16
+prose that operators can understand. The title and this first paragraph
17
+should be used as the subject line and body of the commit message
18
+respectively.
19
+
20
+Some notes about the masakari-spec and blueprint process:
21
+
22
+* Not all blueprints need a spec. For more information see
23
+  https://wiki.openstack.org/wiki/Masakari-specs
24
+
25
+* The aim of this document is first to define the problem we need to solve,
26
+  and second agree the overall approach to solve that problem.
27
+
28
+* This is not intended to be extensive documentation for a new feature.
29
+  For example, there is no need to specify the exact configuration changes,
30
+  nor the exact details of any DB model changes. But you should still define
31
+  that such changes are required, and be clear on how that will affect
32
+  upgrades.
33
+
34
+* You should aim to get your spec approved before writing your code.
35
+  While you are free to write prototypes and code before getting your spec
36
+  approved, its possible that the outcome of the spec review process leads
37
+  you towards a fundamentally different solution than you first envisaged.
38
+
39
+* But, API changes are held to a much higher level of scrutiny.
40
+  As soon as an API change merges, we must assume it could be in production
41
+  somewhere, and as such, we then need to support that API change forever.
42
+  To avoid getting that wrong, we do want lots of details about API changes
43
+  upfront.
44
+
45
+Some notes about using this template:
46
+
47
+* Your spec should be in ReSTructured text, like this template.
48
+
49
+* Please wrap text at 79 columns.
50
+
51
+* The filename in the git repository should match the launchpad URL, for
52
+  example a URL of: https://blueprints.launchpad.net/masakari/+spec/awesome-thing
53
+  should be named awesome-thing.rst
54
+
55
+* Please do not delete any of the sections in this template.  If you have
56
+  nothing to say for a whole section, just write: None
57
+
58
+* For help with syntax, see http://sphinx-doc.org/rest.html
59
+
60
+* To test out your formatting, build the docs using tox and see the generated
61
+  HTML file in doc/build/html/specs/<path_of_your_file>
62
+
63
+* If you would like to provide a diagram with your spec, ascii diagrams are
64
+  required.  http://asciiflow.com/ is a very nice tool to assist with making
65
+  ascii diagrams.  The reason for this is that the tool used to review specs is
66
+  based purely on plain text.  Plain text will allow review to proceed without
67
+  having to look at additional files which can not be viewed in gerrit.  It
68
+  will also allow inline feedback on the diagram itself.
69
+
70
+* If your specification proposes any changes to the Masakari REST API such
71
+  as changing parameters which can be returned or accepted, or even
72
+  the semantics of what happens when a client calls into the API, then
73
+  you should add the APIImpact flag to the commit message.
74
+
75
+Problem description
76
+===================
77
+
78
+A detailed description of the problem. What problem is this blueprint
79
+addressing?
80
+
81
+Use Cases
82
+---------
83
+
84
+What use cases does this address? What impact on actors does this change have?
85
+Ensure you are clear about the actors in each use case: Developer, End User,
86
+Deployer etc.
87
+
88
+Proposed change
89
+===============
90
+
91
+Here is where you cover the change you propose to make in detail. How do you
92
+propose to solve this problem?
93
+
94
+If this is one part of a larger effort make it clear where this piece ends. In
95
+other words, what's the scope of this effort?
96
+
97
+At this point, if you would like to just get feedback on if the problem and
98
+proposed change fit in Masakari, you can stop here and post this for
99
+review to get preliminary feedback. If so please say:
100
+Posting to get preliminary feedback on the scope of this spec.
101
+
102
+Alternatives
103
+------------
104
+
105
+What other ways could we do this thing? Why aren't we using those? This doesn't
106
+have to be a full literature review, but it should demonstrate that thought has
107
+been put into why the proposed solution is an appropriate one.
108
+
109
+Data model impact
110
+-----------------
111
+
112
+Changes which require modifications to the data model often have a wider impact
113
+on the system.  The community often has strong opinions on how the data model
114
+should be evolved, from both a functional and performance perspective. It is
115
+therefore important to capture and gain agreement as early as possible on any
116
+proposed changes to the data model.
117
+
118
+Questions which need to be addressed by this section include:
119
+
120
+* What new data objects and/or database schema changes is this going to
121
+  require?
122
+
123
+* What database migrations will accompany this change.
124
+
125
+* How will the initial set of new data objects be generated, for example if you
126
+  need to take into account existing instances, or modify other existing data
127
+  describe how that will work.
128
+
129
+REST API impact
130
+---------------
131
+
132
+Each API method which is either added or changed should have the following
133
+
134
+* Specification for the method
135
+
136
+  * A description of what the method does suitable for use in
137
+    user documentation
138
+
139
+  * Method type (POST/PUT/GET/DELETE)
140
+
141
+  * Normal http response code(s)
142
+
143
+  * Expected error http response code(s)
144
+
145
+    * A description for each possible error code should be included
146
+      describing semantic errors which can cause it such as
147
+      inconsistent parameters supplied to the method, or when an
148
+      instance is not in an appropriate state for the request to
149
+      succeed. Errors caused by syntactic problems covered by the JSON
150
+      schema definition do not need to be included.
151
+
152
+  * URL for the resource
153
+
154
+    * URL should not include underscores, and use hyphens instead.
155
+
156
+  * Parameters which can be passed via the url
157
+
158
+  * JSON schema definition for the request body data if allowed
159
+
160
+    * Field names should use snake_case style, not CamelCase or MixedCase
161
+      style.
162
+
163
+  * JSON schema definition for the response body data if any
164
+
165
+    * Field names should use snake_case style, not CamelCase or MixedCase
166
+      style.
167
+
168
+* Example use case including typical API samples for both data supplied
169
+  by the caller and the response
170
+
171
+* Discuss any policy changes, and discuss what things a deployer needs to
172
+  think about when defining their policy.
173
+
174
+Note that the schema should be defined as restrictively as
175
+possible. Parameters which are required should be marked as such and
176
+only under exceptional circumstances should additional parameters
177
+which are not defined in the schema be permitted (eg
178
+additionaProperties should be False).
179
+
180
+Reuse of existing predefined parameter types such as regexps for
181
+passwords and user defined names is highly encouraged.
182
+
183
+Security impact
184
+---------------
185
+
186
+Describe any potential security impact on the system.  Some of the items to
187
+consider include:
188
+
189
+* Does this change touch sensitive data such as tokens, keys, or user data?
190
+
191
+* Does this change alter the API in a way that may impact security, such as
192
+  a new way to access sensitive information or a new way to login?
193
+
194
+* Does this change involve cryptography or hashing?
195
+
196
+* Does this change require the use of sudo or any elevated privileges?
197
+
198
+* Does this change involve using or parsing user-provided data? This could
199
+  be directly at the API level or indirectly such as changes to a cache layer.
200
+
201
+* Can this change enable a resource exhaustion attack, such as allowing a
202
+  single API interaction to consume significant server resources? Some examples
203
+  of this include launching subprocesses for each connection, or entity
204
+  expansion attacks in XML.
205
+
206
+For more detailed guidance, please see the OpenStack Security Guidelines as
207
+a reference (https://wiki.openstack.org/wiki/Security/Guidelines).  These
208
+guidelines are a work in progress and are designed to help you identify
209
+security best practices.  For further information, feel free to reach out
210
+to the OpenStack Security Group at openstack-security@lists.openstack.org.
211
+
212
+Notifications impact
213
+--------------------
214
+
215
+Please specify any changes to notifications. Be that an extra notification,
216
+changes to an existing notification, or removing a notification.
217
+
218
+Other end user impact
219
+---------------------
220
+
221
+Aside from the API, are there other ways a user will interact with this
222
+feature?
223
+
224
+* Does this change have an impact on python-masakariclient? What does the user
225
+  interface there look like?
226
+
227
+Performance Impact
228
+------------------
229
+
230
+Describe any potential performance impact on the system, for example
231
+how often will new code be called, and is there a major change to the calling
232
+pattern of existing code.
233
+
234
+Examples of things to consider here include:
235
+
236
+* A periodic task might look like a small addition but if it calls conductor or
237
+  another service the load is multiplied by the number of nodes in the system.
238
+
239
+* Scheduler filters get called once per host for every instance being created,
240
+  so any latency they introduce is linear with the size of the system.
241
+
242
+* A small change in a utility function or a commonly used decorator can have a
243
+  large impacts on performance.
244
+
245
+* Calls which result in a database queries (whether direct or via conductor)
246
+  can have a profound impact on performance when called in critical sections of
247
+  the code.
248
+
249
+* Will the change include any locking, and if so what considerations are there
250
+  on holding the lock?
251
+
252
+Other deployer impact
253
+---------------------
254
+
255
+Discuss things that will affect how you deploy and configure OpenStack
256
+that have not already been mentioned, such as:
257
+
258
+* What config options are being added? Should they be more generic than
259
+  proposed (for example a flag that other hypervisor drivers might want to
260
+  implement as well)? Are the default values ones which will work well in
261
+  real deployments?
262
+
263
+* Is this a change that takes immediate effect after its merged, or is it
264
+  something that has to be explicitly enabled?
265
+
266
+* If this change is a new binary, how would it be deployed?
267
+
268
+* Please state anything that those doing continuous deployment, or those
269
+  upgrading from the previous release, need to be aware of. Also describe
270
+  any plans to deprecate configuration values or features.  For example, if we
271
+  change the directory name that instances are stored in, how do we handle
272
+  instance directories created before the change landed?  Do we move them?  Do
273
+  we have a special case in the code? Do we assume that the operator will
274
+  recreate all the instances in their cloud?
275
+
276
+Developer impact
277
+----------------
278
+
279
+Discuss things that will affect other developers working on OpenStack,
280
+such as:
281
+
282
+* If the blueprint proposes a change to the driver API, discussion of how
283
+  other hypervisors would implement the feature is required.
284
+
285
+
286
+Implementation
287
+==============
288
+
289
+Assignee(s)
290
+-----------
291
+
292
+Who is leading the writing of the code? Or is this a blueprint where you're
293
+throwing it out there to see who picks it up?
294
+
295
+If more than one person is working on the implementation, please designate the
296
+primary author and contact.
297
+
298
+Primary assignee:
299
+  <launchpad-id or None>
300
+
301
+Other contributors:
302
+  <launchpad-id or None>
303
+
304
+Work Items
305
+----------
306
+
307
+Work items or tasks -- break the feature up into the things that need to be
308
+done to implement it. Those parts might end up being done by different people,
309
+but we're mostly trying to understand the timeline for implementation.
310
+
311
+
312
+Dependencies
313
+============
314
+
315
+* Include specific references to specs and/or blueprints in Masakari,
316
+  or in other projects, that this one either depends on or is related to.
317
+
318
+* If this requires functionality of another project that is not currently used
319
+  by Masakari (such as nova, or masakari-monitors, python-masakariclient),
320
+  document that fact.
321
+
322
+* Does this feature require any new library dependencies or code otherwise not
323
+  included in OpenStack? Or does it depend on a specific version of library?
324
+
325
+
326
+Testing
327
+=======
328
+
329
+Please discuss the important scenarios needed to test here, as well as
330
+specific edge cases we should be ensuring work correctly. For each
331
+scenario please specify if this requires specialized hardware, a full
332
+openstack environment, or can be simulated inside the Masakari tree.
333
+
334
+Please discuss how the change will be tested. We especially want to know what
335
+tempest tests will be added. It is assumed that unit test coverage will be
336
+added so that doesn't need to be mentioned explicitly, but discussion of why
337
+you think unit tests are sufficient and we don't need to add more tempest
338
+tests would need to be included.
339
+
340
+Is this untestable in gate given current limitations (specific hardware /
341
+software configurations available)? If so, are there mitigation plans (3rd
342
+party testing, gate enhancements, etc).
343
+
344
+
345
+Documentation Impact
346
+====================
347
+
348
+Which audiences are affected most by this change, and which documentation
349
+titles on docs.openstack.org should be updated because of this change? Don't
350
+repeat details discussed above, but reference them here in the context of
351
+documentation for multiple audiences. For example, the Operations Guide targets
352
+cloud operators, and the End User Guide would need to be updated if the change
353
+offers a new feature available through the CLI or dashboard. If a config option
354
+changes or is deprecated, note here that the documentation needs to be updated
355
+to reflect this specification's change.
356
+
357
+References
358
+==========
359
+
360
+Please add any useful references here. You are not required to have any
361
+reference. Moreover, this specification should still make sense when your
362
+references are unavailable. Examples of what you could include are:
363
+
364
+* Links to mailing list or IRC discussions
365
+
366
+* Links to notes from a summit session
367
+
368
+* Links to relevant research, if appropriate
369
+
370
+* Related specifications as appropriate (e.g.  if it's an EC2 thing, link the
371
+  EC2 docs)
372
+
373
+* Anything else you feel it is worthwhile to refer to
374
+
375
+
376
+History
377
+=======
378
+
379
+Optional section intended to be used each time the spec is updated to describe
380
+new design, API or any database schema updated. Useful to let reader understand
381
+what's happened along the time.
382
+
383
+.. list-table:: Revisions
384
+   :header-rows: 1
385
+
386
+   * - Release Name
387
+     - Description
388
+   * - Ocata
389
+     - Introduced

+ 1
- 0
specs/ocata/approved/ocata-template.rst View File

@@ -0,0 +1 @@
1
+../../ocata-template.rst

+ 1
- 0
specs/ocata/implemented/ocata-template.rst View File

@@ -0,0 +1 @@
1
+../../ocata-template.rst

+ 0
- 0
specs/ocata/redirects View File


+ 86
- 0
template.rst View File

@@ -0,0 +1,86 @@
1
+..
2
+
3
+This work is licensed under a Creative Commons Attribution 3.0 Unported License.
4
+http://creativecommons.org/licenses/by/3.0/legalcode
5
+
6
+..
7
+  This template should be in ReSTructured text. The filename in the git
8
+  repository should match the launchpad URL, for example a URL of
9
+  https://blueprints.launchpad.net/masakari/+spec/awesome-thing should be named
10
+  awesome-thing.rst .  Please do not delete any of the sections in this
11
+  template.  If you have nothing to say for a whole section, just write: None
12
+  For help with syntax, see http://sphinx-doc.org/rest.html
13
+  To test out your formatting, see http://www.tele3.cz/jbar/rest/rest.html
14
+
15
+=============================
16
+ The title of your blueprint
17
+=============================
18
+
19
+Include the URL of your launchpad blueprint:
20
+
21
+https://blueprints.launchpad.net/masakari/+spec/example
22
+
23
+Introduction paragraph -- why are we doing anything?
24
+
25
+Problem description
26
+===================
27
+
28
+A detailed description of the problem.
29
+
30
+Proposed change
31
+===============
32
+
33
+Here is where you cover the change you propose to make in detail. How do you
34
+propose to solve this problem?
35
+
36
+If this is one part of a larger effort make it clear where this piece ends. In
37
+other words, what's the scope of this effort?
38
+
39
+Include where in the masakari tree hierarchy this will reside.
40
+
41
+Alternatives
42
+------------
43
+
44
+This is an optional section, where it does apply we'd just like a demonstration
45
+that some thought has been put into why the proposed approach is the best one.
46
+
47
+Implementation
48
+==============
49
+
50
+Assignee(s)
51
+-----------
52
+
53
+Who is leading the writing of the code? Or is this a blueprint where you're
54
+throwing it out there to see who picks it up?
55
+
56
+If more than one person is working on the implementation, please designate the
57
+primary author and contact.
58
+
59
+Primary assignee:
60
+  <launchpad-id or None>
61
+
62
+Can optionally can list additional ids if they intend on doing
63
+substantial implementation work on this blueprint.
64
+
65
+Milestones
66
+----------
67
+
68
+Target Milestone for completion:
69
+  Juno-1
70
+
71
+Work Items
72
+----------
73
+
74
+Work items or tasks -- break the feature up into the things that need to be
75
+done to implement it. Those parts might end up being done by different people,
76
+but we're mostly trying to understand the timeline for implementation.
77
+
78
+
79
+Dependencies
80
+============
81
+
82
+- Include specific references to specs and/or blueprints in masakari, or in other
83
+  projects, that this one either depends on or is related to.
84
+
85
+- Does this feature require any new library dependencies or code otherwise not
86
+  included in OpenStack? Or does it depend on a specific version of library?

+ 0
- 0
test-requirements.txt View File


+ 25
- 0
tox.ini View File

@@ -0,0 +1,25 @@
1
+[tox]
2
+minversion = 1.6
3
+envlist = docs
4
+skipsdist = True
5
+
6
+[testenv]
7
+usedevelop = True
8
+install_command = pip install -U {opts} {packages}
9
+setenv =
10
+   VIRTUAL_ENV={envdir}
11
+deps = -r{toxinidir}/requirements.txt
12
+       -r{toxinidir}/test-requirements.txt
13
+
14
+[testenv:venv]
15
+commands = {posargs}
16
+
17
+[testenv:docs]
18
+commands = python setup.py build_sphinx
19
+
20
+[testenv:spelling]
21
+deps =
22
+   -r{toxinidir}/requirements.txt
23
+   sphinxcontrib-spelling
24
+   PyEnchant
25
+commands = sphinx-build -b spelling doc/source doc/build/spelling

Loading…
Cancel
Save