Commit Graph

38 Commits

Author SHA1 Message Date
Takashi Kajinami 1298374998 Fix missing oslo.db options
This ensures that the options from the oslo.db library are picked up
by oslo-config-generator.

Also, update .gitignore so that the sample config file is ignored by
git.

Change-Id: I6ab051fd1c8034d9697b1caab9c1fda64a3275c3
2024-02-26 01:45:01 +09:00
wu.chunyang a427333e80 [CI] fix coverage name in git ignore
.coverage was generated by tox command, we need to ignore this file.
trivial fix

Change-Id: I7c25e8de4ae8c6dbc5ce737846672596d52e74a7
2024-01-10 14:42:06 +08:00
wu.chunyang 44c3cdef5c Rename app.wsgi to app_wsgi.py
1. app.wsgi is a python script and should be end with py extension.
2. Generate trove-wsgi script which is needed by kolla to support
https and ipv6.
3. Ignore build directory in git
4. update docs

Change-Id: Ibbd6ecb8db25aa3a443d3f526f4cf6d418eb26f3
2022-08-25 11:10:33 +08:00
wu.chunyang aa2425bf06 Ignore vscode files in git
Trivial Fix

Change-Id: I8f157005409fae76c19caadf15c9dd291bd971b4
2022-07-11 22:05:27 +08:00
wu.chunyang c0ad3f8c64 WIP: add guest image build check
This PR adds trove-guest-image-build check in ci.

Change-Id: If512cb7c094d14850555215d412b8e7b418c35ce
2022-04-13 22:51:20 +08:00
Zhao Chao 71ebd353ca Generate policy sample file automatically.
A new entrypoint in setup.cfg and a config file are added for
using olso.policy helper script to generate the sample file.

A new tox target also is added to simplify the environment
setting up. Now policy sample file can be generated
automatically, so the in-repo sample file is no longer needed.

Co-Authored-By: Andrew Laski <andrew@lascii.com>
Partial-Implements: blueprint policy-in-code
Change-Id: Ic336fa154ccc05b5e9db3a8e751a484b1cc5aa9c
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-02-12 18:11:22 +08:00
Nguyen Van Trung 3d2eeba032 Improve .gitignore file in the project
This change will help ignore all files which formated .coverage.*
files. These files will occured when perform following CLI:

    tox -ecover

Change-Id: I8c75b4eefd562f1496b56818ca8df9a8ce067327
2017-11-30 08:30:21 +07:00
Samuel Matzek 9ec134996a Fix gate issues
Issue 1:
The os-testr 1.0.0 release had a couple of required config changes due
to it's internal usage of stestr.

This change to stestr changed the way tests were discovered by
os-testr and as a result the unit test run was picking up tempest
tests.

A regex is added to the py3base environment call of ostestr because
the use of --serial and --blacklist-file together is broken in stestr
and adding the regex parameter allows the blacklist-file to be
processed. The stestr issue is documented here [1].

Issue 2:

Cache dirs for PKI tokens have been removed for all services in
devstack under I5680376e70e74882e9fdb87ee1b95d5f40570ad7.

We must also remove the use here to pass the right parameters to
configure_auth_token_middleware.

Issue 3:
Keystone V2 APIs have been removed.  When creating Nova and Glance
clients, the test code was either hard coding v2 Keystone or not
providing enough information for the V3 auth.

Issue 4:
Oslo context has deprecated parameters such as 'tenant', has removed
them from its constructor and is using a rename decorator to handle
them. As such, the code and test case to check for unrecognized
parameters to TroveContext and Context is erroneously removing the
tenant parameter.  Oslo context has also changed the from_dict method
since the original code to remove parameters was introduced into
Trove. The new method signature and code should already provide most
or all of the protections against incompatibility the original code
was attempting to provide. The fix for this issue is to change
TroveContext's from_dict method to use the kwargs to handle its own
__init__ parameters and be more in line with what Nova is doing in
its RequestContext subclass.

Issue 5:
Jobs run as jenkins on Zuul v2 but run as user zuul on Zuul v3.

Issue 6:
Ignore one case of pylint E1101 in the Ceilometer notification
code base.

[1] https://github.com/mtreinish/stestr/issues/103

Change-Id: Ic55187b0d73d4c572d7f8332882b4f455a6177c8
2017-10-13 09:37:48 -05:00
Amrith Kumar 4512aec2d4 Cleanup trove's tox.ini and .gitignore
This commit cleans up a couple of issues with Trove's tox.ini.

1. something that was reported to me by Matthew Treinish who
observed that the tox jobs are oddly bundled together.

This is important because infra's reporting is unable to generate some
useful metrics and tracking of trove's jobs because of the way they
are tied together.

2. with the cleanup of docs, apidocs is no longer a directory and can
be cleaned up, similarly api-ref is a thing and should be handled in
.gitignore.

3. that py27 used to use testr, switched it to using ostestr. I've
retained it for coverage.

4. the sqlite db needs to be deleted between runs because we otherwise
fail (on a developer configuration) because some tests intentionally
appear to leave stuff around.

5. I've set all ostestr jobs to run with --serial because there are
clearly cases where multiple tests can attempt to setup the DB at the
same time and get into trouble. Till we can fix those (if we feel it
is worthwhile) it is more reliable to run ostestr in --serial mode. It
only takes 2.5 minutes. This includes the cover jobs which runs with
--no-parallel.

An infra change will follow that will enable testing jobs.

Change-Id: I0a971c6ef6c1a4669490f2aa0e67c795fe86e190
Closes-Bug: 1618098
Closes-Bug: 1618149
2016-08-30 15:33:36 -04:00
Peter Stachowski dda9aa730b Remove times.dbm file for each tox run
If you run the py27 tox tests then attempt to run the py34 tests,
the following error will occur:

    py34 runtests: commands[0] | ostestr
    --blacklist_file=blacklist-py3.txt
    db type could not be determined
    running=${PYTHON:-python} -m subunit.run discover
    ./trove/tests/unittests --list
    The test run didn't actually run any tests

This happens because the apparently the times.dbm file generated
by py27 is not compatible with py34. The converse is not true though -
if you run py34 first, py27 will work.

The work-around is to delete the file, which is what is now done
before running every tox test. Once the bug has been fixed, the
work-around can be removed.

This was originally noticed in python-troveclient, however it
also manifests in the Trove project.

coverage.xml was also added to the .gitignore file as it
was appearing in the git list of modified files.

Change-Id: I312b3879c764b7b803d35e0bb62f0f47291f6693
Closes-Bug: #1565928
2016-07-20 19:43:08 +00:00
Andreas Jaeger 696d80d4a8 Add Install Guide
This adds trove-specific contents of the OpenStack Installation Guide
in the trove repo per [1]. A separate change will remove the heat
contents from the OpenStack Installation Guide for Newton per [2].

This is a verbatim import from the content in openstack-manuals with
minimal changes to get content building.

Also adds tox.ini environment for install-guide and adds
openstackdocs-theme to test-requirements.txt.

From lmichaels -- added a statement to the next-steps doc.

[1]
http://specs.openstack.org/openstack/docs-specs/specs/newton/project-specific-installguides.html
[2]
http://specs.openstack.org/openstack/docs-specs/specs/newton/installguide.html
[3] https://review.openstack.org/#/c/314229/

Partially-Implements: blueprint projectspecificinstallguides
Change-Id: Idf8cb90536fd4b4d9a2d0695ef30f498b1283410
2016-06-16 15:48:29 -07:00
Craig Vyvial ab29656bc5 Add reno for release notes management
Depends-On: I2a445cdea20e70399e331ea4e97042ecd0137c2e
Change-Id: Ia0520aff6d96ce3fcf20e94e2a100dae0f90aa76
2015-11-05 13:12:35 -06:00
Peter Stachowski d8b1263f9b Add .eggs/ to .gitignore
setuptools uses an .eggs folder as a cache to avoid multiple
downloads.  git should ignore this directory as it will never
be added to the repo.

Change-Id: I49714b769ce42d45cf14c4c8f4c10ae40e638f4b
2015-10-15 14:45:03 +00:00
Tim Simpson 294330c554 Moved the apidocs from openstack/database-api
By hosting the docs here we'll be able to better maintain that
developers are being mindful of changes or even occassionally writing
documentation for new API features. This should also allow us to
autogenerate the snippets.

Change-Id: I0111bcd38341b1736a47b0a3d3e6ff96d2ca1c58
2014-04-24 14:41:40 -05:00
Sushil Kumar 62f67b5a2f Removing IDE specific ignores
Reasons
- .gitignore contains IDE specific ignores
- IDE specific ignores should be setup using
  global gitignore on local box.
  for eg. create a .gitignore locally and use ...
  git config --global core.excludesfile .gitignore

Changes
- Removed .idea generated by IntelliJ.
- Removed .DS_Store generated by Mac OS.
- Removed .project generated by Eclipse.
- Removed .pydevproject generated by PyDev.
- Removed atlassian-ide-plugin.xml
  generated by Atlassian IDE.

Change-Id: I902e980834716edb8a30ca58df520fd3fc0f73aa
Closes-Bug: #1257279
2013-12-07 14:45:45 +00:00
Tim Simpson eb81a1e963 Fixes trove-api daemon fake mode functionality.
This commit adds code to register taskmanager as a fake endpoint.
This allows the fake daemon to work again.

Fixes bug 1238901
Change-Id: Icb7c97cad3d76dc36a38126eb7f8b5929dc0d591
2013-10-28 23:41:11 -05:00
Nikhil Manchanda 708f3230d0 Added developer documentation for Trove
Added initial sphinx/docutils documentation for Trove. Also made
corresponding changes to setup.cfg so that OpenStack CI is able
to build the Trove developer docs.

Fixes blueprint: trove-dev-docs

Change-Id: I900ffd2c0b661fb7642fa06c08ee92892eb176f0
2013-07-18 17:21:00 -07:00
Michael Basnight 7ab80b554d Rename from reddwarf to trove.
Implements Blueprint reddwarf-trove-rename

Change-Id: Ia9ee609bbc06a1d8b9d6917642529f30347541fd
2013-06-24 14:11:15 -07:00
Kevin Conway 18664fa9d8 Add trove.egg* entry in .gitignore
There was already an entry for reddwarf.egg*, but this is no
longer valid after some of the name changes.

Change-Id: Ib348879a2e22cb44dc50de34961ce18b1a2ce576
2013-06-20 09:12:33 -05:00
Monty Taylor fc930eb91d Migrate to pbr.
Fixes bug 1179007

Change-Id: If7c187f3b4833bdd7f2c0632c061afdcacb9832f
2013-06-03 18:44:17 -04:00
daniel-a-nguyen c27fd2447a Adds absolute limits to limit API call
Addresses XML issues

Change-Id: I96df93c36c06baf309f881fc1f21b5acbd7fa953
Fixes: bug #1154298
2013-03-12 20:52:04 -07:00
Tim Simpson 6a5b506290 Added the cover directory to .gitignore.
Fixes bug #1123300

Change-Id: Id122bb0d3cfa6c2e78bced622b7dd24a940b5e65
2013-02-12 12:09:08 -06:00
Tim Simpson 7dd1c6b3f5 Ignore .testrepository directory.
Fixes bug #1120549

Change-Id: I0b1812699d143965dc18996d52fd4698d9ce14a5
2013-02-09 13:37:41 -06:00
justin-hopper f60bda25dc Fixing property for pid_file from "mysqladmin --print-defaults"
This will correctly report the status of the mysql process where the pid file is not in the default location

bug 1096212

Change-Id: Iab83b1c1c67baed7473373f978691d5895e5f4f0
2013-01-04 17:06:37 -08:00
Michael Basnight c8a5bc39dc Update oslo codebase within reddwarf.
* Updated logging,cfg,setup to new oslo
* Split out the paste ini from the conf files
* Modified reddwarf-api/server to use new modules
* Modified reddwarf-manage to use new cfg
* Added rpc helper for rpc services
* Modified reddwarf-taskmanager to use rpc helper
* Modified reddwarf-guestagent to use new rpc helper
* Fixed guestagent api to use rpc proxy
* Fixed taskmanager module to conform to new rpc
* Updated guestagent manager/pkg to use new rpc
* Updated api paste to use keystoneclient auth_token
* Updated managers to use periodic tasks

Implements: blueprint reddwarf/upgrade-oslo

Change-Id: I9ad1b441eca855a4304454014ae746ec51bef8f3
2012-12-18 21:18:28 -06:00
Tim Simpson c007356a78 Adding tests to Reddwarf.
The tests come from the Reddwarf Integration repository. wsgi_intercept
is used to allow the test code to hit the server code directly. It also
properly sets up the SqlLite database before each run.

* Adds an "event simulator" which queues up functions that would
  normally be spawned with eventlet. The various sleep functions are
  then swapped with a method that runs these faux-events.

* Adds many of the Reddwarf Integration tests. The idea is these
  could still run in a richer, real environment, but are running here
  enables us to quickly check feature breaks for each commit and
  lowers the learning curve necessary to test the API. The downside
  is some of these tests still have artifacts of their origins, such
  as (unused) classes to connect to MySQL databases. Some more work
  will be necessary to separate the "real mode" functionality of these
  tests further.

Implements: blueprint tox-tests
Change-Id: I9857f265c1cb46832906ef5e6a0c7bb4a092e637
2012-11-19 12:33:40 -06:00
Tim Simpson bc507d773c Adding tox support to Reddwarf.
* Changed reddwarf.conf.test to reflect local mode.
* Updated fake keystone. Any token is treated as the tenant ID, and any tenant id starting with "admin" is treated as an admin.
2012-07-16 11:22:02 -05:00
Michael Basnight 0af6afb76f Adding list_users for mysql users
* Added MVC for mysql users
* Hooked up the MVC to the guest
* Fixed a dual import bug in dbaas.py
2012-03-26 17:14:41 -05:00
Craig Vyvial 380b710665 Fixing up the instance creation issues
* update gitignore with log file from tests
* update the tenant id on the client
* change database to instance module
* added some logging in the api calls
* configuration of nova client values
2012-03-16 11:55:30 -05:00
Michael Basnight 952f160187 Adding more tests
* Created tests for some modules that werent covered
* Updated model/service a bit to do some failure casing
* Started and commented a failure test
2012-03-12 10:54:41 -05:00
Craig Vyvial e58fc33cc1 Adding database instance details for show/create/delete/list
* expanding the create instance api data input
* added all the fields to the view and added exceptions to be thrown correctly
* added a few things to .gitignore
* adding some testing tests
2012-03-09 16:16:06 -06:00
Michael Basnight 9a9001da5b Adding basic skeleton for testing controllers. (stole from melange)
* Built out the functional tests (db sync)
* Built out the actual database controller test get call
2012-03-08 15:23:21 -06:00
Tim Simpson f5665b005c Added gitignore and re-fixed pep8 violations. 2012-03-07 16:33:58 -06:00
Michael Basnight caedfab456 Fleshed out the basics for the guest-agent scp firstboot.
* Copying ssh keys from the host to the image
* Added a bootstrap_init.sh which does the scp work to the instance
* Finished the bootstrap.sh so it will upload to glance
* Added a service images table for identifing the current image on create
* Added some dummy guest-agent code for testing purposes
* Added a delete method, which is not finished
2012-03-04 16:02:40 -06:00
mbasnight 6a3f66f0e9 Adding the venv/unit test framework stuff
* run_tests stuff
* gerrit stuff
* test-requires for pip
2012-02-22 21:20:45 -06:00
mbasnight 0fe9b2323c Getting hooked up w/ the db.
* connection db and all that jazz
* migrations are working
* local DB models are working (only save)
2012-02-22 18:03:39 -06:00
mbasnight ca794b6565 Adding idea project folder 2012-02-19 19:38:38 -06:00
Michael Basnight f66d94b3a1 Adding a gitignore 2012-02-15 17:37:32 -06:00