Commit Graph

134 Commits

Author SHA1 Message Date
Andreas Jaeger 24d98abd3e 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: I658efd028f1b23bc21b327fc55d39a7fa5824ec1
2019-12-18 09:48:08 +01:00
gecong1973 20e93c4686 Replace six.iteritems() with .items()
1.As mentioned in [1], we should avoid using
six.iteritems to achieve iterators. We can use
dict.items instead, as it will return iterators
in PY3 as well. And dict.items/keys will more
readable. 2.In py2, the performance about list
should be negligible, see the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: I7844f6425787388fa37b85b3c0f305b34cddc0fa
2016-11-28 10:19:14 +08:00
Cao Xuan Hoang 27e4aa4796 Files with no code must be left completely empty
As per OpenStack licensing guide lines [1]:
[H104] Files with no code shouldn't contain any license header nor
comments, and must be left completely empty.
[H102 H103] Newly contributed Source Code should be licensed under
the Apache 2.0 license.

[1] http://docs.openstack.org/developer/hacking/#openstack-licensing

Change-Id: I90cb2e6fa3bf560278e26419dd05ba2a6b35ff6a
2016-10-05 08:12:16 +07:00
Jenkins bf60400656 Merge "Clean imports in code" 2016-09-08 08:58:21 +00:00
Cao Xuan Hoang 8520aeafd9 Clean imports in code
This patch set modifies lines which are importing objects
instead of modules. As per openstack import guide lines, user should
import modules in a file not objects.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: I5b4bdcb674b58ab419d00ca9c6bff105ce19aca8
2016-09-07 13:28:38 +07:00
Cao Xuan Hoang 062cf1dcd2 TrivialFix: Remove logging import unused
This patch removes logging import unused in
fuel_health/common/facts.py
fuel_health/manager.py
fuel_health/tests/sanity/*.py
fuel_health/tests/smoke/test_create_flavor.py
fuel_health/tests/tests_platform/test_heat.py
fuel_plugin/ostf_adapter/nailgun_hooks.py
fuel_plugin/ostf_adapter/nose_plugin/nose_utils.py
fuel_plugin/ostf_adapter/wsgi/controllers.py

Change-Id: Ic47ced019c06e45ba0c9b669989bae83ceb049d0
2016-09-07 12:56:32 +07:00
Andriy Popovych 7531f8d65a Add support for NIC attributes
Provide support for SR-IOV and DPDK through new API version
for NICs.

Change-Id: I1a927c0e7333a422f94dd2937638f8d2ca38512f
Implements: blueprint nics-and-nodes-attributes-via-plugin
2016-08-08 14:52:22 +03:00
Artur Svechnikov 99050bb609 murano_glance_artifacts_plugin backward compatibility
murano_glance_artifacts_plugin was moved from additional
components to murano settings in mitaka. Thus, need to
add backward copmatibility for old environments after
upgrade.

Change-Id: I46e04d5952c128572fd79818b833daee8911389f
Closes-Bug: #1595821
2016-06-24 07:11:24 +00:00
Victor Ryzhenkin 7cc4b17cee Support murano plugin installation in OSTF tests
- Add discover mechanism for murano if it enabled via plugin installation

Change-Id: I2e60a65676fcb3b452c2acf3793ef8e251182cae
targets: blueprint murano-fuel-plugin
Closes-Bug: #1584791
2016-06-09 03:29:24 +03:00
Artem Panchenko 2bdaeafbb2 Skip 2 health checks if no computes w/o DPDK
If environment doesn't contain compute nodes
without DPDK then it's impossible to run instance
and access it over network using default flavor
which doesn't use huge pages for RAM.

Change-Id: Ic6daf95fb7380a4c9355a5a1e5c6a1e45de46f89
Closes-bug: #1567447
2016-04-28 09:17:16 +03:00
Maksym Strukov 1eb65cc189 Check connectivity from instance with DPDK via floating IP
Scenario:
1. Create a new security group (if it doesn`t exist yet).
2. Create router
3. Create network
4. Create subnet
5. Uplink subnet to router.
6. Create new flavor with huge pages
7. Create an instance using the new flavor, security group
in created subnet. Boot it on compute with enabled DPDK.
8. Create a new floating IP
9. Assign the new floating IP to the instance.
10. Check connectivity to the floating IP using ping command.
11. Check that public IP 8.8.8.8 can be pinged from instance.
12. Disassociate server floating ip.
13. Delete floating ip
14. Delete server.
15. Delete flavor
16. Remove router.
17. Remove subnet
18. Remove network

Change-Id: I86c43896a6b7ff0e55f72dd7ffce02487ac7299e
Closes-Bug: #1567439
2016-04-27 18:42:46 +03:00
Alexandr Kostrikov a3ae1e4c16 Add check for sriov keys
That fix is intented to fix swarm tests.
Further investigation required to find out why
there were no sriov keys

Change-Id: Iaa3cbe7a6a0717e8e027d43795fda8c93394ec09
Closes-bug: #1575566
2016-04-27 14:08:24 +03:00
Volodymyr Shypyguzov 9f6b3ca44e Add test_sriov_instance_connectivity
+Add corresponding test
+Add _create_port
+Add _cleanup_ports
+Add sriov deployment tag if computes with SR-IOV enabled interface
are present and unit-tests for ostf-adapter
+Add sriov_enabled physnets to cluster config

Change-Id: I487c0dc0f4756b893af5d5c59ea85ba0d47faa5c
Closes-Bug: #1566906
Implements: blueprint test-sriov-support
2016-04-20 13:34:48 +00:00
Tatyana Leontovich ff9a20a192 Add usage of namedtuples for run and tests status
To get possibility to change status in one place,
add consts.py with enum usage.

Closes-Bug: #1404866

Change-Id: I6a7873bc2de919ed4cc99dcfe8e3e1febda606c0
2016-04-04 14:02:23 +03:00
Artem Roma 50095b1bdc Disable ssl certificate verification for ostf_adapter utils
Now there is possibility to enable ssl for nginx by adding 'flat_https'
option to fuel settings (/etc/fuel/astute.yaml on the master node).
Since ostf adapter performs http requests to nailgun in order to obtain
particular info from it, ssl cerificate that is used by nginx should be
processed in the case, but since the certificate is self-signed, its
verification has to be disabled, otherwise this action will fail.

Change-Id: I98733ba57e87c3b59aeddc4f1e601a5518aeb439
Closes-Bug: #1530318
2016-01-20 15:24:47 +02:00
Ilya Kutukov f02be2b6fa Fuel version info is returned as answer to ostf-server --version
Change-Id: I5c83c1e703fc94a875dd2488db9da2ae0f3b0cf5
Closes-Bug: #1517085
2015-12-24 15:40:24 +00:00
Jenkins b2ebf15a35 Merge "Compare versions of OpenStack with LooseVersion" 2015-12-18 17:12:36 +00:00
Oleg Gelbukh 9243eab196 Compare versions of OpenStack with LooseVersion
Since release Liberty, OpenStack doesn't have common release version
(like 2015.1.0). If we use release codename to identify the version
instead (like 'liberty'), it cannot be compared to previous numeric
versions with distutils.version.StrictVersion.

Use of LooseVersion instead ensures that alphabetic version will always
be considered 'newer' than numeric version.

Change-Id: Ifefc4fab56993ed369a92804b1a866e766b2ec0b
Related-bug: 1503663
2015-12-16 11:25:22 +00:00
Alexandr Kostrikov 415efd1d09 Fix problem with race condition of forked ostf
When there is a more then one check in ostf it fails
and only one process works. Other forks are dead because
they can not fetch information from database.
Eventually information is flushed in database, but only
after forks are dead.
Sleep helped to wait for information to propagate to
other processes. This fix flush and commit information
to database so it is available for other forks.

Change-Id: Ib8540309dee00f7f0ea7cd65215c4872c4147b6f
Closes-bug: #1520218
2015-12-10 15:54:33 +03:00
Dmitry Teselkin 23b7ae2a1a Workaround to get ostf working
Temporary solution, after stabilisation
should be removed.

Related-Bug: #1522941
Change-Id: Ida45bea2ba979748bf6853ef947fc665f865ed42
2015-12-04 19:36:10 +00:00
Artem Roma bfa90e5caa Adhere python package requirements to Liberty global-requirements
What was done:
* versions of python packages that are requirements for the project
  changed to those from Liberty release;
* custom BaseRestController class changed to correlate with
  corresponding code of used pecan package version;
* fixed code of the orm models that become broken after installing
  SQLAlchemy package of different version

Blueprint: master-on-centos7

Is NOT compatible with CentOS6 master node

Related-Bug: #1516621

Change-Id: I9f5e600a0189d0d9fc0ae5b154254dc3a32a86c1
2015-11-29 17:13:27 +00:00
Dmitry Teselkin a98973482f Support for new oslo namespaces
Compatible with CentOS6 & CentOS7 master node

Blueprint: master-on-centos7

Related-Bug: #1516621

Change-Id: I06bf0dc8406ac6551632702f90b427f5a42f8088
2015-11-29 17:13:17 +00:00
Dmitry Teselkin fc6648be21 Fix project name
Blueprint: master-on-centos7

Compatible with CentOS6 and CentOS7 master node

Related-Bug: #1516621

Closes-Bug: #1520634

Change-Id: Ifc378a70b8997330754f4faca4fa66808849fef3
2015-11-29 09:25:10 +00:00
Kyrylo Romanenko 5cf8c484a9 Add OSTF tests for Ironic using ironicclient
Check Ironic services:
    - ironic-api on controller node;
    - ironic-conductor on ironic conductor node.
Operate Ironic nodes via ironicclient api:
    - Create Ironic node with fake driver;
    - Update Ironic node properties;
    - Show and check updated node properties;
    - Delete Ironic node.
List Ironic entities:
    - List chassis;
    - List drivers;
    - List nodes;
    - List ports.

Implements: blueprint ironic-ostf-tests
Change-Id: I90fafede030a243efac3c9eb8d840531b25d0d03
Co-Authored-by: Anton Arefiev <aarefiev@mirantis.com>
2015-11-24 15:21:01 +00:00
Artem Roma f169d49569 Expand unit test coverage for TestRun model methods
Change-Id: I787643bf00d3089908902ac681cb27b5edaeef1e
Partial-Bug: #1435229
2015-11-11 13:15:26 +00:00
Artem Roma 0d6964de9c Add tests for methods of TestSet and TestRun models
Change-Id: I247f0f275c35d08633a10f089134b7283e71649e
Partial-Bug: #1435229
2015-10-08 10:25:29 +03:00
Artem Roma 30848e6dc6 Add tests for methods of Test model class
Change-Id: Iaedb7120d8620b43dcc0ce8169fda1d0c4f804f8
Partial-Bug: #1435229
2015-09-18 10:54:07 +00:00
Artem Roma ef42c54883 Fix issue with dependencies of the package
* upper bounds for all used OpenStack python clients added;
* upper bounds for several transitive requirements added in order to
  eliminate the issue when packages are installed from PyPi (dev env and
  CI);
* unit test that checks whether the package could be properly installed
  added;

Change-Id: Ic36a7acf1e6fd8dc58177be02c0e3ea0ead49840
Closes-Bug: #1474358
2015-07-30 11:48:35 +03:00
Tatyana Leontovich a94d5592b0 Disable instance with file creation if ceph is use
In kilo files injection is disabled if ceph is using,
so  that we need display tests only for
deployments without ceph

Change-Id: I6b1a1ff786b6452542a42b6032eb377eadb32021
Related-Bug: #1473164
2015-07-13 16:40:52 +03:00
Tatyana Leontovich 0cbb83fb17 Add test for live migration in smoke set
Patch includes:
* New test in the smoke package:
  test_live_migration
* New deployment tag for storage components
* couple additional methods in nmanager

Change-Id: I373cbb277c9836cfc7ac2e43e548d6d62142b999
Closes-Bug: #1400663
2015-04-08 19:23:23 +03:00
Jenkins f857d25eb0 Merge "Fix bug with wrong test description prosessing" 2015-04-01 09:30:04 +00:00
Anastasia Kuznetsova b439a21b0c Fix bug with wrong test description prosessing
After _process_docstring will be called for some item,
as a result docstring will be updated and it returns new docstring
that will be cutted, so info about next items will be lost.

Closes-Bug: #1434170
Change-Id: Iad13706855b476eac37157e88a1d92a864b10e9e
2015-03-30 19:02:50 +04:00
Artem Roma 1c8ed01da9 json module replaced with jsonutils
Now for operations with JSON data jsonutils module from
oslo.serialization package is used. Depends on patch [1] to fuel-main.

[1]: https://review.openstack.org/#/c/143639/

Change-Id: If872d46fc23eb71860f3e6b8508eef7ce7b4f223
Closes-Bug: #1404856
2015-03-20 14:21:46 +02:00
Stepan Rogov 27492085f7 Created ostf tests for vcenter in multi HV environment
Added use_vcenter deployment tag
Added img_name parameter to get_image_from_name and _create_server
functions
Created new smoke tests for vcenter in test_vcenter.py

Change-Id: I3f9f8fd07ad597e500144185002890a9593b7f49
Implements: blueprint vmware-dual-hypervisor
2015-02-27 17:20:11 +03:00
Jenkins 9977e524ca Merge "Version for tests added" 2015-02-19 11:33:11 +00:00
Artem Roma f509330e00 Cleaning db before integration tests added
Complete cleaning of db schema added before execution of integration
tests. The main reason of introducing such cleaning - issue with
applying alembic revisions with same uid but different content that are
stored in different git branches, which leads to erros while interaction
with db.

Change-Id: I94611015beb4dd83d036b813c9337958dc6af064
Closes-Bug: #1421164
2015-02-17 12:12:06 +02:00
Artem Roma ad8df61058 Version for tests added
Fuel releases versions compatibility now included into tests discovering
mechanism.

Change-Id: Ia860cc62d30ef02e7fdff4864eecd16cccf01b1c
Implements: blueprint ostf-tests-versioning
2015-02-12 18:32:52 +02:00
tatyana-leontovich f9c37d0876 Revert "Add versioning for fuel_health tests"
This reverts commit 6c250763b4.
This commit bvt

Change-Id: I8d4dd55b65aa8ee17049a9a005109508b654597b
Closes-Bug: #1420882
2015-02-11 17:53:57 +00:00
Artem Roma 6c250763b4 Add versioning for fuel_health tests
Now version of release for which particular test is suitable can be
specified in test sets profile attribute and tests' docstrings. For now
we assume that test is available for releases that are == or >= in
comparison to release specified for test.


Change-Id: I568db380120e3a429bdd531f51a7301c49d41281
Implements: blueprint ostf-tests-versioning
2015-02-10 13:55:09 +00:00
Artem Roma 95054878ef Removed hardcoded path to migrations directory from alembic.ini
Now for path construction to directory with migrations scripts special
variable %(here)s is used which allows to manually execute alembic
commands from any position in project's source tree.

Change-Id: I5e39a64590ee52975f8909abd299c51315a1b076
Closes-Bug: 1413335
2015-01-22 15:39:23 +02:00
Roman Verchikov e0643599aa Fixing import in env.py script
Import strategy for logging package changed for env.py script.
Closes-Bug: 1413328

Change-Id: I0089c72fd45416a56ec43e431a52e3f818753e6e
2015-01-22 15:25:33 +02:00
Sebastian Kalinowski cbe0ea30d9 Added hacking checks to tox
Fixed all places where hacking rules (v0.7) was failing
Replaced ''' with """ to make them consistent

Change-Id: I9c1c20f910df696056d2a6a91c33ff7bad266b9f
Related-Bug: #1404892
Closes-Bug: #1408240
2015-01-19 12:36:14 +00:00
Jenkins 43da5cee06 Merge "Use regex to check if test belong to test set" 2015-01-14 13:36:13 +00:00
Sebastian Kalinowski 70ecf3b93c Use regex to check if test belong to test set
When discovering available tests regular expression will
be used to check to which test set given test belongs.
This prevent situation when 'test_sanity_sahara' was
assigned to 'ha' test set because of occurrence of this words in
'sahara'

Change-Id: If7366da29da17404af3564e031e47e7ab39ba826
Closes-Bug: #1359728
2015-01-14 12:10:14 +01:00
Sebastian Kalinowski 98d0287158 Cleaned and made integration tests working
* can be run by tox -epy26 -- fuel_plugin/testing/tests/integration
 * removed code that mimic nailgun
 * used requests_mock to mock http requests
 * added BaseIntegrationTest class that set ups DB
 * it is possible to pass own session when creating
   Pecan app for OSTF
 * added WebTest as a requirement for tests

Change-Id: Id73208c3b0a000c017ec44388e3cecc78d2228a5
Partial-Bug: #1404892
2015-01-13 08:43:04 +00:00
Sebastian Kalinowski bac8730db5 Reorganized and cleaned unit tests
Now all tests in 'unit' directory can be easily run
 * http requests are mocked
 * do not require access to /var/log
 * do not require db access
 * "integration" tests are in separate directory
 * tox -epy26 -- fuel_plugin/testing/tests/unit/ allows
   to run tests for now (will be added to run_tests.sh in the
   future)
Introduced requests-mock to mock requests calls
Moved "base.py" from unitests dir to better place.

Change-Id: I94ce611015e6d33675f94a04082da2aa6878074a
Partial-Bug: #1404892
2015-01-08 09:27:37 +01:00
Dima Shulyak ccab72934d Add release version to test and cluster tags
Release version will allow us to filter tests that should be
executed only on specific release, like neutron for 2014.2-6.0

Change-Id: I8cd108156c95b119b11e84f772280846b7953d6b
Closes-Bug: 1397020
2014-11-27 16:32:31 +02:00
Sebastian Kalinowski b21dc974e8 Populate test cache if it's empty
In commit e232d498a4 bug (#1367359)
when there were no TestRuns for cluster when OSTF tests were started
without asking for a lost of available TestRuns.

In the same case when tests cache is empty not all required
objects (ClusterTestingPattern) will be created in DB that are
needed to correctly run tests.

Now we force cache repopulation if it's empty.

Additionally removed some dead code that is a duplicate
of modified one in this changestet.

Change-Id: If7dd352f2a48c27b7aa9f41c6c5a4528021a8208
Closes-Bug: #1387733
2014-11-17 13:21:47 +01:00
Sebastian Kalinowski 9c6fadca27 Use keystonemiddleware package
keystonemiddleware package will be used instead of deprecated
keystoneclient.middleware module to authorize requests with
keystone auth_token

Update python-keystoneclient to match version in our repos

Change-Id: Ib6025a5d243c76995ca1efac16d5d5025241f81c
Implements: blueprint access-control-master-node-improvments
Related-Bug: #1383616
Depends: I32848ccd2279c1467818e1ff9e1a19becc9f7ae7
2014-10-28 09:40:29 +00:00
Sebastian Kalinowski 727cd3cc93 Add logging to file for OSTF tests
After that change  when performing a OSTF test its result will be
logged to a file under /var/log/ostf directory.
Each file has name in format cluseter_CLUSTER_ID_TESTSET.log,
for example: cluster_1_smoke.log

* added ResultsLogger for logging tests restuts
* removed deprecation because of wrong import in models

Change-Id: If69a4292fcc66565ba969396d591e38eddba92ce
Closes-Bug: #1297958
2014-09-29 08:25:18 +00:00