update changelog/releasenotes for 3003

This commit is contained in:
Frode Gundersen 2021-03-05 12:52:04 -07:00 committed by Megan Wilhite
parent ac4ea9820f
commit fbb249c4df
108 changed files with 324 additions and 136 deletions

View file

@ -7,6 +7,168 @@ Versions are `MAJOR.PATCH`.
# Changelog
Salt 3003 (2021-03-05)
======================
Removed
-------
- removed the arg `managed_private_key` from 'salt.states.x509.certificate_managed' (#59247)
- Drop support for python 3.5 on Windows (#59479)
Deprecated
----------
- Added deprecation warning for grains.get_or_set_hash (#59425)
Changed
-------
- Change `brew cask --list` to `brew list --cask` (#58381)
- Store git sha in salt/_version.py when installing from a tag so it can be found if needed later. (#59137)
- Changed package manager detection in yumpkg module (#59201)
- Updating the pkg beacon to fire the events when there are upgrades to packages, but also when watched packages are installed or removed. Breaking out the logic for listing pkgs from context into a separate function to aid in testing. Updating tests to ensure context is not used when use_context option to list_pkgs is False. (#59463)
Fixed
-----
- Fix incorrect documentation for pillar_source_merging_strategy (#26396)
- Don't iterate through cloud map errors (#34033)
- Supress noisy warnings when very old pyzmq is used. (#50327)
- Fixed glusterfs version parsing for pre-4.0 (#50707)
- Prevent traceback when trying to list reactors when none are configured. (#53334)
- Fixed zabbix_host.present to accept all Zabbix host properties (#53838)
- Binaries for the salt installer package for OSX are now signed and the installer
package is notarized (#54513)
- Guard boto3_elasticsearch loading properly (#55848)
- Use a capitalized string version of the value of `NodeState` instead (#56589)
- Adding missing error case to the validation for service beacon. (#56623)
- The GCE cloud driver only works with apache-libcloud>=2.5.0, prior versions have authentication issues (#56862)
- zypperpkg add_lock and remove_lock examples do not work (#56922)
- Compare bytes to bytes so we don't overwrite a correct value (#57212)
- Fixing expand_repo_def in aptpkg module to include the architecture in the line attribute when it is passed in. (#57600)
- When passing arguments pass them as keyword arguments so that we can be sure the right value is going where. (#58006, #58579, #59075)
- Improve module whitelist logic for file backends (#58041)
- Fix behavior for "onlyif/unless" state conditionals when multiple declarations (#58085)
- Ensure data is a valid keyword argument for the event.wait function. (#58182)
- Do not raise "StreamClosedError" traceback on the master logs but only log it (#58301)
- Fixed issue with win_timezone when dst is turned off. This was causing the
minion not to start
Use default timezone offset in scheduler when correct timezone cannot be determined (#58379)
- Pop!_OS 20.04 and 20.10 now support using pkg.* / aptpkg.* (#58395)
- Restoring functionallity of the textfsm module when using textfsm_path argument (#58499)
- Invalidate file list cache when cache file has a future last modified time (#58529)
- Fix issue with setting permissions in combination with the win_perms_reset
option (#58541)
- Adds support for Powershell 7. It is specified by passing shell="pwsh". Only
valid if Powershell 7 is installed on the system. (#58598)
- Fixed the zabbix.host_create call on zabbix_host.present to include the
optional parameter visible_name. Now working as documented. (#58602)
- Fixed some bugs to allow zabbix_host.present to update a host already
existent on Zabbix server:
- Added checks before "pop" the elements "bulk" and "details" from
hostinterfaces_get's response. Without that, the interface comparison
didn't works with Zabbix >= 5.0
- Fixed the "inventory" comparison. It failed when both current and new
inventory were missing.
- Rewrite of the update_interfaces routine to really "update" the
interfaces and not trying to delete and recreate all interfaces,
which almost always gives errors as interfaces with linked items
can't be deleted. (#58603)
- Added the "details" mandatory object with the properly default values
when creating a SNMP hostinterface in Zabbix 5.0 (#58620)
- Fixing an issue preventing running pillar.get against pillar values with integers as pillar keys. (#58714)
- Adding a new option to pass client_flags to MySQL connections, for example passing the option to support multiple statements in queries. (#58718)
- Fixed two performance bugs in the sysctl.present state. Their impact is
especially great on FreeBSD machines with large amounts of RAM. (#58732)
- Fixed an issue when pillar files are included in the `top.sls` and then later included in another pillar file. (#58736)
- Left over py2 code was causing windows encoding to misbehave (#58749)
- Return result=None from module.run state to indicate that changes would be made
Return result=False from module.run state when called with no functions (#58752)
- Fix duplicate IP addresses in fqdn_ip4 and fqdn_ip6 grains (#58799)
- Rename `salt.renderers.toml` to `salt.renderers.tomlmod` which fixes the import error issues as described in #58822
Do note that, the renderer is still called `toml`. (#58822)
- Fixing unhold in yumpkg. Removing unnecessary code and relying on the code that handles dicts later. Adding tests when pkg.installed is called with hold=False. (#58883)
- Converts the given "grant" to upper case before compare to "ALL".
This fixes a problem granting "all privileges" to a MySQL user. (#58933)
- Strip trailing "/" from repo.uri when comparing repos in "apktpkg.mod_repo" (#58962)
- When we are checking requisites, run reconcile_procs just on those requisite states not all running states. (#58976)
- Allow the gpg module to use export_key, delete_key and create_key without a passphrase in GnuPG >= 2.1 (#58980)
- Updated the documentation, handling and error messages for what size units are allowed by "size" parameter in lvm.lv_present (#58985)
- Fixing the two failing tests when running on Photon OS. Python 3 installed on Photon OS does not support MD4 hashing, so don't load pdbedit module and skip the test_generate_nt_hash test. Default unmask for files and directories results in them having only user and group permissions so update the test_directory_max_depth test. (#58991)
- Fixes to netmiko module and proxy module to handle situations where the device is unreachable during the initial connection phase. (#59011)
- Correct comment when updating postrges users and groups.
Errors reported when removing postgres groups.
Partial group membership changes in postgres groups. (#59034)
- Fixed an error when running svn.latest in test mode and using the trust_failures
option. (#59069)
- Fixes to storing schedule items in pillar, when refreshing pillar only update the schedule items if something has changed. (#59104)
- Fixed timezone module to work in Slackware Linux (#59130)
- Enforces pywinrm to be version 0.3.0 or higher and upgrade to latest (#59138)
- Fix a race condition in the ldx module which sometimes caused devices not to be created during container creation. (#59145)
- Fix issue where passed smb port was being passed to the smb connection when
deploying Windows with salt-cloud (#59153)
- Fixed an error when running on CentOS Stream 8. (#59161)
- Fix event publish retry when using TCP transport (#59162)
- Fix docs for `auth_timeout` (#59175)
- virt.update doesn't update the definition if efi=True and a loader is already set (#59188)
- Fixed salt.modules.solaris_shadow failing on bytes-like object is require, not 'str'. (#59191)
- Added support for io2 volumes in ec2 cloud (#59218)
- When checking if the mode had changed in the file state module, only do so if the passed mode is not None. (#59276)
- Fixing _sanitze_comments to use sqlparse instead of re.sub. (#59336)
- Allow use of query parameters in cmd.script source url (#59362)
- Access user from global group if local group fails to find user. (#59412)
- Detect and fix grub.xen path (#59484)
- Stop raising `StopIteration` on generators (#59512)
- Fix minion race conditions handling SIGTERM signal when loading modules (#59524)
- Support new output of systemd systemctl list-unit-files in the following modules systemd_service.get_enabled, systemd_service.get_disabled and systemd_service.get_static (#59526)
- Fix pkg.upgrade with -U arg on FreeBSD, -L flag was deprecated long time. (#59565)
- Fixing the virtual function for the netimiko module to allow it to run outside of a proxy minion. Adding additional tests. (#59635)
- Allow "extra_filerefs" as sanitized kwargs for SSH client.
Fix regression on "cmd.run" when passing tuples as cmd. (#59664)
Added
-----
- Adding the ability to clear and show the pillar cache enabled when pillar_cache is True. (#37080)
- SCRAM-SHA-256 support for PostgreSQL passwords.
Pass encrypted=scram-sha-256 to the postgres_user.present (or postgres_group.present) state. (#51271)
- The yumpkg module has been updated to support VMWare's Photon OS, which uses tdnf (a C implementation of dnf). "VMware Photon OS" has been added to the "RedHat" `os_family` map as part of this change. (#51912)
- The pkgrepo state now supports VMware Photon OS. (#52550)
- Added firewallgroups to Vultr Salt Cloud provider (#53677)
- Added arbitrary kwarg support for tojson filter. (#56012)
- Add salt monitor beacon to execute salt execution module functions. (#56461)
- Allow the nameservers to be populated from systemd-resolve. (#57618)
- Adding reactor_niceness to the default minion configuration. (#57701)
- CPU model, topology and NUMA node tuning (#57880)
- Added ``pkg.services_need_restart`` which lists system services that should be restarted after package management operations. (#58261)
- Allow handling special first boot definition on virtual machine (#58589)
- Added vgcreate custom parameters to module call: addtag, alloc, autobackup, metadatatype, zero (#58747)
- Enhance console and serial support in virt module (#58844)
- Salt's versions report `salt --versions-report` now includes all installed salt extensions into its versions report. (#58938)
- Support loading entrypoints by passing a module instead of a function. (#58939)
- Added shadow.gen_password for BSD operating systems. (#59140)
- Add more network and PCI/USB host devices passthrough support to virt module and states (#59143)
- Add interface channels management support to rh_ip module. (#59147)
- Add new minion option return_retry_tries for dynamic return retry tries (#59236)
- Added salt-cloud support for Hetzner Cloud via the ``hcloud`` library of the provider. (#59301)
- "AlmaLinux" has been added to the "RedHat" `os_family` map (#59404)
- Added `blocks` and `attachments` params to the `slack_notify.post_message` function (#59428)
- Added tcp_reconnect_backoff minion config option for specifying reconnection backoff time for TCP transport (#59431)
- Added ``swapusage`` beacon to complement the existing ``memusage`` beacon. (#59460)
- The `salt-run` CLI now accepts `--jid` (#59527)
- Add bytes option for FreeBSD pkg-stats(8) module. (#59540)
- Adding mod_beacon function to pkg, service, and file state modules. This function will act similar to the mod_watch function. This will allow supported functions in those state modules to automatically add associated beacons to monitor for changes to the respective resources in the state file and fire events to the event bus when changes occur. (#59559)
- Add -B flag to FreeBSD pkgng.check() to regenerate the library dependency
metadata for a package by extracting library requirement information from the
binary ELF files in the package. (#59569)
Salt 3002.5 (2021-02-25)
========================

View file

@ -1 +0,0 @@
Fix incorrect documentation for pillar_source_merging_strategy

View file

@ -1 +0,0 @@
Don't iterate through cloud map errors

View file

@ -1 +0,0 @@
Adding the ability to clear and show the pillar cache enabled when pillar_cache is True.

View file

@ -1 +0,0 @@
Supress noisy warnings when very old pyzmq is used.

View file

@ -1 +0,0 @@
Fixed glusterfs version parsing for pre-4.0

View file

@ -1,2 +0,0 @@
SCRAM-SHA-256 support for PostgreSQL passwords.
Pass encrypted=scram-sha-256 to the postgres_user.present (or postgres_group.present) state.

View file

@ -1 +0,0 @@
The yumpkg module has been updated to support VMWare's Photon OS, which uses tdnf (a C implementation of dnf). "VMware Photon OS" has been added to the "RedHat" `os_family` map as part of this change.

View file

@ -1 +0,0 @@
The pkgrepo state now supports VMware Photon OS.

View file

@ -1 +0,0 @@
Prevent traceback when trying to list reactors when none are configured.

View file

@ -1 +0,0 @@
Added firewallgroups to Vultr Salt Cloud provider

View file

@ -1 +0,0 @@
Fixed zabbix_host.present to accept all Zabbix host properties

View file

@ -1,2 +0,0 @@
Binaries for the salt installer package for OSX are now signed and the installer
package is notarized

View file

@ -1 +0,0 @@
Guard boto3_elasticsearch loading properly

View file

@ -1 +0,0 @@
Added arbitrary kwarg support for tojson filter.

View file

@ -1 +0,0 @@
Add salt monitor beacon to execute salt execution module functions.

View file

@ -1 +0,0 @@
Use a capitalized string version of the value of `NodeState` instead

View file

@ -1 +0,0 @@
Adding missing error case to the validation for service beacon.

View file

@ -1 +0,0 @@
The GCE cloud driver only works with apache-libcloud>=2.5.0, prior versions have authentication issues

View file

@ -1 +0,0 @@
zypperpkg add_lock and remove_lock examples do not work

View file

@ -1 +0,0 @@
Compare bytes to bytes so we don't overwrite a correct value

View file

@ -1 +0,0 @@
Fixing expand_repo_def in aptpkg module to include the architecture in the line attribute when it is passed in.

View file

@ -1 +0,0 @@
Allow the nameservers to be populated from systemd-resolve.

View file

@ -1 +0,0 @@
Adding reactor_niceness to the default minion configuration.

View file

@ -1 +0,0 @@
CPU model, topology and NUMA node tuning

View file

@ -1 +0,0 @@
When passing arguments pass them as keyword arguments so that we can be sure the right value is going where.

View file

@ -1 +0,0 @@
Improve module whitelist logic for file backends

View file

@ -1 +0,0 @@
Fix behavior for "onlyif/unless" state conditionals when multiple declarations

View file

@ -1 +0,0 @@
Ensure data is a valid keyword argument for the event.wait function.

View file

@ -1 +0,0 @@
Added ``pkg.services_need_restart`` which lists system services that should be restarted after package management operations.

View file

@ -1 +0,0 @@
Do not raise "StreamClosedError" traceback on the master logs but only log it

View file

@ -1,3 +0,0 @@
Fixed issue with win_timezone when dst is turned off. This was causing the
minion not to start
Use default timezone offset in scheduler when correct timezone cannot be determined

View file

@ -1 +0,0 @@
Change `brew cask --list` to `brew list --cask`

View file

@ -1 +0,0 @@
Pop!_OS 20.04 and 20.10 now support using pkg.* / aptpkg.*

View file

@ -1 +0,0 @@
Restoring functionallity of the textfsm module when using textfsm_path argument

View file

@ -1 +0,0 @@
Invalidate file list cache when cache file has a future last modified time

View file

@ -1,2 +0,0 @@
Fix issue with setting permissions in combination with the win_perms_reset
option

View file

@ -1 +0,0 @@
When passing arguments pass them as keyword arguments so that we can be sure the right value is going where.

View file

@ -1 +0,0 @@
Allow handling special first boot definition on virtual machine

View file

@ -1,2 +0,0 @@
Adds support for Powershell 7. It is specified by passing shell="pwsh". Only
valid if Powershell 7 is installed on the system.

View file

@ -1,2 +0,0 @@
Fixed the zabbix.host_create call on zabbix_host.present to include the
optional parameter visible_name. Now working as documented.

View file

@ -1,12 +0,0 @@
Fixed some bugs to allow zabbix_host.present to update a host already
existent on Zabbix server:
- Added checks before "pop" the elements "bulk" and "details" from
hostinterfaces_get's response. Without that, the interface comparison
didn't works with Zabbix >= 5.0
- Fixed the "inventory" comparison. It failed when both current and new
inventory were missing.
- Rewrite of the update_interfaces routine to really "update" the
interfaces and not trying to delete and recreate all interfaces,
which almost always gives errors as interfaces with linked items
can't be deleted.

View file

@ -1,2 +0,0 @@
Added the "details" mandatory object with the properly default values
when creating a SNMP hostinterface in Zabbix 5.0

View file

@ -1 +0,0 @@
Fixing an issue preventing running pillar.get against pillar values with integers as pillar keys.

View file

@ -1 +0,0 @@
Adding a new option to pass client_flags to MySQL connections, for example passing the option to support multiple statements in queries.

View file

@ -1,2 +0,0 @@
Fixed two performance bugs in the sysctl.present state. Their impact is
especially great on FreeBSD machines with large amounts of RAM.

View file

@ -1 +0,0 @@
Fixed an issue when pillar files are included in the `top.sls` and then later included in another pillar file.

View file

@ -1 +0,0 @@
Added vgcreate custom parameters to module call: addtag, alloc, autobackup, metadatatype, zero

View file

@ -1 +0,0 @@
Left over py2 code was causing windows encoding to misbehave

View file

@ -1,2 +0,0 @@
Return result=None from module.run state to indicate that changes would be made
Return result=False from module.run state when called with no functions

View file

@ -1 +0,0 @@
Fix duplicate IP addresses in fqdn_ip4 and fqdn_ip6 grains

View file

@ -1,2 +0,0 @@
Rename `salt.renderers.toml` to `salt.renderers.tomlmod` which fixes the import error issues as described in #58822
Do note that, the renderer is still called `toml`.

View file

@ -1 +0,0 @@
Enhance console and serial support in virt module

View file

@ -1 +0,0 @@
Fixing unhold in yumpkg. Removing unnecessary code and relying on the code that handles dicts later. Adding tests when pkg.installed is called with hold=False.

View file

@ -1,2 +0,0 @@
Converts the given "grant" to upper case before compare to "ALL".
This fixes a problem granting "all privileges" to a MySQL user.

View file

@ -1 +0,0 @@
Salt's versions report `salt --versions-report` now includes all installed salt extensions into its versions report.

View file

@ -1 +0,0 @@
Support loading entrypoints by passing a module instead of a function.

View file

@ -1 +0,0 @@
Strip trailing "/" from repo.uri when comparing repos in "apktpkg.mod_repo"

View file

@ -1 +0,0 @@
When we are checking requisites, run reconcile_procs just on those requisite states not all running states.

View file

@ -1 +0,0 @@
Allow the gpg module to use export_key, delete_key and create_key without a passphrase in GnuPG >= 2.1

View file

@ -1 +0,0 @@
Updated the documentation, handling and error messages for what size units are allowed by "size" parameter in lvm.lv_present

View file

@ -1 +0,0 @@
Fixing the two failing tests when running on Photon OS. Python 3 installed on Photon OS does not support MD4 hashing, so don't load pdbedit module and skip the test_generate_nt_hash test. Default unmask for files and directories results in them having only user and group permissions so update the test_directory_max_depth test.

View file

@ -1 +0,0 @@
Fixes to netmiko module and proxy module to handle situations where the device is unreachable during the initial connection phase.

View file

@ -1,3 +0,0 @@
Correct comment when updating postrges users and groups.
Errors reported when removing postgres groups.
Partial group membership changes in postgres groups.

View file

@ -1,2 +0,0 @@
Fixed an error when running svn.latest in test mode and using the trust_failures
option.

View file

@ -1 +0,0 @@
When passing arguments pass them as keyword arguments so that we can be sure the right value is going where.

View file

@ -1 +0,0 @@
Fixes to storing schedule items in pillar, when refreshing pillar only update the schedule items if something has changed.

View file

@ -1 +0,0 @@
Fixed timezone module to work in Slackware Linux

View file

@ -1 +0,0 @@
Store git sha in salt/_version.py when installing from a tag so it can be found if needed later.

View file

@ -1 +0,0 @@
Enforces pywinrm to be version 0.3.0 or higher and upgrade to latest

View file

@ -1 +0,0 @@
Added shadow.gen_password for BSD operating systems.

View file

@ -1 +0,0 @@
Add more network and PCI/USB host devices passthrough support to virt module and states

View file

@ -1 +0,0 @@
Fix a race condition in the ldx module which sometimes caused devices not to be created during container creation.

View file

@ -1 +0,0 @@
Add interface channels management support to rh_ip module.

View file

@ -1,2 +0,0 @@
Fix issue where passed smb port was being passed to the smb connection when
deploying Windows with salt-cloud

View file

@ -1 +0,0 @@
Fixed an error when running on CentOS Stream 8.

View file

@ -1 +0,0 @@
Fix event publish retry when using TCP transport

View file

@ -1 +0,0 @@
Fix docs for `auth_timeout`

View file

@ -1 +0,0 @@
virt.update doesn't update the definition if efi=True and a loader is already set

View file

@ -1 +0,0 @@
Fixed salt.modules.solaris_shadow failing on bytes-like object is require, not 'str'.

View file

@ -1 +0,0 @@
Changed package manager detection in yumpkg module

View file

@ -1 +0,0 @@
Added support for io2 volumes in ec2 cloud

View file

@ -1 +0,0 @@
Add new minion option return_retry_tries for dynamic return retry tries

View file

@ -1 +0,0 @@
removed the arg `managed_private_key` from 'salt.states.x509.certificate_managed'

View file

@ -1 +0,0 @@
When checking if the mode had changed in the file state module, only do so if the passed mode is not None.

View file

@ -1 +0,0 @@
Added salt-cloud support for Hetzner Cloud via the ``hcloud`` library of the provider.

View file

@ -1 +0,0 @@
Fixing _sanitze_comments to use sqlparse instead of re.sub.

View file

@ -1 +0,0 @@
Allow use of query parameters in cmd.script source url

View file

@ -1 +0,0 @@
"AlmaLinux" has been added to the "RedHat" `os_family` map

View file

@ -1 +0,0 @@
Access user from global group if local group fails to find user.

View file

@ -1 +0,0 @@
Added deprecation warning for grains.get_or_set_hash

View file

@ -1 +0,0 @@
Added `blocks` and `attachments` params to the `slack_notify.post_message` function

View file

@ -1 +0,0 @@
Added tcp_reconnect_backoff minion config option for specifying reconnection backoff time for TCP transport

View file

@ -1 +0,0 @@
Added ``swapusage`` beacon to complement the existing ``memusage`` beacon.

View file

@ -1 +0,0 @@
Updating the pkg beacon to fire the events when there are upgrades to packages, but also when watched packages are installed or removed. Breaking out the logic for listing pkgs from context into a separate function to aid in testing. Updating tests to ensure context is not used when use_context option to list_pkgs is False.

View file

@ -1 +0,0 @@
Drop support for python 3.5 on Windows

View file

@ -1 +0,0 @@
Detect and fix grub.xen path

View file

@ -1 +0,0 @@
Stop raising `StopIteration` on generators

View file

@ -1 +0,0 @@
Fix minion race conditions handling SIGTERM signal when loading modules

View file

@ -1 +0,0 @@
Support new output of systemd systemctl list-unit-files in the following modules systemd_service.get_enabled, systemd_service.get_disabled and systemd_service.get_static

Some files were not shown because too many files have changed in this diff Show more