-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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] pkgrepo.managed
always trigger changes if url ends with /
#60907
Comments
note: before migration we've using python2 + salt 3000.3 |
I'm able to replicate this. It was also working on python3 + salt 3000.3 and now is broken. Git bisect shows this commit 6df3ca4 as the first one to break things. |
I think you are correct. It only affects some of repositories I'm setting up with saltstack. After having a look on this commit, I can confirm that problematic repositories include |
pkgrepo.managed
always trigger changes if template is used (py3 only)pkgrepo.managed
always trigger changes if url ends with /
Hi, The commit mentionned above says it stopped stripping the trailing slash to make sure Is someone working on a fix ? I am willing to help. |
@nchauvat IMO, if repository specified in salt state either has or has not trailing slash, |
@marek-obuchowicz the thing is that I am not writing the repository url. I came to this bug from saltstack-formulas/salt-formula#533 As stated in that issue, the Salt Formula tries to add a source list file on Debian systems, but the output is different when The current issue #60907 is thought to be related to the above. |
Description
After migrating to py3, I see that salt always wants to update package repos, if their definition contains templated values. Repositories are already setup.
Setup
Master/minion running salt 3003.3, Debian 9 VMs in AWS
Steps to Reproduce the behavior
then run
state.apply
twiceExpected behavior
First run should add two package repositories. Second run should not detect any changes.
Screenshots
After applying state once, second (and each next) run still wants to change php1 repo:
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: