Commit graph

1613 commits

Author SHA1 Message Date
Corey Bryant
cf95be3ea5 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: If79694b32ece897c93d1889da28daff641e46f1c
Story: #2005924
Task: #34225
2019-07-08 08:14:07 +00:00
Zuul
d40f4cc96b Merge "doc: Remove prompt from python binding examples" 2019-06-19 22:20:52 +00:00
Akihiro Motoki
e2ee92e2e1 Blacklist bandit 1.6.0 due to directory exclusion bug
Bandit 1.6.0 introduces a regression[0] with the -x option,
a fix is expected to be included in 1.6.1 soon.

This commit also aligns Sphinx requirement with the requirements
project [2]. This is required to pass requirements-check.
The lower bound for sphinx was missing and requirements-check
now requires it, so the lower bound sphinx >=1.6.2 was added.

[0] https://github.com/PyCQA/bandit/issues/488
[1] https://github.com/PyCQA/bandit/pull/489
[2] https://review.opendev.org/#/c/657890/

Change-Id: I937cfa722f5234ca4d5506047001d9cb07728cd8
2019-05-28 16:15:14 +09:00
Akihiro Motoki
dc10f44128 doc: Remove prompt from python binding examples
The current python binding examples have prompts of python
interactive mode, but these prompts make it difficult to
copy-and-paste the examples. This commit removes them.

Change-Id: Ia5d35fbb585ed0d0d11c8d035196981e9dd46785
2019-05-10 11:00:42 +09:00
Zuul
209e1801ac Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-05-02 04:23:04 +00:00
Zuul
88c660dbe8 Merge "Dropping the py35 testing" 2019-05-01 02:46:15 +00:00
jacky06
9a91b4ad38 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I3cc418bd8219a3d4f3ab5c018adf06b66ef36b46
2019-04-28 14:25:39 +08:00
OpenDev Sysadmins
b62a1cd1a4 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:44:46 +00:00
Ghanshyam Mann
da62ba3029 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I612c7c40e07f23afa920c92bf4b51b278282dd9d
2019-04-15 16:33:41 +00:00
Zuul
f0c886cbe7 Merge "Replace openstack.org git:// URLs with https://" 2019-03-27 01:05:30 +00:00
Ian Wienand
d572f2cdd2 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 update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I15a69bcf6d51bfb1d5ade8f5119bb77bb2387f77
2019-03-24 20:35:53 +00:00
Zuul
4cbf6ddc66 Merge "add python 3.7 unit test job" 2019-03-22 07:23:36 +00:00
OpenStack Release Bot
ca875adf38 Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.

Change-Id: I9add4f457af409830f3faff0af2661e0b3909b40
Sem-Ver: feature
2019-03-18 14:53:55 +00:00
Ryan Tidwell
680b417111
Add subnet onboard CLI
This is the implementation of the "onboard network subnets" CLI.
This enables the subnet onboard feature of neutron to be driven via
CLI.

Depends-On: https://review.openstack.org/348080
Change-Id: Ic637ed689b0d3806d2c33faa419c3a98a310effa
Implements: blueprint subnet-onboard
2019-02-27 08:39:40 -06:00
cao.yuan
1f35b8f25c Update json module to jsonutils
oslo project provide jsonutils, and neutronclient use it in many place[1],
this PS to update the remained json module to oslo jsonutils for
consistency.

[1]: https://github.com/openstack/python-neutronclient/search?utf8=%E2%9C%93&q=jsonutils&type=

Change-Id: Ic4639628c8910b88a14b0fe8f37638bb4f9474be
2019-02-25 09:28:34 +00:00
Corey Bryant
b4a0e27ec6 add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.

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

Change-Id: Icb961e81e0d99ab1912f75b1ce83ed371fc1107c
Story: #2004073
2019-02-20 15:39:26 -05:00
Zuul
d1c8b7486e Merge "Update hacking version to 1.1" 2019-02-07 17:56:55 +00:00
Akihiro Motoki
c2ac394a88 Remove basepython from [flake8] section
basepython is not a valid option for flake8 and
it is complaned when running tox -e pep8.
It seems to have been added accidentally.

Change-Id: Ia5d093bab0c175b2693e7ae47a6bc29c1d44db36
2019-01-31 10:47:44 +09:00
Akihiro Motoki
f99c63f98a Update hacking version to 1.1
Older hacking depends on pep8, but pep8 module is replaced by
pycodestyle. This can be resolved by updating hackinng version.

This commit also fixes E117 (over-indented) and
W605 (invalid escape sequence) warnings.

pep8 is dropped from lower-constraints.txt as it is no longer used.

Change-Id: I3a8e3b0dedf9422e4db02b525b333d12ce012a95
2019-01-31 10:45:24 +09:00
Zuul
d74b871f7f Merge "Change openstack-dev to openstack-discuss" 2018-12-19 01:45:23 +00:00
chenlx
aa19ab71ef Update mailinglist from dev to discuss
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss

Change-Id: Ib88759901998ebec8a3e3817d1148fa70323cee5
2018-12-17 19:33:25 +08:00
Zuul
ca24b503f8 Merge "Add support for querying quotas with usage" 2018-12-17 10:30:29 +00:00
mid_one
9cbdfb2181 Add support for querying quotas with usage
The neutron HTTP API supports issuing a GET call
on /v2.0/quotas/{project_id}/details.json in order
to obtain quotas with usage information for a
given tenant. However, this capability is not
currently exposed in the python-neutronclient code.

Add path: quota_details_path
Add function show_quota_details

Closes-Bug: #1808451
Related-Bug: #1599488
Change-Id: Ia02172f62b9d9915273021627b0feb52a4f376da
2018-12-14 19:18:40 +08:00
sunjia
1e2e98b519 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I4be1b808bee0a4f9feaea5b203317d04037e3dfd
2018-12-03 21:57:00 -05:00
qingszhao
c17db9f295 Add Python 3.6 classifier to setup.cfg
Change-Id: Id7864c23b73b5f2b265ba04d24d01540b326d105
2018-11-30 07:10:12 +00:00
Zuul
a8720c3c4d Merge "Support of the boolean advertise_extra_routes" 2018-11-20 19:34:23 +00:00
Zuul
cf8545027d Merge "Update min tox version to 2.3.2" 2018-11-20 17:13:35 +00:00
Samuel Barré
b60283cd16 Support of the boolean advertise_extra_routes
This Boolean attribute is added to the Router Association resource
(Neutron API, 'bgpvpn' and 'bgpvpn-routes-control' API extensions) in
order to support routes control. This allow to propagate routes of
subnets not directly connected to the router
The corresponding code in networking-bgpvpn has already merged

See https://blueprints.launchpad.net/bgpvpn/+spec/routes-control

Change-Id: Icdd7f6592a9d657b6414645406f06b74b6f3bb11
Implements: blueprint routes-control
2018-11-20 14:59:08 +00:00
Zuul
d8cb1472c8 Merge "Fix docstring in method list_routers_on_l3_agent" 2018-11-13 00:22:46 +00:00
mid_one
1d45522a48 Fix docstring in method list_routers_on_l3_agent
For function list_routers_on_l3_agent in the
python-neutronclient\neutronclient\v2_0\client.py,
the description is "Fetches a list of L3 agents
hosting a router". However this function fetches
a list of routers hosted on a L3 agent.

Change the docstring.

Change-Id: Ia2156b5f6f016f338549a6536a0f31bf9e96c7cf
Closes-Bug: 1802475
2018-11-12 21:07:35 +00:00
mid_one
cb1e24b178 Fix docstring in method list_networks_on_dhcp_agent
For function list_networks_on_dhcp_agent in the
python-neutronclient\neutronclient\v2_0\client.py,
the description is "Fetches a list of dhcp agents
hosting a network". However this function fetches
a list of networks hosted on a DHCP agent.

Change the docstring.

Change-Id: Ifa833d9a7ecab8ba55283d41d7a336d20cb578c3
Closes-Bug: 1802472
2018-11-12 23:45:01 +08:00
huang.zhiping
da7e2916bc Update min tox version to 2.3.2
The commands used by constraints need at least tox 2.3.2.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: I22dec4ff510123520a2c035c3fa1c80f18ce4cdd
Closes-Bug:  #1801360
2018-11-12 06:33:17 +00:00
Lucian Petrut
3de4353dcd Fix api version handling, which completely breaks the client
The neutron client does not work with recent openstacksdk versions
(>=0.18.0): http://paste.openstack.org/raw/734040/

This change addresses a mismatch in the api version format.
The neutron client passes a dict while the openstack sdk expects a
string.

Change-Id: I33c868f1c1e40d7673ba6651abedf3dfe0850660
Closes-Bug: #1801360
2018-11-02 15:30:30 +02:00
Vieri
5f69719096 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I30687b4bcdacb167599b54b6f07e018363980fc7
2018-10-09 13:59:43 +00:00
German Eichberger
a385656802 Adds the destination and source fwg to fwr
This will add the source and destination firewall group id to
firewall rules.

Change-Id: If69b87fc58d36aa7d879ace8e73bc0f7534a1ef4
2018-09-10 11:54:29 -06:00
Andreas Jaeger
86a67409e6 Use templates for cover and lower-constraints
Use openstack-tox-cover template, this runs the cover job
in the check queue only.

Use openstack-lower-constraints-jobs template

Remove jobs that are part of the templates.

Change-Id: I8c870f127f988808f3f9b1044ea1d9ddec48b866
2018-09-08 09:42:46 +02:00
Brian Haley
1a1dbf0962 Consolidate irrelevant files added for py3 project
The autogenerated changes for the python3-first project
duplicated irrelevant-files. This consolidates them.

Change-Id: Ib63fe59f28591947324708326d388954f2c3e0e9
2018-09-07 03:07:25 +00:00
Vu Cong Tuan
259c386d42
Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Ib58745d5c0d98fb79eb3cf7278c2cbfb5160efcd
2018-09-06 01:09:28 +02:00
Zuul
301aa7e161 Merge "add lib-forward-testing-python3 test job" 2018-09-03 23:46:13 +00:00
Zuul
72d1004ae3 Merge "add python 3.6 unit test job" 2018-09-03 23:46:11 +00:00
Zuul
596db21b21 Merge "switch documentation job to new PTI" 2018-09-03 23:40:12 +00:00
Zuul
3a955213c2 Merge "import zuul job settings from project-config" 2018-09-02 10:50:44 +00:00
Mykola Yakovliev
0aefe1ccba Ensure API calls for subnets are in URL length limit
Fix situation when with pagination enabled, neutronclient failed
to read subnets information due to too long URI.

Change-Id: I53240c536d77a95510b5c83b81e21782f29d886a
Closes-Bug: 1775922
2018-08-31 20:08:57 +00:00
Doug Hellmann
d5a89fe5a0 add lib-forward-testing-python3 test job
This is a mechanically generated patch to add a functional test job
running under Python 3 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: Idaaa376c0a8685f1999d8d96add0cfd25a2bb8eb
Story: #2002586
Task: #24314
2018-08-29 17:39:07 -04:00
Doug Hellmann
bec7dd09b9 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 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: I857b5836273045b48d9706673a6455fed9f18541
Story: #2002586
Task: #24314
2018-08-29 17:39:00 -04:00
Doug Hellmann
124dd33aad 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: I4dc74177263a038491bb03521c99d6f43951bd28
Story: #2002586
Task: #24314
2018-08-29 17:38:45 -04:00
Doug Hellmann
01ec2cc94d 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: Id183d2dc3b6fa1dd608b0489c609353eb2e35f6d
Story: #2002586
Task: #24314
2018-08-29 17:38:37 -04:00
Doug Hellmann
f0640571d1 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
Change-Id: I6f4a539c68b036474be4ba433cb28293c0ce94e2
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-08-29 04:30:08 +00:00
Zuul
2c0629e7d9 Merge "Add release note link in README" 2018-08-27 23:07:26 +00:00
Kim Bao Long
80f916489b [log] Add 'firewall_group' as a loggable resource type for logging
Currently, OSC plugin for logging only supports security group as
a loggable resource. This patch aims to add 'firewall_group' as a
supported resource type.

Co-Authored-By: Van Hung Pham <HungPV@vn.fujitsu.com>
Depends-On: Ie10063197f02679e987e87cb4852f5230a02f76d
Change-Id: I2ac92004c2ad3769c9749e131718a8ef0003c4bd
Partial-Bug: #1720727
2018-08-23 10:32:23 +00:00