File "/home/zuul/src/opendev.org/openstack/freezer-api/freezer_api/common/exceptions.py", line 73, in handle
status=falcon.status.HTTP_404,
AttributeError: module 'falcon' has no attribute 'status'
Change-Id: I3b77a5a3799f066ef189862e75de24b4c25c0569
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.
[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html
Change-Id: I066488c47e1bb6502b27b8677988113f66b9b09b
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
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I749d6ebdef9163ffa3135778a4accbb8be5ba9e3
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
We don't support Python 2 anymore so we don't need this
compatibility library.
Convert six usage to Python3 code.
Change-Id: Iadf47e805c8d0dd32239456e69d8fdc78f77f30d
In falcon 2.0.0, process_response is changed as follows:
def process_response(self, req, resp, resource, req_succeeded)
In falcon 1.4.1, process_response is changed as follows:
def process_response(self, req, resp, resource)
Change-Id: I737ec903f22d310b8335ad47505045b6a1ecc667
The 2.0.0 release of falcon changed the default values for two request
query parsing options that would cause failures due to unexpected
results. This sets those options to their previous defaults to maintain
compatibility across 2.0.0 and pre-2.0.0 versions of the package.
Lower constraint version raised to 1.1.0 where the options were
introduced.
There are additional integration test failures with Falcon 2.0.0 that
were due to changes in the subscription URL path.
Change-Id: I4aa18510cc11827c2ef478bf4ca6bd1baa9878e4
In the requierment.txt, falcon version is required to be greater than 1.0 ("falcon>=1.0"),
So remove code that supports older version falcon.
Change-Id: I803397a6b0f0269d1548718aa8826f0a73521405
oslo project provide jsonutils, and the others project use it now,
this PS to update json moudule to oslo jsonutils for consistency.
Change-Id: Ifbf7b16e7c81dc0f85b07b77599ab4e404f2cdd4
1.In _validate_opts:
The following code is True forever, We will delete it.
2. Add unit test for ca_certs in _validate_opts.
Change-Id: I25a9a4aaae6fd5677d07d376f66188dc0b92bc3b