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
pkgrepo.managed does not disable a yum repo with "disabled: True" #33536
Comments
@murzick I am able to replicate this on 2015.8.10 as well. Looks like the issue is here in states/pkgrepo.py:
Looks like it is actually changing disabled to enabled. Then if enabled is set it sets disabled=False. Looks like we need to get this fixed up. Thanks! |
How could you release Boron with this bug?! |
…abled: True" - This fixes the pkgrepo state and yumpkg module for EL systems. The state was not working with enabled neither with disabled fields. - Fixes the situation when the "disabled" was saved into the repo file. Internally works with "disabled" but saves "enabled".
#33536 pkgrepo.managed does not disable a yum repo with "disabled: True"
Should be fixed by the above merge request (#35055). It would be great if someone could verify. |
@galet i just tested on the head of 2016.3 and its working for me. I'll go ahead and close this issue. @stardust85 apologies for the bug. I think the best way to ensure this does not happen again is to write a test. I will label this as needstestcase and add an issue in our qa repo to get a test written for this issue. |
Let's give users a little more time to update their states given the issues found in saltstack#33536 that were fixed recently by saltstack#35055.
Let's give users a little more time to update their states given the issues found in saltstack#33536 that were fixed recently by saltstack#35055.
I am running Salt-Minion 2016.3.3 CentOS7 its still or is now adding |
@damon-atkins would you mind opening a separate issue for this with the exact state file/command you are using please? Thanks Looks like i forgot to close this issue earlier. So i'll close this and we will track what you are reporting in a separate issue. please mention this issue in the issue report. |
pkgrepo.managed does not disable a yum repo with "disabled: True"
The result is a /etc/yum.repos/percona.repo as follows:
From minion log:
2016-05-26 07:57:59,586 [salt.state ][INFO ][27072] Running state [percona] at time 07:57:59.586271
2016-05-26 07:57:59,587 [salt.state ][INFO ][27072] Executing state pkgrepo.managed for percona
2016-05-26 07:57:59,588 [py.warnings ][WARNING ][27072] /usr/lib/python2.7/site-packages/salt/states/pkgrepo.py:310: DeprecationWarning: The
enabled
argument has been deprecated in favor ofdisabled
.2016-05-26 07:57:59,637 [salt.state ][INFO ][27072] {'repo': 'percona'}
2016-05-26 07:57:59,637 [salt.state ][INFO ][27072] Completed state [percona] at time 07:57:59.637187 duration_in_ms=50.916
Salt on master and minion is version 2016.3.0. Issue is also reproducible on previous 2015.8.10 version.
The text was updated successfully, but these errors were encountered: