Commit Graph

63694 Commits

Author SHA1 Message Date
Mike Place
626c654dd9 Merge pull request #29887 from akissa/fix-cert_info-exception
fix exception in excution module tls.cert_info
2015-12-21 09:29:16 -07:00
Aditya Kulkarni
61a9293af9 Add info about VolumeType 2015-12-21 11:26:53 -05:00
Julien Barbot
00f35f24f9 Read swift credentials from pillar as well
States using the swift:// URL were not loading swift credentials from
pillars, making them unusable when swift credentials were in pillars.
2015-12-21 16:23:05 +01:00
Andrew Colin Kissa
01a303a097 Add catch exception
There is a potential of an exception being
generated if file is empty or has invalid
data
2015-12-21 09:07:00 +02:00
Lvjiawei
92055d8020 Summary: Add two neutron api about l3 and neutron-agent-list.
Description:
Add function list_l3_agent_hosting_routers in salt/modules/neutron.py
and salt/utils/openstack/neutron.py.
Add function list_agents in salt in salt/modules/neutron.py and
salt/utils/openstack/neutron.py.
2015-12-21 14:04:16 +08:00
Andrew Colin Kissa
061f3ea0ae fix exception in excution module tls.cert_info
Fixes #29885
2015-12-21 08:03:37 +02:00
Andrew Colin Kissa
6aa63f3939 add versionadded 2015-12-21 06:46:34 +02:00
Sergey Paramonov
b9ae61be55 fix for nfs mounts in _active_mounts_openbsd()
attempting to run following state
---

/backup:
  mount.mounted:
    - device: joule:/backup
    - fstype: nfs
    - mkmnt: True
    - opts: rw,nodev,nosuid

getting unexpected behavior: 
----------
 
``` 
        ID: /backup
    Function: mount.mounted
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/local/lib/python2.7/site-packages/salt/state.py", line 1591, in call
                  **cdata['kwargs'])
                File "/usr/local/lib/python2.7/site-packages/salt/states/mount.py", line 120, in mounted
                  active = __salt__['mount.active'](extended=True)
                File "/usr/local/lib/python2.7/site-packages/salt/modules/mount.py", line 184, in active
                  _active_mounts_openbsd(ret)
                File "/usr/local/lib/python2.7/site-packages/salt/modules/mount.py", line 148, in _active_mounts_openbsd
                  'opts': parens[1].split(", "),
              IndexError: list index out of range
     Started: 21:51:47.764708
    Duration: 38.882 ms
```

issue clarification: 
---
function _active_mounts_openbsd() 
expecting all mount points to have DUID   
but NFS mounts do not have DUIDs generated, so line need to be parsed separately  

proposal: 
---
1. check length of parens array 
2. and have a different parsing for lines with no DUIDs  in them

testing same state after change: 
---

```
  Name: /etc/fstab - Function: file.blockreplace - Result: Clean
  Name: /d01 - Function: mount.mounted - Result: Clean
  Name: /stage - Function: mount.mounted - Result: Clean
  Name: /backup - Function: mount.mounted - Result: Changed
```

---
Thanks, 
Sergey.
2015-12-20 23:03:24 -05:00
Jorge Schrauwen
c1bd1e610b do the same for create and import 2015-12-20 21:49:54 +00:00
Jorge Schrauwen
0006d25edf handle strings with spaces on for set 2015-12-20 21:45:31 +00:00
Jorge Schrauwen
5a523ebc0b add sample_time to iostat 2015-12-20 21:29:00 +00:00
Jorge Schrauwen
ebf04683fe implement history 2015-12-20 21:15:13 +00:00
Jorge Schrauwen
53d2f02ad0 implemented upgrade 2015-12-20 21:00:15 +00:00
Jorge Schrauwen
6aba23530a implemente set 2015-12-20 20:46:10 +00:00
Jorge Schrauwen
1c9fcdb2f6 implement get 2015-12-20 20:36:28 +00:00
Jorge Schrauwen
2b6a99d829 implement reopen 2015-12-20 20:22:34 +00:00
Jorge Schrauwen
6f30a3a50f implemented reguid 2015-12-20 20:19:38 +00:00
Jorge Schrauwen
d82665761c refactor a lot of code, dealing with error handling 2015-12-20 20:12:16 +00:00
abednarik
780c057546 modules.chassis: __virtual__ return err msg.
Update __virtual__ return message when proxy is not set.
2015-12-20 15:53:49 -03:00
Andrew Colin Kissa
f921a88a30 lint 2015-12-20 20:41:40 +02:00
abednarik
919d1c59f1 modules.bigip: __virtual__ return err msg.
Update __virtual__ return message when python request is not installed.
2015-12-20 15:36:29 -03:00
abednarik
4480b39750 modules.memcached: __virtual__ return err msg.
Updated return message in __virtual__ when python library is not installed.
2015-12-20 15:29:49 -03:00
Jorge Schrauwen
822810eaae implement detach 2015-12-20 16:42:04 +00:00
Jorge Schrauwen
161245e385 fix mistake in destroy 2015-12-20 16:33:31 +00:00
Joseph Hall
90b3fcf345 Merge pull request #29876 from abednarik/document_ssh_port_option
Updated Cloud msic section.
2015-12-20 08:38:00 -07:00
Jorge Schrauwen
56c72bae29 implemented attach 2015-12-20 15:17:35 +00:00
Jorge Schrauwen
6248be18e3 docs improvement for create 2015-12-20 15:08:44 +00:00
Jorge Schrauwen
8d6350284c more cleanup of offline and online, improved add 2015-12-20 15:05:24 +00:00
Sergey Kizunov
793c0bef75 Fixed Windows salt-master memory leaks in logger
__process_multiprocessing_logging_queue:
- A leak was observed in this process on Windows. On Windows, creating a
new process doesn't fork (copy the parent process image). Due to this, we
need to setup extended logging inside this process. The leak was due to
the temp null and temp logging handlers being active which just store
messages but don't process them. Setting up extended logging removes
those handlers and fixes the leak (as well as properly dealing with
incoming logging messages).

setup_multiprocessing_logging:
- A leak was obversed in processes that used this on Windows. Similar
to above, due to lack of fork, the new process will have the temp null
and temp logging handlers enabled, causing the leak. In this function,
removing those handlers prevents the leak.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2015-12-20 09:05:19 -06:00
Jorge Schrauwen
7fd55f14d2 minor improvements to offline 2015-12-20 14:46:21 +00:00
Jorge Schrauwen
1e9321ced4 improvements to online 2015-12-20 14:41:10 +00:00
Jorge Schrauwen
f2b3c8bc2d simplify import, allow for raw options to be passed 2015-12-20 14:17:56 +00:00
Jorge Schrauwen
4c242f802f improve docs for export 2015-12-20 13:48:59 +00:00
abednarik
b7e7bf5a29 Updated Cloud msic section.
Added ssh_port section.
2015-12-20 10:42:58 -03:00
Jorge Schrauwen
6d670d524f fixed - Passed invalid arguments: unhashable type: list. 2015-12-20 13:40:17 +00:00
Jorge Schrauwen
ed7fd966da use decorator for create_file_vdev, as it depends on mkfile 2015-12-20 13:32:32 +00:00
Jorge Schrauwen
66b10529f4 replace now match the underlaying zpool replace command more closely, improved error handling 2015-12-20 13:27:29 +00:00
Jorge Schrauwen
c000ee6f02 destroy can be a bit more helpful on error 2015-12-20 12:59:51 +00:00
Jorge Schrauwen
5f0aa9585b bring some minor functions inline with others 2015-12-20 12:57:07 +00:00
Jorge Schrauwen
6819256107 parse outfor for iostat 2015-12-20 12:38:16 +00:00
Jorge Schrauwen
a8f76de694 bring iostat a bit more inline with updated functions 2015-12-20 11:38:02 +00:00
Jorge Schrauwen
17d920c488 add versionchanged 2015-12-20 11:30:58 +00:00
Jorge Schrauwen
23e1746145 parse output of zpool status 2015-12-20 11:30:04 +00:00
Andrew Colin Kissa
a826720371 Add PostgreSQL Language management functionality
Fixes #29874
2015-12-20 09:37:41 +02:00
abednarik
fd8657a412 modules.solaris_user: __virtual__ return err msg.
Added message when return False if OS is not Solaris ow pwd module is not installed.
2015-12-19 23:28:15 -03:00
abednarik
c5725c171b modules.solaris_shadow: __virtual__ return err msg.
Added message when return False if OS is not Solaris.
2015-12-19 23:10:22 -03:00
abednarik
191ac37af9 modules.openbsd_sysctl: __virtual__ return err msg.
Added message when return False if OS is not OpenBSD.
2015-12-19 12:25:00 -03:00
abednarik
7dbc721273 modules.openbsdpkg: __virtual__ return err msg.
Added message when return False if OS is not OpenBSD.
2015-12-19 12:19:16 -03:00
abednarik
4808da47a3 modules.win_shadow: __virtual__ return err msg.
Added message when return False if OS is not Windows.
2015-12-19 10:14:58 -03:00
abednarik
f3497ae65e modules.trafficserver: __virtual__ return err msg.
Added message when return False if traffic_line is not in the path.
2015-12-19 10:03:39 -03:00