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

[2017.7] Merge forward from 2016.11 to 2017.7 #43371

Merged
merged 18 commits into from Sep 8, 2017

Conversation

rallytime
Copy link
Contributor

Conflicts:

  • salt/key.py
  • salt/modules/yumpkg.py

junovitch and others added 18 commits August 13, 2017 16:24
- Drop preserve_minions as a a condition used in the check_minion_cache()
  logic test. This should be more in line with the intent of the "Optionally,
  pass in a list of minions which should have their caches preserved. To
  preserve all caches, set __opts__['preserve_minion_cache']" comment
  documented in key.py.
- Add --preserve_minions as an optional CLI option to salt-key. This will
  allow the user to optionally preserve caches independently of the
  preserve_minion_cache option. Option does not override config file.
- This effectively reverts commit 661f568
  which introduced the regression with preserve_minion_cache set to True to
  fix a regression when preserve_minion_cache is set to False. Prior to that
  commit, the preserve_minion_cache option was completely ignored when set to
  True and when set to False cache directories were still preserved.
- Functional testing (three minions 'minion1', 'oldminion', and 'minion2')
  /etc/salt/master - preserve_minion_cache: False
  # salt-key -d minion1
    PASS: deletes 'minion1', deletes stale 'oldminion', preserve active 'minion2'
  # salt-key -d minion1 --preserve-minions=true
    PASS: preserves minion1 as requested, deletes oldminion as it was not in the
    match from the delete_key() comment "To preserve the master caches of
    minions who are matched", preserves active minion2
  /etc/salt/master - preserve_minion_cache: True
  # salt-key -d minion1
    PASS:  no directories deleted per config option
  # salt-key -d minion1 --preserve-minions=false
    PASS:  no directories deleted per config option, does not override config
Back-port various mention bot settings to 2016.11
ipaddr_start ipaddr_end for el7
As of Fedora 26, dnf interprets arguments after "repository-packages" as
arguments to the repository-package subcommand, which breaks
pkg.list_repo_pkgs on that Fedora release. Moving this argument earlier
in the command allows pkg.list_repo_pkgs to work.
It looks like the configparser in Python 3 does not insert the
`__name__` key in each section. Popping it without a default causes a
KeyError on Python 3. This commit fixes that KeyError.
…ifications

Update release branch section with a few more details
…serve-minion-cache-2016.11

Fix 'preserve_minion_cache: True' functionality (fixes saltstack#35840)
Conflicts:
  - salt/key.py
  - salt/modules/yumpkg.py
@rallytime rallytime merged commit 9b27473 into saltstack:2017.7 Sep 8, 2017
@rallytime rallytime deleted the merge-2017.7 branch September 8, 2017 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants