Commit graph

1151 commits

Author SHA1 Message Date
Wesley Whetstone
30bd6771c3 add changelog 2020-07-14 09:31:21 -07:00
Daniel A. Wozniak
a6e481ea73 Add changelog and docs for 57718 fix 2020-07-14 09:30:34 -07:00
Erik Johnson
9b47f9c6cc Restore "gid_from_name" and put on a deprecation path
This argument was removed in 3001 with no deprecation path. This
restores it and puts it on a proper deprecation path.
2020-07-13 16:54:44 -07:00
Erik Johnson
c1f6ebadab Fix dict being changed during iteration
Also remove a bunch of needless calls to "keys", as membership checks
for dicts are more efficient using the built-in dict membership check,
which utilizes hashing instead of iterating over the keys.
2020-07-13 16:52:45 -07:00
Pedro Algarvio
ade7a09205 Fix sorting issues on x509.certificate_managed triggering unnecessary changes
Fixes #56556
2020-07-13 16:37:51 -07:00
Wayne Werner
b1af5c64c5 Added changelog 2020-07-13 15:57:30 -07:00
Mathieu Parent
fec3c93e4e Use atomic open to write cache
Otherwise a race can happen between Salt processes and results in unpack error:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/salt/pillar/__init__.py", line 745, in render_pstate
    **defaults)
  File "/usr/lib/python3/dist-packages/salt/template.py", line 101, in compile_template
    ret = render(input_data, saltenv, sls, **render_kwargs)
  File "/usr/lib/python3/dist-packages/salt/renderers/gpg.py", line 378, in render
    return _decrypt_object(gpg_data, translate_newlines=translate_newlines, encoding=kwargs.get('encoding', None))
  File "/usr/lib/python3/dist-packages/salt/renderers/gpg.py", line 357, in _decrypt_object
   translate_newlines=translate_newlines)
  File "/usr/lib/python3/dist-packages/salt/renderers/gpg.py", line 353, in _decrypt_object
    return _decrypt_ciphertexts(obj, translate_newlines=translate_newlines, encoding=encoding)
  File "/usr/lib/python3/dist-packages/salt/renderers/gpg.py", line 328, in _decrypt_ciphertexts
    ret, num = GPG_CIPHERTEXT.subn(replace, to_bytes(cipher))
  File "/usr/lib/python3/dist-packages/salt/renderers/gpg.py", line 325, in replace
    result = to_bytes(_decrypt_ciphertext(match.group()))
  File "/usr/lib/python3/dist-packages/salt/renderers/gpg.py", line 298, in _decrypt_ciphertext
    cache = _get_cache()
  File "/usr/lib/python3/dist-packages/salt/renderers/gpg.py", line 280, in _get_cache
    minion_cache_path=os.path.join(cachedir, 'gpg_cache')
  File "/usr/lib/python3/dist-packages/salt/utils/cache.py", line 37, in factory
    return CacheDisk(ttl, kwargs['minion_cache_path'], *args, **kwargs)
  File "/usr/lib/python3/dist-packages/salt/utils/cache.py", line 90, in __init__
    self._read()
  File "/usr/lib/python3/dist-packages/salt/utils/cache.py", line 138, in _read
    cache = salt.utils.data.decode(salt.utils.msgpack.load(fp_, encoding=__salt_system_encoding__))
  File "/usr/lib/python3/dist-packages/salt/utils/msgpack.py", line 116, in unpack
    return msgpack.unpack(stream, **_sanitize_msgpack_kwargs(kwargs))
  File "/usr/lib/python3/dist-packages/msgpack/__init__.py", line 58, in unpack
    return unpackb(data, **kwargs)
  File "msgpack/_unpacker.pyx", line 211, in msgpack._unpacker.unpackb
msgpack.exceptions.UnpackValueError: Unpack failed: error = 0
2020-07-13 15:55:09 -07:00
twangboy
6d9df8e8e7 Add changelog 2020-07-13 15:49:08 -07:00
Gareth J. Greenaway
3cd9549878 Adding changelog file 2020-07-13 15:47:29 -07:00
twangboy
42eeccf8b6 Add changelog 2020-07-13 15:43:42 -07:00
piterpunk
1b21bcc02f Changes the 'SSDs' grain name to 'ssds'
- By the documentation (https://docs.saltstack.com/en/latest/topics/grains),
  all grains needs to be resolved in lowered case, so the 'SSDs' grain was
  changed to 'ssds'.
2020-07-13 15:42:18 -07:00
piterpunk
5493a50942 Added the Changelog entry for fix 57612
- Fixes issue with virtual block devices, like loopbacks and LVMs,
    wrongly populating the "disks" or "SSDs" grains.
2020-07-13 15:42:18 -07:00
Gareth J. Greenaway
0ddb93995b Requested changes. Additional test for the False state. 2020-07-13 07:03:39 -07:00
Gareth J. Greenaway
0e32651b59 Adding changelog file. 2020-07-13 07:03:39 -07:00
Jorge Schrauwen
95eda904fc [Fix] #57714 virtual grain should work on illumos 2020-07-13 07:02:21 -07:00
Sam SIU
b9ceb89e9d [#56901] network.managed state failed to bring down lo ip alias
- Added support to lo ip alias in network.managed state
- Added test case for the change
2020-07-13 06:59:03 -07:00
twangboy
e90abe5b33 Add changelog 2020-06-09 02:22:20 -07:00
Pedro Algarvio
16551e45fe Update noxfile.py to work with upstream nox 2020-06-08 17:40:55 -07:00
Markus Kramer
39e74066d0 Pofiling should be Profiling! 2020-06-08 17:39:52 -07:00
Markus Kramer
c80bcdc50d documentation 2020-06-08 17:39:52 -07:00
twangboy
bfde74f1b0 Fix spalling 2020-06-08 17:38:35 -07:00
twangboy
7dd1bbfe91 Update changelog 2020-06-08 17:38:35 -07:00
twangboy
79c887ee26 changelog 2020-06-08 17:38:35 -07:00
Wayne Werner
f637c4e032 Add changelog keep file 2020-06-06 20:59:24 -07:00
twangboy
fdec215072 Add change log 2020-06-04 10:10:07 -07:00
Wayne Werner
51dc125d76 Sodium Changelog 2020-05-23 12:55:19 -07:00
Wayne Werner
21ccabfc9b Add Sodium release missing changelog files. 2020-05-23 12:55:19 -07:00
Sebastian Marsching
8168db5dbb Add test for fix in salt.modules.file.check_file_meta. 2020-05-21 20:49:31 -07:00
Wayne Werner
ee181c97a5
Sodium deprecations (#57370)
* Drop deprecated mac_brew_pkg namespace fixup

Closes #57361

* Note deprecation in release notes

* Remove deprecated napalm_network features

Closes #57362

These arguments are no longer useful, since we no longer support using
NAPALM native templates.

* Remove selinux.fcontext_add_or_delete_policy

It was deprecated and slated for removal in Sodium. Closes #57363

* Remove deprecated refresh_db param

Closes #57366

Parameter has been renamed to `refresh`

* Remove deprecated sdecode functions

Closes #57367

sdecode and sdecode_if_string functionalities have both been moved to
decode.

* Remove assorted deprecated features

Closes #57368

- removed obsolete .destroy methods from zeromq channels
- removed winexe support from salt.utils.cloud
- removed obsolete override_name from
  salt.utils.context.NamespacedDictWrapper
- removed obsolete `show_ipv4` parameter from salt.utils.minions
- removed impacket support from salt.utils.smb
- removed obsolete salt.transport.Channel, and fixed test.

* Change module.run deprecation version

* Remove deprecated destroy test

* Remove deprecation from skip

* Re-add keystone docs

* Blacken merge conflict

Co-authored-by: Daniel Wozniak <dwozniak@saltstack.com>
2020-05-21 19:46:14 -07:00
Ken Crowell
22b9e30ad9 Fix s3fs cache byte/str mismatch 2020-05-21 16:44:05 -07:00
jude
5342442903 57347: Updating rpm_lowpkg:version_cmp warning messages 2020-05-20 16:37:05 -07:00
Cédric Bosdonnat
f19bcf49c2 virt: handle build differently depending on the pool type
Some libvirt storage pools backends don't implement the build function.
In thoses cases the virt.pool_defined and virt.pool_running states must
not run the virt.pool_build() function.

There are also cases where build only works once. For example when
creating a LVM VG or a disk partition pool, if the VG or partition is
already present build will fail.

Fixes issue #56454
2020-05-20 16:35:28 -07:00
Pedro Algarvio
fcb44c47d6 Add changelog entry for #55934 fix 2020-05-20 15:56:55 -07:00
Wesley Whetstone
74a744a57e add changelog file 2020-05-19 10:16:07 -07:00
jude
50507345da 57056: Added changelog file 2020-05-18 15:43:07 -07:00
Proskurin Kirill
a9b4a9b910 changelog 2020-05-18 15:41:59 -07:00
Ken Crowell
44d2c90251 Clarify custom module sync requirements 2020-05-10 11:47:10 -07:00
Wayne Werner
24cec5b2cf Add arpcheck to RH8 IP
In #20602 we added the ability to change ARPCHECK in network settings.
This was missing and later added in RH7, but was missing from RH8, since
RH8 support was added before we updated the RH7 support.

This fixes #57047
2020-05-08 09:40:46 -07:00
Jorge Schrauwen
0f27c9f54f Update changelog 2020-05-08 09:39:58 -07:00
ch3ll
c87642181e add towncrier to manage changelog 2020-05-07 16:22:31 -07:00
Cédric Bosdonnat
faf46571c0 Add disk volumes support in virt.init
In order to support creating VMs with disk on more storage pools like
iSCSI, disks, LVM, RBD, etc, virt.init needs to handle disks not only as
files, but also as libvirt volumes.
2020-05-07 16:15:03 -07:00
Cédric Bosdonnat
47f6194c64 Add virt.all_capabilities
In order to get all possible capabilities from a host, the user has to
call virt.capabilities, and then loop over the guests and domains
before calling virt.domain_capabilities for each of them.

This commit embeds all this logic to get them all in a single
virt.all_capabilities call.
2020-05-01 06:40:28 -07:00
Proskurin Kirill
60f1303471
Additional fixes for using cron state with non-root Minion (#56973)
* Fixed cron state to make it work with non-root minions

* Added changelogs

Co-authored-by: Daniel Wozniak <dwozniak@saltstack.com>
2020-04-29 15:14:47 -07:00
Proskurin Kirill
e1d4f9adfb Changelog update 2020-04-29 15:02:09 -07:00
Daniel Wozniak
f8ab0f1865
Merge branch 'master' into master-port/53508 2020-04-22 22:14:35 -07:00
Daniel Wozniak
0d4204a015
Merge pull request #56851 from waynew/master-port/52156
Port #52156 to master
2020-04-22 20:00:22 -07:00
Wayne Werner
f729043e0c
Port #52156 to master
Allow pillar relative includes

Fixes #8875 and Fixes #56186
2020-04-22 17:05:24 -05:00
Wayne Werner
265a1dab8e
Port 51461 to master
Adds `tls.validate` module.
2020-04-22 16:46:22 -05:00
Wayne Werner
935ef3c916
Add changelog entry 2020-04-22 16:12:22 -05:00
ch3ll
2586f716b2
Revert "add towncrier to manage changelog"
This reverts commit 57d160cc60.
2020-04-20 09:34:36 -04:00