Bug 9143

Summary: pam_mktemp and vapt-get
Product: Sisyphus Reporter: Nick S. Grechukh <gns>
Component: util-vserver-buildAssignee: Anton Farygin <rider>
Status: CLOSED WONTFIX QA Contact: qa-sisyphus
Severity: major    
Priority: P2 CC: hiddenman, thresh, vvk
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on: 9144    
Bug Blocks:    

Description Nick S. Grechukh 2006-02-23 16:59:37 MSK
из-за отсутствия в свеже-сбилденом vserver /tmp/.private/root, многое невозможно
установить через vapt-get, без предварительного vserver enter (ну или руками
создать). Соответственно, выпекание всерверов плохо скриптуется. 

"чтоб работало" пришлось вставить 
mkdir -p "$SETUP_CONFDIR"/vdir/tmp/.private/root
в конец vserver-build.apt-rpm, но это не выход. как вариант, этот каталог можно
включить в pam0_mktemp.
Steps to Reproduce:
1.vserver debug.mordor build --force -m apt-rpm --interface
eth0:192.168.100.171/24 -- -d altSisyphus
2.vapt-get debug.mordor -- install apache-mod_php5 MySQL-server
3.
Actual Results:  
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  MySQL-client alternatives apache apache-common binutils chrooted
crontab-control crontabs ed libMySQL libbfd libdb1 libgcc3.4 libgdbm libmm
  libssl libstdc++3.4 libxml2 logrotate perl-DBM php-base php5 php5-libs
setproctitle shtool vixie-cron xml-common
The following NEW packages will be installed:
  MySQL-client MySQL-server alternatives apache apache-common apache-mod_php5
binutils chrooted crontab-control crontabs ed libMySQL libbfd
  libdb1 libgcc3.4 libgdbm libmm libssl libstdc++3.4 libxml2 logrotate perl-DBM
php-base php5 php5-libs setproctitle shtool vixie-cron
  xml-common
0 upgraded, 29 newly installed, 0 removed and 0 not upgraded.
Need to get 16.1MB of archives.
After unpacking 34.7MB of additional disk space will be used.
Do you want to continue? [Y/n]
[....]
Fetched 16.1MB in 3s (5196kB/s)
Executing RPM (/usr/lib/util-vserver/vrpm-preload -U -v -h --fancypercent -r
/var/lib/vservers/debug.mordor --oldpackage)...
Preparing...                       
###################################################################################################
[100%]
 1: libgdbm                        
###################################################################################################
[  3%]
 2: perl-DBM                       
###################################################################################################
[  6%]
 3: php-base                       
###################################################################################################
[ 10%]
 4: libbfd                         
###################################################################################################
[ 13%]
 5: binutils                       
###################################################################################################
[ 17%]
 6: shtool                         
###################################################################################################
[ 20%]
 7: xml-common                     
###################################################################################################
[ 24%]
 8: libssl                         
###################################################################################################
[ 27%]
 9: libMySQL                       
###################################################################################################
[ 31%]
10: libgcc3.4                      
###################################################################################################
[ 34%]
11: libstdc++3.4                   
###################################################################################################
[ 37%]
12: MySQL-client                   
###################################################################################################
[ 41%]
13: chrooted                       
###################################################################################################
[ 44%]
14: crontab-control                
###################################################################################################
[ 48%]
15: setproctitle                   
###################################################################################################
[ 51%]
16: vixie-cron                     
###################################################################################################
[ 55%]
17: crontabs                       
###################################################################################################
[ 58%]
18: logrotate                      
###################################################################################################
[ 62%]
19: MySQL-server                   
###################################################################################################
[ 65%]
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Preparing procs_priv table
Preparing help_topic table
Preparing help_category table
Preparing help_keyword table
Preparing help_relation table
Preparing time_zone_name table
Preparing time_zone table
Preparing time_zone_transition table
Preparing time_zone_transition_type table
Preparing time_zone_leap_second table
Preparing proc table
Installing all prepared tables
/usr/sbin/mysql_install_db: line 721: cannot create temp file for here document:
No such file or directory
/usr/sbin/mysql_install_db: line 776: cannot create temp file for here document:
No such file or directory
20: ed                             
###################################################################################################
[ 68%]
21: alternatives                   
###################################################################################################
[ 72%]
mktemp: cannot create temp file
/tmp/.private/root/alternatives-update.avail.x29767: No such file or directory
mktemp: cannot create temp file
/tmp/.private/root/alternatives-update.changes.l29768: No such file or directory
mktemp: cannot create temp file
/tmp/.private/root/alternatives-update.new.m29769: No such file or directory
/usr/bin/alternatives-update: line 165: $AVAIL: ambiguous redirect
/usr/bin/alternatives-update: line 166: $NEW: ambiguous redirect
/usr/bin/alternatives-update: line 169: $CHANGES: ambiguous redirect
comm: missing operand after `-'
Try `comm --help' for more information.
join: missing operand after `-'
Try `join --help' for more information.
22: libdb1                         
###################################################################################################
[ 75%]
23: libmm                          
###################################################################################################
[ 79%]
24: apache-common                  
###################################################################################################
[ 82%]
25: apache                         
###################################################################################################
[ 86%]
26: libxml2                        
###################################################################################################
[ 89%]
27: php5-libs                      
###################################################################################################
[ 93%]
28: php5                           
###################################################################################################
[ 96%]
mktemp: cannot create temp file
/tmp/.private/root/alternatives-update.avail.u29837: No such file or directory
mktemp: cannot create temp file
/tmp/.private/root/alternatives-update.changes.N29838: No such file or directory
mktemp: cannot create temp file
/tmp/.private/root/alternatives-update.new.S29839: No such file or directory
/usr/bin/alternatives-update: line 165: $AVAIL: ambiguous redirect
/usr/bin/alternatives-update: line 166: $NEW: ambiguous redirect
comm: missing operand after `-'
Try `comm --help' for more information.
/usr/bin/alternatives-update: line 169: $CHANGES: ambiguous redirect
join: missing operand after `-'
Try `join --help' for more information.
29: apache-mod_php5                
###################################################################################################
[100%]
Reloading httpd service: Service libhttpd.ep is not running.[PASSED]
Done.
Comment 1 Anton Farygin 2008-06-19 01:08:38 MSD
неактуально, vserver вылетел из Sisyphus