Bug 1034 - libafs module installation failed after update
Summary: libafs module installation failed after update
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: All Linux
Priority: High critical
Target Milestone: Mageia 1
Assignee: QA Team
QA Contact:
URL:
Whiteboard:
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2011-04-28 19:22 CEST by Pierre Opter
Modified: 2011-09-18 02:16 CEST (History)
6 users (show)

See Also:
Source RPM: libafs-1.4.14-1.mga1
CVE:
Status comment:


Attachments
make.log file for libafs (188 bytes, text/x-log)
2011-05-09 22:31 CEST, Pierre Opter
Details
urpmi.cfg file (9.68 KB, application/octet-stream)
2011-07-29 09:47 CEST, Pierre Opter
Details

Description Pierre Opter 2011-04-28 19:22:04 CEST
Hi all

May be i'm not on the good discussion list and it will be better to
write on your bug report list , but it's easier for me to write here.

I'm trying to use openAFS at home because my son had installed a server
in our house with openAFS.

Yesterday, i update the system and i install on my mageia a new
version of the kernel.

But after reboot, the installation of the libafs module failed with this
error:

"libafs 1.4 .14-1.mga1 : installing module
................................................................(bad
exit status: 10)
installation skipped"


Precision: Mageia is installed on a Vbox machine 4.06r

And sorry for my poor english

Pierre
Comment 1 Ahmad Samir 2011-05-07 00:59:08 CEST
Please attach /var/lib/dkms/libafs/1.4.14-1.mga1/build/make.log

Source RPM: libafs 1.4 .14-1.mga1 => libafs-1.4.14-1.mga1

Comment 2 Pierre Opter 2011-05-09 22:27:49 CEST
(In reply to comment #1)
> Please attach /var/lib/dkms/libafs/1.4.14-1.mga1/build/make.log

Thanks Ahmad for your answer.

Find here the make.log:

DKMS make.log for libafs-1.4.14-1.mga1 for kernel 2.6.38.5-desktop-1.mga (x86_64)
Mon May  9 22:16:30 CEST 2011
mv: cannot stat `src/libafs/MODLOAD-*/libafs.ko': No such file or directory
Comment 3 Pierre Opter 2011-05-09 22:31:21 CEST
Created attachment 376 [details]
make.log file for libafs
Comment 4 Pierre Opter 2011-05-23 22:00:02 CEST
Hi all,

The problem of installing libafs does not seem new:

http://archives.mars-attacks.org/ml/mandriva/msg99096.html

But now how fix this bug ?

Thanks for your help
Comment 5 Ahmad Samir 2011-05-23 22:23:38 CEST
tmb said he'll look into it, but I think he's too busy lately.

CC: (none) => tmb

Thomas Lottmann 2011-06-20 13:32:10 CEST

CC: (none) => skiperdrake
Severity: normal => critical

Comment 6 Thomas Lottmann 2011-06-21 15:46:26 CEST
I confirm this bug with the exact same error on my mobile harddisk and my laptop under Mageia 1.

I personally and absolutely need OpenAFS as my computer school is using it as it's interstudent servers for file sharing, project evaluation and examinations. Without OpenAFS, I would need to pick Mandriva's packages or stick to the modified Fedora rather than my own OS adapted for my everyday use at school. 

Thank you.
Comment 7 Pierre Opter 2011-06-22 21:27:10 CEST
Hi all

I'm trying to find a solution (Unfortunately I have no computer skills)

May be here : http://rt.central.org/rt/Ticket/Display.html?id=129996

Thanks for your help

Priority: Normal => High
Target Milestone: --- => Mageia 1

Comment 8 Thomas Backlund 2011-06-22 21:42:52 CEST
Sorry for not getting to this earlier.

I will look into fixing this, but it will take ~1 week before I get to it as I'll be on a trip from tomorrow.

Status: NEW => ASSIGNED
Assignee: bugsquad => tmb

Thomas Backlund 2011-06-22 21:43:30 CEST

Hardware: x86_64 => All
Version: Cauldron => 1

Comment 9 Pierre Opter 2011-07-10 12:34:47 CEST
Hi all

A new begining of answers here ? : http://lists.mandriva.com/bugs/2011-02/msg00586.php

But also here : https://bugs.gentoo.org/show_bug.cgi?id=359377

Thanks for yout help :-)

My notebook is always on Mandriva and i need openafs at home. OpenAFS works fine on Mandriva 2010.2.
Comment 10 Pierre Opter 2011-07-10 14:29:21 CEST
(re) Hi all 

I'm quite sure that the problem comes with security options of the 2.6.38 kernel (and above ?)

https://lists.openafs.org/pipermail/openafs-devel/2011-May/018376.html

Thanks a lot for your help
Comment 11 Pierre Opter 2011-07-15 08:01:25 CEST
Bonjour

I install the new kernel version(update yesterday) 
* jeu. juil. 07 2011 tmb <tmb> 2.6.38.8-4.mga1
        + Revision: 119923

I saw the history of the file but i find nothing about openafs :-(

May i have a hope that the bug will be fixed soon ?

Pierre
Comment 12 Thomas Backlund 2011-07-23 15:06:54 CEST
Yep.

upstream has now released a 1.4.14.1 that supports 2.6.38 series kernels.


I have submitted openafs-1.4.14.1-0.1.mga1 to the buildsystem, so it should soon be available in updates_testing.

Then you can test and confirm if it works for you...
Comment 13 Pierre Opter 2011-07-23 22:27:28 CEST
Thanks a lot 
I will try the new rpm as soon as possible.

Pierre
Comment 14 Pierre Opter 2011-07-28 11:57:39 CEST
Bonjour,

I activate the update_testing media but openafs-1.4.14.1-0.1.mga1 is not always present :-(

Is it normal ?

Thanks a lot

Pierre
Comment 15 Manuel Hiebel 2011-07-28 16:44:11 CEST
http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/1/i586/media/core/updates_testing/openafs-1.4.14.1-0.1.mga1.i586.rpm (don't install it with this url)

can you *attach* the /etc/urpmi/urpmi.cfg file ?

CC: (none) => manuel

Comment 16 Pierre Opter 2011-07-28 21:42:20 CEST
Thanks for the answer.

I download the new openafs-1.4.14.1-O.1.mga.i586.rpm in a local repertory.

But my computer is a x86-64 mageia version.

And if i try to install the i586 version with the CCM, Mageia system return;

"Désolé, le paquetage suivant ne peut pas être sélectionné :

- openafs-1.4.14.1-0.1.mga1.i586 (car libcom_err.so.2 est non satisfait)"

Sorry, the package can not be selected because libcom_err.so.2 is not satisfied.

I think that's is normal :-)

And the correction of only openafs package is it enough ? Because i think that to use openafs as a client you need to install also lib64openafs1 and openafs-client ! And for my use at home: krb5 and differents packages around krb5.

Thanks for your help
Comment 17 Manuel Hiebel 2011-07-28 22:09:38 CEST
can you read what I write ? You must NO install just this package but with urpmi...
and if you want more help attach the file...

CC: manuel => (none)

Comment 18 Pierre Opter 2011-07-28 22:21:50 CEST
To begin : may i install a i586 package on a x86-64 version ?

Thanks a lot
Comment 19 Ahmad Samir 2011-07-29 07:17:12 CEST
Just update your repos, and the core/updates_testing repo:
urpmi.update -av && urpmi.update core/updates_testing

then try installing dkms-libafs, using urpmi directly ('urpmi dkms-libafs').

(You can install the 32bit package on x86_64, but usually you need the 64bit package on an x86_64 installation).
Comment 20 Pierre Opter 2011-07-29 09:47:41 CEST
Created attachment 684 [details]
urpmi.cfg file
Comment 21 Pierre Opter 2011-07-29 09:52:21 CEST
:-(

I think that it's not working

Here the return of the command i did this morning!



[pierre@localhost ~]$ su
Mot de passe : 
[root@localhost pierre]# urpmi dkms-libafs
Pour satisfaire les dépendances, les paquetages suivants vont être installés :
   Paquetage                      Version      Révision      Arch   
(média « Core Release (distrib1) »)
  flex                           2.5.35       7.mga1        x86_64  
(média « Core Release (distrib31) »)
  dkms                           2.0.19       24.mga1       noarch  
  dkms-libafs                    1.4.14       1.mga1        x86_64  
(média « Core 32bit Release (distrib61) »)
  dkms-minimal                   2.0.19       24.mga1       noarch  
un espace additionnel de 5.3Mo sera utilisé.
1Mo de paquets seront récupérés.
Procéder à l'installation des 4 paquetages ? (O/n) o


    $MIRRORLIST: media/core/release/flex-2.5.35-7.mga1.x86_64.rpm
    $MIRRORLIST: media/core/release/dkms-minimal-2.0.19-24.mga1.noarch.rpm     
    $MIRRORLIST: media/core/release/dkms-libafs-1.4.14-1.mga1.x86_64.rpm       
    $MIRRORLIST: media/core/release/dkms-2.0.19-24.mga1.noarch.rpm             
installation de dkms-libafs-1.4.14-1.mga1.x86_64.rpm flex-2.5.35-7.mga1.x86_64.rpm dkms-minimal-2.0.19-24.mga1.noarch.rpm dkms-2.0.19-24.mga1.noarch.rpm depuis /var/cache/urpmi/rpms
Préparation ...                  #############################################
      1/4: dkms-minimal          #############################################
      2/4: dkms                  #############################################
      3/4: flex                  #############################################
      4/4: dkms-libafs           #############################################

Creating symlink /var/lib/dkms/libafs/1.4.14-1.mga1/source ->
                 /usr/src/libafs-1.4.14-1.mga1

DKMS: add Completed.

Preparing kernel 2.6.38.8-desktop-4.mga for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper........
using /proc/config.gz
make oldconfig.....
make prepare....

Building module:
cleaning build area....(bad exit status: 2)
SMP=SP; eval `grep CONFIG_SMP /boot/config-2.6.38.8-desktop-4.mga`; [ -n "$CONFIG_SMP" ] && SMP=MP; ./configure --with-linux-kernel-headers=/lib/modules/2.6.38.8-desktop-4.mga/build; make MPS=$SMP; mv src/libafs/MODLOAD-*/libafs.ko ..............................................(bad exit status: 1)

Error! Bad return status for module build on kernel: 2.6.38.8-desktop-4.mga (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/libafs/1.4.14-1.mga1/build/ for more information.

Error! Could not locate libafs.ko.gz for module libafs in the DKMS tree.
You must run a dkms build for kernel 2.6.38.8-desktop-4.mga (x86_64) first.
attention: %post(dkms-libafs-1.4.14-1.mga1.x86_64) scriptlet failed, exit status 4
[root@localhost pierre]#
Comment 22 Pierre Opter 2011-07-29 10:12:29 CEST
hi
I try to desinstall packages because the PC each time i reboot it try to charge the module and the PC is not fluent (and become hot) for two or three minutes :-(

It's quite urgent because the PC is a PC in production and not for tests.

[root@localhost pierre]# urpme flex-2.5.35-7.mga1.x86_64.rpm
paquetage inconnu: flex-2.5.35-7.mga1.x86_64.rpm
[root@localhost pierre]# urpme dkms-minimal-2.0.19-24.mga1.noarch.rpm
paquetage inconnu: dkms-minimal-2.0.19-24.mga1.noarch.rpm
[root@localhost pierre]# 
(packages unknown)
Comment 23 Thomas Lottmann 2011-07-29 11:34:29 CEST
I have installed the following three packages available in the Core Updates Testing repository of MandrivaUser.de : 

- openafs
- openafs-client
- dkms-libafs

The packages installed fine and the kernel module now compiles successfully. 

Thank you.
Comment 24 Pierre Opter 2011-07-29 12:31:21 CEST
Yes thats Ok for me now :-)
Thank's to Thomas who help me to finish the installation properly :-)

I will remove my old mandriva 2012.1 on my laptop and replace it bi mageia 1.

Thanks to all for the very good job

Pierre
Comment 25 Pierre Opter 2011-07-29 12:32:14 CEST
....replace it by mageia 1 :-)
Comment 26 Samuel Verschelde 2011-07-29 23:10:33 CEST
openafs is newer in updates than in cauldron. Is it an intentional omission ?

CC: (none) => stormi

Comment 27 Pierre Opter 2011-08-15 17:56:06 CEST
Hi !

Just a small post to say that OpenAFS is working perfectly ! 

I configure (in fact just a copy/past of my another notebook under Mandriva 2010.2):  krb5.conf, TheCell, cacheinfo and CellServDB. Now i can reach our openafs server in reading and in writing.

I think that you can now closed this bug. Don't forget to insert the new files updates in Cauldron :-)

Thanks a lot to developpers who correct this bug.
Comment 28 Pierre Opter 2011-08-20 18:43:55 CEST
Bonjour every one :-)

Just for information: i install openafs on an other computer (an Asus notebook 1201pn). I did not have any problems :-)

I don't use the CCM.
Comment 29 Manuel Hiebel 2011-08-20 18:51:11 CEST
@tmb, ok to assign on QA team ?
Manuel Hiebel 2011-08-28 15:22:02 CEST

Assignee: tmb => qa-bugs

Comment 30 Samuel Verschelde 2011-09-01 23:12:31 CEST
To Pierre Opter and Thomas Lottmann : can you tell us what arch your system has ? (i586 or x86_64).

To all : can you give us some information about how to test (is testing that compilation is OK enough ? Probably not, how to check that it really works ? Sorry, I don't know openafs at all).
Comment 31 Dave Hodgins 2011-09-09 21:45:12 CEST
I'm trying to test this on my i586 system.

I think kerberos is working, but with afs, I'm stuck at

# bos adduser hodgins.homeip.net admin -noauth
bos: failed to add user 'admin' (you are not authorized for this operation)

Shouldn't the -noauth parm stop it from checking for authorization, or
did I miss a step somewhere to give root authorization?

What info is needed to sort this out?

CC: (none) => davidwhodgins

Comment 32 Dave Hodgins 2011-09-11 05:49:05 CEST
Trying again. I'm making some progress using the info from
http://www.ibm.com/developerworks/opensource/library/os-openafs-kerberos5/index.html

but I'm getting stuck at Listing 18. Creating users in the ptserver database.

The pts command fails ...
# pts createuser -name admin   -noauth
pts: server or network not responding ; unable to create user admin

openafs-server is running, and the libafs kernel module is loaded.

Trying to start openafs fails with ...
Sep 10 23:40:30 hodgins kernel: You must reload the AFS kernel extensions before remounting AFS.
Sep 10 23:41:44 hodgins kernel: afs: Lost contact with volume location server 127.0.0.1 in cell hodgins
Sep 10 23:41:44 hodgins kernel: afs: Lost contact with volume location server 127.0.0.1 in cell hodgins

# uname -r
2.6.38.8-server-5.mga
Comment 33 Pierre Opter 2011-09-11 14:33:27 CEST
Hi

May be a beginning of solution here ?

http://www.phwinfo.com/forum/linux-debian-user/343295-mit-kerberos-wont-start-boot.html

we stay tuned :-)
Comment 34 Pierre Opter 2011-09-11 14:34:06 CEST
also see : http://techpubs.spinlocksolutions.com/dklar/kerberos.html
Comment 35 Dave Hodgins 2011-09-12 05:55:19 CEST
Starting AFS server daemon: [  OK  ]
Starting AFS client daemon: [  OK  ]

Found out that for the server, you cannot be behind a nat router, so I took
that out, and am now using a pppoe connection over the dsl modem.

Now, to figure out how to actually use it, to see if it's working. :-)

Thanks for the pointers.
Comment 36 Dave Hodgins 2011-09-13 01:29:52 CEST
Not sure if this is a kernel setup problem or a libafs problem.

As part of the kernel testing, I boot each of the kernels, and ensure dkms
modules get recompiled, and everything generally works.

While testing 2.6.38.8-xen-pvops-5.mga, the dkms compile appears to work, but
upon openafs startup, it fails with ...
Starting AFS client daemon: FATAL: Error inserting libafs (/lib/modules/2.6.38.8-xen-pvops-5.mga/dkms/3rdparty/libafs/libafs.ko.gz): Invalid module format

I'll report this on the kernel bug report as well.
Comment 37 Dave Hodgins 2011-09-13 03:34:49 CEST
Ignore comment 35.  As I've reported in bug 2642, the vboxdrv module also
fails to load in the xen-pvops kernel, so it's definitely something the
the config for that kernel.
Comment 38 Dave Hodgins 2011-09-13 04:30:24 CEST
As comment 23 shows it's working on x86-64, and I've got it to the point
where the kernel module is loading, and openafs runs
(I still have some security problems between afs and kereros),
I consider the testing complete enough to validate this update.

Could someone from the sysadmin team push the srpms
openafs-1.4.14.1-1.1.mga1.src.rpm
from Core Updates Testing to Core Updates:

Advisory:
This update to openafs provides compatibility with the 2.6.38 series kernels.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 39 D Morgan 2011-09-18 02:16:53 CEST
update pushed.

Status: ASSIGNED => RESOLVED
CC: (none) => dmorganec
Resolution: (none) => FIXED


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