Commit Graph

194 Commits (master)

Author SHA1 Message Date
OpenStack Release Bot 8f3fcc073f Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

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

Sem-Ver: feature
Change-Id: Ifba189b42fe34448df90837b862944408c657e4d
2023-09-21 11:13:05 +00:00
Jay Faulkner 639b0afd18 Bugs are now in launchpad, doc fixes
Updates docs to reflects bugs currently in launchpad
Fixes default copyright line to be in line with one in ironic repo

Change-Id: I50372d16020d3932da1a30ae6c6106033737bf68
2023-05-17 15:35:09 -07:00
Jay Faulkner 4073a31cbc Update to hacking v6
Update to latest hacking, 6.0.0. No code changes needed to comply with
new flake8 directives.

Change-Id: I12ac019f190f88d1f2da3e63d5f587f622f398f1
2023-04-21 12:46:54 -07:00
Zuul d2f220a9b2 Merge "[CI] Explicitly disable port security" 2023-03-17 00:21:59 +00:00
OpenStack Release Bot 41eaba97be Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

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

Sem-Ver: feature
Change-Id: Ic46a93f4ca64adcbc8ffeecb73dc28132b5254d1
2023-03-08 11:23:56 +00:00
Julia Kreger 01dab25c4c [CI] Explicitly disable port security
By default tempest disables port_security, but devstack
turns it on by default. Because we're using specific modules,
we don't get port security.

Since we don't really need it for this testing,
we can safely just disable it.

Change-Id: I530c1a8c89ad8e9772955d27dcc49c1a54eb48d4
2023-02-23 09:10:28 -08:00
Riccardo Pittau 2cf7c04d77 Fix tox4 errors
- Remove skipsdist that it was never supported and causes breakage
when used with usedevelop.
- add script to allowlist

Change-Id: I9ee37b1ba6d9cb84bbd6b2bb21077ad8259e2aec
2022-12-28 15:35:45 +01:00
Jay Faulkner a8c4dd4176 Fixes for tox 4.0
Fixing passenv to reflect new syntax

Change-Id: I76d08915cd3e8c3305491bc7c1e2c448783e53ae
2022-12-15 10:08:29 -08:00
OpenStack Release Bot 0314baf5c6 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

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

Change-Id: Iaf1bc823b7a110da7ed0180986a6f39baeef79c5
2022-09-13 09:07:33 +00:00
OpenStack Release Bot 897eddf296 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

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

Sem-Ver: feature
Change-Id: Id4c293fa963eef3fc49e67a18a57071c4481e6d1
2022-09-13 09:07:32 +00:00
Zuul 8c23e7e985 Merge "Doc - network device configuration capabilities" 2022-08-29 17:30:40 +00:00
wangjiaqi07 b1d9763fa5 remove unicode from code
Change-Id: I686ec7d5292264ee9bffb7f6e2611c252b099e67
2022-08-25 13:52:53 +08:00
Harald Jensås 1d4de452b8 Doc - network device configuration capabilities
Add documentation for the device configuration capabilities.
The driver plug-in interface and the `netconf-openconfig`
reference driver implementation.

Story: 2009961
Task: 45994
Change-Id: I465b310b5e30904a484e4056446ea19778157544
2022-08-15 11:48:40 +02:00
Harald Jensås 31a8c7a3a4 Add support for pre-configured link aggregates
If the bond mode is in PRE_CONF_ONLY_BOND_MODES,
{'balance-rr', '0', 'balance-xor', '2', 'broadcast', '3'}
the driver will lookup the link aggregation ID by querying
link ports and set the admin state and VLAN information on
the aggregate interface.

Story: 2009961
Task: 45261
Change-Id: I3e486387c4e98f3343709dd05b7653bb40663c39
2022-08-15 11:47:10 +02:00
Harald Jensås 21f591bcb7 Add LACP support to Netconf OpenConfig driver
Add the create/delete logic for LACP link aggregates.

Updateing a bound LACP port supports change of MTU and
disable/enable port.

Story: 2009961
Task: 44997

Change-Id: Ia6f768b2f682f1135c747cc20cff564400f0c73a
2022-08-15 11:46:57 +02:00
Harald Jensås 3b99ee3bc7 Add netconf-openconfig device driver
Add the initial part of a device driver using Netconf and
OpenConfig models. Implements network create/delete/update
and port create/delete/update.

Also bump paramiko lower-constrain to 2.3.2, see:
  https://github.com/paramiko/paramiko/issues/1108

Story: 2009961
Task: 44996

Depends-On: https://review.opendev.org//837105
Change-Id: Ifc89923d7f6bbfba25feb2218b80fea9e27b9c4a
2022-08-11 20:37:16 +02:00
Harald Jensås 30b6008c17 Device management driver iface
Add a device management driver interface using stevedore
for dynamic loading. The base driver includes two classes
BaseDeviceDriver and BaseDeviceClient.

Updete the ML2 mech plug-in to call the device driver port/
network plugging methods for create/update/delete actions.
When a device is present/found for a port validations for
physical_network, driver bond_mode support etc is performed
prior to calling the device driver plugging method.

If no device is present/found for a port the driver will
bind the port.

Story: 2009961
Task: 44995
Change-Id: I151788d049f9807bae0659167999723380e5c725
2022-08-09 15:06:51 +02:00
Harald Jensås 5da78f921c OpenConfig YANG Model, python-bindings releasenote
Add a releasenote for the OpenConfig YANG Model python-bindings
that has been added in a series of patches.

Story: 2009961
Task: 45971
Change-Id: I00e0b59517c76f7ada36295e0921f626e9917a27
2022-08-08 20:38:43 +02:00
Harald Jensås 1763e22415 Add OpenConfig classes for LACP
Add python classes for the subset of the following OpenConfig
modules required for managing LACP aggregates.

* http://openconfig.net/yang/lacp

Story: 2009961
Task: 44994
Change-Id: I10e45958d287561824d190a11bd8e4ec6bbcd30e
2022-06-21 03:28:02 +02:00
Harald Jensås fe49c89173 Add OpenConfig classes for interface aggregate
Add python classes for the subset of the following OpenConfig
modules required for configuring link aggregate interface
properties.

* http://openconfig.net/yang/interfaces/aggregate

Story: 2009961
Task: 44993
Change-Id: Idc139e5b0a543e56b61ad4ccd98ea08d5e4b9e6d
2022-06-21 02:57:51 +02:00
Harald Jensås b658ce5472 Add OpenConfig classes for network-instance
Add python classes for the subset of the following OpenConfig
modules required to create/delete network-instance vlans on a
device.

* http://openconfig.net/yang/network-instance

Story: 2009961
Task: 44992
Change-Id: I9aa8fe3bde321637b184bb9adedd34054ac08252
2022-06-21 01:54:40 +02:00
Harald Jensås 9468d6ec60 Add OpenConfig classes for switch vlans
Add python classes for the subset of the following OpenConfig
modules required for createing/deleting vlans on a device.

* http://openconfig.net/yang/vlan

Story: 2009961
Task: 44991
Change-Id: Ie7a6cff1d37f095fb41e0f68b4ef68c4e5efcf8b
2022-06-21 01:28:34 +02:00
Harald Jensås f4e19c3fb1 Add OpenConfig classes for iface vlan plugging
Add python classes for the subset of the following OpenConfig
modules required to plug ports to VLAN.

* http://openconfig.net/yang/interfaces
* http://openconfig.net/yang/interfaces/ethernet
* http://openconfig.net/yang/vlan

Story: 2009961
Task: 44990
Change-Id: Id7d2ef1d68f36a9827664bf682e4c8050835697e
2022-06-21 01:19:24 +02:00
Zuul db835bce56 Merge "The Python 3.6 and Python 3.7 Support has been dropped since zed" 2022-06-10 12:16:20 +00:00
Zuul 30a3f86a3f Merge "Remove babel.cfg" 2022-06-10 12:16:19 +00:00
leiyashuai b3e01b4bae The Python 3.6 and Python 3.7 Support has been dropped since zed
[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: Iebb6cd871496ddd2d885714b476f3d8885f5001c
2022-06-04 14:25:46 +08:00
likui f2bdac65b9 Remove babel.cfg
Remove babel.cfg and the translation bits from setup.cfg, those are not
needed anymore.

Change-Id: I317d5cb0280bc8a23f5c1c3cbe10117eee5001b4
2022-06-01 22:50:29 +08:00
likui bfb6ee061e Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is old name and deprecated

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: I73aa55e0b985e318ce69783869b08eb7e60555d9
2022-06-01 22:30:58 +08:00
Ghanshyam Mann 107a5a7a76 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I751a1ccdefd64493869d3397b0b45e1b65af9226
2022-04-30 17:57:49 -05:00
Harald Jensås df6c7c9c55 Register neutron common config options
Since change Ic1532eb8de887ff1b1085206df11f53e22f7f524 options
are not registered on import.

Make sure to initialize neutron common configuration options by
calling the register_common_config_options() method.

Story: 2010014
Task:  45184
Change-Id: I9e718c8c0b2a729918634d1959e38b56350bfa59
2022-04-26 21:45:11 +02:00
Zuul f30f96c805 Merge "Add Python3 zed unit tests" 2022-03-11 01:09:15 +00:00
Zuul 664f8ab1f1 Merge "Set agent_type in tests" 2022-03-10 01:28:54 +00:00
Harald Jensås 3f25f63578 Set agent_type in tests
Networking-Baremetal is already hard-coding the agent
type. The issue was that tests don't set agent type in
the Fake Port Context.

Also removes an override of force_config_drive to false
which is causing failures in jobs designed around use
of configuration drives.

Change-Id: I171845e556a45746d9435a11390e510c731f6d5c
Story: 2009898
Task: 44696
2022-03-09 13:10:46 -08:00
OpenStack Release Bot 912b742b40 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

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

Change-Id: I1bb060a9ea044fcf31bd16f7fd6be9dee5c2260c
2022-03-08 12:05:49 +00:00
OpenStack Release Bot 639646317a Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

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

Sem-Ver: feature
Change-Id: Idbc0bf4ad22d6ae4a8157e30eaa8d36882cc5a8f
2022-03-08 12:05:48 +00:00
Riccardo Pittau 33aa1033ab Re-add python 3.6/3.7 in classifier
We have updated the yoga testing runtime to keep the
py36 testing.

- https://review.opendev.org/c/openstack/governance/+/820195

Unit tests job template is also updated to keep python
3.6 as a voting job. So with the py3.6 and py3.9 testing as voting
job template, we are keeping python 3.6, 3.7, 3.8, and 3.9 as
tested versions in the Yoga cycle.

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

This commit re-add the python 3.6/3.7 versions in setup.cfg classifier.

Change-Id: I1e8e1c5b9daf17be3cb607eac113b0de1585d7c8
2021-12-14 09:36:56 +01:00
Ghanshyam Mann 0fb52ac99d Updating yoga tested python versions in classifier
Yoga testing runtime has been updated with py38 and py39
as voting and removed the py36 testing. Unit tests update are
handled by the job template change in openstack-zuul-job and you
can see the updated jobs running in gate.

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/818609

this commit updates the tested py versions in setup.cfg classifier.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I1bad51e3c89e861c82193220d85eda793191d899
2021-11-24 20:17:27 -06:00
OpenStack Release Bot 2cbc686352 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

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

Change-Id: I0c2edc0b2a98de2418c98491cdd35dff6e93dfb0
2021-09-17 13:29:29 +00:00
OpenStack Release Bot 428cba3d0f Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

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

Sem-Ver: feature
Change-Id: Ib97a1accd48ffce69732e529d304ad0d5ef88773
2021-09-17 13:29:28 +00:00
Riccardo Pittau cd69016601 Add lower-constraints job to current development branch
The lower-constraints test was removed because of an issue where pip
could not correctly determine the required packages versions to install,
ending in an almost infinite loop that would end up in timeout, failure,
and general mayhem.
Recently the issue has been fixed and, if properly configured, the
lower-constraints test can provide good indication of which minimum
versions are required to support the current code.
This patch adds the test back to the current development branch, and it
runs only on master.
The lower-constraints file will stay in the future stable branches.

Adjust minimum requirements and test-requirements as consequence of
compatibility tetst.

Change-Id: I26d6dceeda4983c988b56be70b4bae4cc2c7dc85
2021-08-10 10:17:16 +02:00
Riccardo Pittau ae68d692b8 Increase version of hacking and pycodestyle
Change-Id: I6d36a1f66d6ffa692000a406d9784588dbf4213a
2021-08-02 10:02:04 +02:00
Riccardo Pittau 5bcf94007c Update min version of tox to use allowlist
The min version of tox is updated to 3.18.0 to replace whitelist_externals
with allowist_externals option [1]

[1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I1bf6b66371a28fea0c4080a987672e616c2d43ec
2021-06-15 10:06:53 +02:00
YuehuiLei 0fb7388e5f setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Ie7fd8e7769e2b9baf78a9bf5a69b7cce04c8c48e
2021-05-04 16:08:33 +08:00
OpenStack Release Bot a0bd483b6f Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

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

Change-Id: I9bd71349b3fef5becb6ba2adf3c7857140977acd
2021-03-26 18:35:05 +00:00
OpenStack Release Bot 14eaffe068 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

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

Sem-Ver: feature
Change-Id: Iadc89ba34c144a0ff2ead3f411280420749df00d
2021-03-26 18:34:54 +00:00
Zuul 7b55f069dc Merge "Add doc/requirements" 2021-01-25 15:41:31 +00:00
Riccardo Pittau 4ed7b744de Update minversion of tox
The minimum version since when tox accepts having inline comments
in deps is 3.9.0

https://tox.readthedocs.io/en/latest/changelog.html#v3-9-0-2019-04-17

Change-Id: Ife38fa8d304a26ed82272d329516e8a0905615db
2021-01-23 18:27:39 +01:00
Iury Gregory Melo Ferreira c43a6f419c Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver for the release team.
Removed specific doc requirements from test-requirements.txt

Change-Id: I95854d2f83aa158b7805f86b9f98b739f9f2e6b7
2021-01-19 18:37:48 +01:00
Vladyslav Drok e28002ffa4 Fix exception handling when querying ironic ports
As the port listing function is now a generator, exceptions need to be
handled differently. Also we should not report the agent state when
there is a problem querying ports.

Story: 2008424
Task: 41369
Change-Id: If4eae38393b5d88e8c442ce38e81ca863c924c3f
2020-12-16 13:16:33 +00:00
Riccardo Pittau 5792f32e15 Remove lower-constraints job
As discussed during the upstream ironic community meeting on
Monday Dec 14 2020, the lower-constraints job is being removed.

Change-Id: I29932a6030874ea77b3be3944edec15551bf7d5f
2020-12-15 18:39:46 +01:00