Bug 216545 - Installation abort after installing packages from CD1
Summary: Installation abort after installing packages from CD1
Status: RESOLVED FIXED
: 217045 (view as bug list)
Alias: None
Product: openSUSE 10.2
Classification: openSUSE
Component: Installation (show other bugs)
Version: Beta 1
Hardware: x86-64 Other
: P5 - None : Blocker with 1 vote (vote)
Target Milestone: ---
Assignee: Duncan Mac-Vicar
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-31 11:51 UTC by Peter Kuliffay
Modified: 2006-11-26 10:28 UTC (History)
4 users (show)

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


Attachments
y2logs (164.95 KB, application/x-compressed-tar)
2006-10-31 22:45 UTC, Peter Kuliffay
Details
y2logs (194.31 KB, application/x-compressed-tar)
2006-11-11 10:43 UTC, Peter Kuliffay
Details
y2logs file (189.67 KB, application/x-compressed-tar)
2006-11-25 21:16 UTC, Peter Kuliffay
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Kuliffay 2006-10-31 11:51:35 UTC
I was using CD 10.2 i386 Beta 1 installation set (MD5SUM & check during 
installation O.K.).
HW Athlon64 3000+, MB MSI NForce4, DVD-RW LG GSA-4166B.
There is a problem to change/eject CD1 after prompt to insert CD2. No answer at push DVD button and installation abort at click eject button.

No problem with installation openSUSE 10.1 or Mandriva 2007 at this HW.
Comment 1 Andreas Hanke 2006-10-31 18:04:51 UTC
Can you *please* attach your YaST logfiles?

You're the 3rd user to report that the eject button crashes YaST and aborts the whole installation. But noone attached logfiles. And they are needed to find out what's going on.

Please follow the instructions given at http://en.opensuse.org/Bugs/YaST
Comment 2 Peter Kuliffay 2006-10-31 22:45:31 UTC
Created attachment 103253 [details]
y2logs

These logs were generated after installation abort at click eject button in CD change pop-up.
Comment 3 Danny Al-Gaaf 2006-11-02 11:02:33 UTC

*** This bug has been marked as a duplicate of bug 214820 ***
Comment 4 Andreas Hanke 2006-11-02 12:28:18 UTC
Peter, please try Beta2 (next week) on the same hardware where the eject button aborted the installation. Reopen this bug if it's still happening afterwards.
Comment 6 Danny Al-Gaaf 2006-11-02 13:47:51 UTC

*** This bug has been marked as a duplicate of bug 216070 ***
Comment 7 Peter Kuliffay 2006-11-11 10:43:16 UTC
Created attachment 104793 [details]
y2logs
Comment 8 Peter Kuliffay 2006-11-11 10:44:46 UTC
Beta2 CD set. The same HW. The same problem. New y2log log file.
Comment 9 Peter Schlaf 2006-11-12 21:14:15 UTC
Had the same problem during upgrade openSuSE 10.2 alpha5 -> 10.2 beta1 and 10.2 beta 2:
It was not possible to eject CD1 in order to insert CD2 and klicking "Eject" aborted the installation immediately.

What I did:
The drive on my machine for reading CDs is a "LG GSA-4167B" (a dvd-burner like your drive).
I replaced this drive with a device called "TEAC DV-516D" (just a read-only dvd-rom drive).

With this drive I could eject every CD and was able to finish the upgrade.
Comment 10 Peter Kuliffay 2006-11-13 09:54:34 UTC
Yes, you are right. I have similar experience with Beta1 at different HW.
I`m going to try it with Beta2 CD set at this HW again.

P.S. I have done the installation at my "production" system with  Beta2 DVD.
     Thaks for makeSUSEdvd.
Comment 11 Marius Tomaschewski 2006-11-13 15:53:05 UTC
The MediaManager is advised to open the drive - it (umounts if needed and)
trys to eject, but because the try to eject (the ioctl) fails:

2006-11-11 10:56:14 <2> linux(3185) [media] MediaCD.cc(openTray):242 Eject /dev/hdc failed (Input/output error)

the zypp::MediaManager throws the MediaNotEjectedException to inform
the higher layers (SourceManager / YaST) about this problem and the
SourceManager (impl) retrows it again:

2006-11-11 10:56:14 <5> linux(3185) [base] Exception.cc(log):94 PackageProvider.cc(providePackage):91 RETHROW:  SourceImpl.cc(provideFile):454: Can't provide /suse/i586/gdb-6.
2006-11-11 10:56:14 <3> linux(3185) [wfm] Package.cc(PkgCommit):2155 Pkg::Commit has failed: ZYpp::commit has failed
2006-11-11 10:56:14 <3> linux(3185) [YCP] PackageInstallation.ycp:154 Bad media number 0

If this causes YaST2 to abort the installation, the handling of this exception
in higher levels has a bug.

Jiri, can you take a look what happens in the higher levels?
Comment 12 Marius Tomaschewski 2006-11-13 15:54:46 UTC
(In reply to comment #11)
> The MediaManager is advised to open the drive

instructed by SourceManager...
Comment 14 Duncan Mac-Vicar 2006-11-16 14:08:54 UTC
What should YaST do if the media is not the desired one and it can't eject it?
Comment 15 Duncan Mac-Vicar 2006-11-16 14:34:55 UTC
The attached patch should do nothing but try to provide the file again on a failed eject, which will end in being re-asked for a new media. 

I will submit it. Please reopen the bug if you see this again.

Index: SourceImpl.cc
===================================================================
--- SourceImpl.cc       (revision 4558)
+++ SourceImpl.cc       (working copy)
@@ -584,7 +584,17 @@
             ZYPP_CAUGHT(excpt_r);
             ERR << "Failed to release all sources" << endl;
           }
-          media_mgr.release (_media, true); // one more release needed for eject
+
+          try
+          {
+            media_mgr.release (_media, true); // one more release needed for eject
+          }
+          catch (const zypp::media::MediaNotEjectedException & excpt_r)
+          {
+            ZYPP_CAUGHT(excpt_r);
+            ERR << "Failed to eject" << endl;
+            break;
+          }
         }
         else if ( user == media::MediaChangeReport::RETRY  ||
Comment 16 Marius Tomaschewski 2006-11-21 13:02:01 UTC
*** Bug 217045 has been marked as a duplicate of this bug. ***
Comment 17 Peter Kuliffay 2006-11-25 21:14:26 UTC
I was using CD 10.2 i386 RC1 installation set (MD5SUM & check during 
installation O.K.).
The same HW: Athlon64 3000+, MB MSI NForce4, DVD-RW LG GSA-4166B.
There is NO problem with eject media and eject button doesn`t crash
a installation.

Problem:
The installation doesn`t accept correct CD2 with a message:
Insert
'20061125-150255 CD2 Media source cd:///?device=/dev/hdc does not containt
the desired media.'
No possibility to continue in the installation.

No problem with installation openSUSE 10.1!
No problem with cd-burner TEAC CD-W540E :-(

Look at a new y2log.tgz 
Comment 18 Peter Kuliffay 2006-11-25 21:16:42 UTC
Created attachment 106938 [details]
y2logs file
Comment 19 Danny Al-Gaaf 2006-11-26 10:28:13 UTC
Then please open an other bug for this other (from the original bugreport) bug against yast/installation.

I reset the bug status