Bug 114653 - number of packages decrements when retrying after media read error
Summary: number of packages decrements when retrying after media read error
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Beta 3
Hardware: i686 All
: P5 - None : Minor
Target Milestone: ---
Assignee: Jiri Srain
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-01 08:45 UTC by michel munnix
Modified: 2005-10-05 12:37 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description michel munnix 2005-09-01 08:45:53 UTC
When a rpm installation fails, in this case it was a media read error, the
number of packages decrements at each retry. Count should be reincremented
before retrying. The problem occurs aswell in first installation as when
install/remove software with yast2.
Comment 1 Michael Gross 2005-09-01 09:38:47 UTC
Could you please be more specific? Provide all relevant output as well.
Comment 2 michel munnix 2005-09-01 10:02:44 UTC
When a package begins to install, the total count of packages aswell as the
count of packages to be installed from CD1 are decremented by 1. When it fails
and you choose to ignore -> it's ok to leave it like that, final count will be 0.
If you choose to retry, the counters are again decremented so the counts are wrong.

I'll attach an extract from yast2 logs:

Comment 3 michel munnix 2005-09-01 10:09:27 UTC
2005-09-01 08:52:38 <1> linux(2534) [mediaaccess++]
MediaHandler.cc(provideFile):285
provideFile(/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm)
2005-09-01 08:52:38 <1> linux(2534) [YCP] SlideShow.ycp:1228 Installing
yast2-phone-services-2.12.0 -- YaST2 - Phone Services Configuration
2005-09-01 08:52:38 <1> linux(2534) [rpmdb] RpmDb.cc(installPackage):1569
RpmDb::installPackage(/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm,156)
2005-09-01 08:52:38 <1> linux(2534) [liby2util++]
ExternalProgram.cc(start_program):163 Executing 'rpm' '--root' '/mnt' '--dbpath'
'/var/lib/rpm' '-U' '--percent' '--nosignature' '--force' '--nodeps'
'--ignoresize'
'/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm'
2005-09-01 08:52:51 <1> linux(2534) [liby2util++]
ExternalProgram.cc(checkStatus):320 pid 6654 exited with status 1
2005-09-01 08:52:51 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 rpm
failed, message was: error:
/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm:
MD5 digest: BAD Expected(11c957c1163b0971bd316a9fc95b2bc6) !=
(b62883da212e5180736554aba5807b83)
2005-09-01 08:52:51 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 error:
/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm
cannot be installed
2005-09-01 08:52:51 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662
2005-09-01 08:53:11 <1> linux(2534) [YCP] PackageCallbacks.ycp:286 DonePackage
`retry
2005-09-01 08:53:12 <1> linux(2534) [YCP] SlideShow.ycp:1228 Installing
yast2-phone-services-2.12.0 -- YaST2 - Phone Services Configuration
2005-09-01 08:53:12 <1> linux(2534) [YCP] SlideShow.ycp:894 src #0: [52198856,
470718105, 534093077, 59989726, 2199558]
2005-09-01 08:53:12 <1> linux(2534) [rpmdb] RpmDb.cc(installPackage):1569
RpmDb::installPackage(/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm,156)
2005-09-01 08:53:12 <1> linux(2534) [liby2util++]
ExternalProgram.cc(start_program):163 Executing 'rpm' '--root' '/mnt' '--dbpath'
'/var/lib/rpm' '-U' '--percent' '--nosignature' '--force' '--nodeps'
'--ignoresize'
'/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm'
2005-09-01 08:53:19 <1> linux(2534) [liby2util++]
ExternalProgram.cc(checkStatus):320 pid 6659 exited with status 1
2005-09-01 08:53:19 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 rpm
failed, message was: error:
/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm:
MD5 digest: BAD Expected(11c957c1163b0971bd316a9fc95b2bc6) !=
(b62883da212e5180736554aba5807b83)
2005-09-01 08:53:19 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 error:
/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm
cannot be installed
2005-09-01 08:53:19 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662
2005-09-01 08:53:21 <1> linux(2534) [YCP] PackageCallbacks.ycp:286 DonePackage
`retry                                      2005-09-01 08:53:21 <1> linux(2534)
[YCP] SlideShow.ycp:1228 Installing yast2-phone-services-2.12.0 -- YaST2 - Phone
Services Configuration                                                         
                                                 2005-09-01 08:53:21 <1>
linux(2534) [rpmdb] RpmDb.cc(installPackage):1569
RpmDb::installPackage(/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm,156)
                                     2005-09-01 08:53:21 <1> linux(2534)
[liby2util++] ExternalProgram.cc(start_program):163 Executing 'rpm' '--root'
'/mnt' '--dbpath' '/var/lib/rpm' '-U' '--percent' '--nosignature' '--force'
'--nodeps' '--ignoresize'
'/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm'
                                            2005-09-01 08:53:27 <1> linux(2534)
[liby2util++] ExternalProgram.cc(checkStatus):320 pid 6664 exited with status 1
       2005-09-01 08:53:27 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662
rpm failed, message was: error:
/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm:
MD5 digest: BAD Expected(11c957c1163b0971bd316a9fc95b2bc6) !=
(b62883da212e5180736554aba5807b83)                                             
            2005-09-01 08:53:27 <3> linux(2534) [rpmdb]
RpmDb.cc(installPackage):1662 error:
/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm
cannot be installed                                      2005-09-01 08:53:27 <3>
linux(2534) [rpmdb] RpmDb.cc(installPackage):1662                              
                   2005-09-01 08:53:36 <1> linux(2534) [YCP]
PackageCallbacks.ycp:286 DonePackage `retry                                    
 2005-09-01 08:53:36 <1> linux(2534) [YCP] SlideShow.ycp:1228 Installing
yast2-phone-services-2.12.0 -- YaST2 - Phone Services Configuration            
                                                                               
              2005-09-01 08:53:36 <1> linux(2534) [rpmdb]
RpmDb.cc(installPackage):1569
RpmDb::installPackage(/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm,156)
                                     2005-09-01 08:53:36 <1> linux(2534)
[liby2util++] ExternalProgram.cc(start_program):163 Executing 'rpm' '--root'
'/mnt' '--dbpath' '/var/lib/rpm' '-U' '--percent' '--nosignature' '--force'
'--nodeps' '--ignoresize'
'/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm'
                                            2005-09-01 08:53:43 <1> linux(2534)
[liby2util++] ExternalProgram.cc(checkStatus):320 pid 6671 exited with status 1
       2005-09-01 08:53:43 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662
rpm failed, message was: error:
/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm:
MD5 digest: BAD Expected(11c957c1163b0971bd316a9fc95b2bc6) !=
(b62883da212e5180736554aba5807b83)                                             
            2005-09-01 08:53:43 <3> linux(2534) [rpmdb]
RpmDb.cc(installPackage):1662 error:
/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm
cannot be installed                                      2005-09-01 08:53:43 <3>
linux(2534) [rpmdb] RpmDb.cc(installPackage):1662                              
                   2005-09-01 08:53:50 <1> linux(2534) [YCP]
PackageCallbacks.ycp:286 DonePackage `ignore
Comment 4 Michael Gross 2005-09-01 10:12:33 UTC
The next time please create an attachment when submitting logs or files.
Comment 5 Horst-Dieter Lange 2005-09-17 16:04:02 UTC
Bug also found in RC1.
Comment 6 Jiri Srain 2005-09-27 07:33:49 UTC
Another problem is that even if everything is fine, when the last package is 
being installed, the progress shows "everything has been done". 
 
This code calls for deeper changes. 
Comment 7 Jiri Srain 2005-10-05 12:37:12 UTC
Fixed in SVN for 10.1.