Healthcheck middleware provides the /healthcheck endpoint which is
useful for loadbalancer or monitoring tools to check health of api
services. This change enables the middleware by default.
Note that this endpoint has no authentication. The /healthcheck entry
should be removed from api-paste.ini to disable the middleware again.
Change-Id: I1bc61afff2851bb8efac3ec5101a5198f204f41e
- use the the python3 guestfs bindings, not the old python2
(not availbale anymore on the newer systems);
- fix the compatibility with mysql 8, which unfortunately
removes the shortend for user creation + password setting;
- bump the values in lower-requirements.txt (also requirements.txt
and test-requirements.txt when needed) so they they work with
python 3.8 (inspired by other similar bumps).
Change-Id: Icaa3c008bbe179098244f7bb9d80790068430fe2
Since plugins are not part of Sahara core anymore, loading plugins
like we currently do fails when plugins are not installed.
Currently we check the list of loaded plugins by checking the CONF
file plugins session. To fix that, we are changing to check the list
of loaded plugins on the PluginManager variable loaded_plugins, this
way we can instead of failing to start sahara if a desired plugin
is not installed, we can warn that the plugin was not loaded and
continue the application.
Change-Id: Iaae3a75cd75b06e94bc4492e5dc654a6281fdff4
Use coverage+stestr for the cover tox target.
With this change, testrepository is not required anymore.
Change-Id: Ia294ee8003ccc10104f68777bea6921ff97bacef
The "images" environment has sitepackages=True, required by the
Python binding for libguestfs (not on pip).
Also, set the Ubuntu kernel so that it can be read by normal.
This affected (and was fixed) many other users of libguestfs. See:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725
Change-Id: Icf21a7ee9b575d832d6be5e662d4cfa7b8933611
Each review which adds support for another plugin should change
the support matrix defined in the script.
Add the binary dependencies required for the sahara-image-pack
command.
Change-Id: Ibc294bd572ee4da298f125f9d9c4bff87ce5da9d
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 is exactly what is
currently done by OpenStack CI in project-config.
This allows to change in project-config the python-db jobs to
python-jobs since python-jobs will call this script initially.
See also
http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html
Change-Id: I7827b3e9ea341108e139f69bf342ec7a7f297a49
Needed-By: Ie775b9ebb989f2625faa38240a4ada59f05fab5c
This sets up the HTTPProxyToWSGI middleware in front of Sahara.
The purpose of this middleware is to set up the request URL
correctly in case there is a proxy (For instance, a loadbalancer
such as HAProxy) in front of Sahara.
The HTTPProxyToWSGI is off by default and needs to be enabled
via a configuration value.
Change-Id: Ica7e8671e3880c0db90d382bec89b0994f75b36d
Closes-bug: #1590608
All wrappers to simple tools; install_venv was removed from Tempest too.
Most of the run_* and build_docs are wrapper around a simple tox call.
Replace the tools with the proper tox call in documentation.
Change-Id: I6ef28e9d778a8ce5a88f8fde94cf96beda862a58
openstack/common directory was used to keep files from oslo-incubator.
There is no file from oslo-incubator now, so don't need handle
particular case for openstack/common.
Note: method split_path will be merged in oslo.utils[1], then we
can remove this directory forever.
[1] https://review.openstack.org/#/c/313996/
Change-Id: I60628204f928753ad930c0a2da631473c7f4fdc3
Now using keystonemiddleware.auth_token rather than
keystoneclient.middleware.auth_token. This change
fixes get_auth_token.py.
Change-Id: Ia00c065d7684005277e82ab12db9ae2c550b5a1e
Closes-Bug: #1550522
All sahara scenario files moved to new sahara tests repository,
need migrate gates to files from this repository
Depends-On: I0cfa9c7cfa9840ee127e84105a212a021d9588e1
Change-Id: I1efff0465e0a048af45c96fcf6b7810202c651b5
Set heat_enable_wait_condition to True by the default. Also
disable that in gate-sahara-dsvm-scenario-nova-heat job.
Related-bug: 1516784
Change-Id: If2e8a4ad010d516f65e2f9ae4449d70cc30d8e44
Old integration tests are no longer gated, so we
can remove this 'dead' code from sahara repository.
Change-Id: Ief0984d34898c134e831d9949e0f16617dd62004
DevStack uses v2 version for openstack image client, but
this version doesn't support --property as well.
So, let's use v1 version for registering image for Sahara.
Closes-bug: 1499309
Change-Id: Iec6aa6b42e5575690631fed585eaa8d6ff2501a1
Recent builds of gate were failed because of error
during creating instances: 'Flavor's disk is too small
for requested image.'. That is why we should use custom
sahara flavor in gate.
Closes-bug: 1493403
Change-Id: I0b074ada2375edc6c80c332cc71caa9bec1053fd
It will allow us to test how Sahara works for non-admin user.
Register image in Sahara under admin user and make it public.
Change-Id: Iae0684d865951e8bd419498a3de4e50c603b61ae
There are many failures now due to the timeout for instances creation
and so let's try to use less resources - m1.tiny flavor and 1GB vol.
Change-Id: I2f56112013033824d46f6e460a52efeffda5548a
Generate template_vars.ini for the scenario testing framework
and run it using existing templates for sahara-ci (tmp).
Change-Id: Ibfd787247bf04b3c75d7341c3fecd6a5c5621e0d