Skip to content

[BUG] Archived salt repo 2017.7 points to the wrong repo URL #57885

Closed

Description

@warpnine

Description
When installing https://archive.repo.saltstack.com/yum/redhat/salt-repo-2017.7.el7.noarch.rpm it has the wrong URL in the file etc/yum.repos.d/salt-2017.7.repo that is created by installing this package.

The URL points to repo.saltstack.com instead of the correct archive.repo.saltstack.com

Setup
Standard CentOS 7 system with Salt 2017

Steps to Reproduce the behavior
yum -y install https://archive.repo.saltstack.com/yum/redhat/salt-repo-2017.7.el7.noarch.rpm
yum -y install salt-minion
Fails to install because it points the wrong repo URL

Expected behavior
The repo URL should be correct and it would be able to install the salt packages.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions Report
Salt 2017.7

Activity

  1. added
    bug
    on Jul 7, 2020
  2. added this to the Blocked milestone on Jul 8, 2020
  3. s0undt3ch commented on Jul 8, 2020

    @s0undt3ch
    Contributor

    @dmurphy18 could you please triage this issue?

  4. modified the milestones: Blocked, Follow up on Jul 10, 2020
  5. bryceml commented on Jul 10, 2020

    @bryceml
    Contributor

    We decided in the SEP that we would not update those since it would take too much time for something that was already out of support.

    We have 2 main options going forward I think. We could leave them up with the expectation that people sed them afterward with something like

    sed -i 's/repo.saltstack.com/archive.repo.saltstack.com/g' /etc/yum.repos.d/saltstack*.repo

    We would have to document that somewhere probably.

    Option 2 is that we could just delete them when we move the relevant packages to archive.repo.saltstack.com so they don't confuse people. Afterall, it's just putting down a .repo file and the gpg key which wouldn't be hard for people to script. You can even put a url to the gpg key in the .repo file so that's just one file you have to put down. See pin to minor release here for how that would be done: https://repo.saltstack.com/#rhel

    I'm totally fine with either of those, whatever the community wants.

  6. self-assigned this
    on Jul 10, 2020
  7. sagetherage commented on Jul 10, 2020

    @sagetherage
    Contributor

    Assigning myself for follow up, here, yes, we likely need some sort of documentation/notificaiton to the user. I will follow up here next week on next steps.

  8. ScriptAutomate commented on Jul 13, 2020

    @ScriptAutomate
    Contributor

    My PR #57756 may be related, when it comes to a documentation solution. It hasn't been accepted yet. If we want to make additional changes to the PR, when it comes to the install guides (such as post-install commands), I can expand the PR if needed.

  9. sagetherage commented on Jul 20, 2020

    @sagetherage
    Contributor

    yes, @ScriptAutomate let's add at least some text about the work-around:

    We could leave them up with the expectation that people sed them afterward with something like

    sed -i 's/repo.saltstack.com/archive.repo.saltstack.com/g' /etc/yum.repos.d/saltstack*.repo

  10. ScriptAutomate commented on Jul 21, 2020

    @ScriptAutomate
    Contributor

    @sagetherage I have included additional information in the following installation docs, in #57756 :

    • Ubuntu
    • Debian
    • CentOS/RHEL/AmazonLinux
  11. added
    doc-correction
    documentation
    Magnesium
    severity-critical
    on Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Magnesiumbugdoc-correctiondocumentationseverity-critical

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions