Commit Graph

70672 Commits

Author SHA1 Message Date
Erik Johnson
4629a26fb7 Add support for "stopped" state to dockerng's mod_watch 2017-03-21 09:02:31 -05:00
Nicole Thomas
a0b4082484 Merge pull request #40171 from Ch3LL/2016.3.6_release
additional PRs/issues for 2016.3.6 release notes
2017-03-20 16:14:16 -06:00
Ch3LL
9c6d8d892f additional PRs/issues for 2016.3.6 release notes 2017-03-20 15:45:29 -06:00
Mike Place
33ba7821f7 Merge pull request #40120 from sergeizv/gce-expand-node-fix
gce: Exclude GCENodeDriver objects from _expand_node result
2017-03-20 15:44:41 -06:00
Mike Place
48843977c3 Merge pull request #40122 from meaksh/2016.3-yum-downloadonly-support
Adding "pkg.install downloadonly=True" support to yum/dnf execution module
2017-03-20 15:44:14 -06:00
Nicole Thomas
60e1d4e2f3 Merge pull request #40159 from cro/sign_pub
Turn on sign_pub_messages by default.
2017-03-20 15:00:48 -06:00
Nicole Thomas
e663b761fb Fix small syntax error 2017-03-20 14:06:52 -06:00
C. R. Oldham
0a0f46fb14 Turn on sign_pub_messages by default. Make sure messages with no 'sig' are dropped with error when sign_pub_messages is True. 2017-03-20 11:36:01 -06:00
Erik Johnson
28e4fc17b6 Merge pull request #40123 from twangboy/win_fix_network
Adds support for inet_pton in Windows to network util
2017-03-20 11:25:46 -05:00
Mike Place
35ddb79f59 Merge pull request #40141 from bobrik/fallback-resolve
Use the first address if cannot connect to any
2017-03-20 09:06:56 -06:00
Ivan Babrou
af1545deed
Use the first address if cannot connect to any
This fixes #39995. The previous work happened in #39289.
2017-03-18 21:09:16 -07:00
twangboy
06dfd55ef9 Adds support for inet_pton in Windows to network util 2017-03-17 10:16:58 -06:00
Pablo Suárez Hernández
067f3f77c2 Adding downloadonly support to yum/dnf module 2017-03-17 15:51:53 +00:00
Sergei Zviagintsev
9d0fbe7e01 gce: Exclude GCENodeDriver objects from _expand_node result
The dictionary returned by _expand_node contains libcloud's GCENodeDriver
objects which arent't properly serialized. With 'update_cachedir: True' setting
in salt-cloud config file show_instance fails because
__utils__['cloud.cache_node'] submits that dictionary to msgpack:

    (py2-env) salt-test@tommynaut:~> salt-cloud -l debug -a show_instance foo
    ...
    [ERROR   ] There was an error actioning machines: Cannot serialize <libcloud.compute.drivers.gce.GCENodeDriver object at 0x7ff3817cca10>
    Traceback (most recent call last):
      File "/home/salt-test/salt/salt/cloud/cli.py", line 252, in run
        ret = mapper.do_action(names, kwargs)
      File "/home/salt-test/salt/salt/cloud/__init__.py", line 1527, in do_action
        vm_name, call='action'
      File "/home/salt-test/salt/salt/cloud/clouds/gce.py", line 277, in show_instance
        __utils__['cloud.cache_node'](node, __active_provider_name__, __opts__)
      File "/home/salt-test/salt/salt/utils/cloud.py", line 2921, in cache_node
        msgpack.dump(node, fh_)
      File "/home/salt-test/py2-env/lib/python2.7/site-packages/msgpack/__init__.py", line 38, in pack
        stream.write(packer.pack(o))
      File "/home/salt-test/py2-env/lib/python2.7/site-packages/msgpack/fallback.py", line 738, in pack
        self._pack(obj)
      File "/home/salt-test/py2-env/lib/python2.7/site-packages/msgpack/fallback.py", line 730, in _pack
        nest_limit - 1)
      File "/home/salt-test/py2-env/lib/python2.7/site-packages/msgpack/fallback.py", line 828, in _fb_pack_map_pairs
        self._pack(v, nest_limit - 1)
      File "/home/salt-test/py2-env/lib/python2.7/site-packages/msgpack/fallback.py", line 730, in _pack
        nest_limit - 1)
      File "/home/salt-test/py2-env/lib/python2.7/site-packages/msgpack/fallback.py", line 828, in _fb_pack_map_pairs
        self._pack(v, nest_limit - 1)
      File "/home/salt-test/py2-env/lib/python2.7/site-packages/msgpack/fallback.py", line 730, in _pack
        nest_limit - 1)
      File "/home/salt-test/py2-env/lib/python2.7/site-packages/msgpack/fallback.py", line 828, in _fb_pack_map_pairs
        self._pack(v, nest_limit - 1)
      File "/home/salt-test/py2-env/lib/python2.7/site-packages/msgpack/fallback.py", line 735, in _pack
        raise TypeError("Cannot serialize %r" % obj)
    TypeError: Cannot serialize <libcloud.compute.drivers.gce.GCENodeDriver object at 0x7ff3817cca10>

Those GCENodeDriver objects don't contain info on the node itself so may be
safely excluded from _expand_node result. Remove ret['driver'] and
ret['extra']['zone']['driver'] keys containing them.
2017-03-17 16:14:42 +01:00
Nicole Thomas
116201f345 Merge pull request #40059 from terminalmage/fix-virtualenv-traceback
Fix traceback when virtualenv.managed is invoked with nonexistant user
2017-03-16 14:46:42 -06:00
Nicole Thomas
a01b52b9a3 Merge pull request #40090 from rallytime/bp-40056
Back-port #40056 to 2016.3
2017-03-16 13:42:57 -06:00
Thomas S Hatch
ae012db87a update mention bot blacklist 2017-03-16 12:15:07 -06:00
Nicole Thomas
d1570bba4c Merge pull request #40057 from cachedout/ollie_blacklist
More mentionbot blacklists
2017-03-16 12:10:10 -06:00
Nicole Thomas
0ac2e83d37 Merge branch '2016.3' into ollie_blacklist 2017-03-16 11:01:10 -06:00
Nicole Thomas
d36bdb1a6e Merge pull request #40070 from Ch3LL/2016.3.6_release
update 2016.3.6 release notes with additional PR's
2017-03-16 09:43:21 -06:00
Ch3LL
a1f8b49bd1 update 2016.3.6 release notes with additional PR's 2017-03-15 16:34:17 -06:00
Erik Johnson
e3cfd29d6b Fix traceback when virtualenv.managed is invoked with nonexistant user 2017-03-15 16:26:26 -05:00
Mike Place
8dcffc7751 Merge pull request #40018 from meaksh/2016.3-handling-timeouts-for-manage.up-runner
Allows overriding 'timeout' and 'gather_job_timeout' to 'manage.up' runner call
2017-03-15 13:43:00 -06:00
Mike Place
5592c680b5
More mentionbot blacklists 2017-03-15 13:33:58 -06:00
Mike Place
22fc5299a2 Merge pull request #40038 from velom/fix-pip-freeze-parsing
correctly parse "pkg_name===version" from pip freeze
2017-03-15 13:30:02 -06:00
Mike Place
3584f935fa Merge pull request #40053 from saltstack/rh_ip_patch
Update rh_ip.py
2017-03-15 12:57:31 -06:00
Nicole Thomas
837432d3d2 Merge pull request #40041 from terminalmage/issue40011
Fix transposed lines in salt.utils.process
2017-03-15 11:58:24 -06:00
Daniel Wallace
219947acdb Update rh_ip.py 2017-03-15 12:07:27 -05:00
velom
3fae91d879 correctly parse "pkg_name===version" from pip freeze 2017-03-15 18:00:38 +03:00
Erik Johnson
5b5d1b375c Fix transposed lines in salt.utils.process
Resolves #40011.
2017-03-15 09:31:30 -05:00
Mike Place
ee7f3b1200 Merge pull request #40021 from Ch3LL/2016.3.6_release
2016.3.6 release notes with change log
2017-03-14 15:06:18 -06:00
Ch3LL
f3e7e4fb2a Add 2016.3.6 Release Notes 2017-03-14 13:39:48 -06:00
Nicole Thomas
26895b7be2 Merge pull request #40016 from terminalmage/fix-grains-test
Attempt to fix failing grains tests in 2016.3
2017-03-14 12:34:31 -06:00
Nicole Thomas
0c61d064ad Merge pull request #39980 from vutny/cmd-run-state-bg
[2016.3] Allow to use `bg` kwarg for `cmd.run` state function
2017-03-14 11:16:13 -06:00
Nicole Thomas
0ec81a4cde Fixup a syntax error 2017-03-14 11:15:02 -06:00
Pablo Suárez Hernández
9f5c3b7dcd Allows to set custom timeouts for 'manage.up' and 'manage.status' 2017-03-14 16:40:09 +00:00
Pablo Suárez Hernández
2102d9c75c Allows to set 'timeout' and 'gather_job_timeout' via kwargs 2017-03-14 16:39:28 +00:00
Erik Johnson
5d84b40bfd Attempt to fix failing grains tests in 2016.3
The tearDown appears to only be removing the grain if it matches a
specific value. This may be leading to the grain value not being blank
at the time the next test is run.

Instead of only deleting the grain if it matches a specific value,
instead delete all items from that grain to ensure that it is empty for
the next test.
2017-03-14 11:25:15 -05:00
Erik Johnson
b042484455 Merge pull request #39994 from rallytime/ulimits-dockerng-version
Add a versionadded tag for dockerng ulimits addition
2017-03-13 15:58:01 -05:00
rallytime
37bd800fac Add a versionadded tag for dockerng ulimits addition
Fixes #39942
2017-03-13 14:20:02 -06:00
Erik Johnson
e125c94ba5 Merge pull request #39988 from terminalmage/dockerng-timeout
Add comment explaining change from #39973
2017-03-13 13:37:28 -05:00
Erik Johnson
bd2519ed1b Add comment explaining change from #39973
See https://github.com/saltstack/salt/pull/39973#issuecomment-286142419
2017-03-13 10:51:29 -05:00
Denys Havrysh
a81dc9dfc1 [2016.3] Allow to use bg kwarg for cmd.run state function 2017-03-13 11:59:03 +02:00
Mike Place
cd0336e868 Merge pull request #39973 from terminalmage/dockerng-timeout
Don't use docker.Client instance from context if missing attributes
2017-03-11 07:57:49 -07:00
Erik Johnson
869416e7db Don't use docker.Client instance from context if missing attributes
Under some circumstances (which I can't reliably reproduce), the
docker.Client() instance does not have a timeout attribute, causing
anything that needs to use the docker client to result in a traceback.

This fixes this corner case (later branches initialize the timeout
differently).
2017-03-10 21:48:49 -06:00
Mike Place
282c607d26 Merge pull request #39962 from cachedout/disable_mentionbot_delay_3
Disable mention bot delay on 2016.3
2017-03-10 13:24:07 -07:00
Mike Place
7a638f204b
Disable mention bot delay on 2016.3 2017-03-10 13:23:20 -07:00
Mike Place
1e0c88ae08 Merge pull request #39937 from cachedout/gpg_zypper
Fix --non-gpg-checks in zypper module
2017-03-10 11:02:51 -07:00
Mike Place
13ed0d1209
Fix --non-gpg-checks in zypper module
Fix via @jporcaro
2017-03-09 17:18:45 -07:00
Nicole Thomas
4526fc6e08 Merge pull request #39929 from terminalmage/pr-39770-2016.3
Scrap event-based approach for refreshing grains (2016.3 branch)
2017-03-09 15:03:15 -07:00