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 <Victor.Zhestkov(a)suse.com>; Crefeld, Tobias LKV Bayern e.V. <Tobias.Crefeld(a)lkv.bayern.de>; users(a)lists.uyuni-project.org
Betreff: Re: AW: AW: SLES15SP2-Clients: salt-minion problem
Hi Tobias.
I have `python3-salt-3002.2-37.1` installed and it's running fine and our QA testing salt we are releasing for all supported OSes.
Try to update salt-minion with all of it's dependencies, I beleive it should work.
Regards,
Victor
On Mon, 2021-07-19 at 09:46 +0000, Crefeld, Tobias LKV Bayern e.V. wrote:
Hi Viktor,
your hint with the version of python3-salt made me think about downgrading it, which was successful.
zypper in --oldpackage python3-salt-3000-30.1
and accepting the dependent downgrades of the packages of salt and salt-minion makes service salt-minion work again.
It seems that Patch SUSE-15-SP2-2021-2106 is responsible for dysfunction of the service salt-minion.
BTW: Is there a way to block a patch from being activated in general?
Regards,
Tobias Crefeld.
Von: Victor Zhestkov [mailto:Victor.Zhestkov@suse.com]
Gesendet: Montag, 12. Juli 2021 17:55
An: Victor Zhestkov <Victor.Zhestkov(a)suse.com <mailto:Victor.Zhestkov@suse.com> >; Crefeld, Tobias LKV Bayern e.V. <Tobias.Crefeld(a)lkv.bayern.de <mailto:Tobias.Crefeld@lkv.bayern.de> >; users(a)lists.uyuni-project.org <mailto:users@lists.uyuni-project.org>
Betreff: Re: AW: SLES15SP2-Clients: salt-minion problem
Check the output of:
rpm -V python3-salt
If it's ok then to check which python modules installed from Packagehub channel.
Are there any tweaks in the minion configs?
On Mon, 2021-07-12 at 15:49 +0000, Crefeld, Tobias LKV Bayern e.V. wrote:
Hi Victor,
thanks for your fast reply!
I guess it's "3002.2-37.1" :
zypper se -s salt |grep "^i"
i | python3-salt | Paket | 3002.2-37.1 | x86_64 | SLE-Module-Basesystem15-SP2-Updates for x86_64
i | salt | Paket | 3002.2-37.1 | x86_64 | SLE-Module-Basesystem15-SP2-Updates for x86_64
i+ | salt-minion | Paket | 3002.2-37.1 | x86_64 | SLE-Module-Basesystem15-SP2-Updates for x86_64
BTW: The SLES15SP1 systems where salt-minion is running fine, show version 3000-19.1.
Regards,
Tobias Crefeld.
Von: Victor Zhestkov [mailto:Victor.Zhestkov@suse.com <mailto:Victor.Zhestkov@suse.com> ]
Gesendet: Montag, 12. Juli 2021 17:31
Hi Tobias.
What is the salt version installed on the minion. It's better to check the output of:
zypper se -s salt
Regards,
Victor