Bug 165027 - Popen3 call in smart/backends/solaris/pm.py hangs
Summary: Popen3 call in smart/backends/solaris/pm.py hangs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Solaris
Version: 500
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: John Wregglesworth
QA Contact: Max Spevack
URL:
Whiteboard:
Depends On:
Blocks: 152252
TreeView+ depends on / blocked
 
Reported: 2005-08-03 17:54 UTC by John Wregglesworth
Modified: 2007-06-26 15:11 UTC (History)
2 users (show)

Fixed In Version: RHN 4.0.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-08-31 20:28:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Wregglesworth 2005-08-03 17:54:09 UTC
Description of problem: When attempting to install a patch cluster on a solaris
machine (8, 9, or 10), the call to unzip hangs. Unzip is called using a
popen2.Popen3 object. It appears that the output file descriptor needs to have a
bit read from it, and then be closed.

How reproducible: Always


Steps to Reproduce:
1. Schedule a patch cluster install
2. Run rhn_check on the client machine
3. Watch the unzip call hang
  
Actual results: The patch cluster install hangs.


Expected results: The patch cluster installs.

Comment 1 John Wregglesworth 2005-08-03 18:12:23 UTC
Fixed in SVN.

I added a few lines to smart/backends/solaris/pm.py that will read a bit from
the fromchild file object and close it, which should allow unzip to run without
hanging.

Test Plan.
1. Register a solaris client to a satellite to a satellite and subscribe it to a
channel that contains a patch cluster package.

2. Schedule an installation of the patch cluster package.

3. Run rhn_check -vvv on the solaris client and make sure it doesn't hang when
unzipping the pkg. It can take a while for the patch cluster to unzip and install.

Comment 2 Max Spevack 2005-08-11 02:13:41 UTC
up2date patch cluster -- the call to unzip doesn't hang, it just takes forever
since the patch cluster is huge.

PROD_READY -28


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