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
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
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
Provide support for SR-IOV and DPDK through new API version
for NICs.
Change-Id: I1a927c0e7333a422f94dd2937638f8d2ca38512f
Implements: blueprint nics-and-nodes-attributes-via-plugin
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
- Add discover mechanism for murano if it enabled via plugin installation
Change-Id: I2e60a65676fcb3b452c2acf3793ef8e251182cae
targets: blueprint murano-fuel-plugin
Closes-Bug: #1584791
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
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
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
+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
To get possibility to change status in one place,
add consts.py with enum usage.
Closes-Bug: #1404866
Change-Id: I6a7873bc2de919ed4cc99dcfe8e3e1febda606c0
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
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
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
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
* 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
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
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
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
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
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
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
Fuel releases versions compatibility now included into tests discovering
mechanism.
Change-Id: Ia860cc62d30ef02e7fdff4864eecd16cccf01b1c
Implements: blueprint ostf-tests-versioning
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
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
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
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
* 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
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
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
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
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
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