You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While implementing unit tests for PR #229 I noticed that when the CreateTarball() routine creates the var/adm/backup/system-upgrade directory path, in which it will store the backup tarball and restore script, it is specifying no permissions, so the resulting directory path can only be accessed with root privileges.
Given that this code will normally be run as root, this hasn't been a problem up to now, but causes problems for the unit testing.
Using a reasonable permission, e.g. 0o700, that permits at least user access seems like a better approach.
The text was updated successfully, but these errors were encountered:
The Distribution Migration System (DMS) implements a non-interactive
fully automated offline migration of systems by booting into a ISO
image that runs through the migration. In some cases, if a migration
from one product stream to another product stream fails, the normal
rollback handling doesn't always restore the products state correctly.
To address this we should include the /etc/products.d contents in the
backup that is created and restored.
Add changelog entry for upcoming v1.9.0 release stream, including the
bug tracking id.
Add unit test for the zypper Backup and Restore routines.
Also fix two bugs found while developing the unit test:
* CreateTarball()'s check for potential tar arguments incorrectly
checked under the local file system hierarchy, rather than under
the specified root hierarchy, meaning it could skip backing up
entries that might exist under the root if they didn't exist
locally.
* The /var/adm/backup/system-upgrade directory created under the
specified root hierarchy, and missing intermediary directories,
were being created with no access permissions, meaning that only
a privileged superuser could access them. In reality migrations
are run as root so it didn't impact customer usage, but it did
cause problems for the unit tests running as a non-privileged
user.
Fixes: #231, #232
Co-authored-by: Felix Schnizlein <[email protected]>
While implementing unit tests for PR #229 I noticed that when the CreateTarball() routine creates the var/adm/backup/system-upgrade directory path, in which it will store the backup tarball and restore script, it is specifying no permissions, so the resulting directory path can only be accessed with root privileges.
Given that this code will normally be run as root, this hasn't been a problem up to now, but causes problems for the unit testing.
Using a reasonable permission, e.g. 0o700, that permits at least user access seems like a better approach.
The text was updated successfully, but these errors were encountered: