Bug 981273 - oo-admin-repair-node should clean upgrade metadata in gears
oo-admin-repair-node should clean upgrade metadata in gears
Product: OpenShift Online
Classification: Red Hat
Component: Containers (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Paul Morie
libra bugs
Depends On:
  Show dependency treegraph
Reported: 2013-07-04 06:54 EDT by chunchen
Modified: 2016-09-29 22:15 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-07-22 11:21:18 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 chunchen 2013-07-04 06:54:56 EDT
Description of problem:
The oo-admin-repair-node can not clean successfully when there are upgrade metadata in gears, but oo-accept-node can detect the upgrade metadata.

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

How reproducible:

Steps to Reproduce:
1. Create a app
rhc app create cpl01 perl-5.10 --no-git
2. SSH into this app
    1)create some file with '.upgrade' beginning  on 'app-root/data/', like ' ..upgrade13', '.upgrade-32.tst'.
    2)create some file named '.preupgrade_state' on 'app-root/runtime/'
3. SSH into the instance and run oo-accept-node
oo-accept-node --include-upgrade-checks
4. SSH into the instance and run oo-admin-repair-node
oo-admin-repair-node clean-upgrade
5. SSH into this app and check the upgrade metadata
ls -a app-root/runtime/
ls -a app-root/data/

Actual results:
FAIL: directory f9107d6ce48e11e29efd22000aec86aa contains upgrade data
FAIL: directory f9107d6ce48e11e29efd22000aec86aa contains pre-upgrade state

\> ls -a app-root/runtime/
.  ..  data  .preupgrade_state	repo  .state
\> ls -a app-root/data
.  ..  .bash_history  .bash_profile  .upgrade13  .upgrade-32.tst

Expected results:
The upgrade metadata should be cleaned

Additional info:
Comment 2 Paul Morie 2013-07-09 17:41:17 EDT
Should be available in devenv ami 3471
Comment 3 chunchen 2013-07-09 22:19:07 EDT
It's fixed, verified on devenv_3471, please refer to the following results:

# oo-admin-repair-node clean-upgrade
Removing /var/lib/openshift/51dcc0960ef4360893000001/app-root/data/.upgrade-32.tst
Removing /var/lib/openshift/51dcc0960ef4360893000001/app-root/data/.upgrade13
Removing /var/lib/openshift/51dcc0960ef4360893000001/app-root/runtime/.preupgrade_state

[root@F17-CCY ~]# rhc ssh drupal "ls -a app-root/runtime/"
[root@F17-CCY ~]# rhc ssh drupal "ls -a app-root/data/"

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