Commit Graph

13 Commits

Author SHA1 Message Date
Luigi Toscano 904d70f19a Migrate away from oslo_i18n.enable_lazy()
The method is known to be problematic, and it is going to be
deprecated:
http://lists.openstack.org/pipermail/openstack-operators/2018-November/016139.html

Moreover, its usage in Sahara produces some nasty side-effects
when Python 3.x is used. The provisioning of the clusters ends
abruptly when sahara-engine tries to update the status in the
database, with a failure inside oslo_i18n.

Change-Id: Icd2f22a0cb9e7642099600eeb38d3090d046c304
Story: 2004657
Task: 28613
2018-12-20 19:07:12 +01:00
Jeremy Freudberg de5a4cf4a4 Deprecate sahara-all
Change-Id: I7585193d00e933a4fce556b9cd5e62fef8d1dd83
2018-07-06 10:27:55 -04:00
gecong1973 6265773a9f delete two unused LOG
There are some unused LOG in CLI files

Change-Id: I7b77389a46b0751493a7e820b9b3e2b41b754248
2016-07-19 09:49:21 +08:00
Sergey Reshetnyak 0ac90f12fb Remove she-bang from sahara CLI modules
she-band not needed because tox generates she-bang for console scripts

Change-Id: Ia7806c4ab27b7eb3e95a7c4a725734eccb7d0219
2015-12-23 17:38:08 +03:00
Chad Roberts 673952f024 Explicitly calling start for sahara-api in sahara-all
Now calling launch_api_service and service.start() for
sahara-api when launching sahara-all to get the
api server to start, even in debug mode.

Change-Id: I8668a70b99e3f1fba98ec9df783b7962b9632037
Closes-Bug: #1521266
2015-12-03 11:52:28 -05:00
Sergey Reshetnyak 2679167bfb Use oslo.service for launching sahara
Changes:
* use launcher for running sahara modules
* use wsgi server from oslo.service library

Change-Id: I9ba8f1e751ce9bb9b9adcebda6509107b98e2fc8
2015-11-10 18:50:07 +03:00
Andrey Pavlov 5c5491f9de Using oslo_* instead of oslo.*
Changes:
* using oslo_config instead of oslo.config
* using oslo_concurrency instead of oslo.concurrency
* using oslo_db instead of oslo.db
* using oslo_i18n instead of oslo.i18n
* using oslo_messaging instead of oslo.messaging
* using oslo_middleware instead of oslo.middleware
* using oslo_serialization instead of oslo.serialization
* using oslo_utils instead of oslo.utils

Change-Id: Ib0f18603ca5b0885256a39a96a3620d05260a272
Closes-bug: #1414587
2015-02-04 13:19:28 +03:00
Vitaly Gridnev a0c4d13e90 Migrate to oslo.log
oslo.log was added to global requirements, so we can migrate to this module.
Also we need this migration to be ensure that it works correctly with
log-improvements.

Since openstack.common.log is not dropped in oslo-incubator,
we shouldn't remove it.

Change-Id: I90468e4db812ae0b5d8a43a37206b236f8904661
Closes-bug: #1412673
2015-01-27 11:09:10 +03:00
Andrew Lazarev ff1dcc7446 Added ability to listen HTTPS port
* Added oslo-inclubator 'sslutils' module dependency
* Added config params from sslutils
* Added ability to make SSL port for sahara-api

Implements blueprint: sahara-support-https

Change-Id: I184e39b6a0eb6ad17b51aa408a65a455983bfb0c
2015-01-09 14:43:01 -08:00
Andrew Lazarev 0dcafed8da Auth policy support implementation
* Added policy oslo module
* Added related config options to sample file
* Enabled policy enforcement for all API calls
* Changed error rendering for access violations

Implements blueprint: auth-policy

Change-Id: Idb27eb052b1f598c3cb688bae1debcaaebe13aa5
2014-10-30 16:54:28 -07:00
Sergey Lukjanov a5b15fb04a Use oslo.i18n
Replace initialization of gettext / oslo-incubator's gettextutils with
oslo.i18n lib initialization.

Implements blueprint sahara-oslo-i18n

Change-Id: I6626cc22c7d38c0074930e5baf7866ff1dd04028
2014-07-09 16:34:44 +04:00
Dmitry Mescheryakov cf913fbcc6 Run periodics in sahara-engine instead of sahara-api
Periodics should run in engine, not in api, because they don't
interact with the user. On the other hand they do require remote
operations.

Change-Id: I00273de0632ee99ca21e9ddd796755172af2a4da
2014-05-12 19:46:43 +04:00
Dmitry Mescheryakov 4e24c3ca5b Split sahara into sahara-api and sahara-engine
Split monolitic sahara-api into two services: sahara-api and
sahara-engine. The former is a user-facing interface, the later -
service doing all the work. Sahara-api sends tasks to sahara-engine
via oslo.messaging. See the blueprint for details.

Notes:

* Used the following Climate RPC code as a baseline:
  https://github.com/stackforge/climate/blob/master/climate/utils/service.py
  hence added Julien Danjou to licence header.
* Removed the old contents of sahara/utils/rpc.py - that is a prehistoric
  stuff not used anywhere.
* sahara-api still depends on eventlet, while we want to drop this dependency
  in the end.
* periodics run in sahara-api. They shold be moved to engine later.

Partially Implements: blueprint scalable-savanna
Change-Id: I64275a757b539f3fcddd6e993d6614d492745226
2014-04-28 17:54:32 +04:00