Commit Graph

54 Commits

Author SHA1 Message Date
hwang 51350eabbe Fix ci broken for Debian 12
Change-Id: I82b6fcccb99e01b0790a4037d9c3dff0a5f1c99f
2023-12-20 12:19:50 -08:00
hwang 3c1627dbca Fix devstack plugin to support centos/rhel 9
Since there is no official repo of MongoDB
for Centos-Stream-9 or Rhel-9, we will build
the repo by script.

Change-Id: I1f20eb22d6e922d12e0d88aae5bf47c032db3cb3
2023-08-30 17:13:05 -07:00
Zuul 3e6b7dd5ef Merge "Add missing key for bionic-security repository" 2023-08-20 19:10:50 +00:00
hwang ef62a26dc4 fix the gateway CI error
Change-Id: I346e829b8c68f2f5444e098c36c7f0c7a32f6fb9
2023-08-16 10:41:25 -07:00
Martin André c8e8a3d029 Add missing key for bionic-security repository
The devstack install on ubuntu jammy (22.04) fails to check the
signature for the bionic-security repo and exits, as seen in
https://github.com/gophercloud/gophercloud/issues/2701.

This commit adds the required key.

Change-Id: Ifab19c36fbca1813dae35d65750deed4fd81b91c
2023-07-27 13:15:10 +09:00
Erik Olof Gunnar Andersson c4502d1593 Use bionic package of libssl1.1
Instead of manually downloading the package and having to keep
that url up-to-date. This patch switches to just using the bionic
security repo as a source.

Change-Id: I81383955aea253769b02df682e9712233da77c26
2023-03-21 19:20:16 -07:00
Martin André 54aed6be0f Fix install of mongodb on Ubuntu 22.04
Simplify the version check to make it less error prone, use the right
version of the 22.04 repository from mongodb.org (jammy vs focal) and
stop trying to install libssl package that no longer exists on the
repository.

Change-Id: I49d32e555e6a0df15c0e059e8c4152a969ab3975
2023-03-15 10:26:33 +08:00
Erik Olof Gunnar Andersson c611c5c6e8 Unblock CI by fixing libssl url
The manually provided libssl package no longer exists.

Change-Id: I5735d203076175cb6acc32ec32145a6cf255a63d
2023-03-03 16:47:22 -08:00
OpenStack Release Bot 8049697fc9 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I29fcb9afa016b1321b0b4c0118a8d7ffbc00b02e
2023-01-21 09:29:14 +08:00
Ghanshyam Mann e35f9ad8d3 [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1885825
Fix user creation with GRANT in MySQL 8.0(Ubuntu Focal)
Ubuntu Focal (20.04) has mysql 8.0 and with mysql 8.0 there
is no implicit user creation with GRANT. We need to
create the user first before using GRANT command.

- bug#1886298
Bump the lower constraints for required deps which added python3.8 support
in their later version.

Co-Author: wanghao <sxmatch1986@gmail.com>

Story: #2007865
Task: #40229

Closes-Bug: #1885825

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal>

Change-Id: Ic15dfe480e4d34c3ba102b65153fab1af787bd67
2020-09-18 11:28:46 -05:00
Fei Long Wang 1ddd9ca5c0 Fix sqlalchemy migration
1. Fix the case of table names
2. Fix the sqlalchemy migration tests

NOTE: The sqlalchemy migrations test depends on oslo_db's migration
test which requires mysql user 'openstack_citest' with password
'openstack_citest' otherwise the test will be skipped.

Closes-Bug: #1654105

Change-Id: Ia672440a948fa4784f6dd1aa6d5fed0bc3915663
2017-02-02 20:20:29 +13:00
Flavio Percoco ab74a88503 Update oslo-config-generation code
Oslo's config generator has been moved under oslo.config, which doesn't
require using a bash script anymore.

The patch removes the old scripts and updates the generation task in
tox.ini

Closes-bug: #1373800

Change-Id: Ia757b0d141f8557144108d386496d1e9bfc7333f
2014-11-17 21:49:53 +01:00
Jeffrey Zhang ea6a221f68 Add the redis opts to the generate sample shell script
* Fix the redis opts typo in setup.cfg
* Fix the default value type for reconnect_sleep in redis
* add the redis to oslo.config.generator.rc

Change-Id: Ibd439e2bdaa46ddf21802724f9fe7fb6f2b61bc5
2014-09-18 00:07:54 +08:00
Victoria Martínez de la Cruz 99d49dd358 Adds the API reference to the devs guide
This fix adds the detailed API reference to the developers guide
as it's done in major projects in the stack.

It also fix Sphinx warning and errors and adds a .rst files
generator to easily update the api reference in the future.

Plus, it includes an index for API, modules and search.

Co-Authored-By: Flavio Percoco <fpercoco@redhat.com>

Change-Id: If42121c9e8e852785cb2db3aa5d6895223b9d604
2014-09-08 13:50:10 -03:00
Flavio Percoco e7c98874cd Fix config generator in Zaqar
This patch updates the config generator imports and generates a new
version of the config sample.

Change-Id: I7bb54c1c308aeafd654f5e13d9d0cc24385a5b6e
2014-08-22 15:33:32 +02:00
Flavio Percoco 62dc2476db Update files from oslo-incubator
Change-Id: Iffc893407beddbf25d5b5c33a44581f3eb5dcded
2014-08-13 15:25:06 +02:00
chioleong 93f3cd75e1 Use auth_token from keystonemiddleware
auth_token middleware in python-keystoneclient is deprecated and has
been moved to the keystonemiddleware repo.

Change-Id: I174b62d035b84aff1cf0d60efb84f7650445f42c
Closes-Bug: #1342274
2014-08-11 12:35:16 -07:00
Flavio Percoco 36e63c9a45 Rename Marconi to Zaqar
This patch renames every package, file, match of Marconi in the codebase
to Zaqar *except* for the .gitreview file, which will have to be updated
*after* I8e587af588d9be0b5ebbab4b0f729b106a2ae537 lands.

Implements blueprint: project-rename

Change-Id: I63cf2c680cead4641f3e430af379452058bce5b3
2014-08-04 10:36:50 +02:00
pengfei wang 1060dd8745 Rename shard to pool
Most of the work done in https://review.openstack.org/#/c/96463/
and here are for those left.

Change-Id: I9249747557b0784982f2fe75c1f13fd866a16616
Closes-Bug: #1333152
2014-06-24 14:19:37 +08:00
Flavio Percoco 90c100d589 Add keystone_authtoken to our config generator
Change-Id: I4ead65cfe8a5b1305ef4b9693e79d10e3d3a99bb
2014-03-26 09:29:59 +01:00
Flavio Percoco a4ed60feed Use oslo's config generator to generate sample
This patch adds oslo's config generator to the source tree and uses it
to generate marconi's sample configs. It also adds a check to pep8 that
verifies the config file is up-to-date.

Change-Id: Iec7defa244dc8649a5c832bb81b9ec6f30f0ee37
2014-03-11 20:14:35 +01:00
Alejandro Cabrera 262cb5286f restructure: rm -rf tools, move test requires
To pave the path for the project structure of the future, tools/ is
being eliminated.

New commands/utils should be added as entry points and placed in cmd/

tools/system-test-requires -> system-test-requirements.txt

Change-Id: I14b3189f2b2a1cee6508952a46274e00514addac
2013-08-14 18:22:07 -04:00
Zhihao Yuan dddea2747d chore: switch to py3 print function
Also fix other problems due to flake8 upgrades.

Change-Id: I5cb6194e48c66e40ec7aa9739eb37550d6bf3e2a
2013-07-19 11:10:53 -04:00
Malini Kamalambal e411ff9b9f System Tests - Switch from robot to nosetests
This patch updates the System tests to use nosetests,
in place Robot framework.

blueprint system-tests
Change-Id: I4c51cb042ab21e2796b55fb13d69ae3afa2af172
2013-06-25 13:49:50 -04:00
Flaper Fesp 4af003d8d5 Rename pip-requires / test-requires into (test-)requirements.txt
Change-Id: Ica6e7da1f7ed9f9fd62302d73309630aa536116d
2013-06-14 14:25:18 +02:00
Flaper Fesp 802a37c568 Migrate to pbr
Change-Id: I0d5888f9d58d819ac65561b222cb2e93f260d627
2013-06-14 14:14:42 +02:00
Flaper Fesp 60026a73ea Wrap transport's app with keystoneclient's middleware
Instead of using paste and depending on the middleware chain, use
ceilomenter's strategy and wrap transport's app using the auth_token
middleware.

NOTE: Tests with successful auth are missing

Implements blueprint remove-paste
Change-Id: I61e7d1fae6b80114e22c0a43b4e391e2d5443123
2013-06-10 22:44:20 +02:00
Jenkins 18f83cbc94 Merge "Replace gunicorn with wsgiref" 2013-06-10 18:42:29 +00:00
Flaper Fesp 61765db141 Replace gunicorn with wsgiref
The patch replaces gunicorn with wsgiref since it doesn't make sense to
have gunicorn as dependency. Lets let deployers choose whatever the
prefer to use as container.

The patch also removes lib/* since marconi_paste is not needed anymore,
the wsgi app can now be accessed through:

    `marconi.transport.wsgi.app:app`

Backward incompatible change: bind refers now to the host and a new
config variable was introduced to specify the port it should bind to.

Fixes bug: #1187280
Implements blueprint: transport-wsgi

Change-Id: I9f7767ace5c6553e75e2f4587032d7d64b9537c4
2013-06-10 16:46:26 +02:00
Jenkins 3048f75c20 Merge "Add System Tests" 2013-06-06 03:16:11 +00:00
Malini Kamalambal 5477b646cc Add System Tests
This patch adds the System level testing framework &
the initial set of tests for Marconi.This will allow
developers to run the system tests (regression suite for
Marconi system level tests), against local Marconi server.

Refer tests/system/README.rst file for details on
how to add new tests and run the existing tests.

Change-Id: I2f47e03091acc260293b19edad69ff5c83888ec3
Implements: blueprint system-tests
2013-06-03 12:39:22 -04:00
Flaper Fesp 14061a2466 Use oslo's log
This patch imports oslo's log module. I modified it since it depends on
oslo's notifier which has many other dependencies Marconi doesn't need.

There's sort of an issue with gunicorn, it seems that once
log.setup('marconi') is called, gunicorn starts logging twice each
message.

Change-Id: I85e8354b7af9b67ea1f87e54b3b73250d4a1115a
2013-05-13 16:58:36 +02:00
kgriffs a556f392c5 style: Fix flake8 and hacking errors
In the interest of conforming to the de-facto coding standard for
OpenStack projects, this patch enables all checks for flake8 and
hacking, plus fixes everything reported.

Also, several docstrings were edited for clarity and grammar.

Change-Id: If85c4e420811b6df8eb55de1b5f07a0a8acfceff
Implements: blueprint grizzly-debt
2013-05-07 09:31:20 -04:00
kgriffs 6ea84355c3 style: Migrate to the new hacking package on pypi
This removes the cloned Nova hacking.py in favor of the new OpenStack
hacking package on pypi. The new hacking module is a flake8 extension,
so running pep8 separately is no longer needed, and has been removed.

Note that some errors are currently being ignored; those will be fixed
in a followup patch.

Implements: blueprint grizzly-debt
Change-Id: I9d34b21d872a872b8c927717367023d3214ff38d
2013-05-06 10:44:21 -04:00
kgriffs e5cc92939a style: Enable flake8 with proper exclusions
This patch ensures we are running flake8 in a DRY fashion, using the same
exclusions as used for pep8. Also fixed is the pep8 module version mismatch
between the version required for hacking.py and the newer version used by
flake8. Finally, the doctest run for pep8 was removed, and enabled for
nose instead.

Implements: blueprint grizzly-debt
Change-Id: I8e19512df4cd37f7ad637b66dff0a5982d14482c
2013-05-06 08:48:04 -04:00
Zhihao Yuan 32fa32a0fc Switch to flake8 and fix errors.
Change-Id: I185d0841c0b3400c47e30f9398634f36e78a684e
2013-04-30 17:32:40 -04:00
Zhihao Yuan 62572bd61d Add simplejson into dependency.
Actually, keystone-client enforces simplejson.  We can do that too.

Change-Id: If8c082e55269766d7a0653f87d640f79bc8ad336
2013-04-25 21:12:02 +00:00
kgriffs 746d59576d chore: Remove bin/marconi-self-host
This directory is no longer necessary, and the script is out of
date. marconi/bin is the new home for this sort of stuff.

Change-Id: I67b95dad314389d567d623521b69df9093c77dff
2013-04-05 18:08:05 -04:00
Flaper Fesp 948476edf9 Added gunicorn as server application manager
This patch adds gunicorn as dependency for starting and managing server
workers. Gunicorn allow users to chose whether to use workers based on a
sync process, eventlet or gevent. It also manages multiple workers, ssl,
process uid, process gid.

Implements blueprint transport-base

Change-Id: Ic328dbb937f8df69691911c6e6ff6b318bb1db34
2013-04-05 19:45:59 +02:00
Zhihao Yuan 1a15292cf2 Make use of the features in falcon 0.1.3 & 0.1.4
* To build the query strings;
 * to build content_location;
 * and to ensure the type of the HTTP parameters.

Implements: blueprint transport-wsgi

Change-Id: Ibc06d68e43313e842854f08a8bff010624e7516c
2013-04-04 17:50:46 -04:00
Flaper Fesp 1810ffa8c9 MessageController implementation for mongodb storage
This patch implements MessageController for the mongodb storage. In
order to test the changes made here, it was necessary to modify current
base classes.

This patch also adds more granular exceptions (QueueDoesNotExist and
MessageDoesNotExist) both based on the existing exception DoesNotExist.

Implements blueprint storage-base
Implements blueprint storage-mongodb

Change-Id: I0752c5d797104a9cc58efd8e866b3b627646bce5
2013-04-02 17:00:36 +02:00
Zhihao Yuan fb5a45f0c4 Message support in SQlite.
* The JSON serialization is switched to msgpack;
 * list() on messages and stats() on queues fail loudly.

Implements: blueprint message-pagination

Change-Id: Iadb1ef348a53e0de28c6b45782ef686a3f1bf1e2
2013-03-28 15:53:03 -04:00
Bryan Davidson 24ab9e0b4c Keystone Authentication
* Inserted Keystone middleware into Paste Deploy pipeline when
  running an HTTP transport instance.

Change-Id: I8d206747878b1013f668f116fdfc1d76204aef1c
2013-03-25 12:36:53 -04:00
kgriffs 6b6fe59bc0 style: Enable pep8 warnings/errors and fix ensuing chaos
Change-Id: I8dc2ccc148357019d822bc7e747608abc713e9e0
2013-03-20 18:33:38 -04:00
kgriffs 58c646fbfe feat(transport.wsgi): Create or update queue
Still needs some error handling, but the happy path works.

Change-Id: I9da6cd0c7a54693389e996a58c8b2f7664ac7b5e
Trello: 116
2013-03-19 16:54:08 -04:00
Flaper Fesp b8f510ccf7 QueueController for mongodb storage
This patch introduces a queue controller for the mongodb storage
backend.

Implements blueprint storage-mongodb

Change-Id: I473d0514b1948bedeae66c3b737d9e18e088c796
2013-03-19 18:56:26 +01:00
kgriffs a3bfba07cd fix(tox): Address warnings
* Remove "bash" from command string in testenv:pep8 to stop it from
  complaining about referencing something outside the virtualenv.
* Add missing pyflakes dependency

Change-Id: I10ae6dba764b4e7d7fcb9aef3f8d84b30ba1c773
2013-03-13 17:14:01 -04:00
Zhihao Yuan 38d72dffd0 Decentralized configuration.
The configuration is based on oslo-config, while this module lets
each module which want to be configured define the options it need
by itself, and get the limited access to those config variables.

Implements blueprint config-module

Change-Id: Iffbb859da0cb5fb8434bc439320bf6c20f9d39b5
2013-03-13 14:22:37 -04:00
Jenkins 1778a07fb9 Merge "Added hacking file" 2013-03-07 17:28:52 +00:00
Flaper Fesp 420c1e046c Added hacking file
As part of adding the hacking file, this patch adds some files taken
from nova project that will help with the coding standards validation.

Tox now uses run_pep8 for the pep8 test

Change-Id: I0784390a0b13c9694e358563d43e5442592a785e
2013-03-07 18:07:53 +01:00