Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 489387

Summary: Installing a package w/ a remote command fails
Product: Red Hat Satellite 5 Reporter: wes hayutin <whayutin>
Component: ProvisioningAssignee: Partha Aji <paji>
Status: CLOSED DUPLICATE QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: low    
Version: 530CC: bperkins, cperry, dherrman, jpazdziora
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://grandprix.rhndev.redhat.com/rhn/systems/details/packages/ScheduleRemoteCommand.do?mode=install&sid=1000010295&session_set_label=com.redhat.rhn.frontend.action.rhnpackage.InstallPackageSetupAction1000010295
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-30 18:51:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
run remote command during a package install none

Description wes hayutin 2009-03-09 20:02:03 UTC
Description of problem:

Satellite-5.3.0-RHEL5-re20090306.2-i386-embedded-oracle.iso

1. register a system
2. enable rhncfg mang, and rhn-actions-control enable-all
3. use the webui to install zsh and schedule a remote command before the package is installed..

my command was
#!/bin/bash
uname -a
ls
hostname


4. run rhn_check -vvv from the client

results: package fails to install..
System	Failed	Message
fjs-0-18.rhndev.redhat.com 	3/9/09 3:56:10 PM EDT 	invalid action 1272 for server 1000010295 

expected results:
command executes
package installs

Comment 1 Partha Aji 2009-03-19 20:35:42 UTC
Should be fixed in the next iso...

Comment 2 Partha Aji 2009-03-31 20:05:51 UTC
Mass Move to ON_QA

Comment 3 wes hayutin 2009-04-02 17:02:43 UTC
fails..

recreate.
1. verify remote command works first.
2. schedule a simple remote command, rhn_check (something like  ls -la )

3. schedule package install of zsh w/ remote command ( ls -la)
4. rhn_check

script fails, package installation fails..
bug fails =)


This action's status is: Failed.
The client picked up this action on 04/ 2/09 12:53:47 PM EDT.
The client completed this action on 04/ 2/09 12:53:48 PM EDT.
Client execution returned "Script failed" (code 1)


Run as: root:root
Timeout: 600 seconds

#!/bin/sh
ls


Start Date: 2009-04-02 12:53:47
End Date: 2009-04-02 12:53:47
Return Code: 256
Raw Output: view/download raw script output
Filtered Output:

[Thu Apr  2 13:01:34 2009] up2date D: Sending back response (1, 'Script failed',
 {'output': '', 'base64enc': 1, 'process_end': '2009-04-02 13:01:33', 'return_co
de': 256, 'process_start': '2009-04-02 13:01:33'})
[Thu Apr  2 13:01:37 2009] up2date D: do_call packages.checkNeedUpdate ('rhnsd=1
',)
[Thu Apr  2 13:01:37 2009] up2date D: local action status:  (0, 'rpm database no
t modified since last update (or package list recently updated)', {})
(END) 


tested on 4/1 build

Comment 4 wes hayutin 2009-04-08 20:50:13 UTC
verified on 4/3

Comment 5 Jan Pazdziora (Red Hat) 2009-09-07 09:59:33 UTC
Can you please clarify how I should achieve the "use the webui to install zsh and schedule a remote command before the package is installed.." step of the test plan?

I was able to schedule package installation, scheduled as soon as possible. I was able to schedule remote command execution. I set the remote command execution "in the past" but when I run rhn_check -vv, the package installation is run first, then the command execution. The time that I set is clearly taken to mean the limit before which the event is not considered, but it does not enforce the ordering.

So, how do i schedule the remote command before the package installation?

Comment 6 wes hayutin 2009-09-08 12:44:11 UTC
when installing a package you have an option to run a remote command and install.

Comment 7 Jan Pazdziora (Red Hat) 2009-09-08 13:02:02 UTC
(In reply to comment #6)
> when installing a package you have an option to run a remote command and
> install.  

Can you point me to where exactly I find the option? I go from system's overview page to Software -> Packages -> Install, I check the checkbox next to the package and click Install Selected Packages. On the next page I click Confirm. The only additional option I can see is Schedule action as soon as possible or Schedule action for no sooner than: <date selection>.

Comment 8 wes hayutin 2009-09-08 14:02:55 UTC
looks like the function has been improperly removed from 530

Comment 9 wes hayutin 2009-09-08 14:03:44 UTC
Created attachment 360080 [details]
run remote command during a package install 

https://test10-64.rhndev.redhat.com/rhn/systems/details/packages/InstallConfirm.do?sid=1000011407

Comment 10 wes hayutin 2009-09-08 14:09:08 UTC
the above screen shot was taken from a 520 sat.

Comment 12 Brandon Perkins 2009-09-08 17:07:01 UTC
Reopening and moving to sat531-triage to get traction on this.