Bug 863969

Summary: Always met conflict and failed to be upgraded to latest devenv instance
Product: OKD Reporter: Jianwei Hou <jhou>
Component: PodAssignee: Krishna Raman <kraman>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 2.xCC: mfisher
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-06 18:49:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
upgrade.log none

Description Jianwei Hou 2012-10-08 08:25:13 UTC
Created attachment 623334 [details]
upgrade.log

Description of problem:
Try to upgrade instance to latest following https://engineering.redhat.com/trac/Libra/wiki/Test_Migrations_Fork_Ami.
It failed with following error:
Transaction Check Error:
  file /usr/bin/sssh from install of rubygem-openshift-origin-node-0.17.5-1.git.9.6740de3.el6.noarch conflicts with file from package rubygem-stickshift-node-0.17.4-1.el6_3.noarch


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)
2. Prepare test data on instance
3. Do server upgrade 
scp ~/li-local from latest devenv ami into instance
scp /etc/yum.repos.d/local.repo from latest devenv image into instance
Change repos to point to candidate on stage_ami (usual step) replace all label 'stage' by 'candidate' in /etc/yum.repos.d/li.repo
yum -y install yum-priorities 
yum update --enablerepo li-local
  
Actual results:
[root@ip-10-191-42-63 misc]# yum -y update --enablerepo li-local
................
Transaction Check Error:
  file /usr/bin/sssh from install of rubygem-openshift-origin-node-0.17.5-1.git.9.6740de3.el6.noarch conflicts with file from package rubygem-stickshift-node-0.17.4-1.el6_3.noarch

Error Summary
-------------


Expected results:
Should upgrade to latest devenv successfully.

Additional info:
Full log is attached.

Comment 1 Jianwei Hou 2012-10-08 08:28:16 UTC
Since I can not upgrade to latest devenv, directories with name "stickshift" is not renamed to "openshift".
migrate-mongo-2.0.18 and hascaledb-migrate-2.0.18.rb failed to run since they require '/var/www/openshift/broker/config/environment' which does not exist, have to replace '/var/www/openshift/broker/config/environment' with '/var/www/stickshift/broker/config/environment' as a work around.

Comment 2 Dan McPherson 2012-10-08 13:28:58 UTC
I have fixed the obsoletes that was causing this issue.  But we haven't written the migration yet for the renames so you will still have issues until that's available

Comment 3 Jianwei Hou 2012-10-22 07:59:34 UTC
Verified on devenv-stage_239

Steps:
1.Launch devenv-stage_239
2.Create test data on it
3.Run the zend_fix_script provided in Bug 864775
4.Modify the li.repo to use the candidate mirror
5.Copy the jbosseap/jbossews related repos and key files from latest devenv
6.Fix the selinux by following the rmillner's comment
7.Run "yum update -y --enablerepo li-local" to upgrade to latest devenv

Upgrade was successful