82 Commits

Author SHA1 Message Date
Hervé Beraud
632db25246 Refresh python versions
Introduce support of python 3.8 and move tox and jobs to py38.

jsonschema 3.2.0 [1] support python 3.8

[1] https://github.com/Julian/jsonschema/pull/627

Change-Id: Ibcfa044dd0f3b29fd290559795ea1d98e194e886
2020-05-26 10:36:06 +02:00
Zuul
a53edeeaac Merge "Add ansible stable-2.9 job and run 2.8 and 2.9" 2020-04-08 19:32:10 +00:00
Monty Taylor
01bfb89f3e Re-add nodepool functional test
With the requires-python fix landed, we can re-add this test
and wait for it to start passing again.

Change-Id: Ia93a8685f7381e773e1139ca3f804ea354089eb3
2020-03-28 11:05:09 -05:00
Monty Taylor
185e55bd77 Add python-requires entry indicating 3.5 is required
We require 3.5 now but we didn't add the metadata. Add it.

While OpenStack broadly only supports 3.6, openstacksdk
has a wider audience, including nodepool which still uses
3.5. So add the 3.5 unit tests back.

Use lower-constraints for py35 unit tests because the
upper-constraints have versions of things that have
droppped py35 support already.

Depends-On: https://review.opendev.org/#/c/715467/
Change-Id: I680e0bab5ba3af7be5e914ece64c6bd25d1f2191
2020-03-27 12:13:24 -05:00
Monty Taylor
8e5893f0ad Revert "Switch to futurist for concurrency"
This partially reverts commit b6a22e3749555ecf9fea762dfc4935e312f6d8bb.

The addition of futurist as a hard depend broke python2, and at the
same time didn't mark the release as having done so. In looking at the
issue we realized that we don't actually need the hard depend.

Change-Id: I2d874f618f5b3f66d49cd2e964c6e05655f22c0f
2020-03-26 10:50:26 -05:00
Monty Taylor
cbda44137d Add ansible stable-2.9 job and run 2.8 and 2.9
We need to run master of openstacksdk against the stable ansible
branches that have openstack modules.

This partially reverts commit 666381d6e45db8df707ff39a7ef8385cca172c3a.

We no longer are running jobs against devel of ansible, so we don't
need to do the failure job.

Change-Id: Ic783cfd564001a0bd00182725d26928ae6422c3f
2020-03-24 08:43:10 -05:00
Zuul
7c19b166de Merge "Fail a job for ansible modules with message" 2020-01-28 12:30:32 +00:00
Sagi Shnaidman
666381d6e4 Fail a job for ansible modules with message
In order prevent merging patches to Openstack Ansible modules
via Github fail the CI job that runs there with appropriate
message about movign the code.
Remove all ansible bits
Add a new job from collections to check changes.

Depends-On: https://review.opendev.org/#/c/704332/
Change-Id: Id1aafe59775f7d59ea88e4ac9deef952abbdeda1
2020-01-27 14:42:01 +00:00
Dmitry Tantsur
a5368985ac Use the bifrost bionic CI job
The Xenial one is non-functional because of the Python 2 deprecation.

Change-Id: Ia11ffcf309786edb67c2b53d84795f7a842f85fb
2020-01-22 08:03:22 +01:00
Monty Taylor
94585b8114 Switch stable ansible job to 2.8
Ansible 2.6 is EOL. Run tests with 2.8.

Change-Id: I9695af073a855dd0284fc5e8161df79db09cf313
2019-12-16 11:00:36 -05:00
Monty Taylor
3bebbd385b Remove extra python2 test jobs
Once these are not used elsewhere we can remove them here.

Change-Id: I1e3ec3a39a43f08bd932312a6dd4616f8a973b36
2019-12-16 11:00:36 -05:00
Monty Taylor
e9107c190b Stop supporting python2
We're peeling python2 from libraries now, so Stop running python2
versions of test jobs. Leaving removing the test jobs themselves
for the moment as they're still used in other repos.

Change-Id: Ic6d56e3636b757201d83649f075005ed3ae1e1a6
2019-12-16 11:00:22 -05:00
Monty Taylor
57308719f0 Remove python2 from project-template
We're unwinding python2 testing. As part of doing that, remove
python2 from our zuul project-template which other people are
using to add tips jobs to their project.

Change-Id: I7d4b3f54cfd09d6a39b707f4a9a0bf4b2b9bca69
2019-12-15 10:18:21 -05:00
Sagi Shnaidman
fc0465ce75 Remove duplicate job definition
Change-Id: I38f45664e9d9027c8a25f6a2a215169ef39606ff
2019-12-09 20:22:54 +02:00
Zuul
c71c555f14 Merge "CI: add ironic-python-agent-builder to the ironic job" 2019-10-28 19:57:58 +00:00
Dmitry Tantsur
85579c7fb9 CI: add ironic-python-agent-builder to the ironic job
It is now a requirement of the devstack plugin.

Change-Id: I37e2091d1844347f737c496decf3288af595beb6
2019-10-28 09:42:18 +01:00
xuanyandong
c195e22499 Switch to Ussuri jobs
Change-Id: I0d4f66a4d1dda4f97343655c51722fc833e00727
2019-10-25 10:48:42 +08:00
Dmitry Tantsur
46d4d7337e Add a non-voting ironic-inspector job
Both ironic and ironic-inspector rely on openstacksdk for x-project
communication. The ironic-inspector-tempest job covers accessing
ironic (from nova) and swift (from ironic and inspector). In Ussuri
we hope to start using openstacksdk for accessing glance, neutron
and cinder.

Change-Id: I42bf7d31dcb0a53006c6773c8f208b8b5c8bac12
2019-09-27 16:12:08 +02:00
Dmitry Tantsur
b7613e1ea8 Make the bifrost job non-voting
Apparently, ironicclient 3.0.0 has broken no-auth support, in turn
breaking ironic-inspector in bifrost. Solving it may require a new
ironicclient release, so make the job non-voting for now.

Change-Id: Ife2e5a1bbe1e55db1134b80074b2c93ae5eb29f3
2019-09-23 14:34:52 +02:00
Corey Bryant
832e436891 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Ib55d9c890de62bdfe269390c5533144e46e92703
Story: #2005924
Task: #34233
2019-07-05 14:34:50 -04:00
James E. Blair
3f6043796d Replace nodepool func jobs
These are new nodepool functional jobs designed to give more
flexibility to the DIB/clean projects to define what they need
to test.  Otherwise, they behave very similarly to the current
nodepool functional jobs.

Depends-On: https://review.opendev.org/665023
Change-Id: I3b88debef5e92b2d2469952a5d12be8bf569102e
2019-06-27 10:18:05 -07:00
OpenDev Sysadmins
f198347552 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:47:46 +00:00
Dmitry Tantsur
1c05173395 Try to fix the masakari CI job
Change-Id: I49fa746c597e225ccba5af852b449068e2a4ede0
2019-04-15 14:40:02 +02:00
Sahid Orentino Ferdjaoui
b3723bed9d add python 3.7 unit test job
See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: If472ec316c5f5aaee15aab4d72964f806d3efff7
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-03-25 13:20:26 +00:00
Ian Wienand
55235c5c22 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This review should result in no functional change.

Change-Id: I366b7a32aeedbd76d49c763b31ff4ec0b049190e
Story: #2004627
Task: #29701
2019-03-12 05:40:12 +00:00
Monty Taylor
b287655a57 Make tox tips job actually run sdk tests
When keystoneauth or os-client-config run this job, they'll run
their own tests, not openstacksdk's. Whoops.

Change-Id: Ia4a421dc4b2e8c3d682ebce2474a436490988363
2019-03-04 16:30:19 +00:00
Dmitry Tantsur
52425850a2 Add a non-voting job with metalsmith
metalsmith is now exercising neutron, glance and ironic via
openstacksdk, so it adds useful coverage.

Change-Id: Iaf872c520d224366d48c34e31bae618acb502968
2019-01-22 17:10:20 +01:00
Monty Taylor
0465884d43
Stop running grenade-py3
It is not testing openstacksdk patches, so running it is a waste
of resources.

Change-Id: I8be6e0c10516224370bec452a87e8a27b5d8fa96
2019-01-09 14:25:43 +00:00
Monty Taylor
c71acc62f4
Turn off unneeded devstack services
Hopefully this will help with memory pressure, but we don't need these
installed or running for sdk tests.

Change-Id: Iad90847609a9c3069159b4bf62de7eec6b5cbe39
2018-12-19 00:41:11 +00:00
Nate Johnston
51182f3ec8 Replace neutron-grenade job with grenade-py3
Since the grenade-py3 job is now in the neutron check and gate queues,
the neutron team would like to eliminate the neutron-grenade job as it
look like it duplicates the functionality of grenade-py3. This also
means the grenade job is now py3-compliant.

Change-Id: I83e359974630e2d955bb93574d460b5a136927df
Needed-By: https://review.openstack.org/620357
2018-12-04 12:52:33 -05:00
Zuul
89e3c8c5d7 Merge "Add CRUD methods for Neutron Port Forwarding" 2018-11-29 19:31:46 +00:00
Slawek Kaplonski
9b29b88719 Add CRUD methods for Neutron Port Forwarding
Floating IP port forwarding API was implemented in
Neutron in Rocky.
This patch adds support for it in SDK.

Depends-On: https://review.openstack.org/617045
Change-Id: Ib3f8b45e1534198f1e03223c20348fb604a91a59
2018-11-26 21:55:10 +01:00
Pooja Jadhav
7b14c1e6fd Add functional tests for masakari
This patch adds minimal functional tests to check the
behavior of supported APIs for Segment and Host by masakari.
Also added new CI job to run these newly added functional
test cases.

Note: Functional test cases related to ``POST/GET /notifications``
APIs will be added in Masakari.

Change-Id: I55fed23a1ceb259e9a13f3ed9e4b6d462330bcb4
2018-11-23 10:25:39 +00:00
Monty Taylor
f44e9c658e
Stop running shade tests
We updated shade to not be a subclass of openstacksdk and instead just
be a frozen maint-mode library. We don't need to co-gate with it anymore
then, as sdk changes should not have impact on shade.

Change-Id: If808a3e6b94e93c5b5934da8c91e06d8b6ded1b9
2018-10-22 09:19:33 -05:00
Monty Taylor
d36e835deb
Add stackviz processing to functional tests
We have devstack-based functional tests that use subunit. Let's get
ourselves some stackviz!

Change-Id: I80e4ac780d6d14ba0a73ceca0e410235707817bb
2018-10-16 08:10:19 -05:00
wangweijia
5a998529cc Support firewall service for SDK
FWaaS v2 API, add SDK API for firewall group, firewall policy and firewall rule.

Implements blueprint: firewall-v2-support
Change-Id: I2abdedb0e810cbd2278012c8a7cf56d14c7b705d
Co-Authored-By: LIU Yulong <i@liuyulong.me>
Co-Authored-By: Matthias Lisin <lisin@strato.de>
2018-10-05 10:32:00 +02:00
Monty Taylor
6befbbe76c
Clean up python3 test and split networking into a job
We want to run with python3 always with python2 being the exception.

Update the functional tests to be python3 by default with a
python2 job to check compat.

Remove python3.5 jobs, since that's covered by python3.6 and the
differences between 3.5 and 3.6 are covered by also having 2.7 in the
gate.

Similarly, make the tips jobs python 3.6 only because they are jobs that
aim to ensure interactions between openstacksdk and keystoneauth and
os-client-config and shade are correct at the unit test level. The
individual unit tests should catch actual python 2.7 issues.

Remove cover jobs because we historically haven't cared about the output
and they take up test nodes. In general it's not that big of a deal, but
we tend to be patch-heavy around here, so it feels extravagant to run a
job we don't actually care about the output of.

Split advanced networking services into a job

We're hitting timeouts like crazy- maybe we're just running low on
resources. Split octavia and designate into their own job. Turn
swift off in that job.

Skip sdk layer dns functional tests when designate is not present. We
should refactor these to deal with both cases.

Change-Id: Ica5a47cc200c8abff1d20af9883c5192fcbb95e1
2018-10-04 11:04:32 -05:00
Andreas Jaeger
f0138e4adb Update .zuul.yaml
Some cleanups:
* Remove python3 variable from tox-docs, tox.ini is setup correctly; no
  need for this setting - and the docs-pti template uses tox.ini
* Use lower-constraints template instead of individual jobs
* Use cover template to run cover job in check instead of post queue.
* Sort template list alphabetically.

Change-Id: I6b77786007070794601c0b7d6262a4c2db8fbe0c
2018-09-19 08:18:45 +02:00
Zuul
39e469476d Merge "switch documentation job to new PTI" 2018-09-18 21:26:51 +00:00
Monty Taylor
5abdc60590 Run bifrost integration test jobs
Ansible uses openstacksdk now, so add the bifrost jobs.

Depends-On: https://review.openstack.org/#/c/596425/
Change-Id: I2f54448850990ff526d9b0cd9ed8250adc5a6fa2
2018-08-30 10:20:23 +02:00
Vieri
edbcb6cd9b switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I5f0e7fe263db1a5de89ef5e910df56197cf56f10
Story: #2002586
Task: #24321
2018-08-21 16:23:49 +00:00
Vieri
d92678a7ac import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I0e4ac9cd38dd31e98ad29d52633829874ca29646
Story: #2002586
Task: #24321
2018-08-21 16:23:21 +00:00
Monty Taylor
8c2eac3ccf
Stop using the -consumer devstack jobs
The jobs came from shade, which didn't have the ability to break
devstack builds. However, openstacksdk is involved in devstack, so
running devstack in pre rather than in run is actually counter
productive.

Switch to using the non-consumer version of the base job.

Change-Id: Ifddc61c4dbb1a7297a6fe6dc5f3f45c51db6548d
2018-08-07 18:53:45 -05:00
Dmitry Tantsur
7fd4c33091 Add a simple baremetal functional job
This creates a new job with a limites set of services, including
ironic. Since many regular tests won't work with the baremetal
backend or will take too much, only baremetal tests are run in it.

Change-Id: Ia8af5ebc9aec46d405180f6894dd4228eb816b59
2018-07-30 20:24:31 +02:00
Bailey Miller
4f92423f87
Adds Senlin support to openstacksdk
Adds Senlin API to openstacksdk, along with unit and functional tests
for each Senlin function. Allows openstacksdk to create, list, get,
update and delete clusters, cluster policies, cluster profiles, and
cluster receivers. Also allows for attaching and detaching policies
to clusters, updating policies on clusters, and listing policies on clusters.

Change-Id: I7e80e8ba74bdb415c2359f5c9672aa900f441fba
2018-06-21 07:24:00 -05:00
Monty Taylor
ca1efca330
Turn OSC tips jobs non-voting
There are several flapping tests in OSC right now - one related to
floating ips, and a set of volume tests. Turn the job to non-voting so
we don't keep blocking the ability to land things.

It's still important for SDK reviewers to look at failures here.

Change-Id: I71d2bff15e518ce7d55cd4213e85efdbf4924209
2018-06-14 07:57:12 -05:00
Artem Goncharov
fe98aef518 Add ansible functional tests on stable-2.6
Ansible uses openstacksdk as of 2.6, so we should also run tests against
the stable-2.6 branch.

Change-Id: I260b9f0b7acbda3a6c9fccc1bef27906c1f298b4
2018-06-01 15:26:54 +02:00
Monty Taylor
83d939dd43
Add ansible functional tests
ansible now directly depends on and uses openstacksdk rather than shade.
Make sure we don't land patches that break ansible.

Remove the installation of ansible from run-ansible-tests as it's
specified in the tox.ini file already, and we'll get it installed via
tox-siblings in the gate.

Depends-On: https://review.openstack.org/570956
Change-Id: I35103b8c75100725caf7a8fd264b81d402bf1973
2018-05-29 10:57:42 -05:00
Zuul
ec822c0be8 Merge "Reenable osc-functional-devstack-tips and neutron-grenade" 2018-05-11 19:00:49 +00:00
Monty Taylor
d1f0a6df82
Reenable osc-functional-devstack-tips and neutron-grenade
They both work now.

This reverts commit 31f9c172e5693af4709407e696fda63a15164818.

Change-Id: I419626ef6400cd9d579150c63a71a53dbf4f5dfd
2018-05-11 08:59:37 -05:00