Copied almost wholesale from Nova. We're going to use this as part of
the SQLAlchemy 2.0 preparation. We enable those warnings and clean up
the tox file in preparation.
Change-Id: I869d9b110264d69301bf43ae579a4749adeba4f6
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Remove hacking and friends from lower-constraints, they are not needed
for installation.
Change-Id: Ibc3b00aca7332f12b58893213acfc88749b74aa1
Freezer-api is not working as it is expected, returning NULL value
for src_file option in freezer_action's json returned from API.
In other words when user define action via freezer client and define
valid and WORKING action JSON with option path_to_backup
(src_file is not supported by freezer-agent anymore).
In DB we can see backup_metadata is filled correctly,
freezer-scheduler/freezer-agent working correctly as they are reading
backup_metadata. Problem is that API is still returning json with
src_file set tu NULL because src_file is not present in backup_metada,
therefore is not filled in src_file column in action table.
Src_file option was changed to path_to_backup in freezer git repository
below, but API was never changed, this patch is fixing this behaviour.
Freezer's change :
c7f71ff70b
Doc changes in freezer:
https://review.opendev.org/#/c/705003/
Change-Id: I9e74910bd0ff4ad18b830c26ce90770b0dfa107b
1. Use iter() create a iter object
2. Add 'freezer_api.api.v2.sessions' module's unit test cases.
3. Add 'project_id' key-value to 'fake_session_0/_1' dicts.
Change-Id: Icf32feefa6c49314d5ae17433f4b6e6d19c33027
Story: 2004070
Task: 27091
1. Add 'backup' module's unit test cases of v2 interface
2.Add "project_id" key-value to 'fake_data_0_wrapped_backup_metadata' dict.
Change-Id: I9432297db016fba69eb375a99decc0ee7f084b0d
1. Add unit test cases for v2 interface of 'action'.
2. Add "project_id" key-value to 'fake_action_0' and 'fake_action_1' dicts, as unit test datas.
Change-Id: Iabd48cacbd4c9c19c454f4dcf4d86cd5017ec0b9
This commit migrate all client policies into code [1] and
also remove policy.json usage file completely.
Like oslo.config, with oslo.policy, we can define all of
default rules in code base and only change some rules
via policy file. Another thing that we should use yaml
format instead of json format.
[1] https://governance.openstack.org/tc/goals/queens/policy-in-code.html
Co-authored-By: Dai Dang-Van <daidv@vn.fujitsu.com>
Change-Id: I7c7fd83aa2516c053e38d7598cf79e63401f7519
This patch adds full pep8 check support. All code style problems
is fixed.
Closes-Bug: #1646103
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Change-Id: I1fce70a1b4e4c70379fc3876f85170b06a044059
Current backup_id field may contain unsupported
characters for HTTP requests. It causes problems with
/v1/backups/{backup_id} requests. Proposed solution:
use UUID as backup_id instead of
'container_hostname_backupname_timestamp_level' pattern
for define backup_id.
Change-Id: I38e2ed52ab375ea0705cdb88f82e5e66cef5cd39
Closes-Bug: #1645110
Closes-Bug: #1618030
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Moving freezer-api to oslo.policy and modified freezer context
to be injected through paste configuration
Change-Id: I20b9ac48cf3419015ff54f6c57de5f00c8e6d5f2
Implements: blueprint switch-freezer-api-oslo-policy
Align to the other Openstack project and
use testr instead of pytest
Includes:
- pylint and pep8 fixes.
- py34 compliance
- requirements updated
- updated path to dsvm gate job
Change-Id: I10a5ea8d581029eba8f3ab5e016a1dd1919fa117
Depends-On: I4f9050cd551e87d2e398b6f94dc904154d0b1b13