Drivers' Data Service Helper
Create a helper in order to allow drivers to send requests to the Data Service.
This helper is a class that encapsulates code from drivers, and provide methods to common Data Service operations, like data copy.
For Data Copy, the following workflow has been designed:
Driver calls helper method copy_share_data, passing as arguments: context, source_share_id, source_
These arguments will be passed to the Data Service, which will allow access to the respective shares, execute the mount command, copy data according to the paths provided, unmount, and deny access.
The Data Service will issue 2 RPC calls to the hosts of the involved shares, passing the share_id, the callback function name and an error constant. The manager will receive the RPC calls, if the error constant is not None, it will throw an error, else, it will call the callback function name which should be implement in the driver, to run any code after copying has completed.
The driver can obtain a reference to the data service helper through kwards in the constructor, similar to how it is done today with private storage.
Blueprint information
- Status:
- Complete
- Approver:
- Ben Swartzlander
- Priority:
- Undefined
- Drafter:
- Rodrigo Barbieri
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Obsolete
- Series goal:
- Proposed for newton
- Implementation:
- Good progress
- Milestone target:
- None
- Started by
- Rodrigo Barbieri
- Completed by
- Goutham Pacha Ravi
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Add Driver Data Service Helper
Addressed by: https:/
W-I-P using PoC driver helper to copy data
Addressed by: https:/
Base Data Copy changes
Addressed by: https:/
Share migration Newton improvements
Addressed by: https:/
Fix Share Migration improper behavior for drivers