lava-docker: backup/restore should handle devices and device-types
Fixed
Description
When doing a backup/restore, the device and device-type files are not saved. This is OK if the remote workers are also stopped and restarted, but if doing a trivial update of the master (e.g. adding a user or a token) it should not be a requirement to restart the remote workers.
Environment
None
Activity
Show:
Kevin Hilman
December 13, 2018 at 3:18 PM
OK, so since any new device-types would be in the database, they are already part of the backup anyways. So, the new feature is just to be sure that device files need to be saved, because they are on the filesystem, not in the db.
Corentin Labbe
December 13, 2018 at 11:03 AM
Note that the patch adds backup of devices files only.
This is because lava-slave does not add "new device-types", it only prevent the master that it uses it.
But this information is in the database and not on the filesystem.
When doing a backup/restore, the device and device-type files are not saved. This is OK if the remote workers are also stopped and restarted, but if doing a trivial update of the master (e.g. adding a user or a token) it should not be a requirement to restart the remote workers.