Dear Russ,

On Thu, Dec 06, 2007 at 10:12:31PM -0800, Russ Allbery wrote:
> tags 454694 moreinfo
> thanks

Right. More info coming up! :-)

> > The gzipped log of the piuparts run for openafs-fileserver is
> > attached.
> 
> Unfortunately, piuparts logs are almost unreadable, containing a bunch of
> debugging information that isn't very useful and not containing the key
> information that would be useful, which is largely why I don't try to use
> it.  I tried for a while and gave up because of that problem.  I know
> people are actively working on it; hopefully it will get better.

The relevant part of the log is this:

3m9.8s ERROR: Package purging left files on system:
  /etc/openafs   owned by: openafs-client, openafs-fileserver


> > The problem is that the process
> >
> > Install Etch openafs-fileserver -> upgrade to sid -> purge
> >
> > seems to let the following files remain unremoved:
> >
> >    /etc/openafs   owned by: openafs-client, openafs-fileserver
> 
> This is a directory shipped with the package, so it will be automatically
> removed when it's empty:
> 
> windlord:~/tmp> dpkg -c openafs-fileserver_1.4.5.dfsg1-1_i386.deb | grep /etc
> drwxr-xr-x root/root         0 2007-11-11 16:23 ./etc/
> drwxr-xr-x root/root         0 2007-11-11 16:23 ./etc/openafs/
> drwx------ root/root         0 2007-11-11 16:23 ./etc/openafs/server/
> drwxr-xr-x root/root         0 2007-11-11 16:23 ./etc/init.d/
> -rwxr-xr-x root/root      3329 2007-11-11 16:14 
> ./etc/init.d/openafs-fileserver
> 
> This therefore isn't the real problem.

Unfortunately, according to my understanding of the piuparts logs, the
directory may be empty, yet it is not removed.

> What file is left behind in /etc/openafs on your system that's preventing
> it from being removed?  I'm happy to fix this if I know what file is
> keeping it from being removed, but just removing /etc/openafs isn't a
> valid solution.  It's not clear from this bug report whether the problem
> is even with openafs-fileserver or with openafs-client.

The piuparts log has been generated by Lucas, running it on Grid
5000. But I can reproduce this on a chroot with the following steps:

[(sid)[EMAIL PROTECTED] ~] sudo apt-get install openafs-fileserver/stable
Reading package lists... Done
Building dependency tree
Reading state information... Done
Selected version 1.4.2-6 (Debian:4.0r1/stable) for openafs-fileserver
The following packages were automatically installed and are no longer required:
  gcc-3.4-base
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  openafs-client openafs-fileserver
Suggested packages:
  openafs-doc
Recommended packages:
  openafs-modules-source openafs-modules2 lsof ntp
The following NEW packages will be installed:
  openafs-client openafs-fileserver
0 upgraded, 2 newly installed, 0 to remove and 116 not upgraded.
Need to get 0B/3807kB of archives.
After unpacking 8458kB of additional disk space will be used.
Do you want to continue [Y/n]?
Preconfiguring packages ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package openafs-client.
(Reading database ... 25457 files and directories currently installed.)
Unpacking openafs-client (from .../openafs-client_1.4.5.dfsg1-1_i386.deb) ...

Selecting previously deselected package openafs-fileserver.
Unpacking openafs-fileserver (from .../openafs-fileserver_1.4.2-6_i386.deb) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up openafs-client (1.4.5.dfsg1-1) ...
Starting AFS services:
AFS module /lib/modules/2.6.23.1/fs/openafs.o does not exist.
Not starting AFS.  Please consider building kernel modules using
instructions in /usr/share/doc/openafs-client/README.modules
Setting up openafs-fileserver (1.4.2-6) ...
Starting AFS Server: /etc/init.d/openafs-fileserver: line 38: 22394 
Segmentation fault      start-stop-daemon --start --quiet --pidfile 
/var/run/$NAME.pid --exec $DAEMON
bosserver.

OK, next I upgrade:
[(sid)[EMAIL PROTECTED] ~] sudo apt-get install openafs-fileserver
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gcc-3.4-base
Use 'apt-get autoremove' to remove them.
Suggested packages:
  openafs-doc
Recommended packages:
  ntp
The following packages will be upgraded:
  openafs-fileserver
1 upgraded, 0 newly installed, 0 to remove and 116 not upgraded.
Need to get 0B/987kB of archives.
After unpacking 12.3kB disk space will be freed.
Preconfiguring packages ...
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 25725 files and directories currently installed.)
Preparing to replace openafs-fileserver 1.4.2-6 (using 
.../openafs-fileserver_1.4.5.dfsg1-1_i386.deb) ...
Unpacking replacement openafs-fileserver ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up openafs-fileserver (1.4.5.dfsg1-1) ...
Installing new version of config file /etc/init.d/openafs-fileserver ...

Next, I perform the steps in the same order as mentioned in the piuparts logs:

[(sid)[EMAIL PROTECTED] ~] sudo dpkg --remove openafs-fileserver
(Reading database ... 25724 files and directories currently installed.)
Removing openafs-fileserver ...
bos: could not find entry (getting key from local KeyFile)
bos: running unauthenticated
bos: failed to shutdown servers (you are not authorized for this operation)
bos: can't wait for processes to shutdown (you are not authorized for this 
operation)

[(sid)[EMAIL PROTECTED] ~] sudo dpkg --remove openafs-client
(Reading database ... 25692 files and directories currently installed.)
Removing openafs-client ...
Stopping AFS services:.

[(sid)[EMAIL PROTECTED] ~] sudo dpkg --purge openafs-client
(Reading database ... 25464 files and directories currently installed.)
Removing openafs-client ...
Purging configuration files for openafs-client ...
dpkg - warning: while removing openafs-client, directory `/etc/openafs' not 
empty so not removed.

[(sid)[EMAIL PROTECTED] ~] sudo dpkg --purge openafs-fileserver
(Reading database ... 25461 files and directories currently installed.)
Removing openafs-fileserver ...
Purging configuration files for openafs-fileserver ...
dpkg - warning: while removing openafs-fileserver, directory `/var/lib/openafs' 
not empty so not removed.
dpkg - warning: while removing openafs-fileserver, directory `/var/log/openafs' 
not empty so not removed.
[(sid)[EMAIL PROTECTED] ~] ls /etc/openafs
<blank>

And sure enough, I can rmdir that directory, confirming that it is empty.

In case you feel there is still some error, it could be a piuparts
limitation. If I can help out further, please tell me.

HTH.

> (I'll try to take a look at this myself if you don't have this information
> available, but this is the sort of information that piuparts really should
> be providing for it to be useful.)

True. Lars is working on it, we'll see how it goes. After my current
run, I shall summarize and report to him problems like the one you
have brought to my notice now.

Thanks.

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

Attachment: signature.asc
Description: Digital signature

Reply via email to