Bug 1155526 - A file named <db-name>-<version>.tar.gz is left over in folder app-root/data/ after cloning app which have database added.
Summary: A file named <db-name>-<version>.tar.gz is left over in folder app-root/data/...
Keywords:
Status: CLOSED EOL
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Miciah Dashiel Butler Masters
QA Contact: libra bugs
URL:
Whiteboard:
Depends On: 1127620
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-22 10:01 UTC by Gaoyun Pei
Modified: 2017-01-13 22:32 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1127620
Environment:
Last Closed: 2017-01-13 22:32:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Gaoyun Pei 2014-10-22 10:01:40 UTC
Similar issue is reproducible on puddle 2.2/2014-10-21.1 with rhc 1.31.2.1

After creating a new app from existing app(with mysql/mongodb/postgresql embedded), some files would be generated in the previous app and the new app.

In the previous app:
[app1-aa.ose22-app-20141022.com.cn data]\> ls
mongodb_dump_old_db_name.txt  mysql_db_dbname  mysql_db_username       postgresql_db_dbname    postgresql_db_uuid	    postgresql_version
mongodb_dump_snapshot.tar.gz  mysql_db_host    mysql_dump_snapshot.gz  postgresql_db_username  postgresql_dump_snapshot.gz

In the new app:
[appnew-aa.ose22-app-20141022.com.cn 54477d7b4b676803350003c2]\> ls app-root/data/
mongodb_dump_old_db_name.txt  mongodb_dump_snapshot.tar.gz  postgresql_db_uuid


+++ This bug was initially created as a clone of Bug #1127620 +++

Description of problem:
After the procedure of clone app from existing app(with database) is done, 
a file named <db-name>-<version>.tar.gz is left over in folder app-root/data/.
e.g, mongodb-2.4.tar.gz  mysql-5.1.tar.gz    postgresql-9.2.tar.gz

These files should be removed after the procedure of clone is done as these files can be pretty large.

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

How reproducible:
always

Steps to Reproduce:
1.Create an app with database added
2.Create a new app from above app.
$ rhc create-app appclone --from-app apporigin
3.Check files under folder app-root/data/ in gears of above two apps.

Actual results:
A file named <db-name>-<version>.tar.gz is left over in folder app-root/data/,
e.g, mongodb-2.4.tar.gz  mysql-5.1.tar.gz    postgresql-9.2.tar.gz

Expected results:
These files should be removed after the procedure of clone is done as these files can be pretty large.

Additional info:
[clone-lxia.dev.rhcloud.com 53e3683da750647498000142]\> ls -lh app-root/data/
total 13M
-rw-------. 1 53e3683da750647498000142 53e3683da750647498000142 498K Aug  7 07:58 mongodb-2.4.tar.gz
-rw-------. 1 53e3683da750647498000142 53e3683da750647498000142 511K Aug  7 07:58 mysql-5.1.tar.gz
-rw-------. 1 53e3683da750647498000142 53e3683da750647498000142  12M Aug  7 07:58 postgresql-9.2.tar.gz
-rw-------. 1 53e3683da750647498000142 53e3683da750647498000142   23 Aug  7 08:09 scale_limits.txt

Comment 1 Rory Thrasher 2017-01-13 22:32:55 UTC
OpenShift Enterprise v2 has officially reached EoL.  This product is no longer supported and bugs will be closed.

Please look into the replacement enterprise-grade container option, OpenShift Container Platform v3.  https://www.openshift.com/container-platform/

More information can be found here: https://access.redhat.com/support/policy/updates/openshift/


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