stackhpc / ansible-role-openhpc

Ansible role for OpenHPC
Apache License 2.0
44 stars 15 forks source link

Fix singularity/apptainer clash #165

Closed sjpb closed 8 months ago

sjpb commented 8 months ago

Prevent install of "weak dependencies" of openhpc packages. This avoids a dependency clash between singularity-ce (which was installed as a recommendation of the openhpc-base-compute package and apptainer. Presumably this is occuring now due to updates to singularity-ce/apptainer dependencies.

Note systems will now only have apptainer, not also singularity-ce.

Error was:

    openstack.openhpc: task path: /home/runner/work/ansible-slurm-appliance/ansible-slurm-appliance/ansible/roles/stackhpc.openhpc/tasks/install.yml:48
    openstack.openhpc: fatal: [default]: FAILED! => {
    openstack.openhpc:     "changed": false,
    openstack.openhpc:     "failures": [],
    openstack.openhpc:     "rc": 1,
    openstack.openhpc:     "results": []
    openstack.openhpc: }
    openstack.openhpc: 
    openstack.openhpc: MSG:
    openstack.openhpc: 
    openstack.openhpc: Depsolve Error occurred: 
    openstack.openhpc:  Problem: problem with installed package singularity-ce-3.11.5-1.el8.x86_64
    openstack.openhpc:   - package singularity-ce-3.11.5-1.el8.x86_64 conflicts with sif-runtime provided by apptainer-1.2.4-1.el8.x86_64
    openstack.openhpc:   - package apptainer-1.2.4-1.el8.x86_64 conflicts with sif-runtime provided by singularity-ce-3.11.5-1.el8.x86_64
    openstack.openhpc:   - conflicting requests

See https://github.com/openhpc/ohpc/issues/1889 for additional discussion.