Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix openstack wait for fun utils #1

Open
wants to merge 72 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
8da1ffb
Redirect imports of ``salt.ext.six`` to ``six``
s0undt3ch Sep 28, 2021
7138386
Latest changelog update for 3004
ScriptAutomate Sep 28, 2021
663dd8a
Handle signals and properly exit, instead of raising exceptions.
s0undt3ch Sep 29, 2021
227c2dc
Add test for #61003
waynew Oct 5, 2021
b925111
Fix #61003
waynew Oct 5, 2021
0a6a14f
Handle various architecture formats in aptpkg module
Oct 1, 2021
d1dd006
Write file even if does not exist
Oct 5, 2021
a5d32c4
only run test on debian based platforms
Oct 5, 2021
ab12233
remove extra space for arch
Oct 6, 2021
6017b0c
convert pathlib to string for pkgrepo test
Oct 6, 2021
832764b
Use temporary files first then copy to sources files
Oct 7, 2021
9815cbe
fixes saltstack/salt#59182 fix handling of duplicate keys in rest_che…
nicholasmhughes Oct 2, 2021
64158e4
added changelog
nicholasmhughes Oct 2, 2021
d2ded59
remove log messages to prevent leaks of sensitive info
nicholasmhughes Oct 8, 2021
d1587a3
Reverting changes in PR #60150. Updating installed and removed functi…
garethgreenaway Oct 8, 2021
3f5a639
Adding changelog.
garethgreenaway Oct 8, 2021
3525300
Add a test and fix for extra-filerefs
dwoz Oct 8, 2021
711d24d
Do not break master_tops for minion with version lower to 3003
meaksh Sep 30, 2021
bf0b71f
Add changelog file
meaksh Sep 30, 2021
a572c6b
Add extra comment to clarify discussion
meaksh Oct 8, 2021
839730f
Update changelog file
meaksh Oct 8, 2021
14eeae6
Add deprecated changelog
Oct 11, 2021
124efb7
Assert that the command didn't finish
s0undt3ch Oct 7, 2021
5032f4c
Always restore signals, even when exceptions occur
s0undt3ch Oct 9, 2021
5a97c37
Reset signal handlers before starting the process
s0undt3ch Oct 9, 2021
ed7c74a
Make sure that the `ProcessManager` doesn't always ignore signals
s0undt3ch Oct 9, 2021
98f679f
Provide valid default value for bootstrap_delay
dwoz Oct 9, 2021
dddde00
Update changelog for 3004
Oct 7, 2021
3345c1c
Update changelog and release notes for 3004
Oct 11, 2021
bac2d1e
Add PR 61020 to changelog
Oct 12, 2021
9a73108
Change MD5 to SHA256 fingerprint for new github.com fingerprint
krionbsd Nov 19, 2021
1d3e284
Check only ssh-rsa encyption for set_known_host
krionbsd Nov 19, 2021
b7cea89
Use main branch for kitchen-docker project
Jan 31, 2022
47b8a60
Merge pull request #270 from Ch3LL/fix_tests
Ch3LL Feb 1, 2022
82d4d68
Add tests for validate_tgt
waynew Dec 7, 2021
a13458d
Refactor
waynew Dec 7, 2021
4fc36aa
Fix #60413
waynew Dec 7, 2021
6753697
Rename changelog to security
waynew Feb 2, 2022
51eaa5d
add cve# to changelog
waynew Feb 2, 2022
fcda768
Sign pillar data
dwoz Jan 25, 2022
66b43e3
Add regression tests for CVE-2022-22934
dwoz Jan 25, 2022
e2faa58
Add changelog for cve-2022-22934
dwoz Jan 25, 2022
c5d5274
Provide users with a nice warning when something goes wrong
dwoz Jan 25, 2022
84efc9f
Rename changelog file
dwoz Jan 26, 2022
91348f3
Fix wart in tests
dwoz Feb 2, 2022
7842b6f
Return bool when using m2crypo
dwoz Feb 2, 2022
76215a6
Limit the amount of empty space while searching ifconfig output
dwoz Jan 29, 2022
aec513d
Update changelog/cve-2020-22937.security
dwoz Feb 2, 2022
a44bb6b
Prevent auth replays and sign replies
dwoz Jan 27, 2022
f6cfe97
Add tests for cve-2022-22935
dwoz Jan 27, 2022
6070ff3
Add changelog for cve-2020-22935
dwoz Jan 27, 2022
b191a57
Fix typo
dwoz Feb 4, 2022
d2f79c8
Prevent replays of file server requests
dwoz Jan 26, 2022
ca0890b
Add regresion tests for fileserver nonce
dwoz Jan 28, 2022
71cb857
Add changelog for cve-2022-22936
dwoz Jan 28, 2022
3be9a1b
Job replay mitigation
dwoz Feb 7, 2022
6f26378
Fix merge warts
dwoz Feb 8, 2022
44f1bdd
more test fixes
dwoz Feb 11, 2022
13a0e69
Fix auth tests on windows
dwoz Feb 12, 2022
2a050b8
Remove unwanted requirements change
dwoz Feb 14, 2022
04d888c
Clean up cruft
dwoz Feb 14, 2022
3f7e8dc
Merge pull request #279 from saltstack/cve/3004.1/CVE-2022-22936
Ch3LL Feb 15, 2022
697a3f9
update docs for 3004.1 release
frogunder Feb 16, 2022
74b3da8
Merge pull request #288 from frogunder/docs_3004.2
Ch3LL Feb 16, 2022
935a580
Fix warts in new minion auth
dwoz Feb 17, 2022
2f612bd
Merge pull request #289 from saltstack/cve/3004.1/CVE-2022-22935-bugfix
garethgreenaway Feb 19, 2022
8890a6c
Test fix
dwoz Feb 25, 2022
4a1175b
Update release notes
dwoz Feb 25, 2022
466bc9a
Remove cve from non cve worty issue
dwoz Feb 28, 2022
d1811dd
Merge pull request #291 from saltstack/3004.1-releasenotes
garethgreenaway Feb 28, 2022
064729c
Merge pull request #290 from saltstack/cve/3004.1/CVE-2022-22936-bugfix
garethgreenaway Feb 28, 2022
a172b0a
hotfix Caught exception in wait_for_fun utils
vdloo Apr 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 26 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,20 @@ Versions are `MAJOR.PATCH`.

# Changelog

Salt 3004 (2021-09-27)
Salt 3004.1 (2022-02-16)
========================

Security
--------

- Sign authentication replies to prevent MiTM (cve-2022-22935)
- Prevent job and fileserver replays (cve-2022-22936)
- Sign pillar data to prevent MiTM attacks. (cve-2202-22934)
- Fixed targeting bug, especially visible when using syndic and user auth. (CVE-2022-22941) (#60413)
- Fix denial of service in junos ifconfig output parsing.


Salt 3004 (2021-10-11)
======================

Removed
Expand All @@ -23,6 +36,7 @@ Removed
Deprecated
----------

- The _ext_nodes alias to the master_tops function was added back in 3004 to maintain backwards compatibility with older supported versions. This alias will now be removed in 3006. This change will break Master and Minion communication compatibility with Salt minions running versions 3003 and lower. (#60980)
- utils/boto3_elasticsearch is no longer needed (#59882)
- Changed "manufacture" grain to "manufacturer" for Solaris on SPARC to unify the name across all platforms. The old "manufacture" grain is now deprecated and will be removed in Sulfur (#60511)
- Deprecate `salt.payload.Serial` (#60953)
Expand All @@ -41,6 +55,14 @@ Changed
Fixed
-----

- Set default 'bootstrap_delay' to 0 (#61005)
- Fixed issue where multiple args to netapi were not preserved (#59182)
- Handle all repo formats in the aptpkg module. (#60971)
- Do not break master_tops for minion with version lower to 3003
This is going to be removed in Salt 3006 (Sulfur) (#60980)
- Reverting changes in PR #60150. Updating installed and removed functions to return changes when test=True. (#60995)
- Handle signals and properly exit, instead of raising exceptions. (#60391, #60963)
- Redirect imports of ``salt.ext.six`` to ``six`` (#60966)
- Surface strerror to user state instead of returning false (#20789)
- Fixing _get_envs() to preserve the order of pillar_roots. _get_envs() returned pillar_roots in a non-deterministic order. (#24501)
- Fixes salt-cloud `KeyError` that occurs when there exists any subnets with no tags when profiles use `subnetname` (#44330)
Expand Down Expand Up @@ -303,16 +325,16 @@ Fixed
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
- 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,
- 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
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gem 'kitchen-sync'
gem 'git'

group :docker do
gem 'kitchen-docker', :git => 'https://github.com/test-kitchen/kitchen-docker.git'
gem 'kitchen-docker', :git => 'https://github.com/test-kitchen/kitchen-docker.git', :branch => 'main'
end

group :windows do
Expand Down
2 changes: 1 addition & 1 deletion doc/man/salt-api.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SALT-API" "1" "Sep 27, 2021" "3004" "Salt"
.TH "SALT-API" "1" "Feb 16, 2022" "3004.1" "Salt"
.SH NAME
salt-api \- salt-api Command
.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/salt-call.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SALT-CALL" "1" "Sep 27, 2021" "3004" "Salt"
.TH "SALT-CALL" "1" "Feb 16, 2022" "3004.1" "Salt"
.SH NAME
salt-call \- salt-call Documentation
.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/salt-cloud.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SALT-CLOUD" "1" "Sep 27, 2021" "3004" "Salt"
.TH "SALT-CLOUD" "1" "Feb 16, 2022" "3004.1" "Salt"
.SH NAME
salt-cloud \- Salt Cloud Command
.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/salt-cp.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SALT-CP" "1" "Sep 27, 2021" "3004" "Salt"
.TH "SALT-CP" "1" "Feb 16, 2022" "3004.1" "Salt"
.SH NAME
salt-cp \- salt-cp Documentation
.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/salt-key.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SALT-KEY" "1" "Sep 27, 2021" "3004" "Salt"
.TH "SALT-KEY" "1" "Feb 16, 2022" "3004.1" "Salt"
.SH NAME
salt-key \- salt-key Documentation
.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/salt-master.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SALT-MASTER" "1" "Sep 27, 2021" "3004" "Salt"
.TH "SALT-MASTER" "1" "Feb 16, 2022" "3004.1" "Salt"
.SH NAME
salt-master \- salt-master Documentation
.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/salt-minion.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SALT-MINION" "1" "Sep 27, 2021" "3004" "Salt"
.TH "SALT-MINION" "1" "Feb 16, 2022" "3004.1" "Salt"
.SH NAME
salt-minion \- salt-minion Documentation
.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/salt-proxy.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SALT-PROXY" "1" "Sep 27, 2021" "3004" "Salt"
.TH "SALT-PROXY" "1" "Feb 16, 2022" "3004.1" "Salt"
.SH NAME
salt-proxy \- salt-proxy Documentation
.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/salt-run.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SALT-RUN" "1" "Sep 27, 2021" "3004" "Salt"
.TH "SALT-RUN" "1" "Feb 16, 2022" "3004.1" "Salt"
.SH NAME
salt-run \- salt-run Documentation
.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/salt-ssh.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SALT-SSH" "1" "Sep 27, 2021" "3004" "Salt"
.TH "SALT-SSH" "1" "Feb 16, 2022" "3004.1" "Salt"
.SH NAME
salt-ssh \- salt-ssh Documentation
.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/salt-syndic.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SALT-SYNDIC" "1" "Sep 27, 2021" "3004" "Salt"
.TH "SALT-SYNDIC" "1" "Feb 16, 2022" "3004.1" "Salt"
.SH NAME
salt-syndic \- salt-syndic Documentation
.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/salt-unity.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SALT-UNITY" "1" "Sep 27, 2021" "3004" "Salt"
.TH "SALT-UNITY" "1" "Feb 16, 2022" "3004.1" "Salt"
.SH NAME
salt-unity \- salt-unity Command
.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/salt.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SALT" "1" "Sep 27, 2021" "3004" "Salt"
.TH "SALT" "1" "Feb 16, 2022" "3004.1" "Salt"
.SH NAME
salt \- salt
.
Expand Down
4 changes: 2 additions & 2 deletions doc/man/salt.7
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SALT" "7" "Sep 27, 2021" "3004" "Salt"
.TH "SALT" "7" "Feb 16, 2022" "3004.1" "Salt"
.SH NAME
salt \- Salt Documentation
.
Expand Down Expand Up @@ -193862,7 +193862,7 @@ Passes through all the parameters described in the
\fI\%utils.http.query function\fP:
.INDENT 7.0
.TP
.B salt.utils.http.query(url, method=\(aqGET\(aq, params=None, data=None, data_file=None, header_dict=None, header_list=None, header_file=None, username=None, password=None, auth=None, decode=False, decode_type=\(aqauto\(aq, status=False, headers=False, text=False, cookies=None, cookie_jar=None, cookie_format=\(aqlwp\(aq, persist_session=False, session_cookie_jar=None, data_render=False, data_renderer=None, header_render=False, header_renderer=None, template_dict=None, test=False, test_url=None, node=\(aqminion\(aq, port=80, opts=None, backend=None, ca_bundle=None, verify_ssl=None, cert=None, text_out=None, headers_out=None, decode_out=None, stream=False, streaming_callback=None, header_callback=None, handle=False, agent=\(aqSalt/3004rc0+315.g248e4e042c\(aq, hide_fields=None, raise_error=True, formdata=False, formdata_fieldname=None, formdata_filename=None, decode_body=True, **kwargs)
.B salt.utils.http.query(url, method=\(aqGET\(aq, params=None, data=None, data_file=None, header_dict=None, header_list=None, header_file=None, username=None, password=None, auth=None, decode=False, decode_type=\(aqauto\(aq, status=False, headers=False, text=False, cookies=None, cookie_jar=None, cookie_format=\(aqlwp\(aq, persist_session=False, session_cookie_jar=None, data_render=False, data_renderer=None, header_render=False, header_renderer=None, template_dict=None, test=False, test_url=None, node=\(aqminion\(aq, port=80, opts=None, backend=None, ca_bundle=None, verify_ssl=None, cert=None, text_out=None, headers_out=None, decode_out=None, stream=False, streaming_callback=None, header_callback=None, handle=False, agent=\(aqSalt/3004.1(aq, hide_fields=None, raise_error=True, formdata=False, formdata_fieldname=None, formdata_filename=None, decode_body=True, **kwargs)
Query a resource, and decode the return data
.UNINDENT
.INDENT 7.0
Expand Down
2 changes: 1 addition & 1 deletion doc/man/spm.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SPM" "1" "Sep 27, 2021" "3004" "Salt"
.TH "SPM" "1" "Feb 16, 2022" "3004.1" "Salt"
.SH NAME
spm \- Salt Package Manager Command
.
Expand Down
33 changes: 33 additions & 0 deletions doc/topics/releases/3004.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.. _release-3004-1:

=========================
Salt 3004.1 Release Notes
=========================

Version 3004.1 is a CVE security fix release for :ref:`3004 <release-3004>`.

Important notice about upgrading
--------------------------------

Version 3004.1 is a security release. 3004.1 minions are not able to
communicate with masters older than 3004.1. You must upgrade your masters
before upgrading minions.

Minion authentication security
------------------------------

Authentication between masters and minions rely on public/private key
encryption and message signing. To secure minion authentication before you must
pre-seed the master's public key on minions. To pre-seed the minions' master
key, place a copy of the master's public key in the minion's pki directory as
``minion_master.pub``.


Security
--------

- Sign authentication replies to prevent MiTM (cve-2022-22935)
- Prevent job and fileserver replays (cve-2022-22936)
- Sign pillar data to prevent MiTM attacks. (cve-2202-22934)
- Fixed targeting bug, especially visible when using syndic and user auth. (CVE-2022-22941) (#60413)
- Fix denial of service in junos ifconfig output parsing.
9 changes: 9 additions & 0 deletions doc/topics/releases/3004.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Removed
Deprecated
==========

- The _ext_nodes alias to the master_tops function was added back in 3004 to maintain backwards compatibility with older supported versions. This alias will now be removed in 3006. This change will break Master and Minion communication compatibility with Salt minions running versions 3003 and lower. (#60980)
- utils/boto3_elasticsearch is no longer needed (#59882)
- Changed "manufacture" grain to "manufacturer" for Solaris on SPARC to unify the name across all platforms. The old "manufacture" grain is now deprecated and will be removed in Sulfur (#60511)
- Deprecate ``salt.payload.Serial`` (#60953)
Expand All @@ -73,6 +74,14 @@ Changed
Fixed
=====

- Set default 'bootstrap_delay' to 0 (#61005)
- Fixed issue where multiple args to netapi were not preserved (#59182)
- Handle all repo formats in the aptpkg module. (#60971)
- Do not break master_tops for minion with version lower to 3003
This is going to be removed in Salt 3006 (Sulfur) (#60980)
- Reverting changes in PR #60150. Updating installed and removed functions to return changes when test=True. (#60995)
- Handle signals and properly exit, instead of raising exceptions. (#60391, #60963)
- Redirect imports of ``salt.ext.six`` to ``six`` (#60966)
- Surface strerror to user state instead of returning false (#20789)
- Fixing _get_envs() to preserve the order of pillar_roots. _get_envs() returned pillar_roots in a non-deterministic order. (#24501)
- Fixes salt-cloud ``KeyError`` that occurs when there exists any subnets with no tags when profiles use ``subnetname`` (#44330)
Expand Down
14 changes: 13 additions & 1 deletion salt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,20 @@ def load_module(self, name):
return mod


class SixRedirectImporter:
def find_module(self, module_name, package_path=None):
if module_name.startswith("salt.ext.six"):
return self
return None

def load_module(self, name):
mod = importlib.import_module(name[9:])
sys.modules[name] = mod
return mod


# Try our importer first
sys.meta_path = [TornadoImporter()] + sys.meta_path
sys.meta_path = [TornadoImporter(), SixRedirectImporter()] + sys.meta_path


# All salt related deprecation warnings should be shown once each!
Expand Down
7 changes: 2 additions & 5 deletions salt/cli/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ def shutdown(self, exitcode=0, exitmsg=None):
exitmsg = msg.strip()
super().shutdown(exitcode, exitmsg)

def _handle_signals(self, signum, sigframe): # pylint: disable=unused-argument
def _handle_signals(self, signum, sigframe):
# escalate signal to the process manager processes
self.api.process_manager.stop_restarting()
self.api.process_manager.send_signal_to_processes(signum)
# kill any remaining processes
self.api.process_manager.kill_children()
self.api.process_manager._handle_signals(signum, sigframe)
super()._handle_signals(signum, sigframe)
7 changes: 2 additions & 5 deletions salt/cli/daemons.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,10 @@ class Master(
Creates a master server
"""

def _handle_signals(self, signum, sigframe): # pylint: disable=unused-argument
def _handle_signals(self, signum, sigframe):
if hasattr(self.master, "process_manager"):
# escalate signal to the process manager processes
self.master.process_manager.stop_restarting()
self.master.process_manager.send_signal_to_processes(signum)
# kill any remaining processes
self.master.process_manager.kill_children()
self.master.process_manager._handle_signals(signum, sigframe)
super()._handle_signals(signum, sigframe)

def prepare(self):
Expand Down
7 changes: 2 additions & 5 deletions salt/client/netapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ def run(self):

self.process_manager.run()

def _handle_signals(self, signum, sigframe): # pylint: disable=unused-argument
def _handle_signals(self, signum, sigframe):
# escalate the signals to the process manager
self.process_manager.stop_restarting()
self.process_manager.send_signal_to_processes(signum)
# kill any remaining processes
self.process_manager.kill_children()
self.process_manager._handle_signals(signum, sigframe)
1 change: 1 addition & 0 deletions salt/client/ssh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,7 @@ def run_wfunc(self):
opts_pkg["_ssh_version"] = self.opts["_ssh_version"]
opts_pkg["thin_dir"] = self.opts["thin_dir"]
opts_pkg["master_tops"] = self.opts["master_tops"]
opts_pkg["extra_filerefs"] = self.opts.get("extra_filerefs", "")
opts_pkg["__master_opts__"] = self.context["master_opts"]
if "known_hosts_file" in self.opts:
opts_pkg["known_hosts_file"] = self.opts["known_hosts_file"]
Expand Down
6 changes: 2 additions & 4 deletions salt/cloud/clouds/openstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,9 @@ def _get_ips(node, addr_type="public"):
"OS-EXT-IPS:type"
):
ret.append(addr["addr"])
elif addr_type == "public" and __utils__["cloud.is_public_ip"](
addr["addr"]
):
elif addr_type == "public" and salt.utils.cloud.is_public_ip(addr["addr"]):
ret.append(addr["addr"])
elif addr_type == "private" and not __utils__["cloud.is_public_ip"](
elif addr_type == "private" and not salt.utils.cloud.is_public_ip(
addr["addr"]
):
ret.append(addr["addr"])
Expand Down
2 changes: 1 addition & 1 deletion salt/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ def _gather_buffer_space():
"log_granular_levels": {},
"log_rotate_max_bytes": 0,
"log_rotate_backup_count": 0,
"bootstrap_delay": None,
"bootstrap_delay": 0,
"cache": "localfs",
}
)
Expand Down
Loading