Revert "Merge pull request #1983 from Dudek-AMS/develop" #1995
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This reverts commit e05d705, reversing changes made to 59af6ad.
What does this PR do?
I spoke a bit about what I think happened here, but in short:
The two lines of link changes in #1983 caused a regression by updating the legacy repository installation codepath with links to the new, incompatible onedir file hierarchy.
http://repo.saltproject.io/py3/debian/11/amd64/latest/salt-archive-keyring.gpg
http://repo.saltproject.io/salt/py3/debian/11/amd64/SALT-PROJECT-GPG-PUBKEY-2023.gpg
http://repo.saltproject.io/py3/debian11/amd64/latest/SALT-PROJECT-GPG-PUBKEY-2023.gpg
Subsequently, the release of v2024.04.03 has broken all the Debian 10/11 VM provisioning at my workplace (currently pinned to salt version 3004.2).
I've chosen to do a simple revert since the original PR changed code that was unrelated to the quoted issue.
__install_saltstack_debian_repository
was updated instead of__install_saltstack_debian_onedir_repository
, but the former has no ability to generate the problematichttps://repo.saltproject.io/salt/py3/debian/12/amd64/latest/salt-archive-keyring.gpg
link they were referencing without a custom repo URL being passed in with-R
.What was more likely is that the latter function attempts to download from legacy before trying the onedir repository before continuing to the
SALT-PROJECT-GPG-PUBKEY-2023.gpg
case, and the author was just seeing that uncaptured output go to STDERR and assumed it was a failure.This is supported since we never actually replicated their reported issue and they never provided evidence on the bootstrap process failing. In fact, right after the error line in their terminal we see "Hit: ...", indicating that execution continued. And looking at #1988 we can see exactly that, resulting in a successful bootstrapping. The issue there really being that the script should more clearly explain that it's a soft failure and that it's moving on to a different method OR send that initial command's STDERR to the void.
What issues does this PR fix or reference?
Resolves #1986 (closed, but not yet addressed).
Previous Behavior
All legacy repository (non-onedir) repository installations on Debian fail due to an invalid URL used to download the GPG key.
New Behavior
It works.
This does NOT address the issue described by the original PR or #1988. The STDERR line is still generated.