1343 Commits

Author SHA1 Message Date
Zuul
8ac8c028b0 Merge "Update master for stable/wallaby" 2025-03-04 16:14:22 +00:00
Zuul
aed3ec0fc6 Merge "Send scheduler capabilities on client registration" 2025-03-03 20:42:57 +00:00
7c30d9ac53 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: I4ec56c538282e2617ad7b069628165e8ec7a9c61
2025-03-03 18:49:28 +00:00
Zuul
27a01a7ca7 Merge "Add ability to restrict backup modes, actions, storages, engines" 2025-03-03 17:58:50 +00:00
Zuul
8287dadb68 Merge "Update README.rst" 2025-02-24 14:25:30 +00:00
Ivan Anfimov
184f623f5b Update README.rst
+ small fix foc doc

Change-Id: I9e19a21e777b4c77528453ae2d3082e0d96ba808
2025-02-21 20:24:51 +00:00
Volodymyr Mevsha
79e0373656 Send scheduler capabilities on client registration
Include allowed backup actions, modes, storages and
engines - configured in the freezer-scheduler - in
the client description when registering with the
freezer-api.

Implements: blueprint centralized-scheduler
Change-Id: I9f639aaead13cd22e5c0ac7361b2e89c7525e91f
2025-02-18 09:08:25 +00:00
Volodymyr Mevsha
3a70336064 Add ability to restrict backup modes, actions, storages, engines
to prevent unexpected workloads and security issues
when running centralized freezer-scheduler

Implements: blueprint centralized-scheduler
Change-Id: I0f3bcd723b210ba66db251bb7449ee3254a05070
2025-02-17 21:40:39 +02:00
Ivan Anfimov
f1497d7449 Small fix for install doc
I think a complete update of the documentation is needed.

Change-Id: I260975c6bedead1072241c70d225bbf1d7a7feeb
2025-02-15 15:03:21 +00:00
Volodymyr Mevsha
df5d71e723 Disable test grouping in stestr
False test failures have been observed with the
current group_regex setting for tests that access
CONF options. However, no flaky test behavior
occurs when running tests using python3 -m
unittest without stestr or when running tests
without parallelization.

Disabling group_regex resolves the
parallelization issue.

Change-Id: I69b9f94f1066ca10c808606341031def435fe79c
2025-02-11 19:13:36 +02:00
Dmitriy Rabotyagov
6256e29e3b [doc] Remove freezer-dr reference
Since freezer-dr has been retired [1] we remove all references to this
part of Freezer service from documentation.

[1] https://review.opendev.org/q/topic:%22freezer/retire_dr%22

Change-Id: Ide1d4ac7ad81e8ac89bdfe039838023ce621878c
2025-01-10 19:13:03 +01:00
Volodymyr Mevsha
7a2a42c5af ReSizeStream: reminder type
1. Change ReSizeStream.reminder type to bytes according to stream data
   type.

2. Add test for ReSizeStream

3. Also update ReSizeStream.read to use self.__next__() instead of
   nonexistent self.next().
   Relates to change id I940841b94789d024d3b9447f96158963fe3e16ee where
   ReSizeStream.next() was renamed to ReSizeStream.__next__().

Story: 2010167
Task: 45860
Change-Id: I5eb70419d2ee795a18f67594e426b942e5390c7b
2024-12-20 12:37:40 +02:00
Zuul
87a3daede5 Merge "Add unit test for test_backup" 2024-12-03 21:48:47 +00:00
Zuul
f7a38e915d Merge "remove unicode literal from code" 2024-12-03 20:08:52 +00:00
Zuul
1187332c7e Merge "Return freezer-base jobs back" 2024-12-03 19:39:54 +00:00
gengchc2
c4e03a3820 Add unit test for test_backup
Change-Id: I762d296303dd1acd2a65d8a53364179452b58aa8
2024-12-03 19:00:09 +00:00
LiZekun
bffaa7d3a4 remove unicode literal from code
All strings are considered as unicode string from Python 3.

This patch drops the explicit unicode literal (u'...')
appearances from the unicode strings.

Change-Id: I2e833d293130aff983f3124853df0bd2ed553def
2024-12-03 18:57:03 +00:00
Zuul
93c2c95871 Merge "Update master for stable/2023.1" 2024-12-03 18:51:46 +00:00
Zuul
73bacd39a8 Merge "Use TOX_CONSTRAINTS_FILE" 2024-12-03 18:01:05 +00:00
e949fce922 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: I0701c78d2d476dc6eac1de6b5f4cefe012645f99
2024-12-03 18:36:36 +01:00
Zuul
70af5976f0 Merge "Add pre-commit" 2024-12-03 17:35:26 +00:00
Zuul
f3e9824bff Merge "Cleanup py27 support" 2024-12-03 17:32:17 +00:00
Dmitriy Rabotyagov
c3af2f5839 Return freezer-base jobs back
Depends-On: https://review.opendev.org/c/openstack/freezer-tempest-plugin/+/900271
Change-Id: Ie3e826a367ef8156aeb7bbd2cd41120ef84a3830
2024-12-03 17:01:48 +00:00
LiZekun
0fe8824a58 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: I76583df98a5d0917e55600a6074f135bcefe1912
2024-12-03 17:38:17 +01:00
LiZekun
c915f2d0d5 Add pre-commit
This is helpful to automate code style checks at runtime.

Change-Id: I098ae1f8c55f6fd973b54e9dcab728e61f82f325
2024-12-03 16:35:55 +00:00
Zuul
f4042940c4 Merge "setup.cfg: Replace dashes with underscores" 2024-12-03 16:07:55 +00:00
wangjiaqi07
f4ba4fef3f Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py

Change-Id: I2757df6a777e03ad1e7ae026163e798dcd88b1d0
2024-12-03 15:35:45 +00:00
Dmitriy Rabotyagov
aa6ce8dfcc Restore CI jobs
Change-Id: I9867097ee2752790d1b0c3226f5ba28ac27d85bc
2024-12-03 12:25:24 +01:00
Zuul
dbf55403be Merge "Remove python-dev from bindep" 2024-11-14 11:23:10 +00:00
Zuul
ecf2935022 Merge "fixed the error when mounting a lvm snapshot in which filesystem inconsistencies exist" 2024-11-12 06:01:50 +00:00
Zuul
89f893ca87 Merge "Replace abc.abstractproperty with property and abc.abstractmethod" 2024-11-12 06:01:49 +00:00
Hervé Beraud
14f186da12 Remove python-dev from bindep
It is no longer supported by jammy and lead us to the following errors with the announce-release job.

```
No package matching 'python-dev' is available
```

Change-Id: Ia8858216a58356a354ed166d5c28fac8d5ff6b97
2024-11-12 05:50:47 +00:00
Zuul
f8f7d1980f Merge "reno: Update master for unmaintained/zed" 2024-07-30 15:36:11 +00:00
Haosheng He
8e55e2a3f4 fixed the error when mounting a lvm snapshot in which filesystem inconsistencies exist
when we create a lvm snapshot with mode mysql, as no sync commands will be performed, so probably the filesystem of the lvm snapshot is inconsistant. We need to use mount options ro and norecovery to omit inconsistency errors in filesystem.

Change-Id: I16abcb7f3c828b454495f3dc94b904ca91943aa7
Closes-Bug:1874421
2024-07-30 15:30:55 +00:00
ljhuang
91d21567d9 Replace abc.abstractproperty with property and abc.abstractmethod
Replace abc.abstractproperty with property and abc.abstractmethod,
as abc.abstractproperty has been deprecated since python3.3[1]

[1]https://docs.python.org/3.8/whatsnew/3.3.html?highlight=deprecated#abc

Change-Id: I7a276c1c5e6719a4b0574e8e1448168650fcd57e
2024-07-30 15:30:48 +00:00
Dmitriy Rabotyagov
735302b27d Remove unsupported distros and disable failing checks
In order to land any changes in current state it makes sense to
disable CI first, as it was not passing for a while now.

With that we can land some changes that will fix Zuul configuration
errors for the project.

Change-Id: Iec3a054fa9aaca4af670e6c5e5ae760d13558f46
2024-06-17 18:09:15 +02:00
24d9e2796e reno: Update master for unmaintained/zed
Update the zed release notes configuration to build from
unmaintained/zed.

Change-Id: Idb4ad0a8202242ff9655ffec9a743cd26eb46e74
2024-05-08 11:10:48 +00:00
Zuul
52f6c03601 Merge "reno: Update master for unmaintained/yoga" 2024-05-02 17:29:22 +00:00
8920bb5ec8 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Id3ed1da7d64fabcf2fbe013cb2f30b2d956cf320
2024-02-06 14:27:12 +00:00
9ed8b2aad8 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: I9e3a8dcf6bc78f69b8602836b61afe52b1d461fc
2023-09-14 01:23:19 +00:00
niuke
f560504c9c 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: I05fb377f8f2a1a7cc8fece4e4c8015fd1b95c271
2023-07-03 14:14:14 +08:00
Zuul
5effc13828 Merge "Fix freezer doc error" 14.0.0.0rc1 14.0.0 15.0.0.0rc1 15.0.0 2023-02-24 09:03:22 +00:00
Zuul
482ce13228 Merge "Update master for stable/zed" 2023-02-24 08:59:21 +00:00
Elod Illes
f6a5996092 Fix deprecated zuul queue syntax and other gate issues
There are multiple issues with the gate. This patch combines the fixes
to unblock the gate.

1. Zuul deprecated (and removed) declaring shared queues at a pipeline
level [1]. This patch fixes the syntax to make the gate work again for
freezer.

2. Zuul CI jobs default nodeset is now Ubuntu 22.04 Jammy Jellyfish,
that does not provide anymore python2 binary, so python-dev needs to be
removed from bindep.txt

3. Latest tox does not allow to list the passed environment variables
in one line separated by space. One option is to list them in separate
lines. Also, external command allowing variable name changed.
basepython as python3 is also conflicts now and it is not necessary.
It looks like tox requires now to install now explicitly all the
requirements listed in requirements.txt.
tox.ini is updated accordingly to the above listed problems.

[1] https://lists.openstack.org/pipermail/openstack-discuss/2022-May/028603.html

Change-Id: I3c95bb48c7fdd0c752db121f1745f64a53b5a0e5
2023-02-23 16:26:54 +01:00
gecong
57211d5f11 Fix freezer doc error
Change-Id: I3da0508b01c65b896bba7b6364e8381bbb931899
2023-02-14 02:36:21 +00:00
3d7b522156 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: Ib43eb4b54ee29e12112ae003763e1ce6f0d474b4
2022-09-13 12:16:07 +00:00
gecong
0d47828fa9 Fix freezer doc error
Change-Id: Ib2484797cf0e8cfb6c6f5084ec6a226818f82c4d
13.0.0.0rc1 13.0.0
2022-08-30 07:55:08 +00:00
ljhuang
3983e13908 Replace deprecated readfp method with read_file
The readfp method has been deprecated since version 3.2 [1].

[1] https://docs.python.org/3/library/configparser.html?highlight=deprecated#configparser.ConfigParser.readfp

Change-Id: I5246aef8e07b949273b6c3cc31435b4756ae9d1a
2022-07-22 17:22:43 +08:00
Zuul
bbb0fea943 Merge "Dropped the python 3.6/3.7 in zed cycle testing runtime" 2022-06-18 04:01:49 +00:00
Cai Hui
111dfafb62 Dropped the python 3.6/3.7 in zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support.

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

Change-Id: If6c82699a088644aa7515021f62b1d08cb6c61fb
2022-05-15 09:11:59 +08:00