Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package installation on debian bullseye requires backport for funtional borgmatic #131

Open
dirks opened this issue May 26, 2023 · 0 comments

Comments

@dirks
Copy link

dirks commented May 26, 2023

If borg_install_method: package on debian bullseye, borgmatic 1.5.12-2 is installed. Running validate-borgmatic-config with the otherwise unchanged settings from molecule/default scenario errors with:

Traceback (most recent call last):
  File "/usr/bin/validate-borgmatic-config", line 33, in <module>
    sys.exit(load_entry_point('borgmatic==1.5.13.dev0', 'console_scripts', 'validate-borgmatic-config')())
  File "/usr/lib/python3/dist-packages/borgmatic/commands/validate_config.py", line 45, in main
    validate.parse_configuration(config_filename, validate.schema_filename())
  File "/usr/lib/python3/dist-packages/borgmatic/config/validate.py", line 110, in parse_configuration
    parsed_result = validator.validate(raise_exception=False)
  File "/usr/lib/python3/dist-packages/pykwalify/core.py", line 183, in validate
    self._start_validate(self.source)
  File "/usr/lib/python3/dist-packages/pykwalify/core.py", line 230, in _start_validate
    self._validate(value, root_rule, path, done)
  File "/usr/lib/python3/dist-packages/pykwalify/core.py", line 264, in _validate
    self._validate_mapping(value, rule, path, done=None)
  File "/usr/lib/python3/dist-packages/pykwalify/core.py", line 604, in _validate_mapping
    self._validate(v, r, u"{0}/{1}".format(path, k), done)
  File "/usr/lib/python3/dist-packages/pykwalify/core.py", line 264, in _validate
    self._validate_mapping(value, rule, path, done=None)
  File "/usr/lib/python3/dist-packages/pykwalify/core.py", line 604, in _validate_mapping
    self._validate(v, r, u"{0}/{1}".format(path, k), done)
  File "/usr/lib/python3/dist-packages/pykwalify/core.py", line 262, in _validate
    self._validate_sequence(value, rule, path, done=None)
  File "/usr/lib/python3/dist-packages/pykwalify/core.py", line 439, in _validate_sequence
    if val in table:
TypeError: unhashable type: 'dict'

I guess this is due to one of the breaking changes of borgmatic from 1.5.x to 1.7.x (maybe 1.6.0 #381?).

A possible workaround would be to add borg_require_backports: "{{ ansible_distribution == 'Debian' and ansible_distribution_major_version == '11' }}" to defaults.yml and expand the package installation tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant