Commit Graph

66280 Commits

Author SHA1 Message Date
Sergey Kizunov
fab78ebef6 Fix Master AES key rotation on Windows
Two issues causing this:
- On Windows, `stats.st_mode` is `0o100444` instead of what is checked
for which is `0o100400`. This is because basic Windows permissions
don't distinguish between user/group/all like Linux does. Note that
Windows Access Control Lists (ACLs) are not part of `stat` functionality.
- On Windows, `os.remove` will fail if a file is marked read-only. In
this case, need to mark it writable before deleting.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2016-03-02 16:11:26 -06:00
Mike Place
cc4c31cf7f Merge pull request #31627 from jakehilton/2015.8
Handling error from using gevent 1.1.
2016-03-02 15:01:22 -07:00
Sergey Kizunov
9f64274f9b Use LOOP_CLASS current() to share same IOLoop
This doesn't fix any issues but is an optimization and is the recommended
use in the Tornado docs. `LOOP_CLASS.current()` should be used unless
we want to use a different IOLoop than the main thread's IOLoop.
Not using `current()` makes sense in places such as SyncWrapper and MWorker.

However, for use in places such as `SMinion.__init__()`, what essentially
happens is that one IOLoop is used for the `run_sync()`. The `run_sync()`
invokes `start()`. `start() will make this IOLoop current, but it will put
the original current IOLoop back when it is finished, even if it is None.
So what essentially happens is that one IOLoop is used within the ZeroMQ
and TCP transports during the `run_sync` and another is used during
subsequent operations.

Using `current()` will either use the current IOLoop or create a new one
and call it current if none exists. This plays well with both the
ZeroMQ and TCP transports since they use current() internally and so the
same IOLoop will be used throughout execution, both before and after
the run_sync.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2016-03-02 16:00:05 -06:00
Andreas Lutro
50d91ebc6c allow queueing of state runs through saltmod 2016-03-02 22:18:35 +01:00
Nicole Thomas
6075774a01 Merge pull request #31440 from cachedout/master_tops_type
Set correct type for master_tops config value
2016-03-02 14:17:14 -07:00
C. R. Oldham
99a73c4973 Lint. 2016-03-02 14:05:55 -07:00
Nicole Thomas
191241e71a Merge pull request #31630 from rallytime/merge-2015.8
[2015.8] Merge forward from 2015.5 to 2015.8
2016-03-02 13:49:51 -07:00
Joseph Hall
6bf7d85dfe Lint 2016-03-02 13:43:27 -07:00
Joseph Hall
a11bcfb663 Restore previous umask when finished 2016-03-02 13:43:27 -07:00
Joseph Hall
83cfdf6a77 Make cert perms more secure by default 2016-03-02 13:43:27 -07:00
Nicole Thomas
3867af7793 Merge pull request #31623 from rallytime/merge-2016.3
[2016.3] Merge forward from 2015.8 to 2016.3
2016-03-02 13:03:38 -07:00
rallytime
75bb692990 Merge branch '2015.5' into '2015.8'
No conflicts.
2016-03-02 12:33:10 -07:00
rallytime
ac69e4bf10 Fix merge bug caught by zypper test and user correct zypper test info 2016-03-02 12:19:47 -07:00
Marcus Rückert
9b8d6cbb72 make the suse check consistent with rh_service.py 2016-03-02 20:17:37 +01:00
Marcus Rückert
c0c8a77242 Fix numerical check of osrelease
After making the version check numerical in 9975508 it no longer matched
SLES 11 properly to use the rh_service module as '11.4 > 11' evaluates
to true. Without using the rh_service module, not all methods are
implemented to use the service state on sle11.
2016-03-02 20:16:26 +01:00
Jake Hilton
02fb5ed616 Handling error from using gevent 1.1. 2016-03-02 12:11:38 -07:00
C. R. Oldham
eea06ef2cf Lint. 2016-03-02 11:29:02 -07:00
C. R. Oldham
a0761d3f06 Missin import 2016-03-02 11:26:56 -07:00
C. R. Oldham
1ce9d85dd4 Proxy minion release notes. 2016-03-02 11:26:56 -07:00
C. R. Oldham
90a574548b Fixes for #31585 and #31586 2016-03-02 11:26:56 -07:00
C. R. Oldham
a2a1c9d554 We said we would default add_proxymodule_to_opts to False in 2016.3 2016-03-02 11:26:56 -07:00
C. R. Oldham
7b949f1c07 More enhancements based on ConfigManagementCamp 2016-03-02 11:26:56 -07:00
C. R. Oldham
e4b80c05a4 pkg virtual provider enhancements for the rest_sample 2016-03-02 11:26:56 -07:00
Nicole Thomas
6d31b8918f Merge pull request #31622 from jfindlay/query_doc
doc/topics/tutorials/http: update query decoding docs
2016-03-02 11:23:44 -07:00
rallytime
62390b616e Remove stray merge conflict line 2016-03-02 11:11:15 -07:00
Justin Findlay
2428f5f15d version: always show all system fields
This makes the system version info handling more consistent with the
dependency version info: there are no hidden fields.
2016-03-02 11:07:43 -07:00
Justin Findlay
2b8d1300e7 version: rename system and version platform info 2016-03-02 11:07:43 -07:00
Justin Findlay
ca40372bfa version: return mac_ver[2] only if it's defined 2016-03-02 11:07:43 -07:00
Justin Findlay
fabd39e6d5 version: add system platform to versions report
Some platforms, such as Darwin, do not postitively identify the platform
name in any of the other system fields currently in the versions report.

Improves #21906.
2016-03-02 11:07:43 -07:00
rallytime
031a75ca33 Merge branch '2015.8' into '2016.3'
Conflicts:
  - Contributing.rst
  - conf/master
  - doc/index.rst
  - doc/man/salt.7
  - pkg/suse/README.suse
  - salt/client/ssh/state.py
  - salt/minion.py
  - salt/modules/zypper.py
  - salt/utils/schedule.py
  - tests/unit/modules/zypper_test.py
2016-03-02 10:26:13 -07:00
twangboy
33da2c613e Add tests for the remainder of the functions 2016-03-02 10:20:00 -07:00
Justin Findlay
4e48fec806 doc/topics/tutorials/http: update query decoding docs
Fixes #31614.
2016-03-02 10:17:22 -07:00
Nicole Thomas
38ddd62aef Merge pull request #31594 from rallytime/bp-31589
Back-port #31589 to 2015.8
2016-03-02 09:33:24 -07:00
Nicole Thomas
66a2e5f52f Merge pull request #31589 from techhat/updatenode
Ensure that the latest node data is returned
2016-03-02 09:31:52 -07:00
C. R. Oldham
86a0fc46b4 Merge pull request #31604 from joejulian/2015.8_31596_workaround_no_xml_when_not_tty
Workaround for non-xml output from gluster cli when not tty
2016-03-02 08:53:44 -07:00
Nicole Thomas
09815d905f Merge pull request #31602 from cachedout/fix_31523
Fix issue with salt-call hanging
2016-03-02 08:48:56 -07:00
Nicole Thomas
36ce240596 Merge pull request #31583 from vutny/remove-trailing-white-spaces
Remove trailing white spaces
2016-03-02 08:38:01 -07:00
Denys Havrysh
bbcad93a8d Fix trailing white spaces in Salt PRM spec file 2016-03-02 10:42:00 +02:00
Denys Havrysh
86433f2378 Revert changes in files used by roots_test.py integration test 2016-03-02 10:00:45 +02:00
Joe Julian
c567a823a9 Workaround for non-xml output from gluster cli when not tty
Gluster has a bug in versions prior to 3.6 in that they will replace the
cli output mode if isatty() returns false. This patch uses the script
utility to trick the cli into thinking it's being called from a tty to
allow xml output.

Upstream bug: https://bugzilla.redhat.com:443/show_bug.cgi?id=1047378

Fixes #31596
2016-03-01 18:02:01 -08:00
C. R. Oldham
c9fe8d87f3 Merge pull request #31592 from rallytime/bp-31546
Back-port #31546 to 2015.8
2016-03-01 16:51:02 -07:00
C. R. Oldham
c8dbc93ac6 Merge pull request #31593 from rallytime/bp-31570
Back-port #31570 to 2015.8
2016-03-01 16:50:05 -07:00
Mike Place
64f6046602 Fix issue with salt-call hanging
Refs #31523
2016-03-01 15:52:40 -07:00
Erik Johnson
5dedaa2d9d Remove limitations on validation types for eauth targets
When validate_tgt() was written, we did not have a CkMinions class nor
did we have a method of pre-matching minions. Therefore, only certain
match types were permitted.

This commit removes that limitation, allowing eauth targets to be
pillar, ipcidr, etc.

Fixes #30761.
2016-03-01 14:48:56 -06:00
Joseph Hall
6cd89459c7 Ensure that the latest node data is returned 2016-03-01 13:18:00 -07:00
C. R. Oldham
b2294d0a28 Need to return the value 2016-03-01 13:14:10 -07:00
Erik Johnson
9a296bd1bf Use clean_kwargs and invalid_kwargs utils funcs to handle invalid kwargs 2016-03-01 13:12:16 -07:00
Eric Cook
43099a2b63 nspawn.py: Fix bad keyword assignment
Currently every keyword for _pull_image is considered a bad keyword.

```
% salt node nspawn.pull_tar url bar
ERROR executing 'nspawn.pull_tar': The following invalid keyword arguments were passed: verify=False.
```
2016-03-01 13:12:11 -07:00
Nicole Thomas
068807558a Merge pull request #31567 from cachedout/issue_28585
Restore FIPS compliance when using master_finger
2016-03-01 12:50:02 -07:00
Joseph Hall
df10355ac9 Ensure that the latest node data is returned 2016-03-01 12:32:02 -07:00