Commit Graph

95314 Commits

Author SHA1 Message Date
Jorge Schrauwen
96d67d43ff The smartos state's vm_present should support docker 2018-06-24 20:57:15 +02:00
Alexandru Avadanii
219b84a512
virt module: Allow NVRAM unlinking on DOM undefine
UEFI-enabled VMs usually have pflash (NVRAM) devices attached,
which require one additional libvirt flag to be passed at 'undefine'.

This is usually the case for AArch64 (arm64) VMs, where AAVMF (AA64
UEFI) is the only supported guest bootloader.

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2018-06-24 20:36:44 +02:00
Nicole Thomas
2661ae5764
Merge pull request #48262 from cbosdo/virt-cleanup
Virt cleanup
2018-06-22 13:56:53 -04:00
pm17788
f6d0610599
Merge branch 'develop' into develop 2018-06-22 13:19:26 -04:00
rallytime
b7538996c4
Reduce the number of days an issue is stale by 10 2018-06-22 12:00:15 -04:00
Nicole Thomas
08735c9cd7
Merge pull request #48193 from jacksontj/issue_42659
Properly wait on returns in saltnado
2018-06-22 11:50:02 -04:00
Nicole Thomas
6cd58acf4e
Merge pull request #48243 from terminalmage/eafp
EAFP optimization in linux_acl state
2018-06-22 11:48:29 -04:00
Nicole Thomas
7365b81389
Merge pull request #48267 from mirceaulinic/template-mod
Adding a little module as a helper for template rendering on the fly
2018-06-22 11:47:11 -04:00
Nicole Thomas
48c9096360
Merge pull request #48181 from rares-pop/dev/iepopr/fix_timezone_nilinuxrt
timezone: Fix {set/get}_zone for legacy NILinuxRT
2018-06-22 11:39:35 -04:00
Nicole Thomas
3490a621f2
Lint: Add blank link before class 2018-06-22 11:35:54 -04:00
Nicole Thomas
254f8fc18f
Merge pull request #48258 from nullify005/ldap-tuple-fixes
preserve tuples for ldap modification operations
2018-06-22 11:28:31 -04:00
Mircea Ulinic
e369357ff3 Adding the template module for autodoc 2018-06-22 11:23:13 +00:00
Mircea Ulinic
1afe33436a Adding the template execution module, as a helper for CLI and other modules 2018-06-22 11:19:04 +00:00
Mircea Ulinic
d163f64509 Adding the netmiko execution module to autodoc 2018-06-22 10:10:46 +00:00
Mircea Ulinic
917af844a6 Add netmiko proxy module to autodoc 2018-06-22 10:10:46 +00:00
Mircea Ulinic
c9821c77c7 Adding the netmiko execution module, flexible enough to be used for any sort of Minion 2018-06-22 10:10:42 +00:00
Mircea Ulinic
04ffc49bf6 Adding the netmiko proxy module 2018-06-22 10:10:36 +00:00
Cédric Bosdonnat
e3db7a9d63
Add virt.get_hypervisor
Since the number of detected hypervisors can only grow, merge all
is_*_hyper functions into a single get_hypervisor one.
2018-06-22 10:57:44 +02:00
Cédric Bosdonnat
2fce4e5bf8
Remove unused virt._qemu_image_info()
Unused code needs to go away.
2018-06-22 10:54:38 +02:00
Cédric Bosdonnat
d4cfd03d78
Remove deprecated _get_image_info
The _get_image_info() function was deprecated but still in use by
_gen_vol_xml(). Refactor to use __disk_profile() data instead.
2018-06-22 10:54:26 +02:00
Cédric Bosdonnat
3d917e5cbd
Fix typos in virt module tests
Fix typos in tests docstrings
2018-06-22 10:52:01 +02:00
Cédric Bosdonnat
18f21129da
Fix virt module documentation
Several fixes have been squashed into this commit to make the virt
module documentation correct:

 * add missing parameters documentation in publicly exposed functions
 * fix ..versionadded into .. versionadded
 * a few minor display glitches
2018-06-22 10:51:48 +02:00
Cédric Bosdonnat
b1c685d7f1
doc: mock boto.regioninfo._load_json_file
Mockup _load_json_file() in order to avoid the following errors when
building the docs:

WARNING: autodoc: failed to import module 'salt.modules.boto_asg'; the following exception was raised:
Traceback (most recent call last):
  File "/public/src/salt/env/lib/python3.6/site-packages/sphinx/ext/autodoc/importer.py", line 140, in import_module
    __import__(modname)
  File "/public/src/salt/salt/modules/boto_asg.py", line 63, in <module>
    import boto.ec2
  File "/public/src/salt/env/lib/python3.6/site-packages/boto/ec2/__init__.py", line 31, in <module>
    RegionData = load_regions().get('ec2', {})
  File "/public/src/salt/env/lib/python3.6/site-packages/boto/regioninfo.py", line 100, in load_regions
    endpoints = _load_builtin_endpoints()
  File "/public/src/salt/env/lib/python3.6/site-packages/boto/regioninfo.py", line 128, in _load_builtin_endpoints
    resolver = BotoEndpointResolver(endpoints)
  File "/public/src/salt/env/lib/python3.6/site-packages/boto/endpoints.py", line 150, in __init__
    endpoint_data, service_rename_map)
  File "/public/src/salt/env/lib/python3.6/site-packages/boto/endpoints.py", line 44, in __init__
    super(_CompatEndpointResolver, self).__init__(endpoint_data)
  File "/public/src/salt/env/lib/python3.6/site-packages/boto/vendored/regions/regions.py", line 95, in __init__
    raise ValueError('Missing "partitions" in endpoint data')
ValueError: Missing "partitions" in endpoint data
2018-06-22 10:51:48 +02:00
Cédric Bosdonnat
8199700fdb
Fix sphynx error about tornado.version_info
This is fix errors like the following when building docs:

WARNING: autodoc: failed to import module 'salt.states.saltmod'; the following exception was raised:
Traceback (most recent call last):
  File "/public/src/salt/env/lib/python3.6/site-packages/sphinx/ext/autodoc/importer.py", line 140, in import_module
    __import__(modname)
  File "/public/src/salt/salt/states/saltmod.py", line 36, in <module>
    import salt.output
  File "/public/src/salt/salt/output/__init__.py", line 19, in <module>
    import salt.loader
  File "/public/src/salt/salt/loader.py", line 23, in <module>
    import salt.config
  File "/public/src/salt/salt/config/__init__.py", line 27, in <module>
    import salt.utils.network
  File "/public/src/salt/salt/utils/network.py", line 35, in <module>
    import salt.utils.zeromq
  File "/public/src/salt/salt/utils/zeromq.py", line 39, in <module>
    if tornado.version_info < (5,):
TypeError: '<' not supported between instances of 'Mock' and 'tuple'
2018-06-22 10:51:48 +02:00
Cédric Bosdonnat
d28dbbbd2c
virt: fix pylint errors
Fix pylint in virt module and its tests
2018-06-22 10:51:14 +02:00
Lee Webb
f2046291cc preserve tuples for ldap modification operations 2018-06-22 13:53:03 +10:00
Gareth J. Greenaway
0988fe084a
Merge branch 'develop' into dev/iepopr/fix_timezone_nilinuxrt 2018-06-21 16:14:51 -07:00
Pavel May
3ada558f7c Variable renaming gone wrong. Fixing 2018-06-21 16:25:40 -04:00
Steven Oliver
00a09a6138
Add unit tests for file.grep 2018-06-21 15:24:14 -04:00
Pavel May
c9855d5474 Fixing https://jenkins.saltstack.com/job/PR/job/salt-pr-lint-n/22808/violations/file/salt/modules/virt.py/ 2018-06-21 12:54:58 -04:00
Thomas Jackson
10038f9e5b Properly configure syndic in test case
Without this option we aren't really a syndic and it won't wait
2018-06-21 09:33:32 -07:00
Thomas Jackson
dfe812f313 Properly wait on returns in saltnado
This was broken because the behavior was to simply check the ckminions
and wait for only those returns to complete. This works assuming
ckminions is accurate (which there are many cases where it isn't, such
as syndics).

_disbatch_local's waiting on returns needs to match LocalClient's
behavior (namely that in get_iter_returns). This means we are allowed to
return when (1) we have waitged the min_wait_time (0 if not a syndic)
(2) no minions are running the job (3) all minions we saw running it are
done running the job. The only method allowed for earlier termination is
if the gather_job_timeout is exceeded.

Fixes #42659
2018-06-21 09:33:32 -07:00
pm17788
0fe486c9e9
Merge branch 'develop' into develop 2018-06-21 10:33:31 -04:00
Nicole Thomas
65d36b00c1
Merge pull request #48237 from max-arnold/develop
Fix quite common Exception typos
2018-06-21 10:14:23 -04:00
Erik Johnson
f66c409d9a
EAFP optimization in linux_acl state
The `in` operator and `list.remove()` both iterate over the contents of
the list. Attempting the remove and catching the ValueError prevents the
extra iteration performed by the membership check.
2018-06-21 08:17:30 -05:00
Max Arnold
00798a9e33 Fix quite common Exception typos 2018-06-21 14:22:44 +07:00
Andreas Thienemann
8f9460403c Update core.py grains to add Matrox and ASPEED.
Matrox and ASPEED are used in a lot of server mainboards for embedded
GPU chips.
Add these as recognized chipset manufacturers.
Drive-By: Align netbsd vendor data with linux vendor data, adding
          cirrus logic and vmware to the linux vendors.
2018-06-20 19:15:53 -07:00
Nicole Thomas
769cfe1a7d
Merge pull request #48217 from steveno/add_file_comment_line_unit_tests
Add unit tests for file.comment_line
2018-06-20 12:56:09 -04:00
Nicole Thomas
7abc85f46b
Merge pull request #48225 from myii/patch-1
Fix typos in Jinja `load_yaml` example
2018-06-20 12:53:14 -04:00
Nicole Thomas
65dc44308e
Merge pull request #48178 from dwfreed/fixup-presence
Teach salt.utils.minions.CkMinions.connected_ids() about IPv6
2018-06-20 12:33:37 -04:00
Nicole Thomas
f75a326eed
Merge pull request #48213 from rallytime/acl-test
Only call remove() on a list when the item is present
2018-06-20 11:57:29 -04:00
Imran Iqbal
9fd9a09b4a
Fix typos in Jinja load_yaml example 2018-06-20 16:32:20 +01:00
Nicole Thomas
e9e2295447
Merge pull request #48211 from rallytime/virt-test
[Py3] Fix get_disks test in virt module unittests
2018-06-20 09:45:00 -04:00
Nicole Thomas
3a378a9036
Merge pull request #48162 from rallytime/merge-develop
[develop] Merge forward from 2018.3 to develop
2018-06-20 09:42:49 -04:00
Maarten Nieber
683bec42a7
Explain how to use a grain in a state 2018-06-20 08:08:40 +02:00
William Giokas
6a6ae32d01
Set jobs to pending when they come in 2018-06-19 16:55:05 -06:00
William Giokas
ae286cc8f8
Use proper creds with githubNotify
I also made it more generic for the distros.
2018-06-19 16:45:10 -06:00
Steven Oliver
836b51a07c
Add different character test 2018-06-19 17:02:21 -04:00
Steven Oliver
47262d179c
Add unit tests for file.comment_line 2018-06-19 16:50:21 -04:00
William Giokas
182dacc95f
Test using different credentials
I also shortened up the linting steps considerably...
2018-06-19 14:27:41 -06:00