Skip to content

[2016.3] Merge forward from 2015.8 to 2016.3 - #31322

Merged
cachedout merged 99 commits into
saltstack:2016.3from
rallytime:merge-2016.3
Feb 18, 2016
Merged

cachedout merged 99 commits into
saltstack:2016.3from
rallytime:merge-2016.3

Conversation

@rallytime

Copy link
Copy Markdown
Contributor

Conflicts:

  • salt/beacons/inotify.py
  • salt/beacons/load.py
  • salt/minion.py
  • salt/modules/win_update.py
  • salt/modules/yumpkg.py
  • salt/utils/pkg/rpm.py

mpreziuso and others added 30 commits January 28, 2016 17:34
…win_update

- Changes `self.softwareUpdates` and `softwareUpdates` to `self.skipSoftwareUpdates` and `skipSoftwareUpdates`.
- Changes `self.driverUpdates` and `driverUpdates` to `self.skipDriverUpdates` and `skipDriverUpdates`.
- Changes if/else logic, emulating the same logic as in salt.states.win_update
- Changes default values

See saltstack#30081 for more information.
`skipHidden` skips hidden updates accordingly, but any changes to the 'hidden' key:value in the `includes` parameter won't be reflected in the object's variable `self.skipHidden` as `SetInclude` ignores that. This commit fixes that.

See saltstack#30081 for more information.
Parameter name (includes) is confusing as the entire internal logic is all about excluding updates.

See saltstack#30081 for more information.
If self.skipReboot is set, add `RebootRequired=0` to the search string, otherwise `RebootRequired=1`; as the official [documentation](https://msdn.microsoft.com/en-us/library/windows/desktop/aa386526(v=vs.85).aspx) specifies
- Changes `self.softwareUpdates` and `softwareUpdates` to `self.skipSoftwareUpdates` and `skipSoftwareUpdates`.
- Changes `self.driverUpdates` and `driverUpdates` to `self.skipDriverUpdates` and `skipDriverUpdates`.
- Changes default values.

Consistent with salt.module.win_update.py

See saltstack#30081 for more information.
`skipHidden` skips hidden updates accordingly, but any changes to the 'hidden' key:value in the `includes` parameter won't be reflected in the object's variable `self.skipHidden` as `SetInclude` ignores that. This commit fixes that.

Consistent with salt.module.win_update

See saltstack#30081 for more information.
Parameter name (includes) is confusing as the entire internal logic is all about excluding updates.

Consistent with salt.module.win_update.

See saltstack#30081 for more information.
This prevents the pkg.check_db call if 0.1.15 is not able to be
installed.
In the interest of not making salt.utils any more cluttered.
…roperly. Also reworking how what is returned from the validating functions is handled to ensure when beacon configurations aren't validate the results indicate exactly why.
The current version of exception handling for network.connect references variable '_address', but '_address' is not defined if a call to socket.getaddrinfo failed in the same try block.

eg.
>salt '<minion>' network.connect junkdomain 80
    The minion function caused an exception: Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/salt/minion.py", line 1071, in _thread_return
        return_data = func(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/salt/modules/network.py", line 1104, in connect
        ret['comment'] = 'Unable to connect to {0} ({1}) on {2} port {3}'.format(host, _address[0], proto, port)
    UnboundLocalError: local variable '_address' referenced before assignment

This patch catches socket.getaddrinfo execption socket.gaierror and returns with a friendly fail message.
…add_failing_and_other_fixes

fixes to beacon module, state module and friends
…-invalid-hostname

Fixed invalid host causing 'reference to variable before assignment'
Documentation clarifications.
Based on work by @l13t in saltstack#29426.

Added tests and fixed incorrect appending of the built rule.

Closes saltstack#29423.
Mike Place and others added 22 commits February 17, 2016 12:02
…ip-reservation

Fixed named external_ip reservation/re-use code in gce driver.
[2015.8] Merge forward from 2015.5 to 2015.8
…ersion_cmp

implement version_cmp for zypper
Reworked the test structure design for the gluster module and state so I
could create a test that mimiced the behavior difference between 3.7 and
prior versions when reverse probing by ip a server that already exists.

Added the additional data given by gluster 3.7 to the output of
glusterfs.list_peers to allow us to compare a requested peering against
a host's aliases.

Fixes saltstack#30932
Improve salt.states.ssh_known_hosts documentation.
This fixes problems with the --unset-upstream handling added in the
previous commit.

See saltstack#31245 (comment)
for more info.
This restricts the git state module to git 1.6.5 or later, as some of
the core functionality needed for git.latest was not present before that
version. This release is over 6 years old now, so this change should be
safe to make.

In addition, this stops git.latest from trying to use the --ff-only
argument when running a git merge to fast-forward the repo, in versions
where this option is not available.
Allow state-output and state-verbose default settings to be set from CLI
…robe_by_ip

Rework tests and fix reverse peering with gluster 3.7
Conflicts:
  - salt/beacons/inotify.py
  - salt/beacons/load.py
  - salt/minion.py
  - salt/modules/win_update.py
  - salt/modules/yumpkg.py
  - salt/utils/pkg/rpm.py
@meggiebot

Copy link
Copy Markdown

Approved

cachedout pushed a commit that referenced this pull request Feb 18, 2016
[2016.3] Merge forward from 2015.8 to 2016.3
@cachedout
cachedout merged commit 02f79dc into saltstack:2016.3 Feb 18, 2016
@rallytime
rallytime deleted the merge-2016.3 branch February 18, 2016 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.