Commit Graph

73798 Commits

Author SHA1 Message Date
rallytime
7bcbf8dc36 Merge branch '2016.3' into 'carbon'
Conflicts:
  - doc/faq.rst
  - salt/modules/win_service.py
2016-09-20 10:43:55 -06:00
Mike Place
d0a495f08b Merge pull request #36310 from thatch45/keep_loop
Fix bug where the client will destroy the loop
2016-09-20 22:14:23 +09:00
Mike Place
6e16ca46ed Merge pull request #36394 from oba11/module-fixes
fix accound_id in boto_iam and get_region in boto_sns
2016-09-20 22:11:28 +09:00
Mike Place
2789294a16 Merge pull request #36407 from skizunov/develop4
PY3: Fix "file.managed" state
2016-09-20 15:44:48 +09:00
Mike Place
8a6162214b Merge pull request #36405 from skizunov/develop3
PY3: Fix error when applying salt state
2016-09-20 15:44:10 +09:00
Mike Place
ae1fc430c2 Merge pull request #36424 from jfindlay/bp-36194
skip some mac_timezone tests
2016-09-20 15:43:47 +09:00
Mike Place
6319e3419a Merge pull request #36428 from terminalmage/issue36388
A couple fixes for Antergos Linux
2016-09-20 15:42:16 +09:00
Mike Place
155bd14b5e Merge pull request #36425 from whiteinge/salt-api-dict-payload
Check for dictionary explicitly since we're accessing it as one
2016-09-20 15:41:40 +09:00
Mike Place
420be364ee Merge pull request #36199 from thatch45/fix_18341
skip all failhards if test=True
2016-09-20 14:38:32 +09:00
Erik Johnson
b0069ad0d8 pacman.py: use os_family grain to assign as pkg virtual module
This is a more future-proof method, it'll keep us from continuing to
update pacman.py each time we add another Arch derivative to the Arch
os_family.
2016-09-19 22:20:51 -05:00
Erik Johnson
5d632dbfca Properly set os grain for Antergos 2016-09-19 22:17:00 -05:00
Erik Johnson
0ae8dca2d0 pkg.list_upgrades: Ignore "downloading" lines in pacman output
It appears that Antergos distributes a modified version of pacman which
adds additional lines while updating its package databases. These are
incorrectly interpreted as available upgrades. This commit checks for
these lines in the output and skips them.
2016-09-19 22:11:09 -05:00
Justin Findlay
a20a2148bf skip some mac_timezone tests 2016-09-19 16:48:22 -06:00
Seth House
0b63ed258f Check for dictionary explicitly since we're accessing it as one
Fixes #36373.
2016-09-19 16:43:52 -06:00
Thomas S Hatch
5d2f952052 Merge pull request #36414 from cro/clean_old_jobs_interval2
Use better check for jobs to clean and archive
2016-09-19 16:37:31 -06:00
Nicole Thomas
b2365f553e Merge pull request #36418 from rallytime/bp-36246
Back-port #36246 to 2016.3
2016-09-19 15:56:52 -06:00
Nicole Thomas
bc703e2062 Merge pull request #36419 from rallytime/bp-36329
Back-port #36329 to 2016.3
2016-09-19 15:56:33 -06:00
Nicole Thomas
fbfa0657fc Merge pull request #36420 from rallytime/bp-36365
Back-port #36365 to 2016.3
2016-09-19 15:56:16 -06:00
Nicole Thomas
5dc06a3a29 Merge pull request #36421 from rallytime/bp-36395
Back-port #36395 to carbon
2016-09-19 15:55:54 -06:00
Rajvi Dhimar
bb439eacde Update carbon.rst 2016-09-19 14:33:12 -06:00
=
864e513fca Fix a minor typo in docs 2016-09-19 14:32:10 -06:00
Oz N Tiram
ffdebf7a25 Fix a minor typo in docs 2016-09-19 14:30:34 -06:00
Erik Johnson
aab02f28b4 Ensure we have a test venv created using virtualenv < 13.0
The test that runs these states is testing for behavior that was
obsoleted by virtualenv 13.0. Ensure that we have older virtualenv
available, and then create a venv with that older version. Use the
2nd virtualenv to attempt the "weird" install.
2016-09-19 14:27:30 -06:00
Nicole Thomas
3dd2590e28 Merge pull request #36413 from rallytime/merge-2016.3
[2016.3] Merge forward from 2015.8 to 2016.3
2016-09-19 12:59:30 -06:00
Nicole Thomas
b658de4c33 Merge pull request #36412 from rallytime/merge-carbon
[carbon] Merge forward from 2016.3 to carbon
2016-09-19 12:59:18 -06:00
Thomas S Hatch
a8a3a9f021 Merge pull request #36305 from gtmanfred/2016.3
cache query args with url as well
2016-09-19 12:30:51 -06:00
C. R. Oldham
3508d358d8 Use better check for jobs to clean and archive 2016-09-19 12:24:48 -06:00
rallytime
c64e489f6f Merge branch '2015.8' into '2016.3'
No conflicts.
2016-09-19 11:22:54 -06:00
rallytime
2f9c4268f7 Merge branch '2016.3' into 'carbon'
No conflicts.
2016-09-19 11:21:55 -06:00
Jacob Hammons
9bc4eeb71e Fix typo (#36409) 2016-09-19 11:15:03 -06:00
Erik Johnson
ac5c812e4b Fix OS identification for CloudLinux (#36408) 2016-09-19 11:14:43 -06:00
Sergey Kizunov
d2edbf139a PY3: Fix "file.managed" state
- When writing to a binary file in Python 3, the data type must
be `bytes`.
- `contextlib.nested` is not available in Python 3. Although
`contextlib.ExitStack` is an option (which would require different
code for Python 2 and Python 3 since `contextlib.ExitStack` is not
available in Python 2), it is much simpler just to use separate `with`
statements.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2016-09-19 10:57:17 -05:00
Sergey Kizunov
14a14f1ce1 PY3: Fix error when applying salt state
In Python 3, a command such as:

```
salt-call state.apply mystate
```

On certain SLS files (in my case a `py` rendered file) could yield an
error such as:

```
[ERROR   ] Data transport is broken, got: #!py
---SLS file contents here---
, type: str, exception: a bytes-like object is required, not 'str',
retry attempts exhausted
```

Change `RemoteClient.get_file` to ensure the `data` passed to `write` is
a `bytes` type in Python 3.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2016-09-19 10:56:55 -05:00
Erik Johnson
bb4d69f58a git.latest: fail gracefully for misconfigured remote repo (#36391)
* git.latest: fail gracefully for misconfigured remote repo

When the remote repo's HEAD refers to a nonexistent ref, this was
causing a traceback when we tried to check if the upstream tracking
branch needed to be changed after cloning the repo. This commit fixes
this traceback by gracefully failing the state when the remote HEAD is
not present in the ``git ls-remote`` output, but the desired remote
revision doesn't exist.

Additionally, a similar graceful failure now happens if the state is run
again after we gracefully fail the first time, and we need to set the
tracking branch. Trying to set the tracking branch when there is no
local branch would fail with an ambiguous error like "fatal: branch
'master' does not exist", so before we even attempt to set the tracking
branch, the state is failed with a more descriptive comment.

* Add integration test for #36242
2016-09-19 09:33:00 -06:00
Thomas S Hatch
a3c0d4a0ab Add docstring 2016-09-19 09:03:03 -06:00
Oluwaseun Obajobi
966685020c fix accound_id in boto_iam and get_region in boto_sns 2016-09-18 16:30:34 +04:00
Mike Place
602bd2d1ef Merge pull request #36389 from cachedout/pr-36386
Pr 36386
2016-09-17 20:54:37 +09:00
Mike Place
f5d63d93cc
Lint 2016-09-17 20:53:41 +09:00
Mike Place
28fd227ea1 Merge pull request #36250 from UtahDave/fix_set_computer_name
fix logic problem that prevented name change
2016-09-17 19:45:01 +09:00
Mike Place
ad7045ad3b Merge pull request #36315 from puneetk/patch-6
No force_yes parameter to pkg.upgrade #21248
2016-09-17 19:34:34 +09:00
Mike Place
4e40a4f6b1 Merge pull request #36351 from jtand/freebsd_test_fix
Close open socket on freebsd
2016-09-17 19:07:39 +09:00
Mike Place
2aa6df859a Merge pull request #36381 from twangboy/fix_win_service
Add '/y' switch to the net stop and start commands
2016-09-17 18:59:58 +09:00
Mike Place
373c5db180 Merge pull request #36384 from twangboy/update_setup_req
Add windows requirements file
2016-09-17 18:27:13 +09:00
xiaoanyunfei
93269cfb65 fix salt-api log and pid 2016-09-17 09:53:16 +08:00
Nicole Thomas
dd8c82ac5b Be explicit about importing salt.utils.decorators (#36383)
This is possibly causing problems with one of the dockerng unit tests
on Ubuntu 12. Being explicit the use of identical_signature_wrapper
may help clear up some of the mocking problems with backports and
docker.

I also changed the sys.version_info option to use the six.PY2 global.
This is more consistent with other salt files and essentially does the
same thing and avoids an additional import.
2016-09-16 16:30:07 -06:00
Nicole Thomas
2f16e43d67 Update the extend.py and extend_test.py imports (#36382)
When using `fopen`, we need to import all of salt.utils. We should
also be explicit about calling salt.utils.fopen.

This also cleans up the ordering of the salttesting vs salt libs to
be consistent with other files and conform with `ensure_is_syspath`.

Also changes a print statement to a log.info
2016-09-16 16:26:13 -06:00
twangboy
a817aef1c2 Add windows requirements file 2016-09-16 15:43:36 -06:00
twangboy
04edea5c59 Add '/y' switch to the net stop and start commands 2016-09-16 15:07:26 -06:00
Aditya Kulkarni
5737b1c409 Update versionadded and release notes (#36352) 2016-09-16 14:33:32 -06:00
Daniel Wallace
70e7f6d58b cache query args with url as well
Without this, we can't use query args to get the hash of a file or add
query args to change what a file returns
2016-09-16 15:32:45 -05:00