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

bug: programmatically-irremovable clutter left in user remote.yaml after global remotes are removed #1948

Open
preminger opened this issue Jul 26, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@preminger
Copy link
Contributor

preminger commented Jul 26, 2023

Version of Singularity

singularity-ce version 3.11.0+526-g0cd5affc0 (checked out from main)

Describe the bug

After certain sequences of singularity remote / sudo singularity remote commands, there is "clutter" left in the user's remote.yaml file that cannot be removed by using the singularity CLI, and can only be removed by manually editing the remote.yaml file.

To Reproduce

sudo singularity remote add --global test https://test.example.com
singularity remote use SylabsCloud
singularity remote list
sudo singularity remote remove --global test

Expected behavior

$ singularity remote list

NAME         URI               DEFAULT?  GLOBAL?  EXCLUSIVE?  SECURE?
SylabsCloud  cloud.sylabs.io   ✓         ✓                    ✓

Observed behavior

$ singularity remote list

NAME         URI               DEFAULT?  GLOBAL?  EXCLUSIVE?  SECURE?
SylabsCloud  cloud.sylabs.io   ✓         ✓                    ✓
test         test.example.com            ✓                    ✓

Additionally, the "dangling" remote now cannot be removed using the CLI at the user level nor at the system level:

$ singularity remote remove test
FATAL:   test is global and can't be removed

$ sudo singularity remote remove --global test
FATAL:   test is not a remote

It can only be removed by manually editing the user's ~/.singularity/remote.yaml file.

OS / Linux Distribution

$ cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="9.2 (Plow)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="9.2"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Red Hat Enterprise Linux 9.2 (Plow)"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_BUGZILLA_PRODUCT_VERSION=9.2
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.2"

Installation Method

Source (from main).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment