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

[2016.3] Merge forward from 2015.8 to 2016.3 #34073

Merged
merged 50 commits into from
Jun 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
4f11c16
salt/modules/aptpkg.py: add fromrepo support to list_upgrades
terminalmage Jun 8, 2016
b40fc9b
salt/modules/brew.py: add kwargs to list_upgrades
terminalmage Jun 8, 2016
76143b7
salt/modules/ebuild.py: add kwargs to list_upgrades
terminalmage Jun 8, 2016
46e5a52
salt/modules/macports.py: add kwargs to list_upgrades
terminalmage Jun 8, 2016
5179dbc
salt/modules/pacman.py: add kwargs to list_upgrades
terminalmage Jun 8, 2016
6e89a8b
salt/modules/pkgutil.py: add kwargs to list_upgrades
terminalmage Jun 8, 2016
bf5505f
salt/modules/solarisips.py: add kwargs to list_upgrades
terminalmage Jun 8, 2016
35fbb06
salt/modules/win_pkg.py: add kwargs to list_upgrades
terminalmage Jun 8, 2016
de90b35
salt/modules/zypper.py: add fromrepo support to list_upgrades
terminalmage Jun 8, 2016
ea726d1
pkg.uptodate: Pass kwargs to pkg.list_upgrades
terminalmage Jun 8, 2016
638ccf5
Work around upstream cherrypy bug
Jun 6, 2016
cb88960
Merge pull request #33904 from rallytime/bp-33806
Jun 10, 2016
6b98e8a
Merge pull request #33880 from terminalmage/zh744
Jun 10, 2016
cf6281b
Add loader.utils() example to calling minion_mods (#33953)
whiteinge Jun 11, 2016
9f3e18b
modules.gem int tests: (un)install a non-core gem
jfindlay Jun 10, 2016
2eb633c
modules.gem int tests: only check known installed gems
jfindlay Jun 13, 2016
6080846
acl.ClientACL: add unit tests (#33684)
jfindlay Jun 13, 2016
aedc4e1
states.disk: add documentation
jfindlay Jun 13, 2016
82c77b5
states.disk.status: validate percent values
jfindlay Jun 13, 2016
d8c2f3e
Clarify the `account_exists` parameter
twangboy Jun 13, 2016
6cbe31e
states.disk: rewrite unit tests
jfindlay Jun 9, 2016
3e7ab8c
Write some more simple batch command tests
Jun 13, 2016
b20213f
Adds links to several current Salt-related projects
jacobhammons Jun 13, 2016
b057be0
Fix typo, more documentation
twangboy Jun 14, 2016
fa5efb6
Merge pull request #33985 from rallytime/more-batch-tests
Jun 14, 2016
53baae6
Merge pull request #33984 from jfindlay/disk_capacity
Jun 14, 2016
9bd2317
Merge pull request #33951 from jfindlay/gem_tests
Jun 14, 2016
444c157
Merge pull request #33983 from twangboy/fix_docs_join_domain
Jun 14, 2016
c4dab6a
Merge pull request #33990 from jacobhammons/community-projects
Jun 14, 2016
4c7fac0
Remove loader test for pam module (#34002)
lorengordon Jun 14, 2016
f758e42
Fix incorrectly written test (#34000)
Jun 14, 2016
871f796
Lint fix for #34000 (#34005)
Jun 14, 2016
7d940ae
states.file: fix indentation in YAML examples (#34003)
vutny Jun 14, 2016
06963e0
Save an entire minion cache traversal on each master pub
Jun 10, 2016
4e7f35f
Fix loop over cache in auth checking!
Jun 10, 2016
78befde
Add note to release notes about returner minions kwarg change
Jun 14, 2016
a4660d1
Warn when custom returners don't have minions kwarg in save_load
Jun 14, 2016
77f44f3
Merge branch '2015.5' into '2015.8'
Jun 14, 2016
5b5eae4
Merge pull request #34018 from rallytime/merge-2015.8
Jun 14, 2016
e25dba4
More YAML indentation fixes in state module examples (#34030)
vutny Jun 15, 2016
f9bfcde
Always make changes to minion config if set (#34020)
twangboy Jun 15, 2016
43b4a12
Updated latest release version
jacobhammons Jun 15, 2016
8ba117c
Merge pull request #34045 from jacobhammons/release-prev
jacobhammons Jun 15, 2016
715e7af
Ensure only one fileserver update in a masterless run
terminalmage Jun 15, 2016
bca4371
Fixed a bug in the consul.py module that was preventing services (#34…
tegbert Jun 16, 2016
dd03024
Merge pull request #34011 from rallytime/bp-33948-2015.8
thatch45 Jun 16, 2016
60561ac
Add a test to check for disconnected minion messaging
Jun 16, 2016
3119693
Merge pull request #34048 from terminalmage/issue30100
thatch45 Jun 16, 2016
1b76de1
Merge pull request #34069 from rallytime/test-minion-return-message
thatch45 Jun 16, 2016
f6bfaed
Merge branch '2015.8' into '2016.3'
Jun 16, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions doc/topics/releases/2015.8.11.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
============================
Salt 2015.8.11 Release Notes
============================

Version 2015.8.11 is a bugfix release for :doc:`2015.8.0
</topics/releases/2015.8.0>`.

Returner Changes
================

- Any returner which implements a ``save_load`` function is now required to
accept a ``minions`` keyword argument. All returners which ship with Salt
have been modified to do so.
7 changes: 6 additions & 1 deletion salt/fileserver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,12 @@ def __init__(self, opts, **kwargs):
self.kwargs = kwargs
self.fs = Fileserver(self.opts)
self.fs.init()
self.fs.update()
if self.opts.get('file_client', 'remote') == 'local':
if '__fs_update' not in self.opts:
self.fs.update()
self.opts['__fs_update'] = True
else:
self.fs.update()
self.cmd_stub = {'ext_nodes': {}}

def send(self, load, tries=None, timeout=None):
Expand Down
2 changes: 1 addition & 1 deletion salt/modules/consul.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _query(function,
)

if result.get('status', None) == salt.ext.six.moves.http_client.OK:
ret['data'] = result['dict']
ret['data'] = result.get('dict', result)
ret['res'] = True
elif result.get('status', None) == salt.ext.six.moves.http_client.NO_CONTENT:
ret['res'] = False
Expand Down
8 changes: 4 additions & 4 deletions salt/states/apache_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
.. code-block:: yaml

Enable cgi module:
apache_module.enabled:
- name: cgi
apache_module.enabled:
- name: cgi

Disable cgi module:
apache_module.disabled:
- name: cgi
apache_module.disabled:
- name: cgi
'''
from __future__ import absolute_import
from salt.ext.six import string_types
Expand Down
26 changes: 13 additions & 13 deletions salt/states/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -1866,9 +1866,9 @@ def directory(name,
- dir_mode: 755
- file_mode: 644
- recurse:
- user
- group
- mode
- user
- group
- mode

Leave files or directories unchanged:

Expand All @@ -1881,10 +1881,10 @@ def directory(name,
- dir_mode: 755
- file_mode: 644
- recurse:
- user
- group
- mode
- ignore_dirs
- user
- group
- mode
- ignore_dirs

.. versionadded:: 2015.5.0

Expand Down Expand Up @@ -3528,9 +3528,9 @@ def append(name,
- append
- template: jinja
- sources:
- salt://motd/devops-messages.tmpl
- salt://motd/hr-messages.tmpl
- salt://motd/general-messages.tmpl
- salt://motd/devops-messages.tmpl
- salt://motd/hr-messages.tmpl
- salt://motd/general-messages.tmpl

.. versionadded:: 0.9.5
'''
Expand Down Expand Up @@ -3706,9 +3706,9 @@ def prepend(name,
- prepend
- template: jinja
- sources:
- salt://motd/devops-messages.tmpl
- salt://motd/hr-messages.tmpl
- salt://motd/general-messages.tmpl
- salt://motd/devops-messages.tmpl
- salt://motd/hr-messages.tmpl
- salt://motd/general-messages.tmpl

.. versionadded:: 2014.7.0
'''
Expand Down
33 changes: 32 additions & 1 deletion tests/integration/client/standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_cli(self):
assert num_ret > 0

# ping a minion that doesn't exist, to make sure that it doesn't hang forever
# create fake mininion
# create fake minion
key_file = os.path.join(self.master_opts['pki_dir'], 'minions', 'footest')
# touch the file
salt.utils.fopen(key_file, 'a').close()
Expand Down Expand Up @@ -116,6 +116,37 @@ def test_full_returns(self):
ret['minion']
)

def test_disconnected_return(self):
'''
Test return/messaging on a disconnected minion
'''
test_ret = {'ret': 'Minion did not return. [Not connected]', 'out': 'no_return'}

# Create a minion key, but do not start the "fake" minion. This mimics
# a disconnected minion.
key_file = os.path.join(self.master_opts['pki_dir'], 'minions', 'disconnected')
salt.utils.fopen(key_file, 'a').close()

# ping disconnected minion and ensure it times out and returns with correct message
try:
cmd_iter = self.client.cmd_cli(
'disconnected',
'test.ping',
show_timeout=True
)
num_ret = 0
for ret in cmd_iter:
num_ret += 1
self.assertEqual(ret['disconnected']['ret'], test_ret['ret'])
self.assertEqual(ret['disconnected']['out'], test_ret['out'])

# Ensure that we entered the loop above
self.assertEqual(num_ret, 1)

finally:
os.unlink(key_file)


if __name__ == '__main__':
from integration import run_tests
run_tests(StdTest)