46 Commits

Author SHA1 Message Date
Masahito Muroi
2e9466d904 Add spec for instance reservation
Change-Id: I03315216c3a6203e088e914ffb9fedf1e672d732
Partially-Implements: blueprint new-instance-reservation
2017-08-07 08:50:54 +00:00
Pierre Riteau
3de6f73e92 Fix physical host reservation for non-admin users
Originally, Blazar was using its service user to manage objects for
physical host reservation, e.g. host aggregates, which by default
requires admin rights. Commit 16d5f67ba7020701edbbf09a747f5683b0840c21
started using a dedicated account configured with values
climate_username, climate_password, and climate_tenant_name. Commit
c9b7307cf3c97d3b48878aca6eda5b7fbc4dcfa7 removed this dedicated account
and started using trusts instead, so that operations were performed on
behalf of the user creating the lease (with the trustee being the blazar
service user).

While this works well if users creating leases are admins, non-admin
users will get errors because the default Nova policy prevents them from
running required operations associated with aggregates and hypervisors.

Since it is not clear why a dedicated account for admin operations was
required, this patch brings back the approach used before commit
16d5f67ba7020701edbbf09a747f5683b0840c21, which was to use the service
account for admin operations. This allows non-admin users to create
Blazar leases.

The nova client setup is updated to authenticate against Keystone v3.

Change-Id: Iad86bb549aec13edd662965d2f91b68c856ae06c
Closes-Bug: #1663204
2017-06-02 16:00:54 +09:00
Hiroki Ito
2d0cabb17d Change keystone_authtoken configs
Blazar uses os_auth_host, os_auth_port and os_auth_version to the auth
uri for now. However, current approach can not be applied to uri with some
prefixes such like "http://127.0.0.1/identity".

In this patch, authentification is executed by using "keystone_authtoken"
configs. This patch enables us to use any forms of auth uri.

Closes-Bug: #1681419
Change-Id: I7c8728593ecf503b23d742a5f464af8a2a6e5253
2017-05-16 10:13:41 +00:00
Jenkins
ebf507933f Merge "Delete instances at the end of leases" 2017-04-17 01:15:04 +00:00
Jenkins
c846287259 Merge "SPEC for terminate-lease-at-anytime" 2017-04-17 01:01:45 +00:00
Yasufumi Ogawa
ab14d4643c Correct a mistake for URL description
Link for bug-tracker in "Virtual instance reservation" section is
displayed improperly.
Correct it by adding new line before it.

Change-Id: Idda9f655ec58cefac3953e6b1f42846e97223647
2017-04-13 16:39:02 +09:00
Hiroaki Kobayashi
811db49970 Delete instances at the end of leases
Blazar does not terminate runnning instances at the end of a lease for
now.  That can cause a failure of the other lease. This patch change the
on_end action to force-delete all running instances.

This change is the step1 of the on-end-options Blueprint.

Change-Id: Iaaed5de710ecdb8131cb9323dc41b78d2a43743b
Implements: blueprint on-end-options
2017-04-13 11:20:33 +09:00
Hiroaki Kobayashi
db8c83ebab SPEC for on-end-options
Related to blueprint on-end-options

Change-Id: I11aca151791040e83b34b34cd69818750f054c22
2017-04-06 11:08:46 +01:00
Hiroaki Kobayashi
d3855d1f45 SPEC for terminate-lease-at-anytime
Related to blueprint terminate-lease-at-anytime

Change-Id: I1c414d3f730b28209fb26f7a6fc025994ee54b14
2017-04-03 18:41:28 +09:00
Masahito Muroi
c0e88809c8 Add specifications directory
The Blazar project doesn't have a separate specs repository. If Blazar
users want to know details of new features, they need to follow IRC
discussions or track Git commits.

This patch creates a directory to keep specifications publicly visible.

Change-Id: I34918fe34d331d690b18b27a7d470f093d211cf7
Closes-Bug: #1670956
2017-03-10 18:00:02 +00:00
Hiroaki Kobayashi
e43e6b1be6 Update Blazar API v1 doc
This patch corrects Blazar URIs described in the API v1 document.

Change-Id: Ic5633449065d595b929a486e63fad8d5ac97d940
2017-03-08 10:41:39 +00:00
Jenkins
7ede6931ba Merge "Update contributor guide" 2017-03-07 07:17:51 +00:00
Jenkins
3b299c0f77 Merge "Update overview documents" 2017-03-07 07:17:42 +00:00
Hiroaki Kobayashi
526353a440 Update the guide for installation without DevStack
Change-Id: I5d11acc6731c08e84d3d4941663cafcead95c508
Partial-Bug: #1662740
2017-03-06 01:27:40 +00:00
Jenkins
b843a9429a Merge "Migrate climate namespace to blazar" 2017-03-06 01:24:48 +00:00
Hiroaki Kobayashi
d444361bba Update contributor guide
Change-Id: I81275279f716026b7a10226d4b3c98c5befc4a71
2017-03-02 14:06:14 +00:00
Masahito Muroi
68d769bf71 Migrate climate namespace to blazar
Although the Climate project was renamed to Blazar in 2014, the code has
still been using the climate namespace.

This patch moves all code to the blazar directory and allows users and
operators to use the 'blazar' command namespace. The 'climate' namespace
remains O release to allow users of Blazar time to move their own
code to the blazar namespace, but will be removed in P release
development cycle.

Change-Id: Icbe6fab1051aae4ac819982a1fa4f323cb0bf2d0
Partial-Bug: #1662734
2017-03-02 09:36:14 +00:00
Hiroaki Kobayashi
707452ea73 Update overview documents
This patch updates overview documents. It also adds settings required
for publishing documents under doc directory on the readthedocs.io.

Change-Id: I89fd24cc538d09cdcfbe9a1cfb9986a4bf724266
Closes-Bug: #1662739
2017-03-02 12:06:30 +09:00
Jenkins
fafb388a73 Merge "Updated Blazar API v1 doc" 2017-03-02 01:08:18 +00:00
Tejaswi Bachu
fa6335fe4a Updated Blazar API v1 doc
Partial-Bug: #1662741

Change-Id: Iac48bfd8b3102e983f80bbf4a168b68b84bc0e5c
2017-02-28 14:29:02 +05:30
Jenkins
e11b84a637 Merge "Correct table format" 2017-02-24 20:16:25 +00:00
Hiroaki Kobayashi
cab0aeca9f Correct table format
This patch adds necessary spaces into tables of the v1 API document to
resolve malformed table errors.

Change-Id: I3235a21ec595f2198fc94c619fdb1490c3489abc
Partial-Bug: #1662741
2017-02-22 04:26:47 +09:00
Tejaswi Bachu
d6665d3683 Add more precise DevStack installation instructions
Change-Id: Id57181195d44bbc3c2a14b095e4c16d5e79aeb2d
Partial-Bug: #1662740
2017-02-21 15:27:23 +00:00
Andreas Jaeger
1e1b787a3f Prepare for using standard python tests
Add simple script to setup mysql and postgresql databases, this script
can be run by users during testing and will be run by CI systems for
specific setup before running unit tests.

This allows to change in project-config the python-db jobs to
python-jobs since python-jobs will call this script initially.

Update devref for this.

See also
http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html

Change-Id: I845c04b32c6b2bba055829cb2100f5beba94de4d
Needed-By: I4f2ce44f9e28c94d6562d5c520c00c35207f7123
2017-02-02 12:10:59 +00:00
Hiroaki Kobayashi
e6ebd0878e Remove contrib/devstack
DevStack doesn't use extras.d to install external repository plugins
anymore. It has been replaced by the plugins interface [1][2]. However,
extras.d related code was still contained in the contrib/devstack
directory.

This commit removes contrib/devstack and its contents.

[1] http://docs.openstack.org/developer/devstack/plugins.html
[2] https://github.com/openstack-dev/devstack/blob/51ecf0a8/functions-common#L1882

Change-Id: I86545cd8436b5a82f4700c01720798ea9f97599e
Closes-Bug: #1649221
2017-01-24 04:36:53 +00:00
Pierre Riteau
9f6ba312c6 Update default environment list
The Blazar code base is not yet compatible with Python 3. Having tox
environments for them is a first step towards fixing it.

Change-Id: I04441e4881eb7fe9b4c12d65392796c1020b41df
2016-12-09 11:03:22 +00:00
Andreas Jaeger
1cf90f8a82 Remove unused pngmath Sphinx extension
There's no RST file that uses ".. math" and thus
the pngmath Sphinx extension is not used and can
get removed.

Change-Id: I3ea4b529025c8ac3c4092f3720124647861e6668
2016-02-29 19:49:22 +01:00
venkatamahesh
2504221a95 Change repository from stackforge to OpenStack
Change-Id: Id6d427268387a1226e3a69193498b7a7f084725d
2015-10-18 15:50:10 +05:30
Harsh Shah
12547fec67 Renamed Climate references to Blazar in the docs
References to climate in the docs have been renamed to blazar reflect the new name and enable uploadig docs to readthedocs. Also updated the docs to reference the new architecture image.

Change-Id: I594849afb6268892a03cc716a1707dcde835fa52
Closes-Bug: 1324581
2014-06-27 14:34:31 -07:00
Jenkins
f60e013d68 Merge "update devstack instructions for blazar rename" 2014-05-30 21:03:35 +00:00
James Penick
83c8cae815 update devstack instructions for blazar rename
With the rename of Climate to Blazar the devstack instructions were no
longer valid. I've updated the references to changed files and service
names where appropriate to make these instructions work again.

Change-Id: I52ce96eb6cc09998d671fb3554ec386807421d44
2014-05-30 19:58:02 +00:00
Sylvain Bauza
23e327f79c Add extensions for API v2 controllers
Controllers (and API endpoints) should be able to be selected using
configuration flags, as we do for plugins

TODO:
 - Extra Hooks to be configured using stevedore

Implements blueprint: pecan-wsme
Implements blueprint: api-extensions

Change-Id: I12f1bc1accbc870aacb0d1e08c9e0d08223c4b18
2014-05-30 11:19:19 +02:00
Cristian A Sanchez
6b26ecaf75 Change references of tenant to project
Refernces from tenant to project were made in several
places, including DB, HTTP Headers, configuration items,
json in responses and devstack integration. Additionally,
a migration script using Alembic was included.

Implements: blueprint tenant-to-project-ref
Change-Id: I4b21182f555ccd412a4ca4e0ce753f07edcd07f8
2014-04-17 11:16:09 -03:00
Sylvain Bauza
eb0c81f95a Port to Pecan/WSME for API v2
Routing either V1 or V2 using a Facade. By default, V1 is enabled
but can be deactivated by a confflag.

Pecan controller for Lease created using WSME i/o validation

Implements blueprint: pecan-wsme

Change-Id: I9047abece78632daa13fdebfea9fb8aaa3c60981
2014-03-31 13:45:48 +02:00
Jenkins
edeee9b2b1 Merge "Add development guides to docs" 2014-03-17 11:32:37 +00:00
Jenkins
93d893aca1 Merge "Fix REST API docs" 2014-03-13 10:46:22 +00:00
Jenkins
6b5ba3d68f Merge "Add installation guides to docs" 2014-03-13 10:44:20 +00:00
Jenkins
69fc37bce6 Merge "Start moving Climate docs from wiki to Sphinx docs" 2014-03-13 10:43:29 +00:00
Dina Belova
0c8792523f Fix REST API docs
Partially implements: blueprint climate-docs
Change-Id: I66d700e4b3d391fefa1d3d6649e3a44b14d9cd5e
2014-03-11 15:29:51 +04:00
Dina Belova
141df5400f Add development guides to docs
Implements blueprint: climate-docs
Change-Id: I5e38c9609a97abd59847f7d19f79149b6f63b292
2014-02-27 14:29:55 +04:00
Dina Belova
9694721629 Add installation guides to docs
Partially implements: blueprint climate-docs
Change-Id: Id0a0f0cc78e23ee1b1443d283258d0ca1df6c53f
2014-02-27 14:27:01 +04:00
Dina Belova
9b25f3f8a5 Start moving Climate docs from wiki to Sphinx docs
* add common introduction and architecture information
* create more appropriate structure for REST API docs

Change-Id: I27b95aa76814f5d6bf6737c56594c7e5ba9d667c
Partially implements: blueprint climate-docs
2014-02-26 18:52:10 +04:00
Nikolaj Starodubtsev
a5af831e60 Remove unecessary sys.path add from docs/config.py
We explore, that sys.path magic in docs/conf.py is unecessary now. Also,
removing this strings provides compatibility with future Sphinx
releases.

Change-Id: I7028297f89b2ec0a1ab7007ad2594eec2c9000c0
closes-bug: #1285036
2014-02-26 14:51:57 +04:00
Sergey Lukjanov
a13e9d844c Fix malformed plugins table
Change-Id: I6d3815505e737f23147855d16910acf4fadf0435
2014-01-21 14:30:31 +04:00
Dina Belova
bcf2cc9395 Add docs for REST API 1.0
Change-Id: I836c60acbd169db8a92c36712db8c0afb6be2375
2013-10-27 18:56:44 +04:00
Dina Belova
75fd0fdd56 Add basic documentation possibility.
Change-Id: Iad96149b10cd5b72fe73dca0b120a0f666cc5565
2013-10-14 16:55:29 +02:00