Bug 344668

Summary: YaST2 samba-client fails and blocks the automatic installation - issue with 32b/64b libs
Product: [openSUSE] openSUSE 10.3 Reporter: Vilem Marsik <vmarsik>
Component: YaST2Assignee: Jiří Suchomel <jsuchome>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: ug
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: Linux   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Vilem Marsik 2007-11-28 17:24:15 UTC
I installed openSuSE 10.3 on x86_64 using AutoYaST.
I used following configuration (taken from SLES9) :

   <samba-client>
      <global>
        <winbind config:type="boolean">false</winbind>
        <workgroup>TUX-NET</workgroup>
      </global>
    </samba-client>

As a result, I got a strange message "Cannot write PAM settings.".
The automatical installation blocked at this point.
When I looked for the causes, I found following:

1) YaST tries to set up Samba client
2) it wants to use /lib/security/pam_winbind.so from package samba-winbind-32bit
3) there is no such file, there is /lib64/security/pam_winbind.so instead (from package samba-winbind)
4) YaST does not find the 64 bit version, and fails
5) YaST writes an error dialog, that blocks the automatic installation

BTW., due to some unknown reason, samba-winbind-32bit was installed on my other 64bit machine with OpenSuSE 10.3, and this problem never occured.


YaST log:
=========
2007-11-28 17:55:49 <1> vulture(4728) [YCP] clients/inst_autoconfigure.ycp:112 current resource: samba-client
2007-11-28 17:55:49 <1> vulture(4728) [YCP] clients/inst_autoconfigure.ycp:123 Writing configuration for samba-client
2007-11-28 17:55:49 <1> vulture(4728) [YCP] clients/inst_autoconfigure.ycp:150 Calling auto client with: $["global":$["winbind":false, "wor
kgroup":"TUX-NET"]]
2007-11-28 17:55:49 <1> vulture(4728) [YCP] clients/inst_autoconfigure.ycp:38 current step: 27
2007-11-28 17:55:49 <1> vulture(4728) [wfm] Y2CCWFM.cc(createInLevel):151 Parsing finished
2007-11-28 17:55:49 <1> vulture(4728) [Interpreter] clients/samba-client_auto.ycp:116 Calling YaST client samba-client_auto (arguments: ["Write"])
2007-11-28 17:55:49 <1> vulture(4728) [YCP] clients/samba-client_auto.ycp:26 ----------------------------------------
2007-11-28 17:55:49 <1> vulture(4728) [YCP] clients/samba-client_auto.ycp:27 Samba-client auto started
2007-11-28 17:55:49 <3> vulture(4728) [bash] ShellCommand.cc(shellcommand):78 ERROR: module /lib/security/pam_winbind.so is not installed.
2007-11-28 17:55:49 <2> vulture(4728) [YCP] Pam.ycp:75 pam-config for winbind returned $["exit":1, "stderr":"ERROR: module /lib/security/pam_winbind.so is not installed.\n", "stdout":""]
2007-11-28 17:55:51 <3> vulture(4728) [YCP] Report.ycp:484 Cannot write PAM settings.
2007-11-28 17:55:51 <1> vulture(4728) [agent-system] SystemAgent.cc(Execute):1098 mkdir /var/lib/samba/usershares
2007-11-28 17:55:51 <1> vulture(4728) [YCP] clients/samba-client_auto.ycp:115 Samba-client auto finished
2007-11-28 17:55:51 <1> vulture(4728) [YCP] clients/samba-client_auto.ycp:116 ----------------------------------------
2007-11-28 17:55:51 <1> vulture(4728) [Interpreter] clients/samba-client_auto.ycp:116 Called YaST client returned.
Comment 1 Thomas Göttlicher 2007-11-30 13:49:10 UTC
Reassigning to maintainer.
Comment 2 Jiří Suchomel 2007-12-03 08:41:02 UTC
That Report popup probably should not be shown during autoinstallation - Uwe, what is the policy?

About missing the file/package, it looks like a duplicate of bug 329901. Is the package samba-winbind-32bit available on your autoinstallation source?
Comment 3 Uwe Gansert 2007-12-03 14:07:46 UTC
The popup should be implemented by using Report::.... functions. Those can timeout
Comment 4 Jiří Suchomel 2007-12-03 14:28:43 UTC
Thanks. Leaving needinfo for the second part of question...
Comment 5 Vilem Marsik 2007-12-03 14:38:42 UTC
samba-winbind-32bit is NOT in the instalation source (openSUSE-10.3-DVD 10.3 on cml.suse.cz). It is in openSuSE updates on download.opensuse.org .

samba-windbind (i.e. 64bit) is in both these packages.
Comment 6 Jiří Suchomel 2007-12-03 14:47:53 UTC
So, could you test the autoinstallation with the package available on the sources?
Comment 7 Jiří Suchomel 2007-12-03 15:13:13 UTC
Uwe: the error _is_ reported  by Report::Error. So if there was not a timeout, it was probably not set by autoyast (switched off in profile?)
Comment 8 Uwe Gansert 2007-12-03 15:19:02 UTC
If it's reported by Report::Error then everything is fine. Timeout was not configured in the profile then.

Comment 9 Vilem Marsik 2007-12-05 12:57:03 UTC
I am not able to test the autoinstallation with the package available on the sources:

1) the package is only available in opensuse-updates
2) when I add the opensuse-updates to the autoyast profile, then the post-installation part of many packages fails with messages like: '/usr/sbin/update-alternatives: /usr/bin/perl: bad interpreter: No such file or directory' (seems like updates assuming Perl installed, but do not specify it in the Require: section)

If there is another repository with samba-winbind-32bit for openSuSE 10.3, let me know.

Comment 10 Jiří Suchomel 2007-12-05 13:00:43 UTC
Uwe, how could this be solved? I assume another repository should be possible to add...
Comment 11 Uwe Gansert 2007-12-05 13:24:32 UTC
other repositories can be added via add-on:
http://www.suse.de/~ug/autoyast_doc/CreateProfile.Software.html#id2577950

if that fails the repository is broken somehow.

Comment 12 Vilem Marsik 2007-12-05 14:20:04 UTC
I know, I already did exactly that.
The problem was that the added repository opensuse-updated caused the installation to fail (multiple packages could not be installed, then the bootloader installation failed). 

What info is needed?
Comment 13 Jiří Suchomel 2007-12-05 15:06:06 UTC
Looks like AutoYaST error: Uwe?
Vilem, the logs from this installation attempt are probably needed.
Comment 14 Uwe Gansert 2007-12-05 15:15:49 UTC
can you do the installation in manual mode by adding the other repository (add-on) by hand?

Comment 15 Vilem Marsik 2007-12-07 13:27:39 UTC
I did not know how to be in manual mode, and use the desired configuration.
So I did something different.

I found that the package samba-winbind-32bit exists in the repository http://download.opensuse.org/repositories/openSUSE:10.3/standard/
I added this one to the autoyast profile, and it worked: the package samba-winbind-32bit was installed, and no error dialog was shown.

So it seems that someone else has already found and fixed the problem...


Comment 16 Jiří Suchomel 2007-12-07 13:37:23 UTC
Yes, the problem was already fixed, which means that the packages are available. I just wanted to know if it works for you during autoinstallation.

*** This bug has been marked as a duplicate of bug 329901 ***