966 Commits

Author SHA1 Message Date
Takashi Kajinami
60e75cff17 Drop redundant try-except block
We can omit try-except in case we just re-raise all exceptions.

Also, we should fail in case fd is requested but the log file is not
open.

Change-Id: I2d8588cc8356e32f5bb199416243b52edad30ef6
2024-01-22 23:13:37 +09:00
Zuul
0b6628f972 Merge "Remove redundant cast" 2024-01-21 11:01:21 +00:00
Zuul
e2e25a1f1d Merge "Add Python 3.11 to supported runtime" 2024-01-21 10:18:09 +00:00
Zuul
12664baecc Merge "Restrict access to storlet log file" 2024-01-21 08:38:22 +00:00
Zuul
3a29d3760f Merge "Restrict access to local storlet/dependency files" 2024-01-21 08:38:20 +00:00
Takashi Kajinami
70d354028d Add Python 3.11 to supported runtime
Now Python 3.11 is part of the tested runtimes.

Change-Id: I0479ad0f2ee491327a6a32dde15e495299ea3175
2024-01-21 16:48:23 +09:00
Takashi Kajinami
dd612dd4d4 Remove redundant cast
The st_mtime property of stat result is float, so we don't need
the casting to float.

Change-Id: Ib56e82a623d6d8e9dabe242046645ff205591827
2024-01-21 16:41:08 +09:00
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
43362ddfc5 Merge "Remove note about old pip's behavior" 2024-01-08 16:28:05 +00:00
Takashi Kajinami
8f17a119ee Remove note about old pip's behavior
... because the behavior is different in recent versions. The same note
was already removed from requirements.txt.

Change-Id: Icd256666bf50d8c43535079399576d6626f51b0c
2024-01-08 23:50:43 +09:00
Zuul
f382843bf2 Merge "Use devstack functions to manage swift/keystone services" 2024-01-08 07:11:34 +00:00
Zuul
cf717b73af Merge "Drop explicit install of uwsgi-plugin-python3" 2024-01-08 05:02:23 +00:00
Takashi Kajinami
07ca6fcf06 Use devstack functions to manage swift/keystone services
... instead of implementing our own logics. Also, the fstab entry is
already managed by the core devstack.

Change-Id: I6a8fbcfebf1e501f41ac82117688572533ae624d
2024-01-08 13:42:35 +09:00
Takashi Kajinami
a4a3948abc Drop explicit install of uwsgi-plugin-python3
Now the package is installed by devstack.

Change-Id: Iec67aeabfd9963f866f7f9dd813886386329e441
2024-01-08 11:11:02 +09:00
Zuul
c869d6bcfb Merge "Fix inconsistent indentations" 2024-01-07 07:17:23 +00:00
Zuul
b5f231912c Merge "Remove deploy targets" 2024-01-07 07:15:44 +00:00
Takashi Kajinami
8a8baf6ed9 Fix inconsistent indentations
Change-Id: Ia952247b6b770d4a07ac29683af95435b2607a3f
2024-01-07 15:12:17 +09:00
Takashi Kajinami
4d6eac6c5c Remove deploy targets
These targets are no longer valid since we introduced devstack plugin
to replace ansible playbooks.

Change-Id: I0de1adc0bcb34cba3d8d090a57fa6a5ce2a22f18
2024-01-07 15:05:03 +09:00
Ghanshyam Mann
15a1b77caf Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: Ic04b48030430439abe315f4b0c98add26e4ea55d
2024-01-04 01:09:02 -08:00
Zuul
a06c685f5c Merge "Stop using deprecated APIs" 2024-01-02 12:54:05 +00:00
Takashi Kajinami
8346ea14f6 Stop using deprecated APIs
This addresses the following lint warnings found during build.

* [deprecation] finalize() in Object has been deprecated
* [deprecation] newInstance() in Class has been deprecated
* [deprecation] Boolean(boolean) in Boolean has been deprecated

Change-Id: I6898217f359423050d7c6378c7ef2fc456ac599d
2024-01-02 21:09:00 +09:00
Takashi Kajinami
be6215545e Drop redundant type casts
... which were detected by the lint check during build.

```
[cast] redundant cast to SExecutionTask
```

Change-Id: I7c80009b1cdbcb686d0e2f6d315dcbbc96806455
2024-01-02 20:55:42 +09:00
Zuul
bebbeee290 Merge "Add mailmap entries for Takashi Kajinami" 2024-01-02 10:27:56 +00:00
Zuul
f7f661dc1a Merge "Enable lint check during build" 2024-01-02 09:52:03 +00:00
Takashi Kajinami
a67a505657 Add mailmap entries for Takashi Kajinami
Change-Id: I0b07394d4013498323988cdc54e1ba64f96e94e4
2024-01-02 18:38:03 +09:00
Zuul
29969b9136 Merge "Bump java dependencies" 2024-01-02 09:22:44 +00:00
Takashi Kajinami
c6d63b477f Enable lint check during build
... to get more details about the build lint warnings.

Change-Id: Icb3b2fb53b26065176a29f7ae400749bad6832ca
2024-01-02 18:02:05 +09:00
Takashi Kajinami
3d24130f5d Bump java dependencies
... to the latest version currently available.

Change-Id: I328d3f067257cf4598cc7a7cf97d7327218a2b89
2024-01-02 17:25:26 +09:00
Hervé Beraud
55a9739b71 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I120d80faf321e6d7bfd4569e0cf9fd08ce8b9bdb
2023-12-21 01:06:08 +00:00
Zuul
928de77bac Merge "Avoid using multiple return code" 2023-12-13 08:52:56 +00:00
Takashi Kajinami
a9ad3a967e Offload entry point and command from image
... to engine side. This allows operators to prepare multiple images
with less steps.

Change-Id: I279f4ad10c19e4121d4906469c989a935e504552
2023-12-13 15:32:09 +09:00
Takashi Kajinami
bd427518c4 Avoid using multiple return code
Some methods return a different code for each status but this is not
very pythonic.

Change-Id: Ia050c7d1c877d0f3855201280f899ac7c05c2201
2023-12-13 15:12:51 +09:00
Takashi Kajinami
ef064bb1ef Remove workaround for old docker package
This workaround is no longer needed in recent versions.

Change-Id: I99224a21f209a6f44526e47e5c4f8942336cc720
2023-12-11 11:11:02 +09: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