Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 436103

Summary: Anaconda displays '-1' as a number of Remaining Packages
Product: Red Hat Enterprise Linux 5 Reporter: Adam Stokes <astokes>
Component: anacondaAssignee: Martin Sivák <msivak>
Status: CLOSED WORKSFORME QA Contact: Alexander Todorov <atodorov>
Severity: low Docs Contact:
Priority: low    
Version: 5.3CC: atodorov, jtluka, tao
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-11-20 08:50:51 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:
Bug Depends On:    
Bug Blocks: 391501    
Attachments:
Description Flags
ss of remaining pkgs none

Description Adam Stokes 2008-03-05 13:29:04 UTC
Description of problem:
Anaconda displays '-1' as a number of Remaining Packages . This has reproduced
on my xen pv configuration as well. Please refer to the previous post for the
serial console output. I looked in my configuration. After the install (where it
actually showed "Remaining" as "-1", I checked with rpm -qa  | wc -l and sees
that the package exactly adds up to 860 (see another previous post).
Therefore there should be something wrong with the cound on "Completed" .
This is presumably done in textw/progress_text.py:

textw/progress_text.py
    23     def completePackage(self, header, timer):
    24         def formatTime(amt):
    25             hours = amt / 60 / 60
    26             amt = amt % (60 * 60)
    27             min = amt / 60
    28             amt = amt % 60
    29             secs = amt
    30
    31             return "%01d:%02d:%02d" % (int(hours) ,int(min), int(secs))
    32
    33         self.numComplete = self.numComplete + 1



This is called from yuminstall.py:
    96     def callback(self, what, amount, total, h, user):
:
   162         elif what == rpm.RPMCALLBACK_INST_CLOSE_FILE:
   163             po = h
   164             hdr = po.returnLocalHeader()
   165             path = po.returnSimple('relativepath')
   166
   167             nvra = "%s" %(po,)
   168
   169             fn = self.files[nvra].name
   170             self.files[nvra].close()
   171             self.method.unlinkFilename(fn)
   172             self.progress.completePackage(hdr, self.pkgTimer)

Version-Release number of selected component (if applicable):
anaconda 11.x

How reproducible:
100%

Steps to Reproduce:
1. Install system via text mode
2.
3.
  
Actual results:
Remaining displays -1

Expected results:
Show correct number of remaining packages

Additional info:

Comment 1 Adam Stokes 2008-03-05 15:30:18 UTC
Created attachment 296884 [details]
ss of remaining pkgs

Comment 2 Chris Lumens 2008-03-28 19:27:01 UTC
*** Bug 436275 has been marked as a duplicate of this bug. ***

Comment 7 RHEL Program Management 2008-06-12 20:28:33 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 8 Martin Sivák 2008-06-18 11:24:05 UTC
Will be included in 11.1.2.114

Comment 10 Alexander Todorov 2008-10-20 08:54:55 UTC
Adam,
how did you reproduce this? What package selection? I've tried with 5.2 Server and the remaining package count went down to 1 then anaconda executed %post scripts and was ready to reboot. This was with default package selection.

Comment 13 Alexander Todorov 2008-11-11 09:56:42 UTC
Adam,
can we get the kickstart file from the customer. We can't reproduce with info what packages were selected for installation.