Skip to content

sops_encrypt fails on OpenSUSE Leap 15.6 and Tumbleweed: installation source cannot be determined #230

@gdrosos

Description

@gdrosos
SUMMARY

As part of a cross-operating system testing campaign for Ansible modules, we are running integration tests for sops_encrypt module across multiple Linux distributions. While the task community.sops.install : Ensure that something was detected is skipped on all platforms (Ubuntu, Debian, Fedora, Alpine, Arch Linux, RedHat, Rocky), it consistently fails on OpenSUSE Leap 15.6 and on OpenSUSE Tumbleweed (latest release).

This may be due to the install role not including detection logic for OpenSUSE-based distributions.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

community.sops.sops_encrypt

ANSIBLE VERSION
ansible [core 2.18.3]
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /venv3.12/lib/python3.12/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /venv3.12/bin/ansible
  python version = 3.12.3 (main, Feb  4 2025, 14:48:35) [GCC 13.3.0] (/venv3.12/bin/python)
  jinja version = 3.1.6
  libyaml = True

ansible-test version 2.18.3

COLLECTION VERSION
devel
OS / ENVIRONMENT

Fails on target node: OpenSUSE Leap 15.6 and on OpenSuse Tumbleweed (containerized test environment)
Skipped on: Ubuntu, Debian, Fedora, Alpine, Arch Linux, RedHat, Rocky

STEPS TO REPRODUCE

On OpenSUSE Leap 15.6 (managed node, can use docker image to reproduce), run the integration tests of sops_encrypt

ansible-test integration sops_encrypt -vvv   --allow-destructive --requirements --allow-root --continue-on-error
EXPECTED RESULTS
TASK [community.sops.install : Ensure that something was detected] *************
task path: /root/.ansible/collections/ansible_collections/community/sops/roles/install/tasks/detect_source.yml:20
skipping: [testhost] => {
    "changed": false,
    "false_condition": "_community_sops_install_effective_sops_source == 'auto'",
    "skip_reason": "Conditional result was False"
}
ACTUAL RESULTS

Using extra verbosity (-vvv) in ansible-test:

TASK [community.sops.install : Ensure that something was detected] *************
task path: /root/.ansible/collections/ansible_collections/community/sops/roles/install/tasks/detect_source.yml:20
fatal: [testhost]: FAILED! => {
    "changed": false,
    "msg": "Was not able to determine installation source for SOPS latest for openSUSE Leap 15.6. Please open an issue in https://github.com/ansible-collections/community.sops/issues if you think this should work."
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions