Commit Graph

8 Commits

Author SHA1 Message Date
Adam Harwell 0421d12397 Modernize testing and clients
Update to use a new-style zuul role for devstack testing.
Remove references to Shade/os_client_config and use OpenstackSDK.

Change-Id: Ieecc4043b613e333948c32e7e93ad1d383d1f3ec
2019-10-01 20:09:32 -07:00
Victor Stinner c1d38f741b Python2: Fix metaclass, super() and OrderedMeta
* Add six dependency
* Replace "metaclass=" syntax with six.with_metaclass()
* Add parameters to super()
* Only define OrderedMeta on Python 3

Related-Bug: 1726399
Change-Id: I21800320ef23cc95fc07278864e73b64bb7d6d08
2017-11-13 09:13:43 +01:00
Victor Stinner 50560fc91c Python2: Add funcsigs dependency
inspect.signature() was added to Python 3.3: add funcsigs on Python
2.7.

funcsigs dependency is specific to Python 2.7 and so not installed on
Python 3.

Change-Id: I951e7df9fcebdc2148cca477f4b064fc9a028e55
Related-Bug: 1726399
2017-11-09 13:30:11 +01:00
Jordan Pittier d0a05e7059 Bring back Python3.4 compatibility.
Change-Id: I6418e611f2bf51ae9191d3ba800a0be54ef2c032
2017-01-10 15:55:54 +00:00
Jordan Pittier 3a612efd53 OSPurge version 2
This commit is a whole new version of OSPurge. Currently OSPurge suffers
from the following limitations:
* It's slow (monothread)
* It's not guaranteed to complete. If a resource fails to be deleted then
OSPurge can choke on deleting other resources that depends on the first one.
* Not properly unit tested.
* Not modular (one huge file to deal with all services)

This new version is:
* Faster (multithreaded, thanks to a ThreadPoolExecutor)
* Safe (we check and wait for some prerequisites before attempting a
delete)
* 100% unit tested.
* Modular (one file per service)

Note that it's Python3.5 compatible. It also uses OpenStack Shade
and OpenStack client-config libraries so that OSPurge focuses on the
cleaning logic only.

Overall I believe this is a better version of OSPurge and more future
proof. NOte that we tagged and released OSPurge 1.3 recently in case
the new version was not satisfactory to everybody.

Change-Id: I5eb92a0556df210ea3cb4e471b8db3b5bf7ed5ee
2016-12-15 10:49:25 +01:00
Steve Martinelli 1403185a56 sync up requirements with global-requirements
in an effort to make things more standardized, we should use the
requirements outlined by the global-requirements team [1].

note that httpretty is no longer a global-requirement, we should
probably transition to using mock or requests-mock.

[1] https://github.com/openstack/requirements/blob/master/global-requirements.txt

Change-Id: I0c46731e7b0427f7564b0c654d6d9be4a4685b2b
2016-12-14 22:07:58 +00:00
Thomas Herve af72f82d71 Handle removal of Heat stacks
Add a new resource class to remove heat stacks from a tenant

Change-Id: Ib6937b9dffc2747f537d64b3ac6b3ae45b094699
2015-03-11 16:28:13 +01:00
Florent Flament 98008cb337 Initial commit 2014-02-14 13:34:25 +01:00