Bug 864775 - Some packages failed to be upgraded
Summary: Some packages failed to be upgraded
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Lili Nader
QA Contact: libra bugs
URL:
Whiteboard:
: 862933 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-10 05:36 UTC by Jianwei Hou
Modified: 2015-05-15 02:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-06 18:48:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
upgrade.log (136.55 KB, text/x-log)
2012-10-10 05:36 UTC, Jianwei Hou
no flags Details
Script to fix migration issues (750 bytes, application/x-shellscript)
2012-10-15 20:04 UTC, Lili Nader
no flags Details

Description Jianwei Hou 2012-10-10 05:36:40 UTC
Created attachment 624603 [details]
upgrade.log

Description of problem:
yum update from an old instance, some packages failed to be installed and return errors.
yum update again, the failed packages are installed successfully


Version-Release number of selected component (if applicable):
On devenv-stage_239

How reproducible:
Always

Steps to Reproduce:
1. Launch an old instance(devenv-stage_239), prepare data on it
2. Modify /etc/yum.repos.d/li.repo, replace 'stage' with 'candidate' in order to upgrade to latest devenv
3. yum -y update| tee -a upgrade.log
  
Actual results:
The following packages failed to be installed:
Failed:
  mod-php-5.3-apache2-zend-server.x86_64 0:5.3.14-5                             
  mod-php-5.3-apache2-zend-server.x86_64 0:5.3.14-7                             
  php-5.3-fcgi-zend-server.x86_64 0:5.3.14-1                                    
  php-5.3-fcgi-zend-server.x86_64 0:5.3.14-3                                    
  php-5.3-imap-zend-server.x86_64 0:5.3.14-1                                    
  php-5.3-imap-zend-server.x86_64 0:5.3.14-3                                    
  php-5.3-ldap-zend-server.x86_64 0:5.3.14-1                                    
  php-5.3-ldap-zend-server.x86_64 0:5.3.14-3                                    
  php-5.3-pdo-mysql-zend-server.x86_64 0:5.3.14-1                               
  php-5.3-pdo-mysql-zend-server.x86_64 0:5.3.14-3                               
  php-5.3-pdo-pgsql-zend-server.x86_64 0:5.3.14-1                               
  php-5.3-pdo-pgsql-zend-server.x86_64 0:5.3.14-3                               
  php-5.3-zip-zend-server.x86_64 0:5.3.14-1                                     
  php-5.3-zip-zend-server.x86_64 0:5.3.14-3                                     
  zend-server-framework2.noarch 0:2.0.2-291 
error messages are like:
Updating   : mod-php-5.3-apache2-zend-server-5.3.14-7.x86_64            1/308
error: unpacking of archive failed on file /usr/local/zend/etc/php.ini;5074fe1b: cpio: open
.....
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [14] unable to open database file' in /usr/local/zend/share/scripts/zs_jq_db_handler.php:15
Stack trace:
#0 /usr/local/zend/share/scripts/zs_jq_db_handler.php(15): PDO->__construct('sqlite:/db/jobq...')
#1 /usr/local/zend/share/scripts/zs_create_databases.php(680): JQDBHandler->__construct()
#2 {main}
  thrown in /usr/local/zend/share/scripts/zs_jq_db_handler.php on line 15
X-Powered-By: PHP/5.3.14 ZendServer/5.0^M
Content-type: text/html^M


yum update again and they were installed successfully

Expected results:
Should be installed correctly

Additional info:
I can install the failed packages the second time I run 'yum update', but these packages always failed for the first time of 'yum update'.
So maybe there should be a fix for this?
Full log is attached.

Comment 1 Lili Nader 2012-10-15 20:04:16 UTC
Created attachment 627661 [details]
Script to fix migration issues

This script must be run before trying a yum update.

Comment 2 Lili Nader 2012-10-15 20:06:12 UTC
*** Bug 862933 has been marked as a duplicate of this bug. ***

Comment 3 Meng Bo 2012-10-16 08:44:36 UTC
Verify this bug with devel provided sh.

1.Launch devenv-stage_239.
2.Create some apps on it.
3.Run the zend_migration_fix.sh
4.Do upgrade.
yum update -y

All the packages updated successfully.


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