Bug 977916

Summary: Dangling symlinks in openshift-origin-cartridge-ruby package
Product: OKD Reporter: Jason DeTiberus <jdetiber>
Component: ContainersAssignee: Luke Meyer <lmeyer>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: bmeng, lmeyer
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 977918 (view as bug list) Environment:
Last Closed: 2013-07-22 15:12:55 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:
Bug Depends On:    
Bug Blocks: 977918    

Description Jason DeTiberus 2013-06-25 15:08:11 UTC
Description of problem:
openshift-origin-cartridge-ruby has dangling symlinks: 
File usr/libexec/openshift/cartridges/v2/ruby/versions/1.8/metadata is a dangling symlink (to ../shared/metadata/) on noarch
File usr/libexec/openshift/cartridges/v2/ruby/versions/1.9/metadata is a dangling symlink (to ../shared/metadata/) on noarch

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


How reproducible:
Every time

Steps to Reproduce:
1. Install package
2. ls -l /usr/libexec/openshift/cartridges/v2/ruby/versions/1.8/metadata
3. ls -l /usr/libexec/openshift/cartridges/v2/ruby/versions/1.9/metadata

Actual results:
ls shows broken symlinks

Expected results:
symlinks should not exist

Additional info:
This looks to be left over from early v2 work where there was a versions/shared/metadata directory that no longer exists.

Comment 1 Luke Meyer 2013-07-18 19:44:23 UTC
The following commit was mislabeled and is actually for this bug:

https://github.com/openshift/origin-server/commit/7e8d61fcb6b7cd8a541a318e01dbef7b0d8ace31
<ruby cart> bug 977919 remove broken symlinks

Comment 2 Meng Bo 2013-07-19 05:23:03 UTC
Checked on devenv_3527, issue has been fixed.

[root@ip-10-154-153-202 versions]# pwd
/usr/libexec/openshift/cartridges/ruby/versions
[root@ip-10-154-153-202 versions]# tree -a -L 2
.
├── 1.8
│   ├── etc
│   └── template
├── 1.9
│   ├── etc
│   └── template
├── 2.0
│   ├── etc
│   └── template -> ../shared/template
└── shared
    ├── etc
    └── template

12 directories, 0 files