Commit Graph

3006 Commits

Author SHA1 Message Date
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
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
OpenStack Release Bot 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
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
OpenStack Release Bot 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
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
OpenStack Release Bot 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
OpenStack Release Bot 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
Radosław Piliszek 40dd541bb1 Regenerate protobuf files
tools/gen-criapi was used with the latest protobuf dependencies
to generate compatible files. This makes Zun Compute work again
with the current implementation of protobuf.

In addition, fix two issues that causes gate failure.

Depends-On: https://review.opendev.org/c/openstack/kuryr-libnetwork/+/851549
Closes-Bug: #1982924
Change-Id: Id1032709f6e3b11b718b3df6a6ac3531a9c99824
2022-08-01 06:36:24 +00:00
Hongbin Lu a4e5688a68 Drop lower constraint job
Change-Id: I04bf9d5dc0955abe832586070e92b3c6c7f76eb0
2022-05-11 12:35:13 +00:00
Zuul ce980f7dee Merge "Use X-Forwarded-Proto as origin protocol if present" 2022-04-27 06:47:51 +00:00
caowei 40491ef82f Use X-Forwarded-Proto as origin protocol if present
Closes-Bug: #1970083
Change-Id: I88c90bbf03b2b7c5f816926c124ec049d9d82b4f
2022-04-24 15:51:29 +08:00
OpenStack Release Bot 948f69401a 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: I45ed125d09960c996c7eb5f905ceee5275ea8b88
2022-03-08 11:43:20 +00:00
OpenStack Release Bot 2e8825a05f 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: Ia2815986812845771527dc8d180968312c6db34b
2022-03-08 11:43:16 +00:00
Hongbin Lu 164123eb75 Install apparmor userland for ubuntu
This is for fixing: https://bugs.launchpad.net/zun/+bug/1941982

Closes-Bug: #1941982
Change-Id: I4495fbaf16e2d621a6d029462cd8bde031063f26
2021-11-28 12:26:27 +00:00
ycj a053176dfe fix container run defect
Some problems were found in the development of enterprise projects:

1.After repairing the container operation, the return parameter does not include the time parameter. It is necessary to judge whether to restart and obtain the running time in the business development. Compared with nova, the return info of the VM also contains the above information.

2.When creating a container, if a custom security group created with neutron is also associated, the expose_ports parameter is also given, which will cause the custom security group parameters to be overwritten, which is very important for the container to increase the exposure range of ports. Important, but it is currently a failure.

Change-Id: I1f5c2ddc835d91c14ae8936c0fb7f79d418ba804
2021-10-27 07:44:56 +00:00
Zuul 7ed094696b Merge "Add Python3 yoga unit tests" 2021-10-04 05:22:57 +00:00
Hongbin Lu a402e3b7d8 Work with pyroute2 0.6.4
pyroute2 0.6.4 seems to break us due to their packages split. This
commit attempts to fix it by making sure we import modules correctly.

Change-Id: Iaf3571f1b33f99fa4f249aff46b1d89ac2168c8e
2021-09-26 16:59:52 +08:00
OpenStack Release Bot 23d2e3f02a 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: I86bcd30139720be4c5949a69075efefaa737990c
2021-09-15 02:11:33 +00:00
OpenStack Release Bot ca703064cd 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: I3dd79d364b91302234be31333bdfdf5c8c6a00aa
2021-09-15 02:11:29 +00:00
Hongbin Lu abd1e5c9f3 Respect allocation ratio on container update
Closes-Bug: #1931712
Change-Id: Ia5431c2d54ab293a502db2457cd9fe29b6fcfd07
2021-07-01 20:34:34 +08:00
Hongbin Lu 1f10576673 Deprecate Aggregate[CPU|Ram|Disk]Filters
Their functionality has been replace by placement API so these
filters should no longer used.

Change-Id: I0e7c42fcc907571cba84b1147e63767ccad9088e
2021-07-01 20:34:28 +08:00
Hongbin Lu d8b7b01d76 Replace deprecated with_lockmode with with_for_update
The Query.with_lockmode() method is deprecated since version 0.9.0
and will be removed in a future release. [1]
This patch replaces it with Query.with_for_update().

[1] https://docs.sqlalchemy.org/en/13/orm/query.html#sqlalchemy.orm.query.Query.with_lockmode

Closes-Bug: #1933985
Change-Id: I8a318200752181defaf5ca4318d1e52f403f82be
2021-07-01 19:05:26 +08:00
maaoyu 52a35609b0 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: Icf30f766231f4d5c72488a56131b04093c8ff03e
2021-04-27 13:54:43 +08:00
OpenStack Release Bot 917868f5fe 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: I74cdc3311c9320979f51cc16c9344aec59977daa
2021-03-22 10:06:22 +00:00
OpenStack Release Bot ae2aa6a064 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: I50d267a7d8cff248ad71dc3fcc6f74374a95db2c
2021-03-22 10:05:59 +00:00
Yandong Xuan 6ac7a3ee53 Remove __unicode__() from ZunException
This is no longer needed in Python 3.

Change-Id: Ia1b64a4a66a876e38ed2885b543df2acc24a379d
2021-01-08 10:57:28 +08:00
Zuul 8e7e4eb986 Merge "Use TOX_CONSTRAINTS_FILE" 2020-12-30 05:25:43 +00:00
Ghanshyam Mann 5e22736c7a [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: I1248c7356e9a22f0281f12afa8faf5f6aa0f5c8b
2020-12-29 18:54:06 +08:00
Hongbin Lu 1bce9e5890 Fix lower constaint job
Closes-Bug: #1909346
Change-Id: Iff27d190995214339f8eb5b3f24718985039ac69
2020-12-29 15:31:51 +08:00
zhangboye 05561549ba Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: I3f72849c88bc122fd0d32d6e564ee4eb862af94a
2020-12-24 15:17:40 +08:00
zhufl 12fa7efcfe Fix invalid argument formatting in exception messages
This is to fix the invalid argument formatting in exception messages.

Change-Id: I8a392bcbaab360a8e425b1af90800f4f432a602b
2020-11-20 17:01:51 +08:00
zhoulinhui 1a898f891b Reuse the docs deps to benefit from constraints
Tox trying to install latest versions for building releasenotes,
api-ref which may not be supported by stable and lower branches,
so should be restricted by respective version's upper-constraints.txt

Depends-On: Ia2fe3cab71b2efb89d6a4370109ec1abf2d1086f
Change-Id: I13baec09f477fafaabc06f9459549ddb03e2657d
2020-10-06 21:19:00 +08:00
Zuul 0a38b12573 Merge "[goal] Migrate testing to ubuntu focal" 2020-09-28 22:02:32 +00:00
Zuul 72149a3893 Merge "Add Python3 wallaby unit tests" 2020-09-28 21:37:42 +00:00
Ghanshyam Mann da7c9be8ec [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Moving the multinode job to focal nodeset

Story: #2007865
Task: #40230

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.h>

Change-Id: I0907a8993706d5f639e8f0d8d21ec0421aea9783
2020-09-28 19:36:13 +00:00