3034 Commits

Author SHA1 Message Date
Zuul
37ad1eb9d1 Merge "Fix option conflict in Zun CNI for recent Docker" 2025-02-12 07:00:34 +00:00
Zuul
9d5d4b69ba Merge "Fix Docker remote API TLS authentication" 2025-02-12 06:56:11 +00:00
Hongbin Lu
08ede38ca0 Remove pytz
Change-Id: Ieb1f4d484ead3bf77293499fa931b5e2772d6f39
2025-02-10 06:04:22 +00:00
Lana Kaleif
4fa82fe3d0 Fix Docker remote API TLS authentication
Since version 7 docker-py has refactored tls.TLSConfig, and
assert_hostname parameter is no longer available. Remove it
here as well.
And fix websocket proxy to be able to connect to TLS-secured
Docker API.

Change-Id: Ie83d7b485886decb4078a90f4028246c8d995b2e
2025-01-26 03:07:55 -05:00
Lana Kaleif
9d3e25e504 Fix option conflict in Zun CNI for recent Docker
With recent Docker, trying to create a container via API by
specifying both network 'none' and a MAC address results in a
Bad Request error: 'conflicting options: mac-address and the
network mode'
Remove MAC address from initial container setup.

Change-Id: I7749ca3f002472b7588aeac7331eda5ba6cb6d1b
2025-01-24 07:04:34 -05:00
Zuul
af65475776 Merge "Replace deprecated configure_auth_token_middleware" 2024-12-06 10:59:07 +00:00
Zuul
00c2002b65 Merge "Update gate jobs as per the 2025.1 cycle testing runtime" 2024-12-06 10:35:28 +00:00
Zuul
01100f9027 Merge "reno: Update master for unmaintained/2023.1" 2024-12-06 09:04:42 +00:00
Ghanshyam Mann
72e510a5f6 Update gate jobs as per the 2025.1 cycle testing runtime
As per 2025.1 testing runtime[1], we need to test on Ubuntu
Noble (which will be taken care by depends-on tempest and devstack
patches to move base jobs to Noble) and at least single job to run on
Ubutnu Jammy (for smooth upgrade from previous releases).

Depends-On: https://review.opendev.org/c/openstack/tempest/+/932156
Tracking: https://etherpad.opendev.org/p/migrate-to-noble

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

Change-Id: I495ade80c9a93629221e4e287f67ecdf979e734e
2024-11-15 20:15:43 -08:00
Takashi Kajinami
8a8b7b6aca Replace deprecated configure_auth_token_middleware
It was deprecated some years ago by [1].

[1] https://review.opendev.org/628651

Change-Id: I3c1f00293ad0b21de0d3692c81895a6a36f84f25
2024-11-15 16:24:55 +00:00
fe998789a5 reno: Update master for unmaintained/2023.1
Update the 2023.1 release notes configuration to build from
unmaintained/2023.1.

Change-Id: Iaf82d51da01ac0b7c41491c39e048d9aee63ec31
2024-11-13 18:56:13 +00:00
Ghanshyam Mann
e0199d5ddd Remove default override for config options policy_file
olso.policy 4.5.0[1] changed the config options policy_file
default value to 'policy.yaml', which means it is changed
for all the OpenStack services and they do not need to
override the default anymore.

NOTE: There is no change in behaviour here, oslo.policy provides
the same configuration that services have overridden till now.

[1] https://review.opendev.org/c/openstack/releases/+/934012
[2] https://review.opendev.org/c/openstack/requirements/+/934295

Change-Id: Icb8cee28ac8463550315df625199afef70ff5999
2024-11-10 21:45:14 -08:00
Cyril Roelandt
5c5e1063ed Remove workaround for eventlet bug #592
This code worked around a bug in eventlet[1] that has been fixed in
115103d5608cbe8f15df10e27eba1644f5364e95. The fix has been available in
every eventlet release since v0.27.0.

[1] https://github.com/eventlet/eventlet/issues/592

Change-Id: I064ad8eb830c24eee97a7136396edc7b515ed479
2024-09-30 16:10:54 +02:00
Zuul
e0bfe23a72 Merge "Update master for stable/2024.2" 2024-09-25 11:58:57 +00:00
72b7ec2da0 Update master for stable/2024.2
Add file to the reno documentation build to show release notes for
stable/2024.2.

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

Sem-Ver: feature
Change-Id: I0585247b0701e56c5687a159b8e5cea780388d7e
2024-09-25 09:49:16 +00:00
Dmitriy Rabotyagov
d1db4addf7 Ensure unit tests are compatible with Python 3.12
This replaces deprecated not_called and called_once_with with
assert_not_called and assert_called_once_with corresponsively.

Change-Id: I743d8161fb1e89ff088fc264e87887d205d2f33a
2024-09-24 23:12:48 +02:00
Dmitriy Rabotyagov
2681091ffa Do not use strings as attributes for loader
With SQLalchemy 2.0 strings are no longer accepted as attributes for
the loader and attributes must be used instead directly.

This also fixes DB migrations by removing deprecated subtransactions.

Change-Id: I94865b90701e5a51f69187d9e790386e29ad7b5a
14.0.0.0rc1 14.0.0
2024-09-24 22:26:16 +02:00
c05fe096cd reno: Update master for unmaintained/zed
Update the zed release notes configuration to build from
unmaintained/zed.

Change-Id: If53843690077b910b1e238e8d921c03c4235438c
2024-04-30 16:59:23 +00:00
Hongbin Lu
4cc1f955d1 Fix unit test
It seems sqlalchemy removed the support of autocommit which broke
the unit tests. This patch moves away from autocommit.

Change-Id: I756f65a189d8cc4ab9e65b607fa54edb52c60700
2024-04-30 06:22:25 +00:00
Zuul
16eb87ee1c Merge "reno: Update master for unmaintained/xena" 2024-04-26 09:03:52 +00:00
Zuul
09338d75ec Merge "reno: Update master for unmaintained/victoria" 2024-04-26 09:03:51 +00:00
Zuul
bac3da7311 Merge "Update master for stable/2024.1" 2024-04-26 09:03:50 +00:00
Zuul
7e0b120fab Merge "reno: Update master for unmaintained/wallaby" 2024-04-26 09:03:48 +00:00
69d456e31a reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I7d11ccf8f29aedb7737ceadfee29a0a790f7d7ff
2024-03-20 13:46:57 +00:00
54ae3397f1 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I89a1b84a86ff32937706f560b2168484881d1174
2024-03-20 13:46:22 +00:00
b9d37251d4 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: Iabe40faa1426c43e4b26c2396215035d0c24b0c3
2024-03-20 13:45:47 +00:00
de1629b321 Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

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

Sem-Ver: feature
Change-Id: I781c0f9882f210575e3ce836e42dce94dc9811f9
2024-03-15 14:21:18 +00:00
02c83aacd8 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I6c25a80d75aa9abae496cf2d27eda037aa64c830
2024-02-05 15:53:00 +00:00
Ghanshyam Mann
f1cab647c0 Update python classifier in setup.cfg
As per the current release tested runtime, we test
till python 3.11 so updating the same in python
classifier in setup.cfg

Change-Id: I3dc98d4e5e0b4b210d1bbeb4345fe97cbafd17be
13.0.0.0rc1 13.0.0
2024-01-03 20:23:47 -08:00
Hongbin Lu
19f6d7854d Switch to "local" mode for kuryr libnetwork scope
Docker has removed external cluster store in latest version.
Therefore, we switch to "local" mode to work around.

Closes-Bug: #2007142
Change-Id: I31d140a75dae2ddd23551e648d0492327a8d8c8e
2023-12-20 12:15:02 +00:00
Hongbin Lu
da8e6850fc Add "host" field to ZunNetwork
Change-Id: I2ae825712c59917af9d31a851fd14353a2fa848d
2023-12-18 11:51:57 +00:00
Dmitriy Rabotyagov
397edf53c1 Use alembic alter_column for 35cb52c5553f migration
With latest sqlalchemy there is no alter attribute for the Column object

Thus, zun-db-manage upgrade fails with AttributeError. Instead of trying
to use SQLAlchemy for altering Column we should use alembic instead
for the migration

This also fix py3.11 job by replacing libmysqlclient-dev with
libmariadb-dev-compat which is available for both ubuntu and debian.

Closes-Bug: #2043209
Change-Id: Iaba736d391ad5820de5f481d2c5bac1714dc0809
2023-11-10 18:24:38 +01:00
Hongbin Lu
541478084e Temporarily disable multinode job
Change-Id: Ibde407163b165e20f639787b22c0a91fcf90dbfb
2023-09-18 13:16:27 +00:00
f7a526b107 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: Id19a4cca43e12eef5937706a18c129c6c2cdf994
2023-09-14 01:43:00 +00:00
Malleswari Varanasi
4fa358474e Stats report diferencies
There is a difference between "openstack appcontainer stats <id>"
and "docker stats <id>" in memory value.
Cache Usage should be removed from the memory usage while calculating
which is present in docker SDK.
This patch contains the Cgroup V1 and V2 handling for Memory stats

Closes-Bug: #1989792
Change-Id: I4f1d9b738ee5de176b6e0ef69593363f2977f07a
12.0.0.0rc1
2023-04-19 08:55:41 -07:00
Zuul
6b89ceac6f Merge "Block I/O Values are coming 0 from zun stats" 2023-04-10 15:21:50 +00:00
Hongbin Lu
b263be7267 Fix pep8 error
Change-Id: I54cbc9873351d8641010955cb2fdc6b7524dbc1d
2023-04-10 03:31:28 +00:00
Malleswari Varanasi
4aba8e9a5b Block I/O Values are coming 0 from zun stats
The Bulk stats are coming 0 in case we are fetching from zun
However, docker sdk is giving the stats properly in a different
field

Closes-Bug: #2013046
Change-Id: Ia55262f33222f5ca2f041be0b34b96840a47b727
2023-04-06 08:33:50 -07:00
0288a45178 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: I566b07e5f03b5cc305225ec451cd548f877e450e
2023-03-01 13:44:27 +00:00
Hongbin Lu
c43f423530 Specify a specific version of docker
The latest version of docker broke kuryr-libnetwork which in-term
broke use. We hardcode an older version of docker to workaround.

Depends-On: https://review.opendev.org/c/openstack/devstack-plugin-container/+/875113
Change-Id: I4c0fa9b135b11db93b0a9fc757865f3ff92cf4b2
11.0.0.0rc1 11.0.0
2023-02-25 05:44:20 +00:00
Tobias Urdin
cc9b8b3d2d Use new get_rpc_client API from oslo.messaging
Use the new API that is consistent with
the existing API instead of instantiating the client
class directly.

This was introduced in release 14.1.0 here [1] and
added into oslo.messaging here [2]

[1] https://review.opendev.org/c/openstack/requirements/+/869340
[2] https://review.opendev.org/c/openstack/oslo.messaging/+/862419

Change-Id: I671d04a62f7ce408534342e89542ecc78c59ecb7
2023-01-19 20:29:59 +00:00
Hongbin Lu
f4e8f995b5 Fix circular import
Closes-Bug: #2000386
Change-Id: I41f2cd5e5bcfa3192a761d4fb72663ff4b27b78e
2022-12-26 13:24:44 +00:00
Hongbin Lu
1fa73c5556 Fix tox4 error
tox.ini started failing with Tox4 which had some
incompatible changes. One is passenv where we need
to pass each value in newline otherwise, it fails with
error:

 failed with pass_env values cannot contain whitespace,
 use comma to have multiple values in a single line,
 invalid values found.....

Fixing tox.ini for tox4 changes.

Change-Id: I86640fc7ae5565838c701974252a5775d1582eb4
2022-12-26 06:18:56 +00:00
Hongbin Lu
8244086d1f Disable git owner check for zun
The new git owner check [1] broke zun installation process.
We add an exception to skip the check.

[1] 8959555cee

Change-Id: I5dd1e4057722ddece259c70985b77a3dd1dfd48b
2022-12-11 03:43:39 +00:00
Hongbin Lu
7bddd4f42c Handle io_service_bytes_recursive is None
Also add B324 to bandit skip list for python3.9+

Change-Id: I8b2a5e55dda141b342ab696377f02fa62b811597
2022-12-10 15:23:20 +00:00
Zuul
f7f67cbf75 Merge "Switch to 2023.1 Python3 unit tests and generic template name" 2022-09-19 14:37:45 +00:00
Hongbin Lu
b76a4e4453 zuul: Declare queue at top level
Zuul deprecated declaring shared queues at a pipeline level with
release 4.1.0[1]. This updates the job definition to use the top level
declaration instead.

See [2] for details.

[1] https://zuul-ci.org/docs/zuul/latest/releasenotes.html#relnotes-4-1-0-deprecation-notes
[2] http://lists.openstack.org/pipermail/openstack-discuss/2022-May/028603.html

Change-Id: I3368603a380f9172b5816429ee8798bf363bf541
2022-09-19 09:16:57 +00:00
Hongbin Lu
9d92de5423 Fix compatibility with oslo.db 12.1.0
oslo.db 12.1.0 has changed the default value for the 'autocommit'
parameter of 'LegacyEngineFacade' from 'True' to 'False'. This is a
necessary step to ensure compatibility with SQLAlchemy 2.0. However, we
are currently relying on the autocommit behavior and need changes to
explicitly manage sessions. Until that happens, we need to override the
default.

Change-Id: I04b336a42b5cbb458badde3bb04d35363d7834d8
2022-09-17 08:47:14 +00:00
7194214cb6 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: I3cf69979f3b29fc199ede35cf6d80b48024528d0
2022-09-13 12:30:35 +00:00
f847ff85c4 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: I6e4fe6fc8ba53c97d422e5eac8bc46f711dc641a
2022-09-13 12:30:34 +00:00