[Spacewalk-list] Problems with remote commands on some systems

Edward Dore edward.dore at freethought-internet.co.uk
Mon Oct 4 12:53:37 UTC 2010


Mike,

Yeah, if I run the scripts manually from bash via SSH then they run as intended and give the expected output (they are the initial system configuration scripts scheduled by dell-satellite-sync to work out which channels to subscribe a system to, but even if I schedule a simple echo command then it fails with the same 256 return code and no output).

SELinux is set to permissive mode, so shouldn't be interfering with anything.

Generally all of the working and non-working systems are near identical. They are all kickstarted off the same config file and are kept vaguely similar to each other. The only difference I can think of is cPanel, which is only installed on the three that aren't working.

I will spin up a blank machine to test before and after installing cPanel when I get a chance.

Edward Dore

----- Original Message -----
From: "Michael Mraka" <michael.mraka at redhat.com>
To: spacewalk-list at redhat.com
Sent: Monday, 4 October, 2010 12:31:55 PM
Subject: Re: [Spacewalk-list] Problems with remote commands on some systems

Edward Dore wrote:
% Mike,
% 
% Ah, that's better, much more verbose! Output at
% http://pastebin.com/s7nW1YLp It doesn't mean a great deal more to me,
% doesn't look to have much more in the way of details, but hopefully it
% will mean something to you :)
% 
% I've just kicked my brain in to gear and realised that the common
% thing between these three servers is that they are running cPanel
% which likes to compile it's own perl from scratch and install it over
% the top of the one provided in the RHEL/CentOS RPM!

That's good to know but I'm affraid there is something more different as
none of scripts in the log above touches perl.

Does the scripts do what they are supposed to when run manually?
Another thing -  Is selinux enabled? Are there any AVC denials in
audit.log?

The strange thing is

   Sending back response (1, 'Script failed', {'output': '', ...

because rpm -q should output something either on installed or missing key.

Regards,

--
Michael Mráka
Satellite Engineering, Red Hat

_______________________________________________
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