Task #6899
closedTask #6869: Challenge OpenStack and OpenNebula with ucloud
Task #6897: Create ucloud-image service
Create ucloud-file-scan service
50%
Description
Description¶
- Has a base directory (like /var/www/
- to be injected by enviroment
- Below this directory exists subdirectories PER user
- Like /var/www/nico
Objective¶
The ucloud-file-scan service scans the base path every x minutes (we might be able to trigger this by cron job) and creates etcd entries.
Users can list their files by ucloud-cli. Files are created off band with sftp.
How it interacts with the other systems¶
- Found files are created in etcd below /v1/files/$UUID
- Each file gets a random UUID
- Json contains at least:
- owner
- some checksum (sha512sum maybe)
- date created
- size (in bytes)
How to extend ucloud-api and ucloud-cli¶
Support the following command(s)
- ucloud-cli files-list
Upload and delete is NOT supported by the CLI, but will be using sftp.
Note: we COULD wrap sftp for the user into
- ucloud-cli files-upload file [file...]
which in turn calls
- sftp ... files.datacenterlight.ch
(this is earliest for v2)
Improving scanning speed¶
In theory we can also use inotify and events for rescanning. However if we miss an event, we miss the file/image upload. Thus we need to regularly scan, but we can ALSO have an event based system as well.
(this is earliest for v3)
Updated by Ahmed Bilal over 5 years ago
Updated by Ahmed Bilal over 5 years ago
- Status changed from In Progress to Feedback
Updated by Ahmed Bilal over 5 years ago
ucloud user list --files
to list all user filesucloud user list --vms
to list all vms files
Updated by Ahmed Bilal over 5 years ago
- Status changed from Feedback to In Progress
Updated by Nico Schottelius 12 months ago
- Status changed from In Progress to Rejected