Commit Graph

69775 Commits

Author SHA1 Message Date
Justin Zandbergen
1241d87f1d fix for issue #35198 2016-10-12 10:33:16 -06:00
Justin Findlay
4d8fb03b79 return opennebula errors to user (#36930)
* cloud.clouds.opennebula: return errors to user

* cloud.clouds.opennebula._get_xml: add unit test
2016-10-12 10:19:11 -06:00
Erik Johnson
4b21cca909 Fix race condition in which files were removed during a file.directory (#36928)
This resolves a case in which a directory being managed by a
file.directory state was running a sphinx build, and temporary
files/dirs created by the build were present when the initial walk was
performed but were cleaned up by the time the state got around to
enforcing permissions.
2016-10-12 09:56:53 -06:00
C. R. Oldham
6ea1f59058 Merge pull request #36929 from rallytime/fix-pending-upgrade-test
[yumpkg] Skip test_pkg_upgrade_has_pending_upgrades if there are no upgrades
2016-10-11 16:55:49 -06:00
rallytime
32829b9474 [yumpkg] Skip test_pkg_upgrade_has_pending_upgrades if there are no upgrades
yumpkg.list_upgrades returns an empty dictionary when no upgrades are available.
We need to check for this situation and skip the test if no upgrades are present.

Fixes the test failure on Fedora 24 on Jenkins currently, but also protects against
any potential failures for other RHEL-based distros that aren't currently failing
because "ret" is populated with a dictionary of upgrades.
2016-10-11 16:50:50 -06:00
Nicole Thomas
288f437d5e [2016.3] Remove "Targeting with Executions" section from docs (#36926)
The targeting docs were refactored in the 2016.3 branch compared to
the 2015.8 branch. This fixes #36906 for the 2016.3 branch and newer.

Refs #36925
2016-10-11 16:34:08 -06:00
Nicole Thomas
7838d8d3f9 Remove "Targeting with Executions" section from docs (#36925)
This feature was removed long ago and is no longer under development.

Fixes #36906
2016-10-11 16:33:56 -06:00
Erik Johnson
a56bf8bd2d Update references to future default value change that was reverted (#36924) 2016-10-11 16:33:41 -06:00
Nicole Thomas
b7f87e0aed Merge pull request #36915 from rallytime/merge-2016.3
[2016.3] Merge forward from 2015.8 to 2016.3
2016-10-11 13:49:42 -06:00
rallytime
971c27cba2 Merge branch '2015.8' into '2016.3'
No conflicts.
2016-10-11 13:00:17 -06:00
Erik Johnson
f3443fb992 Properly handle "shared" arg in git.init when it is a bool (#36912) 2016-10-11 12:54:15 -06:00
rallytime
b8ffd9f53f Allow alternatives.show_link function to work on Suse distros
This should fixup the failing integration.states.alternatives test
in 2016.3 as well. The alternatives.install state relies on checking
if the output of alternatives.show_link matches the path passed into
the state. Since show_link didn't work on suse correctly, the state
doesn't install the alternative and returns False.
2016-10-11 12:46:31 -06:00
Daniel Wallace
727d4f309a allow for closing stuff in beacons
Like the filehandler for inotify
2016-10-11 12:34:42 -05:00
Benoît Knecht
0ebf7a451c modules: debian_ip: override params early to fix diff (#36820)
Slave interfaces have some of their parameters overridden before being written
to file, but when Salt is ran in test mode, those overridden values aren't
taken into account. This results in the test run showing that changes will be
applied, even though the configuration hasn't changed at all:

        ID: ens2f1
  Function: network.managed
    Result: None
   Comment: Interface ens2f1 is set to be updated:
            ---
            +++
            @@ -1,4 +1,3 @@
             auto ens2f1
            -iface ens2f1 inet manual
            -    bond-master bond0
            +iface ens2f1 inet static
   Started: 09:07:41.719716
  Duration: 1.91 ms
   Changes:

This commit overrides those values in _parse_settings_eth instead of
_write_file_ifaces, so that the test run shows what's really going to be
modified.
2016-10-11 10:17:44 -06:00
Justin Findlay
a23ce84e57 states.schedule: splay is not ordereddict (#36894) 2016-10-11 09:03:58 -06:00
Clint Armstrong
eb4433d1ae return early if there are no requested extensions in the csr 2016-10-11 07:50:46 -04:00
Erik Johnson
bdbf1619cb Check for test=True in salt.wait_for_event orchestration events (#36897)
This prevents a wait_for_event from hanging the orchestration job when
test=True.
2016-10-10 17:00:42 -06:00
Clint Armstrong
d00cf8ef87 allow specifying digest for crl 2016-10-10 16:57:08 -04:00
Clint Armstrong
dd50705e58 fix #36814 2016-10-10 16:54:33 -04:00
Nicole Thomas
86ac8bd680 Merge pull request #36885 from rallytime/merge-2016.3
[2016.3] Merge forward from 2015.8 to 2016.3
2016-10-10 13:30:25 -06:00
Erik Johnson
1c0ba8012c salt-ssh: Try "command -v" before falling back to "which" (#36889)
This makes salt-ssh work better on minimal installs such as the CentOS 7
container images from linuxcontainers.org.
2016-10-10 13:28:41 -06:00
rallytime
c09b9d6e6a Merge branch '2015.8' into '2016.3'
No conflicts.
2016-10-10 10:21:04 -06:00
Denys Havrysh
99cf3038cc cp.get_url: fix dest=None behaviour with salt:// URL 2016-10-10 18:00:34 +03:00
Erik Johnson
85eea4d6ee fileclient: Change queryarg comparison from None to simple boolean check (#36830)
When there are no queryargs, the ``query`` attribute is an empty string,
not ``None``.
2016-10-08 07:50:49 -06:00
Mike Place
3ce4897b97 Merge pull request #36857 from terminalmage/systemd-unit-tests
Add unit tests for systemd scope usage
2016-10-08 14:22:05 +09:00
Erik Johnson
7c78d6f419 Add unit tests for systemd scope usage 2016-10-07 17:35:09 -05:00
Nicole Thomas
6a6bdf3e3f Merge pull request #36853 from rallytime/bp-33939
Back-port #33939 to 2016.3
2016-10-07 15:44:32 -06:00
Nicole Thomas
01348bde18 Merge pull request #36852 from rallytime/bp-36743
Back-port #36743 to 2016.3
2016-10-07 15:35:43 -06:00
Bartosz Burclaf
efbc09c1a6 Removed !-password check 2016-10-07 13:57:18 -06:00
do3meli
899130d11f corrected OS Name in module load error message 2016-10-07 13:40:00 -06:00
Nicole Thomas
0b7661244d Merge pull request #36844 from rallytime/merge-2016.3
[2016.3] Merge forward from 2015.8 to 2016.3
2016-10-07 13:20:31 -06:00
Erik Johnson
0ccf789172 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-07 12:33:04 -05:00
C. R. Oldham
dc5d821be6 Merge pull request #36835 from jfindlay/beacon_doc
unify and expand beacon documentation
2016-10-07 09:59:34 -06:00
rallytime
1c3a9a3ee9 Merge branch '2015.8' into '2016.3'
Conflicts:
  - salt/minion.py
  - salt/output/highstate.py
2016-10-07 09:39:48 -06:00
Justin Findlay
b2eccdefd5 doc.topics.beacons: reflow text at 80 chars 2016-10-06 17:06:10 -06:00
Justin Findlay
b181f9890d doc.topics.{reactor|beacons}: unify examples, many minor edits 2016-10-06 17:06:10 -06:00
Justin Findlay
28b4e30009 doc.glossary: use parenthesis 2016-10-06 16:17:22 -06:00
Justin Findlay
82cf39db00 doc.glossary: add JID 2016-10-06 16:17:22 -06:00
Justin Findlay
cc071b75cb doc.glossary: add idempotent 2016-10-06 16:17:22 -06:00
Erik Johnson
ddd44e9b13 Use Type=notify for debian systemd units 2016-10-06 09:14:50 -05:00
Mike Place
1284de27fc Merge pull request #36789 from maximeguillet/fix-psqlrc-pg9.6
Fix behavior of psql -c option with postgresql 9.6
2016-10-06 20:24:51 +09:00
Mike Place
a1d59f4d2f Merge pull request #36797 from cachedout/issue_36579
Error on reaction with missing SLS file
2016-10-06 20:19:27 +09:00
Mike Place
b75130be2d Merge pull request #36803 from gtmanfred/2016.3
do not load libvirt pillar if certtool is unavailable
2016-10-06 20:15:14 +09:00
Mike Place
39148dc711 Merge pull request #36815 from BenoitKnecht/fix-glance-image-present-state-2016.3
Fix glance.image_present state
2016-10-06 19:29:44 +09:00
Benoît Knecht
342eee444d states: glance: handle image list instead of dict
glance.image_list now returns a list of images instead of a dict, but
the glance state tried to use the values() method on it either way,
leading to the following exception:

  An exception occurred in this state: Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1733, in call
      **cdata['kwargs'])
    File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1652, in wrapper
      return f(*args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/salt/states/glance.py", line 155, in image_present
      image, msg = _find_image(name)
    File "/usr/lib/python2.7/dist-packages/salt/states/glance.py", line 60, in _find_image
      return images_dict.values()[0], 'Found image {0}'.format(name)
  AttributeError: 'list' object has no attribute 'values'

This commit makes sure that we're always working with a list, even if
glance.image_list returns a dict.
2016-10-06 10:09:45 +02:00
Benoît Knecht
02b91ecf15 states: glance: import keystone exceptions from new location
keystoneclient.apiclient.exceptions has been deprecated since 0.7.1 in
favor of keystoneclient.exceptions, and has been removed in 2.1.0, so
the glance state fails to load with recent versions of keystoneclient.

This commit tries to import from keystoneclient.exceptions first, and
falls back to keystoneclient.apiclient.exceptions if that fails.
2016-10-06 10:06:52 +02:00
Erik Johnson
7d60e73308 Fix pillar merging when ext_pillar_first is enabled
ext_pillar was being merged into pillar, when it should have been the
other way around. This means that when ext_pillar_first was enabled,
pillar keys with the same name as ones defined in ext_pillar were being
lost instead of overriding ext_pillar.
2016-10-05 15:57:42 -05:00
Robert James Hernandez
036d73f31b Use control-group default for killmode 2016-10-05 10:49:37 -07:00
Daniel Wallace
2183737085 do not load libvirt pillar if certtool is unavailable 2016-10-05 12:28:19 -05:00
Maxime Guillet
b59c23bef1 Fix one remaining postgresql tests linked to #36787. 2016-10-05 17:05:10 +02:00