Commit Graph

12 Commits

Author SHA1 Message Date
Pierre Riteau ae22b23906 Make test-setup.sh compatible with mysql8
Starting from mysql version 8 it's not possible to create a user
implictly when using GRANT.

This patch makes the behavior compatible with that.

Change-Id: Ia13402213bc82027e3d658918a22003be26576d6
Co-Authored-By: Sean McGinnis <sean.mcginnis@gmail.com>
2020-09-22 11:09:15 +02:00
Jenkins 4c33fc1a08 Merge "Prepare for using standard python tests" 2017-02-09 08:42:00 +00:00
Hiroaki Kobayashi 65c7de0aba Use oslo-config-generator
This commit replaces the old configuration file generator from the
openstack.common.config module by oslo-config-generator [1]. It also
deletes files under tools/config which are now unused. New files are
added for the generator:

  - climate/opts.py is for collecting climate options
  - etc/climate/climate-config-generator.conf contains generator configs
  - etc/climate/README-climate.conf.txt describes how to generate a
    sample configuration file

In addition, a testenv:genconfig section is added to tox.ini and
settings for the oslo.config.opts entry point are added in setup.cfg.

[1] http://docs.openstack.org/developer/oslo.config/generator.html

Change-Id: Ifd352dee176310fd667d1523a85afd3ddf9ab5da
Closes-Bug: #1658908
2017-02-07 08:53:12 +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
Masahito Muroi 3c7dbd3237 Use oslo.log
All OpenStack projects should use the oslo.log module for logging. This
patch converts the Blazar code base from its oslo-incubator logging
module to oslo.log.

Change-Id: I2434bb8e864a77a3c3b1ec278767e5526e0a8952
2017-02-02 13:46:42 +09:00
Tony Breeds 3c6632716e Switch from openstack.common to olso_concurrency
The aim is to remove the last user of posix-ipc so it can be removed
from global-requirements.txt.

This commit also re-generates the sample config to reflect the config
group change for 'disable_process_locking' and 'lock_path'.

Change-Id: I777424370dc02c3164803a63331a1befb8531de5
2016-12-09 08:08:05 +11:00
Pierre Riteau c5e9132a07 Use oslo.serialization
This allows to remove the wsgi and sslutils code originating from
oslo-incubator. sslutils is causing ubuntu-xenial gate jobs to fail
because it refers to ssl.PROTOCOL_SSLv3, which was disabled in OpenSSL
on Debian and Ubuntu due to the POODLE attack.

Also update climate.conf sample file to pick up library changes in this
commit and previous ones. This required patching the generator code to
support cfg.PortOpt and cfg.Opt, but ultimately will be replaced to use
the new generator in oslo.config.

Change-Id: I54fcc1cf6c86bbadf6e922f7339d2bde18182e3a
2016-11-11 11:47:18 +00:00
Swann Croiset e9d03ee1ea Reworking configuration options
Use config tools from Oslo-incubator :

* generate a consistant config file sample:
  etc/climate/climate.conf.sample

* Add a new check in tox env 'pep8' to check out-dated config file sample.

Move specifics options for admin credential in group config 'physical:host'

Factorize by declaring config options in each plugins with available values and
centralizing RESOURCE_TYPE value in plugin's module (one dir per plugin)

Use socket.gethostname() in place of socket.getfqdn() to have
predictable default value for 'host' config in climate.config,
since it's ugly forced in openstack.common.config.generator#L232

Fixes: bug #1271875

Change-Id: Ie54fc98b58b49400360c4fd2ce7d8bb3b75915e2
2014-02-24 18:04:22 +01:00
Dina Belova 3e610f498d Migrate to pbr
Change-Id: I733ae148c300165a35c7bba5cc3c331dc96d3df2
2013-08-19 20:55:41 +04:00
Julien Danjou ceae8641a1 Add a basic filter for Nova
Change-Id: I2c54418e15c4783f6f062209a7038282bcb66cd8
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-30 16:15:47 +02:00
Julien Danjou f7504de458 Implement a basic inventory retrieval plugin using Nova
Change-Id: I07c6947eb3b3eaaa4503de91a0667a4ac6e60d73
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-26 14:44:40 +02:00
Julien Danjou f20d7b1cb3 Import project layout
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-03-21 17:49:08 +01:00