281 Commits

Author SHA1 Message Date
Federico Ressi
a26d75e34e Refactor tox.ini to match OpenStack Project Testing Interface
OpenStack Project Testing Interface[1] extabilish a set of
rules to make sure project testing interface looks similarly
between OpenStack projects. This is intended to be
the first change in such direction.

Major improvements are:
- Remove code coverage from unit tests environments
- Reorganize tox.ini to better separate type of envs in sections
- Create an [openstack] section to unify settings for environments
  that would require connecting to OpenStack (functional, scenarion,
  ...)
- Create scenario env to exectute all scenarion tests including
  Neutron ones.
- Point to the new URL for upstream upper hand global requirements file.

Know missing things are:
- Create docs environment
- Create functional environment
- Create cover environment

[1] https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I0129e91b9fd58ac75223c8faca43e690a39061b5
2019-04-24 09:59:39 +02:00
OpenDev Sysadmins
a0c598cd3d OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:51:27 +00:00
Federico Ressi
fe717a8c9b Re-assign voting flag to Fedora 28 job
Change-Id: I8f36a3584bbb908e25dd6fa96a16cfa10d623d20
2019-04-17 19:50:59 +00:00
Federico Ressi
14f9c7271e Revert "Enable voting to CentOS 7 jobs (Rocky and trunk)"
This reverts commit 804c0037db88c47ba99eda56f0a8e15b5a5b4b72.

Change-Id: I2ffc7f919bd693dca83b987f8252e1ab07de898d
2019-04-17 17:14:22 +00:00
Zuul
176b15bb7d Merge "Refactor test_floating_ip using the new required_fixture_setup function" 2019-04-17 16:30:02 +00:00
Federico Ressi
500c6f0493 Refactor fixtures test cases
Change-Id: I6bad2e3c432732b6884e24c262b168b4d9c8021a
2019-04-17 14:41:23 +00:00
Federico Ressi
266c4dabc9 Refactor test_floating_ip using the new required_fixture_setup function
Change-Id: I26279d147fa224eed7b2bd6a669be7b9208b7721
2019-04-17 14:39:08 +00:00
Zuul
89122a75c6 Merge "Enable voting to CentOS 7 jobs (Rocky and trunk)" 2019-04-17 12:21:39 +00:00
Federico Ressi
804c0037db Enable voting to CentOS 7 jobs (Rocky and trunk)
Change-Id: I14a6b883ee2d60cf1c699e4df7faccfdf056a8d8
2019-04-17 09:43:24 +02:00
Zuul
361e3f471e Merge "Modify quick-start doc" 2019-04-17 07:26:58 +00:00
abregman
75fb4803da Modify quick-start doc
Quick-start, not surprisingly, should be a quick start guide for the
user who tries Tobiko. Right now I'm afraid it's the opposite. It
deep dives into details that should be somewhere else but not in
the quick start page.

Also, most of the information written there is no longer relevant.
I have changed it to include the minimal instructions the user needs
for a true quick start experience with Tobik.

Change-Id: I0630aeeb736e51cab5e66750c4c8a726c1195af5
2019-04-16 21:27:54 +03:00
Federico Ressi
3f3efbbb9e Refactor required fixtures listing
- test methods requires fixtures of test class
- test class requires fixtures of RequiredFixtureProperty
- fix some minor problems (like getting object names)

Change-Id: Ic7e50d5e3b0299202dd6b28de243cfe888293401
2019-04-16 11:28:32 +02:00
Zuul
1b962fafa1 Merge "Remove duplicate method" 2019-04-16 08:53:43 +00:00
Federico Ressi
a394b218d6 Remove "constants" module.
Module is being used only by ansible integration module
that is going to be replaced at some time in the
near future.

Change-Id: I19f7e35bc9e182e764927d75856106240b8bba15
2019-04-16 07:49:13 +02:00
Federico Ressi
c261ef1ae5 Remove stack manager class.
StackManager class is obsolete and it has been replaced
from tobiko.openstack.heat._stack.HeatStackFixture class.

Change-Id: Id2efa0372a4eae942769b7913173b99488bc7359
2019-04-16 07:35:28 +02:00
Federico Ressi
4298cf9aad Remove duplicate method
Change-Id: Ie0f453dc5cb713da5a6f5a983d8c99c7e9df067a
2019-04-15 16:51:44 +02:00
Zuul
2e4030d8ad Merge "Test net-mtu-writable networking API extension" 2019-04-15 06:45:46 +00:00
Zuul
a3a9ea5af2 Merge "Allow skipping test cases when missing networking extensions" 2019-04-15 06:44:21 +00:00
Zuul
490c005a21 Merge "Allow to decorate for skipping fixtures or test case classes." 2019-04-15 06:39:39 +00:00
Slawek Kaplonski
945b7f5ad7 Add required fixtures to tobiko-fixture list command
Command "tobiko-fixture list" now includes also fixtures
defined as required fixtures for test classes.

Change-Id: If9b9fb05dbdc7129ac50d71904c91a3ee04648f6
2019-04-12 14:48:44 +02:00
Federico Ressi
b696725f7a Test net-mtu-writable networking API extension
Change-Id: Iff28e2aaa728d9e5eef4339bb439f42f4987a723
2019-04-12 10:29:05 +02:00
Federico Ressi
dff46a36b2 Allow skipping test cases when missing networking extensions
Change-Id: Iaaedcbd6f351ccb9dc2ba0813e3316dd424a5385
2019-04-12 10:29:05 +02:00
Federico Ressi
f40fefc2d7 Allow to decorate for skipping fixtures or test case classes.
Change-Id: I6df162910d3297319046587ae6a3574bd5c2c120
2019-04-12 10:29:05 +02:00
Federico Ressi
8a4b7af33c Make setup_stack aware of Heat concurrency issue
This is a workaround for a concurrency issue detected on Heat
OSP-14, but that could be affecting any version of Heat (no
investigation has been perfomed). It is unknow if this is a bug
or just a limitation of the service.

The issue:

Heat looks like has a concurrency issue when creating new stacks with
the same name on ame time from more parallel processes.

When Tobiko Neutron test cases are executed using tox -e neutron command
test case execution is spawn along some worker processes.

It happens that the same HeatStackFixture, as it is shared between more
test cases, is being created on the same time from more workers.

The stack creation request is therefore submitted to Heat service with
the same parameters and despite what understood from the documentation,
more than one stack starts being created on the same time with the same
name.

Workaround implementation

After these stack creation is started tobiko asks for stack status
using stack name and all worker processes receives information of
the same stack (with the same stack ID).

Therefore those workers that creates a new stack with an ID different
from the one got by the stack name are deleted, leaving on most of the
cases the cloud with only one stack instance for the same stack name.

Change-Id: Ibcdc04d9436664b788d2ed6d68e2a20c74bd6147
2019-04-12 08:26:53 +02:00
Federico Ressi
280f5d8367 Check it gets something from stderr before handling ping errors
Change-Id: I0527c3f3ba110f021c2b724e0102bbd034d06f55
2019-04-12 08:20:44 +02:00
Federico Ressi
3209a04152 Remove voting from Fedora 28 and CentOS 7 jobs
Change-Id: Iad34b331062b66615537e644e3b10c5e4e284dea
2019-04-12 08:18:26 +02:00
Federico Ressi
612a7ec597 Temporarly remove vote to CentOS stable branches.
Change-Id: Ia7b90b278275c144fea6ac50776c8cd3fa018cdc
2019-04-11 17:09:03 +02:00
Zuul
93a8a865cf Merge "Allow pylint to execute paralled processes to speedup execution." 2019-04-11 11:50:49 +00:00
Federico Ressi
13d511e954 Allow pylint to execute paralled processes to speedup execution.
Change-Id: I0a12dba1fc6ab433153ec7766b9beb5c8318c79b
2019-04-11 12:28:55 +02:00
Federico Ressi
081ff5240c Replace tobiko.common.utils.network with tobiko.shell.ping
Change-Id: I55504fd6387593297f671b76753410d6414ef6b1
2019-04-11 09:36:30 +02:00
Federico Ressi
f26cb5c276 Re-enable voting to Fedora-28 job and add stable branches CentOS jobs
Change-Id: I7e052c10fcba5576c67eb410eeedfb49400a6ee4
2019-04-10 10:53:20 +02:00
Federico Ressi
0c9d9e9760 Implement ping command wrapper.
Change-Id: Ica9ccfe0bd38bd05e5c6f9c18069f885fdc0e925
2019-04-09 10:59:07 +02:00
Federico Ressi
04c3e72748 Create base tool to execute shell commands
Change-Id: I42c551a0d3a36a6ddce7cb42ad69c694cdb1cad8
2019-04-09 10:11:29 +02:00
Federico Ressi
dbfaad99bd Move tobiko.common.managers.fixture to tobiko.common package.
Change-Id: Iaa6962df2c1a28ae348eb6d2e690ff8b2ae17b84
2019-04-08 12:26:08 +02:00
Federico Ressi
9a1edb1a7d Import base exceptions from main tobiko module.
Change-Id: Ieb1001acc6fa2cd86ca51a544bd34a4aaf7c78b8
2019-04-08 12:04:51 +02:00
Federico Ressi
40ba8d5bfc Update requrements files.
Change-Id: I30c8cc353cc8b3834436c21ef0890f7aba38b471
2019-04-08 11:58:37 +02:00
Zuul
e82db68793 Merge "Substitude class attribute 'parameters' dict to an easier to read individual class attributes." 2019-04-08 09:35:26 +00:00
Zuul
bd9a91471a Merge "Update Ubuntu version in Vagrantfile" 2019-04-08 08:29:19 +00:00
pkomarov
fab88225ab Substitude class attribute 'parameters' dict to an easier to read individual class attributes.
class FloatingIPFixture(heat.HeatStackFixture):
[...]
parameters = {'floating_network': CONF.tobiko.neutron.floating_network,
                  'image': CONF.tobiko.nova.image,
                  'flavor': CONF.tobiko.nova.flavor}
-->

class FloatingIPFixture(heat.HeatStackFixture):
[...]
    floating_network = CONF.tobiko.neutron.floating_network
    image =  CONF.tobiko.nova.image,
    flavor = CONF.tobiko.nova.flavor

Change-Id: Ia3f3d6cb21de941426fedb936541d89d2923131d
2019-04-08 10:12:03 +02:00
Zuul
68e12ff86d Merge "Import base exception from tobiko package" 2019-04-08 07:09:53 +00:00
Federico Ressi
ba9845d8c4 Update Ubuntu version in Vagrantfile
Change-Id: Id798c8035697051d8e027d5ee28d62832e10d305
2019-04-08 07:00:54 +00:00
Slawek Kaplonski
e760793728 Disable dns-integration in Neutron in Fedora job
Because of bug [1] in dnsmasq in Fedora 28 we need to disable
dns-integration in Neutron for this job as a workaround of this problem.

When dns integration is disabled, Neutron will not set hostname for port
to be same as VM's name thus this dnsmasq bug will not be triggered.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1695647

Change-Id: Id3e5c1095b5de0c56527a233ff04b66374128973
2019-04-07 07:27:27 +00:00
Federico Ressi
8a9a57ff22 Import base exception from tobiko package
Change-Id: I0d825064300224b07dfdf8eab41cf4d7550cdae6
2019-04-04 06:16:53 +00:00
Zuul
7cc3b2aabe Merge "Add Tobiko credentials to devstack plugin" 2019-04-03 14:16:33 +00:00
Slawek Kaplonski
94432dd1b6 Add Tobiko credentials to devstack plugin
This patch adds new settings to Tobiko's Devstack plugin to
configure credentials used in Tobiko.

Change-Id: I4b7e6cbea437b5a4c4b7789ea7f5c04a948c7fdf
2019-04-03 13:10:06 +00:00
Slawek Kaplonski
31c6f20983 Add reno for release notes management
Change-Id: Iee09083a2c582e086aa64ba1516d36e37e4a8512
2019-04-03 12:58:54 +00:00
Federico Ressi
5423c0969c Test sending oversized ICMP packages over floating IP
Change-Id: Ib233e847791357dde74f209b0f510205d320da4a
2019-04-03 03:11:22 +00:00
Federico Ressi
3af05eec8a Remove old test cases based on stack manager classs.
These test cases are being replaced by the new test_floating_ip
neutron test case based on HeatStackFixture class.

Change-Id: I6a981ad23b70ef888bd85cc1d83e7f2c6d6a6198
2019-04-03 03:11:02 +00:00
Federico Ressi
dc0ef0e16f Remove commands test cases
These three commands (tobiko-create, tobiko-list, tobiko-delete) are
going to be replaced by the more generic tobiko-fixture command.

Change-Id: I6c77ad84a3146416a56d4b1ad74ab30bfae45fda
2019-04-03 03:09:56 +00:00
Federico Ressi
404e0e2e0b Rewrite floating IP test case
Change-Id: I05cd4bed9082cd9f9b3dfc48233418e1756191d2
2019-04-02 06:58:32 +00:00