Commit Graph

69974 Commits

Author SHA1 Message Date
rallytime
8fff95b3b4 Merge branch '2015.8' into '2016.3'
Conflicts:
  - salt/modules/gpg.py
  - salt/modules/zypper.py
2016-10-21 16:09:17 -06:00
Erik Johnson
3032a542d9 Use NotifyAccess=all in all unit files
When systemd-python is not installed, systemd notification falls back to
using the systemd-notify for service notification. This cannot be used
however unless the unit has NotifyAccess=all set.

The particular use case for this is when Salt is installed using pip. We
don't put systemd-python into the requirements.txt because we can't be
sure that the minion supports systemd, so pip installs won't necessarily
have systemd-python available.
2016-10-21 15:56:47 -06:00
Erik Johnson
4826995973 Remove EnvironmentFile and Restart lines from unit files
These shouldn't be there, because the variables sourced by the
EnvironmentFile are only made available to the Exec commands in the unit
file.
2016-10-21 15:56:47 -06:00
Erik Johnson
3be15694d2 Use Type=notify for debian systemd units 2016-10-21 15:56:47 -06:00
Robert James Hernandez
d58fda6f67 Use control-group default for killmode 2016-10-21 15:56:47 -06:00
Mike Adams
36bc2a1ded Add run_on_start to SCHEDULE_CONF
This is a fix for 37037.
2016-10-21 15:55:10 -06:00
do3meli
c63126a2f0 removed trailing whitespaces in apache_module.py 2016-10-21 15:53:24 -06:00
do3meli
a812cbfea7 use versionadded and deprecated warnings in apache_module 2016-10-21 15:53:24 -06:00
Justin Findlay
094eac06eb modules.status.uptime unit test: mock on linux 2016-10-21 15:50:42 -06:00
Nicole Thomas
2bc5dedd06 Allow the minion test daemons a couple of tries to connect to the master (#37150)
When running the tests with the tcp transport, we are not as forgiving
with the minion connection process as we are in ZMQ. In ZMQ, we attempt
to connect to the master. If it isn't up yet, we wait and try again. In
TCP, we try to connect to the master once, realize it's not up (because
the master process takes longer to spin up than the minions) and crash
and bail out.

This just gives the master a little more time to come up by having the
minions try to connect a couple more times.
2016-10-21 14:50:39 -06:00
Nicole Thomas
ec7ad9eebe Add note about salt-bootstrap known issue for 2016.3.4 (#37152)
* Add note about salt-bootstrap known issue for 2016.3.4

Refs https://github.com/saltstack/salt-bootstrap/issues/973

* Add bootstrap release known issue to 2016.3.3 release notes, too.
2016-10-21 14:46:35 -06:00
Nevins Bartolomeo
bc4b0e7cda adding test for saltenv in file.recurse source url 2016-10-21 08:44:58 -04:00
Nevins Bartolomeo
3315b67075 fixing saltenv if not set in url 2016-10-21 08:38:17 -04:00
Mike Place
8de7b39b5e Merge pull request #37135 from Cloudtek/x509-docs-fix
Fix example signing policy in salt.states.x509 docs
2016-10-21 20:45:22 +09:00
Mike Place
a5335a2f15 Merge pull request #37137 from awerner/fix-spm-msgpack
SPM-METADATA are now loaded as yaml from remote URLs
2016-10-21 18:52:40 +09:00
Mike Place
a606a42575 Minor style change
Double-quotes to single-quotes, per SaltStack style guide.
2016-10-21 18:39:40 +09:00
Mike Place
41ae90d3c3 Merge pull request #37140 from vutny/pkgbuild-repo-sign-with-no-passphrase
pkgbuild.repo: fix GPG signing with `use_passphrase=False`
2016-10-21 18:37:54 +09:00
Dmitry Kuzmenko
87c2e93e40 Don't fail if host_to_ips returns None. 2016-10-21 12:29:03 +03:00
Dmitry Kuzmenko
f625e6d3a9 Updated host_to_ip to return all the IPs instead of the first one.
This fixes the bug #36866 where minion gets __master_disconnected right
after connect because '::1' isn't in the list of connected masters that
is ['127.0.0.1'].
2016-10-21 12:28:32 +03:00
Denys Havrysh
409a3100a7 pkgbuild.repo: fix GPG signing with use_passphrase=False 2016-10-21 11:16:19 +03:00
Alexander Werner
e3916813bb Download spm package from remote repository and save it to cache directory
fixes #37138
2016-10-21 09:28:50 +02:00
Alexander Werner
52d47cece9 SPM-METADATA are now loaded as yaml from remote URLs
fixes #37095
2016-10-21 09:07:11 +02:00
Mike Place
96a1292a7e Merge pull request #37071 from vutny/pkgbuild-repo-gpg-sign-timeout
pkgbuild.repo: add `timeout` parameter for waiting passphrase prompt
2016-10-21 14:20:26 +09:00
Mike Place
274120300d Merge pull request #37115 from DSRCorporation/backport/36720_fix_race_condition
Backport/36720 fix race condition
2016-10-21 14:16:15 +09:00
Mike Place
169a82e62b Merge pull request #37119 from jfindlay/log_proc_user
log.setup: only assign user if defined
2016-10-21 14:14:55 +09:00
Aaron Miller
ce87f7311b Fix example signing policy in salt.states.x509 docs 2016-10-20 18:17:10 -07:00
Megan Wilhite
f22c686b34 fix digital ocean image name in profile (#37126)
* fix digital ocean image name in profile

* remove skip and fix test
2016-10-20 16:08:50 -06:00
Justin Findlay
426384909d add 2016.3.4 release notes (#37125) 2016-10-20 15:03:03 -06:00
Justin Findlay
8c29949a0e log.setup: only assign user if defined 2016-10-20 14:28:42 -06:00
Justin Findlay
1d503f032c tests.integration: pass opts as a dict 2016-10-20 14:16:35 -06:00
Nicole Thomas
8c46d69251 Merge pull request #37109 from meaksh/zypper-distupgrade-support-2015.8
Some improvements for Zypper `dist-upgrade`
2016-10-20 13:41:08 -06:00
Nicole Thomas
2a35f57be8 Merge pull request #37120 from rallytime/bp-36246
Back-port #36246 to 2016.3
2016-10-20 13:38:32 -06:00
Nevins Bartolomeo
a9683cbbd8 allow the file.recurse state to support saltenv (salt://example/dir?saltenv=dev) 2016-10-20 14:08:04 -04:00
twangboy
f1c8d98119 Skip weird_install test on Mac OS X 2016-10-20 11:05:34 -06:00
twangboy
90de794290 Fix test_issue_6833_pip_upgrade_pip test on OSX 2016-10-20 11:05:28 -06:00
Sergey Kizunov
d7e3209e13 For IPCClient, remove entry from instance map on close
Remove the entry from the instance map so
that a closed entry may not be reused.
This forces this operation even if the reference
count of the entry has not yet gone to zero.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2016-10-20 16:06:35 +03:00
Sergey Kizunov
82e27634a7 Fix race condition when returning events from commands
It has been observed that when running this command:

```
salt "*" test.ping
```

sometimes the command would return `Minion did not return. [No response]`
for some of the minions even though the minions did indeed respond
(reproduced running Windows salt-master on Python 3 using the TCP
transport).

After investigating this further, it seems that there is a race condition
where if the response via event happens before events are being listened
for, the response is lost. For instance, in
`salt.client.LocalClient.cmd_cli` which is what is invoked in the command
above, it won't start listening for events until `get_cli_event_returns`
which invokes `get_iter_returns` which invokes `get_returns_no_block`
which invokes `self.event.get_event` which will connect to the event bus
if it hasn't connected yet (which is the case the first time it hits
this code). But events may be fired anytime after `self.pub()` is
executed which occurs before this code.

We need to ensure that events are being listened for before it is
possible they return. We also want to avoid issue #31454 which is what
PR #36024 fixed but in turn caused this issue. This is the approach I
have taken to try to tackle this issue:

It doesn't seem possible to generically discern if events can be
returned by a given function that invokes `run_job` and contains an
event searching function such as `get_cli_event_returns`. So for all
such functions that could possibly need to search the event bus, we
do the following:
- Record if the event bus is currently being listened to.
- When invoking `run_job`, ensure that `listen=True` so that `self.pub()`
will ensure that the event bus is listed to before sending the payload.
- When all possible event bus activities are concluded, if the event
bus was not originally being listened to, stop listening to it. This is
designed so that issue #31454 does not reappear. We do this via a
try/finally block in all instances of such code.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2016-10-20 16:06:28 +03:00
Pablo Suárez Hernández
330f830c9b Disables 'novendorchange' for old SLEs versions 2016-10-20 12:15:10 +01:00
Pablo Suárez Hernández
01b0a6917c Minor pylint fixes 2016-10-20 11:33:11 +01:00
Pablo Suárez Hernández
7dbb0bd252 Unit tests fixes 2016-10-20 10:59:48 +01:00
Pablo Suárez Hernández
e89982b6d2 Improves 'dryrun' outputting. Setting 'novendorchange' as not supported for SLE11 2016-10-20 10:24:21 +01:00
Pablo Suárez Hernández
c5a34cbadf Adds multiple repositories support to 'fromrepo' parameter 2016-10-20 10:19:17 +01:00
Denys Havrysh
cfc3a0ed92 pkgbuild.repo: add timeout parameter for waiting passphrase prompt 2016-10-20 11:51:58 +03:00
Mike Place
0b87e7890a Merge pull request #37103 from cachedout/fix_proc_test
Remove unnecessary sleep from unit.utils.process_test.TestProcessMana…
2016-10-20 17:45:07 +09:00
Mike Place
326bbd5e30 Merge pull request #36823 from terminalmage/pr-36806
Update debian systemd unit files to use default KillMode, Type=notify
2016-10-20 14:54:42 +09:00
Mike Place
0c40e71e17 Merge pull request #37030 from isbm/isbm-solaris-status-fix
Fix status.uptime for Solaris 9, 10 and 11.
2016-10-20 14:52:53 +09:00
Mike Place
38fdd28962 Merge pull request #37087 from vutny/gpg-fix-short-keyid
salt.modules.gpg: allow getting keys by short key ID
2016-10-20 14:49:32 +09:00
Mike Place
3a37a22366 Merge pull request #37088 from meaksh/zypper-distupgrade-support-2015.8
Adding 'dist-upgrade' support to the zypper module
2016-10-20 14:46:56 +09:00
Mike Place
2f29e9e956 Merge pull request #37090 from zer0def/silence-prereq-supervisord-warnings
Silence warnings about "__prerequired__" being an invalid kwarg when using `prereq` with supervisord states.
2016-10-20 14:46:17 +09:00
Mike Place
eb88c73222 Merge pull request #37101 from rallytime/merge-2016.3
[2016.3] Merge forward from 2016.3 to carbon
2016-10-20 14:39:24 +09:00