Bug 493110 - Package installation using SSM should only generate one scheduled event.
Summary: Package installation using SSM should only generate one scheduled event.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: WebUI
Version: 530
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jay Dobies
QA Contact: Sayli Karmarkar
URL:
Whiteboard:
Depends On: 443500
Blocks: 456985
TreeView+ depends on / blocked
 
Reported: 2009-03-31 16:51 UTC by Justin Sherrill
Modified: 2009-09-10 20:34 UTC (History)
3 users (show)

Fixed In Version: sat530
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-10 20:34:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Justin Sherrill 2009-03-31 16:51:23 UTC
1.  Select two or more systems for use with the SSM.
2.  Go to the SSM -> packages -> install new package (or upgrade)
3.  Select a package that is applicable to 2 or more systems
4.  Confirm scheduling


Expected: 
One action is scheduled affecting both systems.

Actual:
Two actions are scheduled, one for each system.

Comment 1 Justin Sherrill 2009-03-31 16:51:50 UTC
I believe LVM has complained about this, but I've never seen a BZ for it and I noticed this behaviour the other day.

Comment 2 Clifford Perry 2009-03-31 19:06:57 UTC
bug 444199  &  bug 443500 are others reported on this same topic.

Comment 3 Clifford Perry 2009-03-31 19:12:00 UTC
Based on no more than 2 man days of effort to get working - moving over all 3 bugs that were reported on this topic into 530. 

Cliff.

Comment 4 Jay Dobies 2009-04-08 18:30:08 UTC
Renamed BZ to only refer to install. 444199 handles upgrades.

Comment 5 Jay Dobies 2009-04-08 18:33:46 UTC
Commit: 20353daa6a029c20866985699ba890a0ceaccd21

SchedulePackageInstallationAction.java
ActionManager.java
EnableConfigHelper.java

Changed package installation through SSM to only create one action

Refactored the scheduled action creation to support multiple servers. Changed the SSM package installation calls to use these new multiple-server APIs to result in only one action creation for a batch of servers in the SSM.

Comment 6 Jay Dobies 2009-04-08 18:35:00 UTC
Vader Commit: 80dcaa7236c2bccfd87ff58e1116124b58eccab2

Comment 7 Sayli Karmarkar 2009-04-28 21:22:59 UTC
Jason,

Seems to be working for package installation and removal, but not for verify and upgrade. Is this expected? or is there another bug associated with it? 

~SayliK

Comment 8 Jay Dobies 2009-04-29 13:02:35 UTC
Yes, there were three bugs in total. This one was just for installation. There is also 443500 which is package removal and 444199 for package upgrade. Both are updated to reflect their states. There wasn't a bug for verify filed as far as I saw when I grabbed these three.

Comment 9 Sayli Karmarkar 2009-04-29 15:42:21 UTC
Verified for package installation as per comment #8.

Comment 10 Jan Pazdziora 2009-09-07 11:29:11 UTC
Stage validated with Satellite-5.3.0-RHEL5-re20090820.1. I have registered the system twice, having two system profiles. I have selected both systems, clicked Manage, packages Install, selected Red Hat Enterprise Linux (v. 5 for 32-bit x86), filtered for mutt, selected, clicked Install Selected Packages, seen two systems listed, hit Confirm.

Then I went to Schedule and seen one "Package Install" event, with two In Progress Systems. I've run rhn_check -vv on the system, and one of the profiles moved to Completed Systems.

Moving to RELEASE_PENDING.

Comment 11 Brandon Perkins 2009-09-10 20:34:55 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1434.html


Note You need to log in before you can comment on or make changes to this bug.