Bug 967016 - Need better cart dir detection
Need better cart dir detection
Product: OpenShift Online
Classification: Red Hat
Component: Containers (Show other bugs)
Unspecified Unspecified
unspecified Severity high
: ---
: ---
Assigned To: Dan Mace
libra bugs
Depends On:
  Show dependency treegraph
Reported: 2013-05-24 10:13 EDT by Dan McPherson
Modified: 2015-05-14 19:19 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-06-11 00:11:10 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dan McPherson 2013-05-24 10:13:55 EDT
Description of problem:

Currently it's possible to get and error like:

> > remote: Cartridge manifest not found:
> > /var/lib/openshift/51999049db86250715000002/oradiag_51999049db8625/metadata/manifest.yml
> > missing

When you have extra dirs at the root of a gear that aren't carts.

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

How reproducible:

Steps to Reproduce:
1. Create an app
2. ssh to the system as root and add a dir at the root of the gear
3. ssh to the system as the user and call gear stop

Actual results:
Will get an error similar to the above

Expected results:
Should ignore the extra dir

Additional info:
Comment 1 Dan Mace 2013-05-24 15:29:10 EDT
Resolved by https://github.com/openshift/origin-server/pull/2636
Comment 2 openshift-github-bot 2013-05-24 18:52:02 EDT
Commit pushed to master at https://github.com/openshift/origin-server

Bug 967016: Detect v2 carts in a gear more accurately
Comment 3 Meng Bo 2013-05-27 05:40:37 EDT
Verified on devenv_3277

1. Create php app
2. Add mysql to the app
3. Add testdir into the gear home
4. SSH login to the gear via user
$rhc ssh php1

[php1-bmengdev1.dev.rhcloud.com 51a326eaeaf28e745c000013]\> ls -Z
drwxr-xr-x. root                     51a326eaeaf28e745c000013 system_u:object_r:openshift_var_lib_t:s0:c0,c505 app-root
drwxr-xr-x. root                     root                     system_u:object_r:openshift_var_lib_t:s0 git
drwxr-xr-x. 51a326eaeaf28e745c000013 51a326eaeaf28e745c000013 system_u:object_r:openshift_var_lib_t:s0:c0,c505 mysql
drwxr-xr-x. 51a326eaeaf28e745c000013 51a326eaeaf28e745c000013 system_u:object_r:openshift_var_lib_t:s0:c0,c505 php
drwxr-xr-x. 51a326eaeaf28e745c000013 51a326eaeaf28e745c000013 system_u:object_r:openshift_var_lib_t:s0:c0,c505 testdir

[php1-bmengdev1.dev.rhcloud.com 51a326eaeaf28e745c000013]\> ctl_all restart
Stopping services
Stopping gear...
Stopping PHP cart
[Mon May 27 05:31:00 2013] [warn] module php5_module is already loaded, skipping
Starting services
Starting gear...
Starting PHP cart
[Mon May 27 05:31:12 2013] [warn] module php5_module is already loaded, skipping

[php1-bmengdev1.dev.rhcloud.com 51a326eaeaf28e745c000013]\> ctl_app restart
Cart to restart?
1. php-5.3
2. mysql-5.1
?  3
You must choose one of ["1", "2", "php-5.3", "mysql-5.1"].
?  1
Restarting PHP cart
[Mon May 27 05:31:49 2013] [warn] module php5_module is already loaded, skipping

The extra dir will be ignored during the ctl_app.

Move bug to verified.

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