Commit graph

1933 commits

Author SHA1 Message Date
Proskurin Kirill
3f410d966e Fixed salt.runner test mode output 2020-09-30 15:53:36 -07:00
Gareth J. Greenaway
8d5c8f2caa Adding changelog. 2020-09-30 14:07:23 -07:00
twangboy
18733472f3 Add changelog 2020-09-30 13:57:04 -07:00
Wesley Whetstone
2cf321c7f8
Fix mac_service failures on Big Sur. (#58144)
* add in a ValueError catch for BigSur services, also removes py2 code

* pylint fix

* full pyupgrade

* pylint improvements

* add changelog

* remove import comments

* remove comments in test

Co-authored-by: Gareth J. Greenaway <gareth@wiked.org>
Co-authored-by: Sage the Rage <36676171+sagetherage@users.noreply.github.com>
2020-09-30 13:56:16 -07:00
Wesley Whetstone
a8a7eec011
Improve macOS service naming support (#57646)
* add in a check so if someone passes in a service name like salt-master the module converts over to the macOS naming convention of com.saltstack.salt.master

* add note to documentation

* blacken mac_service

* add changelog for fixing 57878

* remove comments in test

Co-authored-by: Gareth J. Greenaway <gareth@wiked.org>
Co-authored-by: Sage the Rage <36676171+sagetherage@users.noreply.github.com>
2020-09-30 13:54:49 -07:00
Ken Crowell
0584d1df95 Remove old documented pending reboot key 2020-09-30 13:33:58 -07:00
sammy
e80835f32a [55949] Fix changelog naming 2020-09-30 13:33:24 -07:00
sammy
417b3ac43c [55949] Add changelog 2020-09-30 13:33:24 -07:00
ch3ll
af7000f9dd Do not allow python2 to be added to salt-ssh tar 2020-09-30 13:32:50 -07:00
Lukas Raska
348e930dff Fix UnboundLocalError when address cannot be resolved in win_network.connect 2020-09-30 13:26:02 -07:00
Christian McHugh
7836b07409 add changelog 2020-09-30 13:25:06 -07:00
piterpunk
7e0448d3ae Change get_repo in yumpkg.py to expect repo param
- The first positional parameter of get_repo was changed
  from "name" to "repo".
- aptpkg, zypperpkg, opkg, already use "repo" as the first
  parameter
- Fixes #57778
2020-09-30 13:24:00 -07:00
Shea Craig
5b5a2f4ab0 Add changelog entry. 2020-09-30 09:38:14 -07:00
cmcmarrow
300aefbc0c add log 2020-09-30 09:37:18 -07:00
Alberto Planas
cc286d64cb Fix __mount_device wrapper
Some recent change in Salt is now doing the right thing, and calling the
different states with separated args and kwargs.  This change trigger a
hidden bug in the __mount_device decorator, that expect those parameter
to be in kwargs, as is happening during the test.

This patch change the way that the wrapper inside the decorator search
for the name and device parameters, first looking into kwargs and later
in args if possible.  A new test is introduced to exercise both cases.

Fix #58012
2020-09-30 09:35:05 -07:00
Christian McHugh
8c053f574e add changelog 2020-09-30 09:33:17 -07:00
Alexander Graul
a909ab8ad3 Accept nested namespaces in spacewalk.api
salt-run $server spacewalk.api allows users to run arbitrary Spacewalk
API functions through Salt. These are passed in a namespace.method
notation and may use nested namespaces. Previously only methods in a
top-level namespace were supported.

Fixes https://github.com/saltstack/salt/issues/57442

Co-authored-by: Wayne Werner <wwerner@saltstack.com>
2020-09-30 09:31:50 -07:00
Christian McHugh
0a04a680b2 add changelog entry 2020-09-30 09:31:06 -07:00
Proskurin Kirill
885e8763ec Added strcit argument to sdb.get 2020-09-30 09:29:59 -07:00
Markus
1a37f5b2fa
Rename _schedule.conf on YAML parse error (#58179)
* delete_schedule_conf_on_yaml_parse_error

* delete_schedule_conf_on_yaml_parse_error

* delete_schedule_conf_on_yaml_parse_error

* doc

* changelog

* delete_schedule_conf_on_yaml_parse_error

* delete_schedule_conf_on_yaml_parse_error

* delete_schedule_conf_on_yaml_parse_error

* doc

* changelog

* Add some tests

* Rename instead of remove

* doc

* no sleep

* pylint

* Use direct import instead of __utils__

* Remove __utils__ from other modules __virtual__ func

* Remove py2 code

* Revert boto_ec2

There's a problem with the assign_funcs util that I don't know how to
fix

* Rever boto_sns

There a problems with the assign_funcs util that I don't know how to fix

* Remove py2 code form elbv2

* delete_schedule_conf_on_yaml_parse_error

* delete_schedule_conf_on_yaml_parse_error

* delete_schedule_conf_on_yaml_parse_error

* doc

* changelog

* Add some tests

* Rename instead of remove

* doc

* no sleep

* pylint

* Remove py2

* Fix format strings

* Fix some black

* fix some lint

* Fix failing test

* Added changelogs

* Moved test code of Twangboy, help of DmitryKuzmenko

* Redundant import

* Fix black

* Fix issue with iterator

Co-authored-by: twangboy <slee@saltstack.com>
2020-09-29 18:09:12 -07:00
Ken Crowell
e93191697d Move changelog for #58311 to changelog/ 2020-09-29 17:20:23 -07:00
Matt Phillips
1f640fc69a saltnado: don't use gather_job_timeout as a timeout signal in job_not_running
because the future was generated from tornado.gen.sleep, its eventual timer
still fires regardless of if the future is manually set with set_result. When
set_result is called twice (once manually by saltnado, once by tornado call_later),
a stacktrace like so is thrown:

[ERROR   ] Uncaught exception POST / (::1)
Traceback (most recent call last):
  File "/home/mphillips81/.pyenv/versions/3.6.5/lib/python3.6/site-packages/tornado/web.py", line 1369, in _stack_context_handle_exception
    raise_exc_info((type, value, traceback))
  File "<string>", line 3, in raise_exc_info
  File "/home/mphillips81/.pyenv/versions/3.6.5/lib/python3.6/site-packages/tornado/stack_context.py", line 314, in wrapped
    ret = fn(*args, **kwargs)
  File "/home/mphillips81/.pyenv/versions/3.6.5/lib/python3.6/site-packages/tornado/gen.py", line 771, in later
    f.set_result(None)
  File "/home/mphillips81/.pyenv/versions/3.6.5/lib/python3.6/site-packages/tornado/concurrent.py", line 254, in set_result
    self._set_done()
  File "/home/mphillips81/.pyenv/versions/3.6.5/lib/python3.6/site-packages/tornado/concurrent.py", line 298, in _set_done
    for cb in self._callbacks:
TypeError: 'NoneType' object is not iterable

This patch attempts to fix that.
2020-09-29 16:30:00 -07:00
piterpunk
0e4a638c47 Added changelog entry 2020-09-29 15:28:45 -07:00
Sebastian Marsching
42894bd5a7 Fix #57189.
This patch ensures that the extents file attribute is ignored when
comparing file attributes. This is necessary because this attribute is
set by the underlying file system and can never be reset.
2020-09-29 01:04:49 -07:00
Megan Wilhite
8a285a24bb remove include_localhost kwarg from connected_ids 2020-09-28 12:35:50 -07:00
ch3ll
137dbce30f Create file if doesnt exist ini.options_present 2020-09-25 16:27:02 -07:00
ch3ll
08dd367ca8 Add verify_ssl to file.managed state 2020-09-25 16:26:26 -07:00
Brendan Early
59c9983105 Add COPR support to states.pkgrepo (#57259) 2020-09-25 16:25:04 -07:00
firefly
667880b954 virt: add VM memory tunning support 2020-09-25 16:23:19 -07:00
piterpunk
3829440438 Added Changelog entry for #58206 2020-09-23 13:04:45 -07:00
Cédric Bosdonnat
ec32aaa4ef virt: convert volumes to disks for xen
The libvirt xen driver does not handle disk of 'volume' type. We thus
need to convert them into their equivalent using the 'file' or 'block'
type (issue #58333).
2020-09-16 13:31:21 -07:00
Ken Crowell
8456c8e566 s/enpoint/endpoint/g 2020-09-09 22:42:37 -07:00
twangboy
7f99d9592a Add changelog 2020-09-09 13:33:42 -07:00
piterpunk
8f633eb2a8 Added changelog entry 2020-09-09 12:49:55 -07:00
Gareth J. Greenaway
77886f752f Adding changelog. 2020-09-08 17:50:24 -07:00
Alberto Planas
6b8f31576c kubeadm: detect empty token lists
Fix #58116
2020-09-08 17:44:00 -07:00
Gareth J. Greenaway
bc0071fbcd Adding changelog 2020-09-08 17:37:32 -07:00
Vaarlion
72c5382b10
Force version type to string in deb_postgres module (#58299)
* ensure version isn't an int because of yaml parsing

Fix #50899

* Add test for working float version

Add some test to make sure float/int value of version will work

* Add changelog

* Drop six usage and Py2 support
2020-09-08 17:14:08 -07:00
Shea Craig
2961006491 Add changelog entry. 2020-09-08 17:12:48 -07:00
Christian McHugh
452f1906c5 Pass cmd.run arguments to onlyif/unless cmd 2020-09-08 16:59:47 -07:00
Christian McHugh
ae206709b5 allow result parsing in unless/onlyif 2020-09-08 13:25:36 -07:00
Dmitry Kuzmenko
c9ec8c4c2d Added chengelog 2020-09-08 13:19:53 -07:00
Michael Birtwell
a394c9bc03 Fix caching pillar/grains which contain bytes
Use dump rather than dumps when storing to the cache, this makes it
symmetric with fetch and more importantly sets use_bin_type so that
loading will be able to distinguish between bytes and str correctly.
2020-09-08 13:18:44 -07:00
Charles Kenney
29bb0caf74 add changelog entry 2020-09-08 08:13:06 -07:00
Wayne Werner
33ac438bba Add changelog entry 2020-09-08 06:48:32 -07:00
Cédric Bosdonnat
f6fe270ffb virt.update: refactor the XML diffing code
In order to handle more parameters in the future, refactor the XML
diffing in virt.update to only require adding entries in a mapping
array.

Using the refactoring the boot parameters are also better handled and we
are thus fixing an issue when updating existing loader parameter. See
the added test case.
2020-09-04 15:21:54 -07:00
ch3ll
f6d6b9d222 remove encoding kwarg for both pack/unpack msgpack 2020-08-25 16:38:25 -07:00
Wesley Whetstone
2e74599125 fix grammar in changelog 2020-08-24 15:13:39 -07:00
Wesley Whetstone
4c2762307e add changelog 2020-08-24 15:13:39 -07:00
Barney Sowood
45de56bd57 Add changelog entry for PR 54067 2020-08-24 15:11:26 -07:00