uyuni-project / contrib

Collection of tools that are are not (yet!) officially part of the Uyuni product
8 stars 5 forks source link

system_update.py option -u : Run bevor and after patching works just for commands not for scripts #20

Closed tani-DN closed 12 months ago

tani-DN commented 12 months ago

Hi,

the update_scripts option does just worked for commands but not for scripts. The scripts can not be found by the tools:

2-11-2023 21:06:43 | sap-router | ERROR | Script run failed on server sap-router!!!!! The error messages is: stderr: /tmp/__salt.tmp.a8f_6mf2.sh: line 2: /opt/susemanager/testscript.sh: No such file or directory

The script is on the location:

smgr02:/opt/susemanager # ll /opt/susemanager/testscript.sh -rwxr-xr-x 1 root root 20 Nov 2 20:47 /opt/susemanager/testscript.sh

The content of the update script file:

begin: timeout: 60 commands:

tani-DN commented 12 months ago

My mistake. I understand that the specified scripts to be executed must be located on the Salt Master. It is correct that the scripts must be located on the target system, on the Salt minion.