Commit graph

1569 commits

Author SHA1 Message Date
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
Radostin Stoyanov
266b5aba7a Add changelog for #57947
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
2020-08-24 15:09:24 -07:00
Radostin Stoyanov
0fee360b28 Add changelog for #57431
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
2020-08-24 15:09:24 -07:00
piterpunk
ad1b7d0585 Remove Py2 support from grains/lvm.py 2020-08-24 15:08:11 -07:00
Cédric Bosdonnat
f0b953b2fa Remove buggy start parameter from virt.pool_running docstring
As mentioned by issue #57275, the start parameter in virt.pool_running
documentation is not implemented at all. Remove it from the doc.
2020-08-24 15:03:52 -07:00
piterpunk
af9b0a6580 Added changelog entries 2020-08-24 14:48:13 -07:00
ch3ll
b321137374 Do not lookup reverse dns with salt-ssh 2020-08-24 14:44:51 -07:00
nicholasmhughes
6562a9bd3e update changelog for 57802 2020-08-21 16:11:48 -07:00
twangboy
1a5ce828ad Fix docs 2020-08-14 15:23:31 -07:00
twangboy
43d9b13103 Add changelog 2020-08-14 15:23:31 -07:00
Jasper Lievisse Adriaanse
41b8aa5482 Stop using deprecated cgi.escape
cgi.escape has been deprecated since python 3.2 and removed in 3.8
2020-08-13 11:14:07 -07:00
Tyler Johnson
4684a0b585 added idem exec and state modules 2020-08-12 13:55:34 -07:00
Cédric Bosdonnat
ad7f60147a virt.init: fix disk target names
Fixes issue #57477.
2020-07-31 15:25:08 -07:00
Cédric Bosdonnat
66bcc5dee3 virt.init: fix the name of volumes reused in disk-types pools
Only compute the partition name if no source_file was provided by the
user for a pool of disk type.
2020-07-31 15:20:50 -07:00
Cédric Bosdonnat
4de137d209 virt: add boot_dev parameter to virt.running state
virt.init knows how to set the boot device order for a while, but this
feature never came to virt.running. This commit is fixing this omission
and adds it for both virt.running and virt.defined states.
2020-07-31 15:20:29 -07:00