Commit graph

1151 commits

Author SHA1 Message Date
Megan Wilhite
facc1ef92a Add changelog 2020-10-05 15:46:52 -07:00
piterpunk
d45a001cad Added changelog entry for fix 57520 2020-10-05 15:46:02 -07:00
Ali Rizvi-Santiago
e1d4d18454 Added changelog mentioning the fix for issue saltstack/salt#57790. 2020-10-05 15:44:47 -07:00
TGuimbert
1094caf7af Add changelog 2020-10-05 15:41:17 -07:00
Dmitry Kuzmenko
37dc205f82
Fix for zipped custom modules (#57759)
* Put '.zip' to suffix_order list as well as to suffix_map.

* Update test

* Added changelog.

* Handle .pyx modules as well + test

* Test fix: guard pyximport assertions

* Ran pre-commit hook
2020-10-05 15:40:46 -07:00
Wayne Werner
df725c4fb4 Add changelog 2020-10-05 15:38:01 -07:00
Michael Birtwell
387b82784e Fix show error report from salt.function
When no minions matched the default "No change made .." error was show
rather than the No minions responded error.
2020-10-05 15:36:17 -07:00
Justin Findlay
1ef93526ea utils.jinja Add profile block and profiling of import_* jinja calls
For some of the more complex salt code--or when salt functions lack
timing stats themselves--it's desirable to be able to do thus:
```sls
{%- profile as 'inner test' %}
< jinja-code >
{%- endprofile %}
```
And get a log line like thus:
```
2019-08-05 22:10:59,531 [salt.utils.jinja ][PROFILE ][26803] Time (in seconds) to render profile block 'inner test': 5.96046447754e-06
```

This commit adds a new `profile` block tag that emits these log
statements.

The same machinery used to support the `profile` block tag is also wired
into `import_*` blocks.  For example:
```sls
{%- import grains.sls as 'blah' %}
```
results in the following log statement:
```
2019-08-05 22:10:59,542 [salt.utils.jinja ][PROFILE ][26803] Time (in seconds) to render import_yaml 'grains.sls': 0.0106961727142
```
2020-10-04 19:08:23 -07:00
Lukas Raska
a2f0296b35 Fix win_pdh.get_counters failing when no data are available 2020-10-04 19:01:26 -07:00
Justin Findlay
d4e2a00bd2 58033 file.read return binary data in binary mode 2020-10-04 19:00:54 -07:00
Erik Johnson
add5205ea6 Add changelog entry 2020-10-04 18:59:36 -07:00
Gareth J. Greenaway
7516406d97 Adding changelog. 2020-10-02 03:00:36 -07:00
Gareth J. Greenaway
ba4ae77d33
[master] Ensure proxy_config reads proxy specific configuration (#58307)
* Make proxy_config read in the proxy specific configuration which is typically found in /etc/salt/proxy.d/minionid/.

* Adding changelog.

* Fixed auto py3 update hook result

* Only lay down the required config for tests using it

* Running pre-commit bits manually.

Co-authored-by: Dmitry Kuzmenko <dmitry.kuzmenko@dsr-corporation.com>
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
2020-10-02 03:00:01 -07:00
Gareth J. Greenaway
5ebd240ac9 Adding changelog file 2020-10-02 02:48:30 -07:00
Gareth J. Greenaway
062739a0b6
Fix when multiple sources include HTTP and are missing (#58441)
* Adding a check when a source is an HTTP or FTP URL to do a query to ensure the URL is valid before returning, then we know if we need to move onto to the next source in the list or not.  Adding tests.

* Adding changelog.

* Removing change from another PR.

* Fixing tests to be cross platform.
2020-10-01 16:24:16 -07:00
twangboy
525df41262 Add changelog 2020-10-01 10:14:58 -07:00
twangboy
82bf19c42a Add changelog 2020-10-01 10:13:59 -07:00
Gareth J. Greenaway
e229cfcd55 Adding changelog. 2020-10-01 09:36:45 -07:00
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