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
currently, sqlachemy driver of freezer-api only
support api version 2, the patch add v1 version
support
Change-Id: I2608b1152ee3e03409f0321221b1aa8efe3d3d33
Add backup table in v2.
The other tables,api and test will be added in following patch.
ref: https://storyboard.openstack.org/#!/story/2004132
Story: #2004132
Task: #27578
Change-Id: Iff6628fb8de4bf0481f0f73cc70a6d33512516ff
Implements: bp add-mysql-support-for-freezer
Add jobs table in v2.
The other tables,api and test will be added in following patch.
ref: https://storyboard.openstack.org/#!/story/2004132
Story: #2004132
Task: #27578
Change-Id: Id9a182f7b699f8079cdf31ded8c2ca6e7d26078a
Implements: bp add-mysql-support-for-freezer
Add session table in v2.
The other tables,api and test will be added in following patch.
ref: https://storyboard.openstack.org/#!/story/2004132
Story: #2004132
Task: #27578
Change-Id: I178556a0d9f26e0b0dc0c64f02e8fd73a82ea432
Implements: bp add-mysql-support-for-freezer
Add table action and ActionReport in v2.
The other tables,api and test will be added in following patch.
ref: https://storyboard.openstack.org/#!/story/2004132
Story: #2004132
Task: #27578
Change-Id: Idafc9d9c26540735fe8a4ddb24af1f09964d3846
Implements: bp add-mysql-support-for-freezer
config_id is actually client_id, this patch modify it
Story: #2004132
Task: #27578
Change-Id: Ie561b1d2cfbc783bd74af4e0c4d3d13b7b45be22
Implements: bp add-mysql-support-for-freezer
Add clients table in v2.
The other tables,api and test will be added in following patch.
ref: https://storyboard.openstack.org/#!/story/2004132
Story: #2004132
Task: #27578
Change-Id: Ie99059b369b6036de7fa36473651b725a60728c3
Implements: bp add-mysql-support-for-freezer
Add support to oslo.db to be used as a DB driver. The DB driver will be
used with API v2. When it's completely implemented, API V1 will be
deprecated and removed by the end of the cycle. Freezer-api will keep
supporting V2 with Elasticsearch, Sqlalchemy drivers.
This patch implements the follow:
* Abstract Base DB driver to be implemented by each driver
* Base driver; will return only access to the db engine, session
* SqlAlchemy driver;
* ElasticSearch driver;
* Implement both drivers in freezer-manage
Partially-Implements: blueprint oslo-db
Depends-On: I81e417155da48f46dd2113e5745fb3c21c96499f
Depends-On: I2e5724b1f1a75121952e2beb3844d2c489e4df68
Depends-On: Idb4ac050652d1d0107bf3fcd447d7cbedd811809
Depends-On: I81d46c89859752c0cbc21ef02de90db7f19f942c
Change-Id: I93ed1b909f538728a1a9bd5c8b07baf7aeddb705
Implemented Client, Action, Job,
Session, ActionAttachment,
ActionReport, JobAttachment classes
which are associated with database
tables and allows working with them
using orm.
Implements: blueprint oslo-db
Change-Id: I768bb580882b1dd86c5d8553e5fec8e4a44eae33