[Spacewalk-list] Spacewalk won't execute any Remotescript

Cliff Perry cperry at redhat.com
Fri Jul 18 09:37:07 UTC 2014


On 18/07/14 09:38, Daniel Thielking wrote:
> No suggestions for me?

Do you have osad running on that test/client system?
  - I ask because the output provided, shows - nothing. It didn't try to 
do anything. The rhn_check performed a basic checkin and was returned 
zero things to do.

Below is a copy from a simple scheduled remote script of 'echo foobar'.

Scroll through and notice lines:

D: do_call script.run(2098, {'username': 'root', 'groupname': 'root', 
'now': '2014-07-18 09:33:41', 'timeout': 600, 'script': '#!/bin/sh\r\n# 
Add your shell script below\r\necho foobar'}){'cache_only': None}

and then reply (I don't have remote cmds enabled on this system):

D: Sending back response(42, 'Local permission not set for action type 
script.run', {})


Cliff


[root at cperry ~]# rhn_check -vvv
D: opening  db environment /var/lib/rpm cdb:mpool:joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0
D: added key gpg-pubkey-77a79e00-4864e7f5 to keyring
D: added key gpg-pubkey-fd431d51-4ae0493b to keyring
D: added key gpg-pubkey-db42a60e-37ea5438 to keyring
D: added key gpg-pubkey-37017186-45761324 to keyring
D: added key gpg-pubkey-f21541eb-4a5233e7 to keyring
D: added key gpg-pubkey-f6777c67-45e5b1b9 to keyring
D: added key gpg-pubkey-897da07a-3c979a7f to keyring
D: added key gpg-pubkey-f7e257e6-490b0e11 to keyring
D: added key gpg-pubkey-2fa658e0-45700c69 to keyring
D: added key gpg-pubkey-42193e6b-4624eff2 to keyring
D: added key gpg-pubkey-7fac5991-4615767f to keyring
D: added key gpg-pubkey-0608b895-4bd22942 to keyring
D: added key gpg-pubkey-849c449f-4cb9df30 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
D: check_action{'action': "<?xml 
version='1.0'?>\n<methodCall>\n<methodName>script.run</methodName>\n<params>\n<param>\n<value><int>2098</int></value>\n</param>\n<param>\n<value><struct>\n<member>\n<name>username</name>\n<value><string>root</string></value>\n</member>\n<member>\n<name>groupname</name>\n<value><string>root</string></value>\n</member>\n<member>\n<name>now</name>\n<value><string>2014-07-18 
09:33:41</string></value>\n</member>\n<member>\n<name>timeout</name>\n<value><int>600</int></value>\n</member>\n<member>\n<name>script</name>\n<value><string>#!/bin/sh\r\n# 
Add your shell script below\r\necho 
foobar</string></value>\n</member>\n</struct></value>\n</param>\n</params>\n</methodCall>\n", 
'version': 2, 'id': 2098}
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: rpcServer: Calling XMLRPC up2date.login
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at 1405676032.25 with expiration of 
1405679632.25 seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000011217, 'X-RHN-Auth-Server-Time': 
'1405676021.8', 'X-RHN-Auth': 
'T6nUPiGUFR25OsrmbFAtSf1AsN/rab13MSGwThTUX9c=', 'X-RHN-Auth-Channels': 
[['rhel-x86_64-server-6', '20140717172601', '1', '1']], 
'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
D: handle_action{'action': "<?xml 
version='1.0'?>\n<methodCall>\n<methodName>script.run</methodName>\n<params>\n<param>\n<value><int>2098</int></value>\n</param>\n<param>\n<value><struct>\n<member>\n<name>username</name>\n<value><string>root</string></value>\n</member>\n<member>\n<name>groupname</name>\n<value><string>root</string></value>\n</member>\n<member>\n<name>now</name>\n<value><string>2014-07-18 
09:33:41</string></value>\n</member>\n<member>\n<name>timeout</name>\n<value><int>600</int></value>\n</member>\n<member>\n<name>script</name>\n<value><string>#!/bin/sh\r\n# 
Add your shell script below\r\necho 
foobar</string></value>\n</member>\n</struct></value>\n</param>\n</params>\n</methodCall>\n", 
'version': 2, 'id': 2098}
D: handle_action actionid = 2098, version = 2
D: do_call script.run(2098, {'username': 'root', 'groupname': 'root', 
'now': '2014-07-18 09:33:41', 'timeout': 600, 'script': '#!/bin/sh\r\n# 
Add your shell script below\r\necho foobar'}){'cache_only': None}
D: Sending back response(42, 'Local permission not set for action type 
script.run', {})
D: do_call packages.checkNeedUpdate('rhnsd=1',){}
D: opening  db environment /var/lib/rpm cdb:mpool:joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0
D: added key gpg-pubkey-77a79e00-4864e7f5 to keyring
D: added key gpg-pubkey-fd431d51-4ae0493b to keyring
D: added key gpg-pubkey-db42a60e-37ea5438 to keyring
D: added key gpg-pubkey-37017186-45761324 to keyring
D: added key gpg-pubkey-f21541eb-4a5233e7 to keyring
D: added key gpg-pubkey-f6777c67-45e5b1b9 to keyring
D: added key gpg-pubkey-897da07a-3c979a7f to keyring
D: added key gpg-pubkey-f7e257e6-490b0e11 to keyring
D: added key gpg-pubkey-2fa658e0-45700c69 to keyring
D: added key gpg-pubkey-42193e6b-4624eff2 to keyring
D: added key gpg-pubkey-7fac5991-4615767f to keyring
D: added key gpg-pubkey-0608b895-4bd22942 to keyring
D: added key gpg-pubkey-849c449f-4cb9df30 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm
Not loading "blacklist" plugin, as it is disabled
Not loading "whiteout" plugin, as it is disabled
Loaded plugins: product-id, refresh-packagekit, rhnplugin, versionlock
Config time: 0.070
D: rpcServer: Calling XMLRPC up2date.listChannels
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Package Sacks
Reading version lock configuration
pkgsack time: 0.115
rpmdb time: 0.000
repo time: 0.000
D: local action status: (0, 'rpm database not modified since last update 
(or package list recently updated)', {})
D: rpcServer: Calling XMLRPC registration.welcome_message
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm
[root at cperry ~]#

>
> _____________________________________________________
>
> Auszubildender Fachinformatiker für Systemintegration
> RWTH Aachen
> Lehrstuhl für Integrierte Analogschaltungen
> Raum 24C 313
> Walter-Schottky-Haus
> Sommerfeldstr. 24
> D-52074 Aachen
>
> www.ias.rwth-aachen.de
>
> Email:Daniel.Thielking at ias.rwth-aachen.de
> Phone: +49-(0)241-80-27771
>    FAX: +49-(0)241-80-627771
> _____________________________________________________
>
> Am 17.07.2014 12:14, schrieb Daniel Thielking:
>> That is what rhn_check -vvv says:
>>
>> D: opening  db environment /var/lib/rpm cdb:mpool:joinenv
>> D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
>> D: locked   db index       /var/lib/rpm/Packages
>> D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
>> D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
>> D: loading keyring from rpmdb
>> D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0
>> D: added key gpg-pubkey-ba684223-4f3248dc to keyring
>> D: added key gpg-pubkey-0608b895-4bd22942 to keyring
>> D: added key gpg-pubkey-7bed7bb1-52777fe1 to keyring
>> D: added key gpg-pubkey-f6777c67-45e5b1b9 to keyring
>> D: added key gpg-pubkey-baadae52-49beffa4 to keyring
>> D: added key gpg-pubkey-849c449f-4cb9df30 to keyring
>> D: added key gpg-pubkey-5568bbb2-4cb9de99 to keyring
>> D: added key gpg-pubkey-9b1fd350-4a576be4 to keyring
>> D: added key gpg-pubkey-863a853d-4f55f54d to keyring
>> D: added key gpg-pubkey-a179d329-4b9f8609 to keyring
>> D: added key gpg-pubkey-192a7d7d-4a5769d0 to keyring
>> D: added key gpg-pubkey-98ab5139-4bf2d0b0 to keyring
>> D: Using legacy gpg-pubkey(s) from rpmdb
>> D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
>> D: do_call packages.checkNeedUpdate('rhnsd=1',){}
>> D: opening  db environment /var/lib/rpm cdb:mpool:joinenv
>> D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
>> D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
>> D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
>> D: loading keyring from rpmdb
>> D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0
>> D: added key gpg-pubkey-ba684223-4f3248dc to keyring
>> D: added key gpg-pubkey-0608b895-4bd22942 to keyring
>> D: added key gpg-pubkey-7bed7bb1-52777fe1 to keyring
>> D: added key gpg-pubkey-f6777c67-45e5b1b9 to keyring
>> D: added key gpg-pubkey-baadae52-49beffa4 to keyring
>> D: added key gpg-pubkey-849c449f-4cb9df30 to keyring
>> D: added key gpg-pubkey-5568bbb2-4cb9de99 to keyring
>> D: added key gpg-pubkey-9b1fd350-4a576be4 to keyring
>> D: added key gpg-pubkey-863a853d-4f55f54d to keyring
>> D: added key gpg-pubkey-a179d329-4b9f8609 to keyring
>> D: added key gpg-pubkey-192a7d7d-4a5769d0 to keyring
>> D: added key gpg-pubkey-98ab5139-4bf2d0b0 to keyring
>> D: Using legacy gpg-pubkey(s) from rpmdb
>> D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
>> D: closed   db index       /var/lib/rpm/Providename
>> D: closed   db index       /var/lib/rpm/Name
>> D: closed   db index       /var/lib/rpm/Packages
>> D: closed   db environment /var/lib/rpm
>> Not loading "blacklist" plugin, as it is disabled
>> Not loading "whiteout" plugin, as it is disabled
>> Loaded plugins: fastestmirror, presto, refresh-packagekit, rhnplugin
>> Config time: 0.032
>> D: login(forceUpdate=False) invoked
>> D: readCachedLogin invoked
>> D: Checking pickled loginInfo, currentTime=1405591784.98,
>> createTime=1405591723.85, expire-offset=3600.0
>> D: readCachedLogin(): using pickled loginInfo set to expire at
>> 1405595323.85
>> D: rpcServer: Calling XMLRPC up2date.listChannels
>> This system is receiving updates from RHN Classic or Red Hat Satellite.
>> Setting up Package Sacks
>> Loading mirror speeds from cached hostfile
>> pkgsack time: 0.068
>> rpmdb time: 0.000
>> Loading mirror speeds from cached hostfile
>> repo time: 0.000
>> D: local action status: (0, 'rpm database not modified since last
>> update (or package list recently updated)', {})
>> D: rpcServer: Calling XMLRPC registration.welcome_message
>> D: closed   db index       /var/lib/rpm/Providename
>> D: closed   db index       /var/lib/rpm/Name
>> D: closed   db index       /var/lib/rpm/Packages
>> D: closed   db environment /var/lib/rpm
>>
>> While I was upgrading Spacewalk form 2.1 to 2.2, I should use this
>> command:
>> su - postgres -c 'PGPASSWORD=spacepw; createlang pltclu spaceschema ;'
>>
>> but there is no spaceschema database on the server maybe this is the
>> error?
>>
>>
>> _____________________________________________________
>>
>> Auszubildender Fachinformatiker für Systemintegration
>> RWTH Aachen
>> Lehrstuhl für Integrierte Analogschaltungen
>> Raum 24C 313
>> Walter-Schottky-Haus
>> Sommerfeldstr. 24
>> D-52074 Aachen
>>
>> www.ias.rwth-aachen.de
>>
>> Email:Daniel.Thielking at ias.rwth-aachen.de
>> Phone: +49-(0)241-80-27771
>>    FAX: +49-(0)241-80-627771
>> _____________________________________________________
>> Am 17.07.2014 10:23, schrieb Milan Zázrivec:
>>> On Thursday 17 July 2014 09:53:10 Daniel Thielking wrote:
>>>> OS: Centos 6.5 on Clients and Server
>>>>
>>>> in /var/log/up2date:
>>>>
>>>> [Thu Jul 17 08:56:01 2014] up2date updateLoginInfo() login info
>>>> [Thu Jul 17 08:56:01 2014] up2date logging into up2date server
>>>> [Thu Jul 17 08:56:01 2014] up2date successfully retrieved authentication
>>>> token from up2date server
>>>>
>>>> And no Traceback mails or errors on Server
>>> This is strange -- I just tried this on both RHEL-6 and RHEL-7, with stock
>>> client packages and then with Spacewalk 2.2 packages.
>>>
>>> It always worked OK.
>>>
>>> Did the upgrade to 2.2 went smooth? (package / schema upgrade in particular)
>>>
>>> -MZ
>>>
>>>> Am 17.07.2014 09:40, schrieb Milan Zázrivec:
>>>>> On Thursday 17 July 2014 09:28:41 Daniel Thielking wrote:
>>>>>> Dear Colleagues,
>>>>>>
>>>>>> I have a huge problem.
>>>>>> I have updatet fom Spacewalk 2.1.to 2.2 and after this upgrade i can't
>>>>>> execute any remotescript.
>>>>>>
>>>>>> If I try to execute on all my host this script:
>>>>>>        #!/bin/sh
>>>>>>        echo "hello"
>>>>>>
>>>>>> I get this error message on the plan page:
>>>>>>
>>>>>>
>>>>>> Summary: 	Run an arbitrary script scheduled by dthielking
>>>>>> Details: 	This action will be executed after 07/17/14 8:47:00 AM CEST.
>>>>>>
>>>>>> This action's status is: Failed.
>>>>>> The client picked up this action on 07/17/14 8:48:08 AM CEST.
>>>>>> The client completed this action on 07/17/14 8:48:08 AM CEST.
>>>>>> Client execution returned "Script failed" (code 1)
>>>>> This seems to be working fine on my Spacewalk 2.2.
>>>>>
>>>>> What OS are the problematic clients? Anything in /var/log/up2date
>>>>> on the clients? Any error logs / traceback emails on the server?
>>>>>
>>>>> -MZ
>>>>>
>>>>> _______________________________________________
>>>>> Spacewalk-list mailing list
>>>>> Spacewalk-list at redhat.com
>>>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>>> _______________________________________________
>>>> Spacewalk-list mailing list
>>>> Spacewalk-list at redhat.com
>>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>> _______________________________________________
>>> Spacewalk-list mailing list
>>> Spacewalk-list at redhat.com
>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>
>>
>>
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>




More information about the Spacewalk-list mailing list