AW: SLES15SP2-Clients: salt-minion problem
Hi Viktor,
I entered “zypper up” and salt-minion immediately shows the exception and doesn’t execute a job on the Uyuni system successfully:
lkv-srvapp42:~ # zypper up
Loading repository data...
Reading installed packages...
The following NEW package is going to be installed:
python3-pycryptodome
The following package is going to be REMOVED:
python3-pycrypto
The following 3 packages are going to be upgraded:
python3-salt salt salt-minion
3 packages to upgrade, 1 new, 1 to remove.
Overall download size: 15.8 MiB. Already cached: 0 B. After the operation, additional 23.5 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package python3-pycryptodome-3.9.0-6.1.x86_64 (1/4), 7.1 MiB ( 25.3 MiB unpacked)
Retrieving: python3-pycryptodome-3.9.0-6.1.x86_64.rpm .............................................................................................................................................................[done]
Retrieving package salt-3002.2-37.1.x86_64 (2/4), 175.9 KiB ( 49.9 KiB unpacked)
Retrieving: salt-3002.2-37.1.x86_64.rpm ...........................................................................................................................................................................[done]
Retrieving package python3-salt-3002.2-37.1.x86_64 (3/4), 8.4 MiB ( 45.3 MiB unpacked)
Retrieving: python3-salt-3002.2-37.1.x86_64.rpm ...................................................................................................................................................................[done]
Retrieving package salt-minion-3002.2-37.1.x86_64 (4/4), 170.8 KiB ( 41.7 KiB unpacked)
Retrieving: salt-minion-3002.2-37.1.x86_64.rpm ....................................................................................................................................................................[done]
Checking for file conflicts: ......................................................................................................................................................................................[done]
(1/4) Installing: python3-pycryptodome-3.9.0-6.1.x86_64 ...........................................................................................................................................................[done]
(2/4) Installing: salt-3002.2-37.1.x86_64 .........................................................................................................................................................................[done]
(3/4) Installing: python3-salt-3002.2-37.1.x86_64 .................................................................................................................................................................[done]
(4/4) Installing: salt-minion-3002.2-37.1.x86_64 ..................................................................................................................................................................[done]
Executing %posttrans scripts ......................................................................................................................................................................................[done]
There are running programs which still use files and libraries deleted or updated by recent upgrades. They should be restarted to benefit from the latest updates. Run 'zypper ps -s' to list these programs.
Output in /var/log/salt/minion:
lkv-srvapp42:~ # File "/usr/lib/python3.6/site-packages/salt/loader.py", line 2113, in wrapper
return f(*args, **kwargs)
File "/var/cache/salt/minion/extmods/states/mgrcompat.py", line 85, in module_run
ret = module.run(**new_kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 738, in _decorate
return self._call_function(kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 355, in _call_function
self._function, self._orig_f_name
TypeError: replace() argument 1 must be str, not function
Further output after a “Package List Refresh” on Uyuni:
lkv-srvapp42:~ # 2021-07-19 14:52:12,141 [salt.utils.decorators:714 ][WARNING ][3229] The function "module.run" is using its deprecated version and will expire in version "Phosphorus".
2021-07-19 14:52:12,144 [salt.state :322 ][ERROR ][3229] An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 352, in _call_function
return self._function(*args, **kwargs)
TypeError: _run() missing 1 required positional argument: 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/state.py", line 2176, in call
*cdata["args"], **cdata["kwargs"]
File "/usr/lib/python3.6/site-packages/salt/loader.py", line 2113, in wrapper
return f(*args, **kwargs)
File "/var/cache/salt/minion/extmods/states/mgrcompat.py", line 85, in module_run
ret = module.run(**new_kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 738, in _decorate
return self._call_function(kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 355, in _call_function
self._function, self._orig_f_name
TypeError: replace() argument 1 must be str, not function
2021-07-19 14:52:12,147 [salt.utils.decorators:714 ][WARNING ][3229] The function "module.run" is using its deprecated version and will expire in version "Phosphorus".
2021-07-19 14:52:12,147 [salt.state :322 ][ERROR ][3229] An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 352, in _call_function
return self._function(*args, **kwargs)
TypeError: _run() missing 1 required positional argument: 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/state.py", line 2176, in call
*cdata["args"], **cdata["kwargs"]
File "/usr/lib/python3.6/site-packages/salt/loader.py", line 2113, in wrapper
return f(*args, **kwargs)
File "/var/cache/salt/minion/extmods/states/mgrcompat.py", line 85, in module_run
ret = module.run(**new_kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 738, in _decorate
return self._call_function(kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 355, in _call_function
self._function, self._orig_f_name
TypeError: replace() argument 1 must be str, not function
2021-07-19 14:52:12,151 [salt.utils.decorators:714 ][WARNING ][3229] The function "module.run" is using its deprecated version and will expire in version "Phosphorus".
2021-07-19 14:52:12,151 [salt.state :322 ][ERROR ][3229] An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 352, in _call_function
return self._function(*args, **kwargs)
TypeError: _run() missing 1 required positional argument: 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/state.py", line 2176, in call
*cdata["args"], **cdata["kwargs"]
File "/usr/lib/python3.6/site-packages/salt/loader.py", line 2113, in wrapper
return f(*args, **kwargs)
File "/var/cache/salt/minion/extmods/states/mgrcompat.py", line 85, in module_run
ret = module.run(**new_kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 738, in _decorate
return self._call_function(kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 355, in _call_function
self._function, self._orig_f_name
TypeError: replace() argument 1 must be str, not function
2021-07-19 14:52:12,154 [salt.utils.decorators:714 ][WARNING ][3229] The function "module.run" is using its deprecated version and will expire in version "Phosphorus".
2021-07-19 14:52:12,155 [salt.state :322 ][ERROR ][3229] An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 352, in _call_function
return self._function(*args, **kwargs)
TypeError: _run() missing 1 required positional argument: 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/state.py", line 2176, in call
*cdata["args"], **cdata["kwargs"]
File "/usr/lib/python3.6/site-packages/salt/loader.py", line 2113, in wrapper
return f(*args, **kwargs)
File "/var/cache/salt/minion/extmods/states/mgrcompat.py", line 85, in module_run
ret = module.run(**new_kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 738, in _decorate
return self._call_function(kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 355, in _call_function
self._function, self._orig_f_name
TypeError: replace() argument 1 must be str, not function
Any idea?
Regards,
Tobias.
Von: Victor Zhestkov [mailto:Victor.Zhestkov@suse.com]
Gesendet: Montag, 19. Juli 2021 12:17
An: Victor Zhestkov
Are you running python 3.9? There was a big fix a few weeks ago... You might still hit it. Check https://github.com/openSUSE/salt/pull/390
Robert
sent from my mobile device
-------- Originale Nachricht --------
Von: "Crefeld, Tobias LKV Bayern e.V."
Tobias, could you please collect the output of
`salt-run state.event pretty=True` for this minion on restarting it.
1. stop salt-minion on the affected system
2. Run `salt-run state.event pretty=True` on SUSE Manager Server
3. start salt-minion on the affected system
And show the events captured related to this minion
Victor
On Mon, 2021-07-19 at 12:57 +0000, Crefeld, Tobias LKV Bayern e.V. wrote:
Hi Viktor,
I entered “zypper up” and salt-minion immediately shows the exception and doesn’t execute a job on the Uyuni system successfully:
lkv-srvapp42:~ # zypper up
Loading repository data...
Reading installed packages...
The following NEW package is going to be installed:
python3-pycryptodome
The following package is going to be REMOVED:
python3-pycrypto
The following 3 packages are going to be upgraded:
python3-salt salt salt-minion
3 packages to upgrade, 1 new, 1 to remove.
Overall download size: 15.8 MiB. Already cached: 0 B. After the operation, additional 23.5 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package python3-pycryptodome-3.9.0-6.1.x86_64 (1/4), 7.1 MiB ( 25.3 MiB unpacked)
Retrieving: python3-pycryptodome-3.9.0-6.1.x86_64.rpm .............................................................................................................................................................[done]
Retrieving package salt-3002.2-37.1.x86_64 (2/4), 175.9 KiB ( 49.9 KiB unpacked)
Retrieving: salt-3002.2-37.1.x86_64.rpm ...........................................................................................................................................................................[done]
Retrieving package python3-salt-3002.2-37.1.x86_64 (3/4), 8.4 MiB ( 45.3 MiB unpacked)
Retrieving: python3-salt-3002.2-37.1.x86_64.rpm ...................................................................................................................................................................[done]
Retrieving package salt-minion-3002.2-37.1.x86_64 (4/4), 170.8 KiB ( 41.7 KiB unpacked)
Retrieving: salt-minion-3002.2-37.1.x86_64.rpm ....................................................................................................................................................................[done]
Checking for file conflicts: ......................................................................................................................................................................................[done]
(1/4) Installing: python3-pycryptodome-3.9.0-6.1.x86_64 ...........................................................................................................................................................[done]
(2/4) Installing: salt-3002.2-37.1.x86_64 .........................................................................................................................................................................[done]
(3/4) Installing: python3-salt-3002.2-37.1.x86_64 .................................................................................................................................................................[done]
(4/4) Installing: salt-minion-3002.2-37.1.x86_64 ..................................................................................................................................................................[done]
Executing %posttrans scripts ......................................................................................................................................................................................[done]
There are running programs which still use files and libraries deleted or updated by recent upgrades. They should be restarted to benefit from the latest updates. Run 'zypper ps -s' to list these programs.
Output in /var/log/salt/minion:
lkv-srvapp42:~ # File "/usr/lib/python3.6/site-packages/salt/loader.py", line 2113, in wrapper
return f(*args, **kwargs)
File "/var/cache/salt/minion/extmods/states/mgrcompat.py", line 85, in module_run
ret = module.run(**new_kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 738, in _decorate
return self._call_function(kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 355, in _call_function
self._function, self._orig_f_name
TypeError: replace() argument 1 must be str, not function
Further output after a “Package List Refresh” on Uyuni:
lkv-srvapp42:~ # 2021-07-19 14:52:12,141 [salt.utils.decorators:714 ][WARNING ][3229] The function "module.run" is using its deprecated version and will expire in version "Phosphorus".
2021-07-19 14:52:12,144 [salt.state :322 ][ERROR ][3229] An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 352, in _call_function
return self._function(*args, **kwargs)
TypeError: _run() missing 1 required positional argument: 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/state.py", line 2176, in call
*cdata["args"], **cdata["kwargs"]
File "/usr/lib/python3.6/site-packages/salt/loader.py", line 2113, in wrapper
return f(*args, **kwargs)
File "/var/cache/salt/minion/extmods/states/mgrcompat.py", line 85, in module_run
ret = module.run(**new_kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 738, in _decorate
return self._call_function(kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 355, in _call_function
self._function, self._orig_f_name
TypeError: replace() argument 1 must be str, not function
2021-07-19 14:52:12,147 [salt.utils.decorators:714 ][WARNING ][3229] The function "module.run" is using its deprecated version and will expire in version "Phosphorus".
2021-07-19 14:52:12,147 [salt.state :322 ][ERROR ][3229] An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 352, in _call_function
return self._function(*args, **kwargs)
TypeError: _run() missing 1 required positional argument: 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/state.py", line 2176, in call
*cdata["args"], **cdata["kwargs"]
File "/usr/lib/python3.6/site-packages/salt/loader.py", line 2113, in wrapper
return f(*args, **kwargs)
File "/var/cache/salt/minion/extmods/states/mgrcompat.py", line 85, in module_run
ret = module.run(**new_kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 738, in _decorate
return self._call_function(kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 355, in _call_function
self._function, self._orig_f_name
TypeError: replace() argument 1 must be str, not function
2021-07-19 14:52:12,151 [salt.utils.decorators:714 ][WARNING ][3229] The function "module.run" is using its deprecated version and will expire in version "Phosphorus".
2021-07-19 14:52:12,151 [salt.state :322 ][ERROR ][3229] An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 352, in _call_function
return self._function(*args, **kwargs)
TypeError: _run() missing 1 required positional argument: 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/state.py", line 2176, in call
*cdata["args"], **cdata["kwargs"]
File "/usr/lib/python3.6/site-packages/salt/loader.py", line 2113, in wrapper
return f(*args, **kwargs)
File "/var/cache/salt/minion/extmods/states/mgrcompat.py", line 85, in module_run
ret = module.run(**new_kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 738, in _decorate
return self._call_function(kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 355, in _call_function
self._function, self._orig_f_name
TypeError: replace() argument 1 must be str, not function
2021-07-19 14:52:12,154 [salt.utils.decorators:714 ][WARNING ][3229] The function "module.run" is using its deprecated version and will expire in version "Phosphorus".
2021-07-19 14:52:12,155 [salt.state :322 ][ERROR ][3229] An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 352, in _call_function
return self._function(*args, **kwargs)
TypeError: _run() missing 1 required positional argument: 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/state.py", line 2176, in call
*cdata["args"], **cdata["kwargs"]
File "/usr/lib/python3.6/site-packages/salt/loader.py", line 2113, in wrapper
return f(*args, **kwargs)
File "/var/cache/salt/minion/extmods/states/mgrcompat.py", line 85, in module_run
ret = module.run(**new_kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 738, in _decorate
return self._call_function(kwargs)
File "/usr/lib/python3.6/site-packages/salt/utils/decorators/__init__.py", line 355, in _call_function
self._function, self._orig_f_name
TypeError: replace() argument 1 must be str, not function
Any idea?
Regards,
Tobias.
Von: Victor Zhestkov [mailto:Victor.Zhestkov@suse.com]
Gesendet: Montag, 19. Juli 2021 12:17
An: Victor Zhestkov
participants (3)
-
Crefeld, Tobias LKV Bayern e.V.
-
Robert Paschedag
-
Victor Zhestkov