Commit Graph

79371 Commits

Author SHA1 Message Date
Daniel Wallace
587b7fc7f3 fix test 2017-03-08 18:53:19 -06:00
Daniel Wallace
2f2a992f2d add subset to orchestrate 2017-03-08 17:56:16 -06:00
Dennis Dmitriev
e415ded235 Add slaves to bond master interface after it's set up
Problem description:
--------------------

On Ubuntu, state 'network.managed' doesn't add slaves
to bonding master interface after it is UP

Example pillars:

linux_interface_bond0:
  network.managed:
  - enabled: True
  - name: bond0
  - type: bond
  - mode: active-backup
  - slaves: enp8s0f1
  - require:
    - network: linux_interface_enp8s0f1

linux_interface_enp8s0f1:
  network.managed:
  - enabled: True
  - name: enp8s0f1
  - type: slave
  - master: bond0

Example result:

3: enp8s0f1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 0c:c4:7a:a8:d0:37 brd ff:ff:ff:ff:ff:ff
42: bond0: <NO-CARRIER,BROADCAST,MULTICAST,MASTER,UP> mtu 9000 qdisc noqueue master ovs-system state DOWN mode DEFAULT group default qlen 1000
    link/ether ee:ae:74:0d:17:29 brd ff:ff:ff:ff:ff:ff

...
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: None
...

Workarounds:
------------

For Ubuntu, it is suggested to restart 'networking' service
to make changes take effect.
Another common workaround is to reboot the machine.

These workarounds are not suitable in some cases, when only non-primary
interfaces are added to bonding interface, so the connectivity to
the salt minion is not broken during state execution.

Proposed solution:
------------------

Let's use 'ifenslave' tool to add slave interfaces to the bonding
interface right after the bonding interface is created/restarted.
2017-03-09 01:34:36 +02:00
Nicole Thomas
caf10e9988 Merge pull request #39899 from techhat/cleanupdisks
Update cleanup function for azure
2017-03-08 16:28:32 -07:00
Johnny Cook
ca306c0860 Replace pass with updated comment for return 2017-03-08 16:25:50 -07:00
Johnny Cook
1a78878b47 Adding check for ignore_if_missing param when calling _check_file. 2017-03-08 16:25:50 -07:00
rallytime
c6cfac7678 Pylint fix 2017-03-08 16:24:03 -07:00
Daniel Wallace
08f5c7c8eb add listen to state.pkg
Allows for using listen and listen_in in salt-ssh
2017-03-08 17:07:30 -06:00
Daniel Wallace
faa2c579ca move disabled to call_chunks
This allows disabling states when using salt-ssh
2017-03-08 17:07:28 -06:00
Pedro Algarvio
2e5cb38833 Merge pull request #39828 from s0undt3ch/features/py3
A more brute force approach to try to reduce memory usage on test runs.
2017-03-08 22:08:37 +00:00
Pedro Algarvio
e9abcc1625
Don't fail if we get None returned 2017-03-08 20:43:36 +00:00
Pedro Algarvio
8f11d31e8f
Convert bytes to string under Py3 2017-03-08 20:43:36 +00:00
Pedro Algarvio
51c5558b32
This should no longer hang 2017-03-08 20:43:36 +00:00
Alexandr Porunov
c4263671ba Add new missing params to s3 fileclient
Add two new missing parameters to s3 fileclient (https_enable and path_style). They allow to use s3 compatible object storages with path style and http protocol.
2017-03-08 21:26:02 +02:00
Pedro Algarvio
0b41b92d7d
Use salt.utils.versions instead of distutils.version 2017-03-08 19:22:33 +00:00
Pedro Algarvio
3a10e3014b
Decode bytes to strings under Py3 2017-03-08 18:34:35 +00:00
Pedro Algarvio
0a66eac8ad
Ditch initial double forward slashes 2017-03-08 18:34:35 +00:00
Pedro Algarvio
af7de9f0ea
One more attribute to clean up 2017-03-08 18:34:35 +00:00
Pedro Algarvio
06c063a609
Test assertion cannot be done in the callback context 2017-03-08 18:34:34 +00:00
Pedro Algarvio
c09f5e49ff
Absolute paths 2017-03-08 18:34:34 +00:00
Pedro Algarvio
b58241648a
Use the tests support paths module 2017-03-08 18:34:34 +00:00
Pedro Algarvio
36b18864e5
Reuse the existing tests support paths module 2017-03-08 18:34:34 +00:00
Pedro Algarvio
5d15ae368c
Properly handle bytes in Py3
/cc @whiteinge ref 565bafaf80
2017-03-08 18:34:34 +00:00
Pedro Algarvio
70c0a10666
Properly handle bytes 2017-03-08 18:34:33 +00:00
Pedro Algarvio
ff3faf56fb
Catch AttributeError 2017-03-08 18:34:33 +00:00
Pedro Algarvio
7fffd93b50
Don't pollute the repo tests state tree 2017-03-08 18:34:33 +00:00
Pedro Algarvio
df942bc082
Add a repeat decorator to retry passing tests N times until it fails 2017-03-08 18:34:33 +00:00
Pedro Algarvio
b391a4eb5b
Supervisord does not work under Python 3 2017-03-08 18:34:33 +00:00
Pedro Algarvio
e2e303e724
Minor changes to paths 2017-03-08 18:34:32 +00:00
Pedro Algarvio
5d599a7048
Seeking from the end of the file can only be done when opened in binary mode in Py3 2017-03-08 18:34:32 +00:00
Pedro Algarvio
712b81e0c1
supervisor does not run against py3. Use pep8 for the tests. 2017-03-08 18:34:32 +00:00
Pedro Algarvio
07d0a5ed20
Cleanup after ourselves 2017-03-08 18:34:32 +00:00
Pedro Algarvio
ad4430249f
Don't complain about basic python types 2017-03-08 18:34:31 +00:00
Pedro Algarvio
c436d9f2f6
This no longer applies. 2017-03-08 18:34:31 +00:00
twangboy
462bdecd33 Namespace the line function properly in win_file 2017-03-08 11:21:11 -07:00
Joseph Hall
baf4579e63 Update cleanup function for azure 2017-03-08 10:19:06 -07:00
Daniel Wallace
6d99fe0245 use list on providers
This is needed because we are modifying the size of the dictionary
inside the loop.
2017-03-08 10:25:21 -06:00
Kadlec Jan
93306ba8a8 Fix linode white space 2017-03-08 17:14:56 +01:00
rallytime
4fc9b5484b Merge branch '2016.11' into 'develop'
Conflicts:
  - salt/client/ssh/__init__.py
  - salt/pillar/makostack.py
  - tests/integration/client/test_runner.py
  - tests/integration/states/test_file.py
2017-03-08 09:04:26 -07:00
Mircea Ulinic
93093e80ba Add always_alive option for napalm proxy 2017-03-08 16:01:07 +00:00
Kadlec Jan
2c67cfdbdb Add function for matching key/value grains 2017-03-08 15:14:46 +01:00
Nicole Thomas
418006a109 Merge pull request #39869 from The-Loeki/cache-roster2
Cache roster: add release notes
2017-03-07 16:18:43 -07:00
Nicole Thomas
801ff28053 Merge pull request #39872 from techhat/fixdocs
Add installation tips for azurearm driver
2017-03-07 16:18:03 -07:00
Mike Place
fcf95f3654 Merge pull request #39871 from terminalmage/squelch-import-warning
Squelch warning for pygit2 import
2017-03-07 13:40:17 -07:00
Joseph Hall
35440c5936 Add installation tips for azure 2017-03-07 12:12:56 -07:00
Joseph Hall
2a1ae0bf2e Change example master in azure docs 2017-03-07 10:01:09 -07:00
Mike Place
da164bfc22 Minor grammar cleanup 2017-03-07 08:51:29 -07:00
Erik Johnson
2b2ec69d04 Squelch warning for pygit2 import
RedHat updated cffi for RHEL/CentOS 7.3, which causes a pair of warnings
on the pygit2 import. This warning is spit out to the CLI on several
commands, when they result in the git fileserver backend to be loaded.

This commit squelches that warning as it is just noise. Upgrading
pygit2/libgit2 would solve this, but that is not likely to happen in
RHEL/CentOS 7.
2017-03-07 09:31:43 -06:00
Pedro Algarvio
0604fdeb8b
Don't warn if the attributes are set to None 2017-03-07 12:23:17 +00:00
Pedro Algarvio
3aa54e6e0e
Clean up after ourselves 2017-03-07 12:23:17 +00:00