Bug 519327

Summary: yast2 hangs installing bind-9.6.1-1.2.x86_64.rpm
Product: [openSUSE] openSUSE 11.2 Reporter: Berich Widrich <belef>
Component: YaST2Assignee: E-mail List <bnc-team-screening>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Critical    
Priority: P5 - None    
Version: Factory   
Target Milestone: ---   
Hardware: x86-64   
OS: All   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Berich Widrich 2009-07-04 18:26:59 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.0) Gecko/20090617 SUSE/3.5.0-2.2 Firefox/3.5

Yast2 windows is dead - stopped installing bind-9.6.1-1.2.x86_64.rpm.

Reproducible: Always

Steps to Reproduce:
1.Yast2 Software
2.Update newer
3.runs until bind-9.6.1-1.2.x86_64.rp
Actual Results:  
Hangs (on two machines ;-), x86_64 milestone 3


Hmm, might be an unhandled spac issue in directoy name..?
________
cat /var/tmp/rpm-tmp.6010
-------------------------
# Are we updating from a package named bind9?
if test -d usr/share/doc/packages/bind9 && sbin/chkconfig -c named; then
        NAMED_ACTIVE_FILE="var/adm/named.was.active"
        test -f ${NAMED_ACTIVE_FILE} && old ${NAMED_ACTIVE_FILE}
        ACTIVE_DIR=$( dirname ${NAMED_ACTIVE_FILE})
        test -d ${ACTIVE_DIR} || mkdir -p ${ACTIVE_DIR}
        touch ${NAMED_ACTIVE_FILE}
fi
/usr/sbin/groupadd -g 44 -o -r named 2> /dev/null || :
/usr/sbin/useradd -r -o -g named -u 44 -s /bin/false -c "Name server daemon" -d /var/lib/named named 2> /dev/null || :
# Might be an update.
/usr/sbin/usermod -s /bin/false -d  /var/lib/named named 2>/dev/null || :
# var/run/named is now a sym link pointing to the chroot jail
test -L var/run/named || rm -rf var/run/named
test -f etc/sysconfig/named && \
        . etc/sysconfig/named
# Store NAMED_RUN_CHROOTED setting to a temp file.
TEMP_SYSCONFIG_FILE="var/adm/named-chroot"
TEMP_DIR=$( dirname ${TEMP_SYSCONFIG_FILE})
test -d ${TEMP_DIR} || \
        mkdir -p ${TEMP_DIR}
test -e ${TEMP_SYSCONFIG_FILE} && \
        old ${TEMP_SYSCONFIG_FILE}
echo "NAMED_RUN_CHROOTED=\"${NAMED_RUN_CHROOTED}\"" >${TEMP_SYSCONFIG_FILE}
-----------
rpm is in directory
/var/cache/zypp/packages/openSUSE 11.2-0/suse/x86_64
and a 
-----------
rpm --root / --dbpath /var/lib/rpm -U --percent --force --nodeps -- /var/cache/zypp/packages/openSUSE 11.2-0/suse/x86_64/bind-9.6.1-1.2.x86_64.rpm
error: open of /var/cache/zypp/packages/openSUSE failed: No such file or directory
error: open of 11.2-0/suse/x86_64/bind-9.6.1-1.2.x86_64.rpm failed: No such file or directory
------
extracted from ps ax gives the result above

On the other hand executing the same command without the leading path in the given directory brings
---------
/var/cache/zypp/packages/openSUSE 11.2-0/suse/x86_64 # rpm --root / --dbpath /var/lib/rpm -U --percent --force --nodeps -- ./bind-9.6.1-1.2.x86_64.rpm
warning: waiting for transaction lock on /var/lib/rpm/__db.000
---------
the expected result, because rpm databae is in use.

Might be, the bind9 filter script or elsewhere is not 'space aware'? Until bind9 all programs are entered into rpm database without errors.
Comment 1 Marcus Meissner 2009-07-06 06:44:38 UTC
dup of the useradd/usermod issue I suspect.

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