Commit Graph

69604 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
Mike Place
6ce4653fa3
Error on reaction with missing SLS file
Closes #36579
2016-10-05 23:50:42 +09:00
Maxime Guillet
8b92ae2061 Fix postgresql tests using position in the argument list of psql.
Some tests use position number in the argument list of psql command
to check their results. As #36787 add one element, next position
in the list must be used.
2016-10-05 16:08:42 +02:00
Mike Place
81c935f210 Merge pull request #36754 from terminalmage/issue36738
Base rpmdev-vercmp comparison result on retcode
2016-10-05 21:50:23 +09:00
Mike Place
3e6b16de2b Merge pull request #36786 from cachedout/fixup_36676
Fixup alterernatives module
2016-10-05 21:49:49 +09:00
Maxime Guillet
21f2a17a07 Fix postgresql tests by adding --no-psqlrc option introduced by #36787. 2016-10-05 14:43:02 +02:00
Mike Place
4bdb997dae Merge pull request #36785 from cachedout/pr-36728
Fixup merge forward #36728
2016-10-05 20:02:16 +09:00
Mike Place
3c93134e57
Typo 2016-10-05 19:51:21 +09:00
Maxime Guillet
574e30e915 Fix behavior of psql -c option with postgresql 9.6
psql -c option no longer implies --no-psqlrc with postgresql 9.6, it must be set explicitly.

Fixes #36787.
2016-10-05 12:19:54 +02:00
Mike Place
13eb463bd9
Fixup alterernatives module
This was including the newline which was causing the state modifications present in #36676 to fail in alternatives integration tests which were introduced in 2016.3
2016-10-05 18:28:21 +09:00
Mike Place
118ba8a772
Update alternatives module to strip newline chars
Refs an error exposed by #36676
2016-10-05 18:24:09 +09:00
Mike Place
c126f2e132 Merge pull request #36757 from cachedout/issue_33841
Resolve issue with minion failing to restart on failure
2016-10-05 16:02:58 +09:00
Mike Place
90cca6b135 Merge pull request #36768 from gtmanfred/2016.3
add __utils__ to vultr cloud provider
2016-10-05 15:59:27 +09:00
Daniel Wallace
9df2fd11dd add __utils__ to vultr cloud provider 2016-10-04 12:26:36 -05:00
Mike Place
8ff69bf0c7 Merge pull request #36764 from cachedout/more_pip_test_fixing
Another bit of detection for failed pip tests
2016-10-04 22:05:29 +09:00