Commit Graph

94 Commits

Author SHA1 Message Date
Andreas Jaeger 4788fcfba6 Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: Ie9a69d85ea5ceae2bbe8b3598edcfa4d06ed5221
2019-12-18 09:40:09 +01:00
Dmitry Tyzhnenko 25d4cc6731 Add virtual bmc
Change-Id: I8cdc2038e6d2f837d2996619b4b051e13d2c00b2
2018-05-15 16:36:04 +03:00
Dennis Dmitriev e4eaa9a7e2 Restrict libvirt-python version not higher than 4.0.x
Change-Id: Iee9403c2c5e7cf71633240bac77eb375633a3101
2018-04-25 21:10:35 +03:00
Vladimir Khlyunev b8c6fe45a1 Restrict libvirt-python 4.1.0
This version contains bug that prevents its installation
https://bugs.launchpad.net/openstack-requirements/+bug/1753539

Change-Id: I8d0fd2bac7217192362215c0cc33b9be673911a7
2018-03-07 08:25:01 +00:00
Dennis Dmitriev cce44f4784
Avoid race condition using parallel fuel-devops env manipulations
If multiple processes are creating/erasing different fuel-devops
environments at the same time, there can be race condition during
libvirt object creation/deletion like:
'bridge virbr3 already exists' and others.

This patch allows to use a lock file to avoid such situation:
export DEVOPS_LOCK_FILE=/run/lock/devops_lock

If the environment variable DEVOPS_LOCK_FILE is not set, then
the lock file is not used (backward compatibility to avoid any
errors caused by using the lock file by default).

Change-Id: Id28f442959594aa5d6bb5c1d15e4f0880653070d
2018-02-25 14:55:46 +02:00
Dennis Dmitriev 8fb07e2cc1 Bump to version 3.0.5
Ntp fixes

Change-Id: I225be57f3790f36009bbb41d8e732bd9c210a893
2017-03-30 21:19:51 +03:00
Vladimir Khlyunev 236a605026 Bump version to 3.0.4
Change-Id: Id62923ba6c239eedb2611f6c18d061ab331a4ae8
2017-03-27 13:08:38 +04:00
Alexey Stepanov 2f200cc211 Use lxml in xmlgenerator
Return code from fork.
lxml is faster and allowed in global requirements.

Change-Id: Ibeb3b2c92064ce87d6acf491f79342ba2a3de507
2017-03-22 17:47:12 +03:00
Alexey Stepanov 3bb731160c Bump fuel-devops master branch to version 3.0.3
Bump fuel-devops master branch to version 3.0.3
There is a lot of changes from the fuel-devops 3.0.2.

Change-Id: Iea58e088fe17fdd0d5f43e9c812edc0c2d1729ca
2016-10-10 09:02:27 +00:00
Alexey Stepanov aa6bc9caf1 rework imports: import module instead of object
rework imports: import module instead of object
http://docs.openstack.org/developer/hacking/#imports

Move retry to decorators and warn, if called from old place
Fix __deepcopy__ special method

Change-Id: Ib958ea40cffbc508e3ab179bce9b300423b2fac1
2016-09-21 17:41:10 +03:00
Alexey Stepanov cba2b399fc Bump fuel-devops master branch version up to 3.0.2
Bump fuel-devops master branch version up to 3.0.2

Change-Id: I9fd5b47e2489d5586e6987a5b0bcaa761c4ff6f6
2016-09-05 14:44:55 +03:00
Alexey Stepanov 6ea7050191 Use exit codes enum
We have much more, than 2 possible exit codes ant
it's difficult to remember all of it's, so switch to IntEnum (int compatible operations)

Change-Id: I3f3732ba407f20d8397dc385e53519d868afb82f
2016-08-12 10:25:34 +03:00
Dennis Dmitriev 6e970b1c05 Bump fuel-devops master branch version up to 3.0.1
First 'stable' release of fuel-devops 3.0.x

Change-Id: If06ffc6aed3cd616220182b2e1c5f41d1362779b
2016-07-22 13:18:12 +03:00
Jenkins 4c5e3b2db1 Merge "Paramiko 2.0.1 is buggy and could produce fails" 2016-07-21 10:42:22 +00:00
Jenkins 38ebc5b8a9 Merge "Checking/configuring scripts for fuel-devops" 2016-07-21 10:41:43 +00:00
Alexey Stepanov 7995656fa6 Paramiko 2.0.1 is buggy and could produce fails
Ban paramiko 2.0.1
Closes-bug: #1595865

Change-Id: I27b26fa32fdfb3280a0af91ab5f3c031f69368ea
2016-07-20 13:59:09 +03:00
Serhii Boikov 20f026ba46 Checking/configuring scripts for fuel-devops
Example of usage:
  $ virtualenv venv-devops
  $ . venv-devops
  $ pip install /path/to/fuel-devops
  $ dos_check_env.sh -I

- dos_check_env.sh - Wrapper which run all checks with/without options.

- dos_check_system.sh - System requirements check
(kvm module/hardware virtualization etc).

- dos_check_packages.sh - Check if all necessary packages are installed.

- dos_check_db.sh - Check DB USER and user GRANTs on DB
in case of PostgreSQL: Check if all necessary packages are installed
in case of SQLite : Check if database exists.

- dos_functions.sh - Set of functions that are used inside of scripts above.

blueprint fuel-devops-installer

Change-Id: Ifa3f0adc3deee85d084ca84fc224a5a8df713838
2016-07-18 17:53:33 +03:00
Jenkins 785359b71e Merge "make PostgreSQL optional db engine" 2016-06-29 16:14:31 +00:00
Anton Studenov d0209cd45b Move manage.py to ./bin
- bin/dos-manage.py added to setuptools scripts
- Updated install doc

Change-Id: Ic60edf4ea6f3598375ee085885d6a5d66d7b10c1
2016-06-23 15:23:34 +03:00
Jenkins f3583d416f Merge "Report dates in local time for dos.py show and snapshot-list commands" 2016-06-23 11:06:04 +00:00
Anton Studenov 7cf9a5513c Report dates in local time for dos.py show and snapshot-list commands
- Added helper to convert utc datetime to local
- Django's TIME_ZONE set to None, to allow detection of system
  timezone
- logging time stays in UTC

Change-Id: I436fbae196c86f1a8d7555ebe3e0f405a53b0d3e
Closes-Bug: #1586212
2016-06-17 07:17:15 +00:00
Anton Studenov b6bb607233 Allow full path to template for 'dos.py create-env' command
- ValueErrors replaced with DevopsError in devops/helpers/templates.py
- template files added to package

Change-Id: I6a94862332b9c0806c128897b96c3bb24690d807
Closes-bug: #1588319
2016-06-17 07:16:02 +00:00
Alexey Stepanov a7f9be4a46 make PostgreSQL optional db engine
Usage with PostgreSQL:
    In requirements:  fuel-devops[postgre]
    In pip: pip install fuel-devops[postgre]

Change-Id: I0cedc5ac6b73a12b6311404a64208e1e93643580
2016-06-09 15:43:07 +03:00
Jenkins ed01e8f82f Merge "Documentation update for Django" 2016-05-26 15:11:36 +00:00
Alexey Stepanov ab8c98e639 Documentation update for Django
1. install.rst
2. README.md
3. Minor fixed for network and environment models docstrings
4. Already not used helpers (
  _underscored - was implemented in early devops 3,
   KeyPolicy) has been dropped completely.

Change-Id: I36b537915e019193f28b452dbac13ee1c9ab289e
2016-05-25 17:45:08 +03:00
Serhii Boikov 5f52bc270c Logger and it's settings were moved into scripts.
- Log.yaml has been removed.
- All settings for logger have been moved into scripts.
- Changed log.levels for some events to debug in libvirt_driver.py.
- Added variables LOGS_DIR and LOGS_SIZE.
- LOGS_DIR - EnvVar with path to the directory where devops logs are stored.
  Default path is ~/.devops
- LOGS_SIZE - EnvVar with Size of devops log file(in bytes).
  Default size 10485760(10MB).

Closes-Bug: #1546629
Change-Id: Ia84841bce0deae419d5a0df3051a0339ce4b82b4
2016-05-24 18:41:06 +03:00
Alexey Stepanov a6040b83a4 keystoneauth for getting nodes
*  Replace manual implementation of keystone connection
    by standard keystoneauth.session
 *  Remove sphinx dependency: it's not used inside package

PROS: easier to maintain, less code.

Related-Bug: 1542275
Related-Bug: 1558527
Related-Bug: 1564913

Change-Id: I0564fa103c79d6dc36cbfde526876cd32d6a0a01
2016-05-10 11:26:12 +03:00
Alexey Stepanov f8bcdf24c1 Split requirements for test and main for setup
Split requirements for test and main for setup
(Do not install requirements, thisch is not needed for work)
Remove tests code, which is not used.
Remove unused IPMI driver

Change-Id: I936b96e5bb1178266d3ec8446e307daee8e6d5cd
2016-05-04 14:25:16 +03:00
Alexey Stepanov 99cd80fe46 Django 1.8
Migrate from 1.6 to community selected:
    1.8<= vesion < 1.9
Version 1.8 is LTS

On driver load:
    'devops.driver.libvirt.libvirt_driver' has been marked as
    deprecated and renamed to 'devops.driver.libvirt'

Closes-bug: #1373381
blueprint fuel-qa-python3-compatibility

Change-Id: I38c99db5f4dc53c56c4dd22ed679ca1f01979848
2016-04-25 18:52:38 +03:00
Anton Studenov 892a828a06 Migrate from xmlbuilder to custom builder based on xml.etree
blueprint fuel-qa-python3-compatibility

Change-Id: I9388023e20f7f4d231739c7e9423835a10c3ed0c
2016-04-19 16:02:26 +03:00
Alexey Stepanov 5d0df07841 Replace ipaddr by netaddr
1. Replace ipaddr by netaddr

blueprint fuel-qa-python3-compatibility

Change-Id: I37add18bb54b4b07400e9eeb819b06aa5649280d
2016-04-12 11:01:00 +03:00
Anton Studenov c4eef19da4 Update unit tests
Update verion to 3.0.0

Change-Id: I272e34a9eb6df0e45f4b7ad9426a803c08d3e2a4
blueprint: template-based-virtual-devops-environments
2016-04-06 14:28:43 +00:00
Anton Studenov af01e3eb5f ParamedModel - Parameterizable model class
This patch adds a class which allows all derived classes to be
polymorphically extended by extra fields. All additional fields
will be saved as a json in a special db field called 'params'.

It also allows:
 - to save/load derived classes to the same parent table.
 - filter by new fields.
 - to store nested fields.

Change-Id: I2b2024eec126fd9c05a36247c87592d481530104
blueprint: template-based-virtual-devops-environments
2016-04-06 14:25:36 +00:00
Dennis Dmitriev 5a7fb37c0b Bump fuel-devops version to 2.9.17
Change-Id: Ifb3bbf3d081bb463586d0e171820c27a750526d9
2016-01-18 17:31:56 +02:00
Dennis Dmitriev 75b6e67e9b Bump fuel-devops version to 2.9.16
Bugfix version

Change-Id: Ia0825735a2d5f806cbe68bd8a7e601040506aa24
2016-01-12 14:20:59 +02:00
Timur Nurlygayanov 48d3d8c553 Fixed name of project and removed extra keyword
We need to publish fuel-devops on pypi,
this is why we need to properly configure name of
the package and remove "mirantis" from keywords

Change-Id: Ide53ae2771c2697ede6e1cca79c07192d66f0b49
Closes-Bug: #1527530
2015-12-18 18:11:36 +03:00
Dennis Dmitriev 70c8e6c843 Bump fuel-devops version to 2.9.15
Change-Id: I6be7e7c3943afbfc7536a0ad59cb9c9a6dbde892
2015-12-14 10:29:21 +02:00
Dennis Dmitriev f57265ae43 Bump fuel-devops version to 2.9.14
Change-Id: Id5528b282cf9586dcc86678739c1ff10e88fc6de
2015-12-11 13:06:51 +02:00
Jenkins 8e4085bddf Merge "Bump fuel-devops version to 2.9.13" 2015-11-24 13:50:07 +00:00
Dennis Dmitriev 94973f9e73 Bump fuel-devops version to 2.9.13
Change-Id: I1728396b2e4c74af4d7e0e763739a15cf668c184
2015-11-24 14:05:59 +02:00
Alexey Stepanov 8c45af6087 Fix requirements for fuel-devops full packag
Requirements grabbed from imports and test-requirements.txt

Change-Id: Ifd9e108e013eb6cdeb05d10f61771fa5d7d6d650
Closes-bug: #1518886
2015-11-23 12:55:52 +03:00
vsaienko 1b1eac7881 Bump fuel-devops version to 2.9.12
Change-Id: I7fb73aa235647d3d0e77f5d8d7a133a736675804
2015-10-05 14:09:03 +00:00
Dmitry Tyzhnenko ba600358d8 Bump version to 2.9.11
Change-Id: I8edcf5bedd3e37ec12a8bf7d7c95394f9b3a818a
2015-07-23 19:05:34 +03:00
Dmitry Tyzhnenko ec240070a9 Remove lxml
Remove usage of lxml, xml used instead

Change-Id: I0abf3df209d5ab5547c6e9047327c3a38f7bc4bb
Closes-bug: #1477613
2015-07-23 14:24:22 +00:00
Jenkins 1c12e631d9 Merge "Update devops version till '2.9.10'" 2015-07-23 11:25:26 +00:00
Sebastian Kalinowski be2b9e77dd Add creation date column to snapshot list
* Added wrapper around snapshots returned by libvirt to make whole code
  more pythonic
* Snapshots are sorted by creation date by default
* Added lxml as runtime dependency
* Added tabulate as runtime dependency and used to print snapshot
  tabular data

DocImpact
Closes-Bug: #1463361

Change-Id: Ia2c2fab4ac763865ab3f837c63a87101e567d6e8
2015-06-17 10:31:50 +00:00
Sebastian Kalinowski 8c26cab916 Add testing using py.test
* added py27 tox env to default env list
* added pytest and pytest-django as test requirements
* tests with database marked as expected to fail until DB will
  be configured correctly on CI
* fixed issues and fails in tests

Partial-Bug: #1462906
Change-Id: I4e37ca12c645950eedc9ced5b59daf1fd22005ee
2015-06-17 12:25:20 +02:00
Egor Kotko 04f5b73704 Update devops version till '2.9.10'
Change-Id: I54fd7d4df5f31af7cbd25b54f692e99da4d01f82
Closes-bug: #1455458
2015-05-22 13:57:45 +02:00
Dmitry Tyzhnenko 5f47bb65f0 Bump fuel-devops vresion to 2.9.9
Change-Id: If7cebb94676903a65abf2669254f7a5f4e049db2
2015-04-01 13:35:20 +03:00
Tatyana Leontovich cbb8bc7ab9 Bump version to the 2.9.8
Bump version 2.9.8
Related-Bug: #1433593

Change-Id: Iddf118c969d71b25e6f3887e8e4fa871d7aca28e
2015-03-20 17:38:42 +02:00