Commit Graph

22 Commits

Author SHA1 Message Date
Andreas Jaeger 08db3ad05f 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: I37b6a82c9c3c3893bb4b9b6a4c4b5a83a6d8193c
2019-12-18 09:50:01 +01:00
Vladimir Khlyunev 2faf58fc82 Fix "wrap functions with 2 blank lines" pep8 check
Now gates are requires this pep8 rule as mandatory so until it'll be
fixed merge is blocked.

Change-Id: I0072536f3404b36135be43a59b801fe5db13413b
2016-11-16 11:17:10 +00:00
zhangyanxian 7422492bff Fix a typo in fuel_logs.py
TrivialFix

Change-Id: I65b0dc05f815c0949a611ff23f62b16a06b48969
2016-09-21 03:06:52 +00:00
Ivan Remizov 6207b38182 Fix incorrect url for deb repo
This patch fixes incorrect suffix for deb repo url which
was introduced by copy paste.

Change-Id: Icb41c5d9e00c588e9535f4fe96c0690bb2413f3c
Closes-Bug: #1613210
2016-08-15 12:46:02 +03:00
Ivan Remizov 8a1880aa58 Add tool for snapshots.params
This patch adds simple python file to convert
snapshots.params file for 10.x series to sourceable
shell file.

Change-Id: I906de73ba4a4edb3d9f5a5d8dbaea23456b9b37c
2016-08-05 15:38:13 +03:00
Dennis Dmitriev 5a62e85194 Update packages from requirements.txt with 'system_tests.sh -N'
Default behaviour of the system_tests.sh is unchanged,
but with -N it will update requirements on each run (without
--upgrade).
If fuel-devops has incorrect version or not installed, then
script will fail with -N option (until fuel-devops is not packed
to PyPi repository).

- Removed dependency on fuel-devops located on github.
  This dependency splitted into two requirements:

  requirements-devops.txt : will be used with -N option to
      controll the installed fuel-devops version;

  requirements-devops-source.txt : will be used for tox tests
      and update python virtual environments on CI.

- Update system_tests.sh with two new options: -R and -N:
  REQUIREMENTS_DIR or -R : name of the dir where requirements.txt
  and constraints.txt are located (fuelweb_test by default)
  UPDATE_REQUIREMENTS or -N : 'yes' or 'no' (-N == 'yes').
  Perform update PyPi packages from requirements.txt.
  Default : 'no'

- remove unused variables and code that was used for build ISO

Change-Id: Ib9efd2136226fb43b506db390079f1b72a06069d
Related-Bug:#1575065
2016-07-11 14:36:10 +03:00
Georgy Kibardin 18308a743c Use gzip for snapshots
Shotgun has been changed to use gzip for snapshot.
On the 15G snapshot data gz is 10 times faster than xz while compression
rate is just 36% against 50% with gzip.
For the pattern "create once - download once" this looks like a
reasonable solution.

Change-Id: I133ae854c619655169f6b42003087dd9cc21b8e0
Closes-Bug: #1546023
2016-06-08 13:19:24 +03:00
Alexey Stepanov 3990b5fb65 Fix inspection issues
1. PyCharm inspection: ignore no member for magic places
  (six.moves, mixin for system_test, unicode<->string on python2)
2. Fix docstrings
3. Fix reraise of SkipTest
  (use raise instead of raising again the same exception, but no args)
4. Bash simple variable usage

Closes-bug: #1578998

Change-Id: Ifac2dcb68b323ce48c6c80598abfd18ed9bf2caf
2016-05-10 11:54:55 +03:00
Dmitry Ilyin b89dba93c7 Output log file names when printing parsed lines
Change-Id: Ic4d2346f15e9bb3520648231c6ac465157f81a6b
2016-04-06 08:24:04 +00:00
Dmitry Ilyin db5d0b4c9c Update fuel logs script
* Fix broken node name generation from log name
* Move log names to constants
* Rework logging
* Disable astute log parsing by default,
  it's useless anyway

Change-Id: I41e05951a3816ccf9e9dfb1a9e297527f185a341
2016-03-24 18:31:04 +00:00
Alexey Stepanov 08b5af4bf5 Replace % formatting by str.format method
Change: %s by {:s}, %d by {:d} in string and use .format method for formatting
Closes-bug: #1552139

Change-Id: Ic9bdf9200fa89fa7c78f2806a7b94e3eee914cf9
2016-03-03 10:45:20 +03:00
Dmitry Tyzhnenko c106f6be54 Add new runner for system test
For run the tests from both test suites (fuelweb_test, system_test) we
    may use new runner - run_system_test.py.

Changes in framework:
    - add @testcase decorator use instead of @factory

Features of new runner:
    - auto discovering all test in both test suites
    - show the groups from the test suites
    - explain content of groups
    - run the several groups at the same time
    - combine configuration with the test groups from new suite
    - run old groups
    - use runner in utils/jenkins/system_tests.sh

Changes in tests:
    - remove @factory function
    - add @testcase to each test class

Change-Id: Ic4086dde60ca8a94dcd2ee079376c97ce719ff03
Implemets blueprint template-based-testcases
2016-02-11 16:58:39 +02:00
eprohoda 81f8178906 Misprints in English words
Fix misprints in class, method names, comments, etc.

Closes-Bug: #1516044
Change-Id: I9ed73165a06976bc1bfa8630615527fc97dd9fda
2015-11-24 14:57:42 +02:00
penguinolog 2c7951055b Fix mass mistypes at english verbs
Fix mistypes at commentaries, log outputs and LOCAL variables

Change-Id: I1fb8eb4ae10be5c2f174336d3a8f124e61da5954
Closes-Bug: #1513777
2015-11-19 11:26:18 +03:00
ss-yuriy d56358668e Fix LOGDIR for fuel_logs tool
Closes-Bug: #1479550

Change-Id: I716434d3c82e015b7749281aa35b39e5dd5f4846
2015-07-30 05:40:42 +00:00
ss-yuriy 7f72df69c9 Extract the error logs from the snapshot using fuel_logs tool
Change-Id: If40c0f83dd538199c23725ecb765065d0743dc3e
Closes-Bug: #1435196
2015-06-19 07:48:16 +00:00
Dennis Dmitriev a792546da4 Enable creating diagnostic snapshots by default
Added export ALWAYS_CREATE_DIAGNOSTIC_SNAPSHOT=true

Change-Id: Ifc8ecd26ca08681e2235c81c33b8ac699c23fdec
Related-Bug:#1452672
2015-05-15 14:00:21 +03:00
Dmitry Ilyin 1c937ba920 Add 'full' option to fuel_logs
* Print the entire log without any filters

Change-Id: I7b6f25044c4f271d679c9f13f8eecda8f7debb9a
2015-04-13 12:17:42 +03:00
Stanislav Makar 7502d0f01d Add the possibility to work without python virtualenv
Add new option "-v" which runs tests without python virtualenv

Closes-Bug: #1377183
DocImpact: Add to the paragraph
 http://docs.mirantis.com/fuel-dev/devops.html#environment-creation-via-devops-fuel-main
 If using system_tests.sh without virtualenv please pass the option "-v".
Change-Id: Ica5dc4ec3cefdae9246fbb88ce6e441bbcc75b4d
2015-04-03 10:38:14 +00:00
Dennis Dmitriev 587cd6e418 Use python3 for fuel_logs.py to support XZ compression for tarfile
- set python3 as an interpretator
- add '.decode()' to convert strings from 'binary' mode for python3

Change-Id: I92fe5fcee471af44e2c0bad3bf437480f12df703
Closes-Bug: #1439135
2015-04-01 14:25:27 +03:00
Dmitry Ilyin ac6dc53141 Add fuel_logs tool
This tool can extract the useful lines from Astute and Puppet logs
within the Fuel log snapshot or on the live Fuel master node.

usage: fuel_logs [-h] [--astute] [--puppet] [--clear] [--sort] [--evals]
                 [--mcagent] [--less]
                 [SNAPSHOT [SNAPSHOT ...]]

positional arguments:
  SNAPSHOT       Take logs from these snapshots

optional arguments:
  -h, --help     show this help message and exit
  --astute, -a   Parse Astute log
  --puppet, -p   Parse Puppet logs
  --clear, -c    Clear the logs on the master node
  --sort, -s     Sort Puppet logs by date
  --evals, -e    Show Puppet evaltrace lines
  --mcagent, -m  Show Astute MCAgent calls debug
  --less, -l     Redirect data to the "less" pager

Using anywhere to view Fuel snapshot data:

fuel_logs.py fail_error_deploy_ha_vlan-2015_02_20__20_35_18.tar.gz

Using on the live Fuel Master node:

fuel_logs.py -a View the current Astute log
fuel_logs.py -p View the current Puppet logs

Using without -a and -p options assumes both options

fuel_logs.py -c Truncates Astute and Puppet logs. Respects -a and -p options.

It you are running and debugging many deployments on a single master node
you may want to truncate the logs from the previous deployments. Using -l
option is aslo recomended for interactive use.

Fuel-CI: disable
Change-Id: Id6985625c07bd4751cdb214fba8ed4f9243f3591
2015-03-05 17:35:57 +03:00
Dmitry Tyzhnenko b52988fb2c Add system test runner for Jenkins
add utils/jenkins/system_tests.sh

Change-Id: Ifedc0974d4306fd9829bccd8ba689b4cf1f6f25a
Implement bp system-tests-and-devops-refactoring
2015-02-09 12:49:46 +00:00