Commit Graph

24101 Commits

Author SHA1 Message Date
Matthew Hopkins
ef4f0ea42a Change Powershell command to trust all scripts run by salt 2013-12-20 09:02:44 -05:00
Joseph Hall
446ad2ca98 Merge pull request #9369 from s0undt3ch/issues/9359-ssh-command-log
Log the `salt-ssh` command being executed
2013-12-20 04:39:09 -08:00
Pedro Algarvio
74bee98cef White-space lint fix. 2013-12-20 10:01:50 +00:00
Pedro Algarvio
08fcb05715 Log the salt-ssh command being executed. Fixes #9359.
If a password is being used, it's replaced by a string to omit it from the logged message.
2013-12-20 09:56:35 +00:00
Pedro Algarvio
6f14fa111c Merge pull request #9368 from damiencaselli/develop
Fix rabbitmq_user code block tpyo
2013-12-20 01:44:31 -08:00
Alexey Ivanov
887017fa0a
Do not waste CPU cycles on stat(2) on each _auth
Currently servers that handle many thousands of minions spend measurable time
doing only stat(2) calls.

In strace it looks like::

     0.000093 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
     0.000236 open("/etc/salt/pki/master/minions", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 154
     0.011412 stat("/etc/salt/pki/master/minions/hostXXXX.linkedin.com", {st_mode=S_IFREG|0644, st_size=800, ...}) = 0
     0.000102 stat("/etc/salt/pki/master/minions/hostXXXX.linkedin.com", {st_mode=S_IFREG|0644, st_size=800, ...}) = 0
     ...many thousands lines...
     0.000064 stat("/etc/salt/pki/master/minions/hostXXXX.linkedin.com", {st_mode=S_IFREG|0644, st_size=800, ...}) = 0
     0.000062 stat("/etc/salt/pki/master/minions/hostXXXX.linkedin.com", {st_mode=S_IFREG|0644, st_size=796, ...}) = 0
     0.000485 stat("/export/apps/salt/log/master", {st_mode=S_IFREG|0644, st_size=37769598988, ...}) = 0
     0.000065 stat("/export/apps/salt/log/master", {st_mode=S_IFREG|0644, st_size=37769598988, ...}) = 0
     0.000184 stat("/etc/salt/pki/master/minions_rejected/hostXXXX.linkedin.com", 0x7fff28209f40) = -1 ENOENT (No such file or directory)
     0.000071 stat("/etc/salt/pki/master/minions/hostXXXX.linkedin.com", {st_mode=S_IFREG|0644, st_size=800, ...}) = 0
     0.000074 open("/etc/salt/pki/master/minions/hostXXXX.linkedin.com", O_RDONLY) = 154

Happens that on each _auth() call salt is counting files in pki/master/minions
and checks whenever those are regular files by applying os.path.isfile()
function to each which considerably slows things down.

This patch removes isfile() call that effectively makes check_max_open_files()
check less precise (but since it's already subject to external race conditions
like creation/removal of files by another process it should be OK) in exchange
for making it much faster.

PS. Note that calling salt.utils.verify.check_max_open_files() on each _auth is
not really efficient, it probably should be done periodically in a background
thread.

Sponsored by: LinkedIn
Signed-off-by: Alexey Ivanov <SaveTheRbtz@GMail.com>
2013-12-20 01:43:14 -08:00
Damien Caselli
5d6fe86f12 Fix rabbitmq_user code block tpyo 2013-12-20 10:07:10 +01:00
Seth House
26edc398f7 Merge pull request #9367 from whiteinge/docs-client-interfaces
Document Salt's client interfaces (more better)
2013-12-19 22:03:26 -08:00
Seth House
6f22ac72a1 Fleshed out docs for each method in the various *Client() interfaces 2013-12-19 22:57:56 -07:00
Seth House
288311f732 Renamed Wheel to WheelClient; added backward-compat alias 2013-12-19 22:49:22 -07:00
Seth House
09cbaa188d Added warning that APIClient() is not yet public 2013-12-19 21:48:08 -07:00
Seth House
79ad988fef Fleshed out the Python API docs 2013-12-19 21:40:43 -07:00
Seth House
f051ad477c Added CloudClient to the Python API docs 2013-12-19 21:40:34 -07:00
Seth House
d6c4584bf2 Added integration tests for RunnerClient's master_call 2013-12-19 21:07:46 -07:00
Seth House
6f4cabf99c Added wheel test for testing token authentication 2013-12-19 21:07:46 -07:00
Seth House
78f4d77681 Added helper function to easily create directories 2013-12-19 21:07:46 -07:00
Ken Jung
180a9c5afc Error message in copyfile now uses dest and not source 2013-12-19 17:38:25 -08:00
Pedro Algarvio
27aadbf657 Merge pull request #9361 from basepi/logstashquiet
Quiet the logstash handler loading message
2013-12-19 17:01:30 -08:00
Joseph Hall
67a8a9aacb Merge pull request #9362 from techhat/clouddocs
Removing API docs, because they were really only meant for Halite
2013-12-19 16:48:37 -08:00
Joseph Hall
a868cc0d71 Removing API docs, because they were really only meant for Halite 2013-12-19 17:47:34 -07:00
Colton Myers
627d2bf32a Quiet the logstash handler loading message
@s0undt3ch FYI.  If you think this is a bad change, I'd be happy to
discuss it with you, but 99% of salt users don't use that handler (as
far as I know) and it's just garbage in the debug log.
2013-12-19 16:32:25 -07:00
Colton Myers
82539c74e0 Check for, and attempt to create, SOCK_DIR in minion tune_in, Fix #8365 2013-12-19 16:27:58 -07:00
Colton Myers
99ad03ca99 Merge pull request #9357 from techhat/clouddocs
Add doc about using Salt Cloud from Salt
2013-12-19 14:37:34 -08:00
Colton Myers
4574feb848 Fix language for "failed to update" packages, Fix #9348
The "All" was quite misleading
2013-12-19 15:36:06 -07:00
Joseph Hall
d70690dbcb Add doc about using Salt Cloud from Salt 2013-12-19 15:35:48 -07:00
Colton Myers
13ba89b924 Fix a spacing issue in pkg.py 2013-12-19 15:35:48 -07:00
Thomas S Hatch
26a3eb1ec8 remove test for not yet covered case 2013-12-19 14:27:40 -07:00
Thomas S Hatch
27284f2a5e Minor cleanup to comment formatting 2013-12-19 12:06:25 -07:00
Thomas S Hatch
7d61d7f998 Fix bad ref to False 2013-12-19 11:09:53 -07:00
Thomas S Hatch
cffa70eaac lint fix 2013-12-19 11:09:14 -07:00
Thomas S Hatch
0b27505395 lint fixes 2013-12-19 11:08:27 -07:00
Joseph Hall
b01197e102 Merge pull request #9355 from terminalmage/packaging
Update RPM spec for 0.17.4
2013-12-19 09:37:09 -08:00
Erik Johnson
9718b9d024 Update RPM spec for 0.17.4 2013-12-19 11:33:02 -06:00
Thomas S Hatch
267f094a7d Merge pull request #9351 from beichhor/bug/rabbitmqctl
Updated rabbitmqctl set_policy command to support latest version
2013-12-19 09:31:33 -08:00
Thomas S Hatch
a5f7360d22 Merge pull request #9307 from olliewalsh/client_timeouts
Fix client timeout issues
2013-12-19 09:23:54 -08:00
David Boucha
10670c73c3 Merge pull request #9336 from thematthopkins/windows_install_flags
Fix for windows installs without extra_install_args
2013-12-19 09:22:59 -08:00
Thomas S Hatch
4a997cb005 Merge pull request #9347 from terminalmage/issue9158
Display templating error in cmd.script states
2013-12-19 09:11:07 -08:00
Thomas S Hatch
09c76f9a13 Merge pull request #9337 from tkwilliams/salt-thin-fixes
Initial working code to support specifying additional modules to include into a thin.tgz (think mako :)
2013-12-19 09:00:40 -08:00
Thomas S Hatch
0d793a1eb0 Merge pull request #9329 from terminalmage/issue9061
Allow '_in' requisites to match both on ID and name
2013-12-19 08:57:12 -08:00
Thomas S Hatch
eeef67d144 Merge pull request #9309 from terminalmage/issue9234
Improve reporting for errors caching binary packages
2013-12-19 08:53:02 -08:00
Thomas S Hatch
7fbe83a8bb Merge pull request #9305 from s0undt3ch/hotfix/missing-exsel-keyerror-2
`exsel` matching is no longer supported
2013-12-19 08:51:48 -08:00
Thomas S Hatch
ebc07e8080 Merge pull request #9299 from vahidden/develop
Fixes pillar namespace merging not preserving order when replacing keys
2013-12-19 08:51:11 -08:00
Mike Place
3bb714282e Starting on unit tests for docker and salt.utils. 2013-12-19 09:14:59 -07:00
Thomas S Hatch
ab012ddf9f Merge pull request #9291 from jesusaurus/grep/available
Don't assume that grep-available is available
2013-12-19 07:55:55 -08:00
Pedro Algarvio
22ff30b2e3 Merge pull request #9352 from gravyboat/develop
Updated targeting docs and prepared FAQ for some new pages.
2013-12-19 00:02:40 -08:00
Forrest Alvarez
9429458ff9 updated globbing docs with an extra example 2013-12-19 06:23:00 +00:00
Forrest Alvarez
ac496b223f Merge remote branch 'upstream/develop' into develop 2013-12-19 06:21:28 +00:00
Benn Eichhorn
fe5ffb28b4 updated rabbitmqctl policy commands to support latest version 2013-12-19 15:16:07 +11:00
Joseph Hall
9134f4fd77 Merge pull request #9349 from techhat/nova
Add avail_locations() to nova driver
2013-12-18 20:03:35 -08:00
Joseph Hall
a1c311501b Add avail_locations() to nova driver 2013-12-18 21:02:56 -07:00