Commit Graph

76523 Commits

Author SHA1 Message Date
Benjamin Drung
ec219b5f42 Remove duplicate client_envs variable definitions
self.client.envs() is called twice and assigned to client_envs and
client_env_list. Remove one of both variables since they are not
modified before usage.

Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
2017-03-27 10:31:08 +02:00
Nicole Thomas
9d0762deca Merge pull request #40277 from eldadru/Fix-40247-boto_rds-delete-wait-for-deletion-failure
Fixing boto_rds.py delete() wait_for_deletion,  if statement was inco…
2017-03-24 16:29:24 -06:00
Nicole Thomas
6c29c81d01 Merge pull request #40280 from bewing/bp_40273
Clean up temporary file in net.load_template
2017-03-24 16:27:04 -06:00
Nicole Thomas
839b620f32 Merge pull request #40310 from gtmanfred/2016.11
add warning when no host/dns record is found for fqdn_ip
2017-03-24 15:55:19 -06:00
Mike Place
eb86d55478 Merge pull request #40288 from dmurphy18/aix_network
Execution module network support for AIX
2017-03-24 14:10:35 -06:00
Daniel Wallace
cff027ddc6 add warning when no host/dns record is found for fqdn
We appear to be running across an upstream bug of socket.getaddrinfo. If the
ipv4 address is set for the hostname in /etc/hosts, but the ipv6 address is
not, we run into the timeout.  If the ipv6 is set, but the ipv4 is not, then
everything works as expected.  If neither are set, and you don't have
`myhostname` in nsswitch.conf for hosts, then it will fail for both if dns is
not setup.

There is not much else we can do besides log a warning so that users make sure
that their hostname lookups are setup correctly.

```
root@saltmaster:~# cat /etc/hosts
::1 saltmaster.local saltmaster
root@saltmaster:~# grep hosts /etc/nsswitch.conf
hosts:          files myhostname dns
root@saltmaster:~# time salt-call --local grains.item fqdn_ip4 fqdn_ip6
local:
    ----------
    fqdn_ip4:
        - 127.0.0.1
    fqdn_ip6:
        - ::1

real	0m0.299s
user	0m0.217s
sys	0m0.074s
root@saltmaster:~# vi /etc/hosts
root@saltmaster:~# cat /etc/hosts
127.0.0.1 localhost saltmaster.local saltmaster
root@saltmaster:~# time salt-call --local grains.item fqdn_ip4 fqdn_ip6
[WARNING ] Unable to find IPv6 record for saltmaster.local. Create a dns record or add to /etc/hosts to clear this message.
local:
    ----------
    fqdn_ip4:
        - 127.0.0.1
    fqdn_ip6:

real	0m10.323s
user	0m0.214s
sys	0m0.066s
root@saltmaster:~# vi /etc/hosts
root@saltmaster:~# cat /etc/hosts
root@saltmaster:~# time salt-call --local grains.item fqdn_ip4 fqdn_ip6
local:
    ----------
    fqdn_ip4:
        - 192.168.50.10
        - 10.0.2.15
    fqdn_ip6:
        - ::1

real	0m0.310s
user	0m0.244s
sys	0m0.058s
root@saltmaster:~# vi /etc/nsswitch.conf
root@saltmaster:~# grep hosts /etc/nsswitch.conf
hosts:          files dns
root@saltmaster:~# time salt-call --local grains.item fqdn_ip4 fqdn_ip6
[WARNING ] Unable to find IPv4 record for saltmaster. Create a dns record or add to /etc/hosts to clear this message.
[WARNING ] Unable to find IPv6 record for saltmaster. Create a dns record or add to /etc/hosts to clear this message.
local:
    ----------
    fqdn_ip4:
    fqdn_ip6:

real	0m0.343s
user	0m0.186s
sys	0m0.110s
```
2017-03-24 14:04:41 -05:00
Mike Place
4928026253 Merge pull request #40308 from rallytime/bp-38835
Back-port #38835 to 2016.11
2017-03-24 13:00:45 -06:00
David Boucha
3ba50d3c52 add info about what is cached 2017-03-24 11:49:26 -06:00
David Boucha
77e8f6aff9 fix config example 2017-03-24 11:49:26 -06:00
David Boucha
61f2fa9339 Add documentation for the Minion data cache
Includes docs for localfs and consul minion data cache modules
2017-03-24 11:49:26 -06:00
Nicole Thomas
12a9fc43c9 Merge pull request #40287 from rallytime/merge-2016.11
[2016.11] Merge forward from 2016.3 to 2016.11
2017-03-24 10:50:22 -06:00
David Murphy
b53a95dab1 Further update to us in similar to review comments 2017-03-24 10:08:02 -06:00
David Murphy
59c0bdc14d Updated for review comments 2017-03-24 10:00:38 -06:00
David Murphy
031c9457ba Execution module network support for AIX 2017-03-23 17:41:23 -06:00
rallytime
77415369cc Merge branch '2016.3' into '2016.11'
Conflicts:
  - salt/states/pkg.py
2017-03-23 16:47:52 -06:00
Mike Place
0e2d52c3ea Merge pull request #40260 from lubyou/fix-join_domain
Use win32api.FormatMessage to cover more system codes
2017-03-23 15:07:26 -06:00
Mike Place
0c62bb37d3 Merge pull request #40275 from UtahDave/2016.3local
remove reference to auth_minion.
2017-03-23 14:34:43 -06:00
Brandon Ewing
f028e939f5 Clean up temporary file in net.load_template 2017-03-23 15:25:14 -05:00
Eldad Rudich
3c15a32764 Fixing boto_rds.py delete() wait_for_deletion, if statement was incorrectly checking the return value of boto_rds.py exists() method. 2017-03-23 21:51:02 +02:00
Mike Place
57ce474d73 Merge pull request #40265 from terminalmage/issue40219
Fix two mod_aggregate bugs in pkg states
2017-03-23 13:34:34 -06:00
David Boucha
9f0c9802c2 remove reference to auth_minion.
Support for this option was removed years ago and is no longer needed.
2017-03-23 13:08:51 -06:00
Erik Johnson
1a731e0216 Pop off the version when aggregating pkg states
This squelches a spurious warning that we get due to rewriting the low
data such that the name and version are aggregated under the "pkgs" arg,
with the "version" key remaining in the low chunk.
2017-03-23 11:56:28 -05:00
Erik Johnson
0055fda3e9 Properly aggregate version when passed with name
This fixes an issue in which states which contained a single package
name (no "pkgs" or "sources") paired with a "version" argument, were
having the version ignored. This is because just the name was being
added to the aggregated "pkgs".

Since we're munging low data to aggregate states, this bug wouldn't even
result in the state failing if a different version were installed.
2017-03-23 11:43:00 -05:00
Mike Place
b7f9100e6d Merge pull request #40250 from techhat/settags
Add wait_for_fun() to set_tags()
2017-03-23 10:42:12 -06:00
Erik Johnson
62d76f50fc Don't aggregate both name/pkgs and sources in pkg states
Doing so will cause problems trying to install as Salt does not support
installing from both binary packages and repository packages in the same
call to pkg.install.
2017-03-23 11:41:58 -05:00
Mike Place
904e144ae4 Merge pull request #40255 from lomeroe/fix_39976_2016.11
backport #40253
2017-03-23 10:36:43 -06:00
Mike Place
b208630d85 Merge pull request #40201 from sergeizv/cloud-roster-fixes-2016.3
Cloud roster fixes
2017-03-23 10:28:27 -06:00
Johannes Scholz
1cb15d1ea8 use win32api.FormatMessage() to get the error message for the system code 2017-03-23 16:40:10 +01:00
Ethan Moore
0e9f5820cc backport #40253 2017-03-23 14:50:09 +00:00
Nicole Thomas
720a362c7a Merge pull request #40240 from rallytime/merge-2016.11
[2016.11] Merge forward from 2016.3 to 2016.11
2017-03-23 08:14:10 -06:00
Joseph Hall
baff7a046d Add wait_for_fun() to set_tags() 2017-03-23 08:00:37 -06:00
rallytime
5c5b74b09a Merge branch '2016.3' into '2016.11'
Conflicts:
  - pkg/windows/req.txt
2017-03-22 17:20:58 -06:00
Mike Place
c40376250f Merge pull request #40231 from rallytime/bp-40030
Back-port #40030 to 2016.11
2017-03-22 17:14:40 -06:00
Mike Place
e39f5cbf40 Merge pull request #40239 from saltstack/revert-40225-waitforfun
Revert "Add wait_for_fun() to set_tags()"
2017-03-22 16:59:15 -06:00
Mike Place
95bdab87b4 Revert "Add wait_for_fun() to set_tags()" 2017-03-22 16:58:57 -06:00
Mike Place
35ced607dd Merge pull request #40226 from terminalmage/issue40149
Fix wrong errno in systemd.py
2017-03-22 16:31:41 -06:00
Nicole Thomas
24c4ae9c21 Merge pull request #40232 from rallytime/update-release-notes
Update release notes for 2016.3.6
2017-03-22 15:09:34 -06:00
rallytime
2ead188b4f Update release notes for 2016.3.6 2017-03-22 14:21:29 -06:00
Narendra Ingale
4d1c687cbd Using lchown insted of chown. 2017-03-22 13:58:21 -06:00
Narendra Ingale
52b3d986b5 Added changes for fix_39445 2017-03-22 13:58:21 -06:00
Erik Johnson
2a8df9384c Fix wrong errno in systemd.py
Resolves #40149.
2017-03-22 13:34:51 -05:00
Mike Place
c59ae9a82c Merge pull request #39855 from Foxlik/use_regex_to_compare_authorized_keys
Use regular expression instead of split when replacing authorized_keys
2017-03-22 12:28:31 -06:00
Mike Place
11d2f5abec Merge pull request #40225 from techhat/waitforfun
Add wait_for_fun() to set_tags()
2017-03-22 12:15:34 -06:00
Mike Place
c8cfbb7df6 Merge pull request #40172 from dmurphy18/fix_solaris_network
Fix solaris network
2017-03-22 11:41:55 -06:00
Mike Place
fd10430018 Merge pull request #40221 from rallytime/bp-39179
Back-port #39179 to 2016.3
2017-03-22 11:40:34 -06:00
Joseph Hall
89b5010883 Add wait_for_fun() to set_tags() 2017-03-22 10:50:44 -06:00
Mike Place
a27a2cc3bb Merge pull request #40206 from cro/sign_pub_take2
Leave sign_pub_messages off by default.
2017-03-22 10:43:03 -06:00
Mike Place
d1abb4cbaa Merge pull request #40193 from rallytime/bp-40117
Back-port #40117 to 2016.3
2017-03-22 10:42:21 -06:00
Mike Place
0f1ff4d4a8 Merge pull request #40196 from twangboy/win_fix_deps
Update dependencies for PyOpenSSL
2017-03-22 10:40:45 -06:00
Mike Place
e9a4e8548b Merge pull request #40210 from rallytime/test-skip
Skip flaky test for now
2017-03-22 10:34:40 -06:00