Ok. Well the more desperate I become the more weird things I try. It seems what was happening is the cache was somehow effecting the operation. If I clear the cache the command works. So my fix was run:
spacecmd -s $IP -u admin -p password clear_caches spacecmd -s $IP -u admin -p password group_addsystems $select $hostname And it seems to work every time now. Do I get points for answering my own question? lol Anyway, thought I would put the "fix" out there just in case someone else has the same issue. Regards, Glen Collins ----- Original Message ----- Hi all. Anyone know a reason why the "spacecmd" has issues doing a "group_addsystems" from the client? It works fine on the spacewalk server itself. But if I do it from the client I see the following in the api log: Failed: [2014-10-02 10:09:29,583] INFO - REQUESTED FROM: 10.xxx.xxx.xx CALL: auth.login(admin, ********) CALLER: (admin) TIME: 0.099 seconds [2014-10-02 10:09:29,673] INFO - REQUESTED FROM: 10.xxx.xxx.xx CALL: systemgroup.addOrRemoveSystems(admin, Management-Servers, [] , true) CALLER: (admin) TIME: 0.025 seconds [2014-10-02 10:10:25,198] INFO - REQUESTED FROM: 10.xxx.xxx.xx CALL: api.getVersion() CALLER: (admin) TIME: 0.002 seconds Success: [2014-10-02 10:10:25,397] INFO - REQUESTED FROM: 10.xxx.xxx.xx CALL: auth.login(admin, ********) CALLER: (admin) TIME: 0.134 seconds [2014-10-02 10:10:25,488] INFO - REQUESTED FROM: 10.xxx.xxx.xx CALL: system.listSystems(admin) CALLER: (admin) TIME: 0.019 seconds [2014-10-02 10:10:26,129] INFO - REQUESTED FROM: 10.xxx.xxx.xx CALL: systemgroup.addOrRemoveSystems(admin, Management-Servers, [1000010050], true) CALLER: (admin) TIME: 0.576 seconds Seems to me spacecmd does not send the spacewalk system id or knows how to get it so it can send. See the highlighted sections above. Just wondering if this is normal. What I'm trying to do is give the installer a script to add the server to a specific group during an install. If anyone can help or set me straight I would appreciate it. Thanks Glen Collins _______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
