934 Commits

Author SHA1 Message Date
Takashi Kajinami
dc81cefc1b Restrict access to storlet log file
Change-Id: I47f936e821e254867f847c947abd30388c126830
2024-01-21 03:11:17 +09:00
Takashi Kajinami
5ad58804af Restrict access to local storlet/dependency files
Now swift and storlet daemon inside containers run with consistent uid
so we don't need group/other permissions.

Also chown should be executed before actual file content is written,
so that the content is not read by a different user.

Closes-Bug: #2047723
Change-Id: I7790e51556875be1fc6438d1e2c599b693ca3b5b
2024-01-20 18:07:05 +00:00
Zuul
9aa8ab2cda Merge "Fix python shebang" 2023-10-18 23:00:03 +00:00
Takashi Kajinami
b8f18c1a89 Remove unused cluster_config.json
Change-Id: Iff6657127f9efd381e47c8046741aa90a83a6dd9
2023-10-18 12:39:50 +09:00
Takashi Kajinami
c5585ee5fc Fix python shebang
The current shebang requires /usr/bin/python which is not available in
Ubuntu Jammy by default.

Change-Id: I66f870398bd431a37496168dbac8b2b03ee625ee
2023-10-18 12:37:12 +09:00
aac7ad9dbc 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: Ia7b657a9d8dff6fdfea6a9159419e7815f65a2e4
2023-09-14 16:02:19 +09:00
Takashi Kajinami
dd7deac2db Add release note for 12.0.0 release
Change-Id: Iffbbf1fda828f977b9e928d350f329daf7cf749e
12.0.0.0rc1 12.0.0
2023-09-12 20:56:43 +09:00
Takashi Kajinami
9570fe951f Add Python 3.10 to supported runtime
... because it has been part of the tested runtime since 2023.1.

Change-Id: Ie5077f25fc8a261ce80172aa024d8e2c47347f2c
2023-09-12 20:52:49 +09:00
Zuul
ced045a397 Merge "Remove some notes no longer valid" 2023-09-08 10:48:52 +00:00
Takashi Kajinami
be301eef8c Migrate data directory from /home to /var
In General, /var/lib is used to store any data for server application
while /home is used by actual users. To follow that standard, all data
files for Storlet are now stored in /var/lib/storlets instead of
/home/docker_device.

Change-Id: Idef1227c0469d216c2a4bf40413b8562ad4a6a9e
2023-09-08 10:07:07 +00:00
Takashi Kajinami
e664046ea4 Remove some notes no longer valid
setup.py is no longer maintained by the global sync. Also the note
in requirements.txt does not apply since pip 20.3. This also removes
workaround for old python which we no longer support.

[1] https://lists.openstack.org/pipermail/openstack-discuss/2023-June/034073.html

Change-Id: I1b79e398e6daa9d2dc7885c2faee60323547c446
2023-09-08 10:05:51 +00:00
Takashi Kajinami
5aedb72f49 Disable GLOBAL_VENV
The GLOBAL_VENV option was added to devstack recently[1] and is enabled
by default now, but this is not yet compatible with the installation
of our plugin.

This temporally disables the feature to fix the gate now.

[1] a40f9cb91fbedddec89f0ffd6c7dd4b3828a232e

Change-Id: I6ce36d621fe54f034b786f33f3061256de12e1d5
2023-09-08 18:58:57 +09:00
5eee876f50 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: I530ca39202719f45f69ea574ac3bfe48cd5f931f
2023-03-07 14:49:14 +09:00
Takashi Kajinami
4debb6c494 bashate: Enable E003 rule
It seems there are not many lines using 2 spaces now, and the rule can
be easily enabled.

Change-Id: I54ede1fb83b8a150392f9b8c498ea5fa81ef38c0
2023-03-02 14:00:40 +00:00
Takashi Kajinami
34e8dbd49f Add release note for 11.0.0
Change-Id: I8367975371ad838ea9006e319cdfed8bacd20ad3
11.0.0.0rc1 11.0.0
2023-03-02 08:15:15 +00:00
Zuul
3779949a02 Merge "Remove os/jre version from default image name" 2023-03-02 06:43:51 +00:00
Zuul
0be3f5d900 Merge "Add Kota's mailmap entries" 2023-03-02 06:25:07 +00:00
Zuul
0ff6d355b4 Merge "Expose a few more timeout for sandbox container operation" 2023-02-17 04:53:06 +00:00
Takashi Kajinami
0af2ed6ce1 Remove os/jre version from default image name
... so that we don't have to update the default when we bump OS version
or JRE version supported.

Change-Id: Id06aa1886c27d3a71feddc7f8f83b1f45b1d0aa7
2023-02-17 13:05:21 +09:00
Takashi Kajinami
18214a43ad Do not override python3 minor version
Previously we ignored minor version use requested and override it to
the one available in the image. This change makes sure the requested
version is honored.

Change-Id: I93fd67dbce03244d0fc5aa40ac7a020c26d98532
2023-02-17 12:04:36 +09:00
Takashi Kajinami
39fc5939aa Switch functional tests to Ubuntu Jammy
Because Jammy will be the default test runtime for Antelope release.

This also removes minor version from default python version so that
we can use the default version in that OS version.

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

Change-Id: Ieba8053fd1f5f40c00783b6d11fd84ab759e03c0
2023-02-17 02:54:34 +00:00
Takashi Kajinami
660620261e Get rid of redundant version check
In gateway we validate only major version so it's redundant and useless
to compare major version with full version such as 3.x .

Change-Id: Ibafdb85d8121f8ff163fa42b9d9bfd0a0b540e09
2023-02-17 11:54:12 +09:00
Takashi Kajinami
fbdd39ec7e Expose a few more timeout for sandbox container operation
... so that users can tune timeouts and ping interval. This also
allows using float values for timeouts to accept more fine-grained
timeouts.

Change-Id: I7e8374087f91ff9b9054c11865c3758fd16817bc
2023-02-17 02:39:36 +00:00
Kota Tsuyuzaki
bbe33b3a4d Add Kota's mailmap entries
Change-Id: I57fb6dcb10fbc3502e175cc2b7cd6dff1e5623ac
2023-02-15 09:35:54 +09:00
Kota Tsuyuzaki
02e4f40ec9 Replace nose to nose2
because nose is in deprecation[1] so we need to
use nose2, or pytests instead. This commit
suggests to use nose2 and fix some import errors
on slow attribute according to the docs [2]

1: https://nose.readthedocs.io/en/latest/#note-to-users
2: https://docs.nose2.io/en/latest/plugins/attrib.html
Change-Id: Idc0c8c146a9ac7fa7ffd90793211422571852d82
2023-02-14 08:16:58 +00:00
Takashi Kajinami
e9187da3ea Adapt to tox 4
tox 4 introduced some changes which broke compatibility. This updates
tox.ini to adopt the change.

This also replaces usage of upstream docker package by one provided by
distro, assuming that is more stable.

Change-Id: I511c5b657386877c6ae3eed57a2e345c6a9e2d70
2023-02-14 08:16:34 +00:00
9256bd59bf 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: I843494b1f7dfeffc038039b6784182dab503915a
2022-09-20 00:35:15 +00:00
612b9e592d 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: I48cbe613e5a1704ef867541cfcaff3c4d940cc2b
2022-09-18 23:01:02 +09:00
Takashi Kajinami
9bf2c3b3b9 Add release note for 10.0.0
Change-Id: I622db73fddc206ae49e9cf2265e71084e544afa8
10.0.0.0rc1 10.0.0
2022-09-15 03:10:48 +00:00
niuke
5c8d45cc39 remove unicode literal from code
Change-Id: Ifded51278e80b36f2f85178924df4f54cf966d4a
2022-08-15 08:51:51 +00:00
niuke
14c1f40ec9 remove unicode literal from code
Change-Id: I9af0a0f1e5f9b16cea656bf495a7e8b4b33909f7
2022-07-28 10:06:40 +00:00
jiaqi07
fa58962e8b 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: Ide356fda579cc77e8414446a818dec7749687b9d
2022-07-26 03:06:35 +00:00
Takashi Kajinami
86068502c8 Remove remaining usage of six
This removes the remaining usage of six, which is a leftover of
the previous removal patch[1].

[1] 53abb1b2f6e9d02e549cef20c71d58290433d0e2

Change-Id: Ie94c712d8b2baaff6066ce924573f6f152b921fe
2022-07-16 23:50:43 +09:00
Zuul
47350890d1 Merge "Bump version of java dependencies" 2022-06-26 23:24:21 +00:00
Zuul
775ae8b904 Merge "Fix outdated description of spawn_subprocess" 2022-06-26 19:13:01 +00:00
Zuul
cdd63abccd Merge "Use wildcard for CLASSPATH" 2022-06-26 18:43:53 +00:00
Takashi Kajinami
3cc13b5aeb Fix outdated description of spawn_subprocess
This method is used not only for Java SDaemon but also for Python
storlet daemon. Thus the description should be updated accordingly.

Change-Id: I9155114f857d481e7a197ecac1090ae68377ff1b
2022-06-27 03:28:11 +09:00
Takashi Kajinami
9b441da4b8 Bump version of java dependencies
This change bumps the version of dependent librariyes(logback and
slf4j) to use the current latest stable version.

Change-Id: Ied7a8785370bf43ac29ce571fdd7300ae183d8ab
2022-06-26 18:19:49 +00:00
Zuul
6c61cbad35 Merge "Fix keystone url according to the latest devstack" 2022-06-26 18:05:50 +00:00
Takashi Kajinami
b8add44326 Use wildcard for CLASSPATH
... and avoid usage of file paths. Using file paths makes it difficult
to update library versions, because versions are hard-coded as part
of file paths.

Change-Id: I04b8bec400c89d744ae08bc3b80da1a31907fa85
2022-06-27 03:03:41 +09:00
Takashi Kajinami
173480fd08 Fix keystone url according to the latest devstack
... and replaces usage of Identity v2 API which was already removed.

Change-Id: Idfe64d0a9f09457c08fc8b537e89d651fdd87165
2022-06-27 02:29:48 +09:00
Zuul
bea5262fc6 Merge "Replace third party mock" 2022-06-26 17:13:55 +00:00
Zuul
3a803a1999 Merge "Remove six" 2022-06-26 17:13:48 +00:00
Zuul
1a8d1a73db Merge "Remove constraints for Python 2.7 from test requirements" 2022-06-26 16:32:36 +00:00
Zuul
d6e0eba304 Merge "Remove bindep entry for bionic" 2022-06-26 16:23:03 +00:00
Zuul
c14a899bd4 Merge "Fix the python-dev(el) package installed by bindep" 2022-06-26 16:23:01 +00:00
Zuul
66987efd31 Merge "Replace deprecated assertRaisesRegexp" 2022-06-26 16:03:33 +00:00
Takashi Kajinami
d37ee52398 Remove constraints for Python 2.7 from test requirements
... because Python 2 is no longer supported.

Change-Id: I62fa06940211a24624096e947c65cc271c33b21d
2022-06-27 00:52:34 +09:00
Zuul
2b9ed21aec Merge "Remove leftover of Python 2 support" 2022-06-26 15:45:04 +00:00
Takashi Kajinami
901784b313 Remove bindep entry for bionic
... because we no longer support it.

Change-Id: Ib53d1aabd1cb0355b2b75c930c37ce8c6c3b57b5
2022-06-27 00:37:13 +09:00