Project

General

Profile

action #102713

openQA Project - coordination #103947: [saga][epic] Scale up: Future proof backup of o3+osd

openQA Project - coordination #102710: [epic] Improve our backup

Implement proper backups for o3 - list of installed packages

Added by okurz 2 months ago. Updated 27 days ago.

Status:
Resolved
Priority:
Low
Assignee:
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Acceptance criteria

  • AC1: List of installed packages is backed up for reference

Related issues

Copied from openQA Infrastructure - action #44078: Implement proper backups for o3 size:MResolved2018-11-20

History

#1 Updated by okurz 2 months ago

  • Copied from action #44078: Implement proper backups for o3 size:M added

#2 Updated by okurz 2 months ago

  • Status changed from In Progress to Feedback

#3 Updated by cdywan about 1 month ago

okurz wrote:

https://gitlab.suse.de/qa-sle/backup-server-salt/-/merge_requests/5

This error doesn't seem to fail salt:

[DEBUG   ] Failed to import module pip:
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/salt/loader.py", line 1836, in _load_module
    mod = self.run(spec.loader.load_module)
  File "/usr/lib/python3.8/site-packages/salt/loader.py", line 2276, in run
    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/salt/loader.py", line 2291, in _run_as
    return _func_or_method(*args, **kwargs)
  File "<frozen importlib._bootstrap_external>", line 522, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 1022, in load_module
  File "<frozen importlib._bootstrap_external>", line 847, in load_module
  File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 702, in _load
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.8/site-packages/salt/modules/pip.py", line 87, in <module>
    import pkg_resources  # pylint: disable=3rd-party-module-not-gated
ModuleNotFoundError: No module named 'pkg_resources'

#4 Updated by okurz about 1 month ago

You might be able to fix that by installing python-setuptools in the container

Anyway, MR is merged and I deployed the changes manually onto backup.qa.suse.de and triggered rsnapshot alpha in a screen session. Now this might take some time.

#5 Updated by cdywan about 1 month ago

okurz wrote:

You might be able to fix that by installing python-setuptools in the container

Anyway, MR is merged and I deployed the changes manually onto backup.qa.suse.de and triggered rsnapshot alpha in a screen session. Now this might take some time.

zypper in python3-setuptools seems to resolve the error message

#6 Updated by okurz 27 days ago

  • Status changed from Feedback to Resolved

MR merged.

backup-vm:/home/rsnapshot/alpha.0/openqa.opensuse.org/var/log/zypp/history exists and has a current, valid content

Also available in: Atom PDF