Bug 836796 - Deleted application still shows in "My Applications"
Summary: Deleted application still shows in "My Applications"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: ---
: ---
Assignee: Rajat Chopra
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-01 13:30 UTC by terzis369
Modified: 2015-05-15 01:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 20:42:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Not Found page (184.04 KB, image/png)
2012-07-02 06:06 UTC, terzis369
no flags Details
Detailed Screenshots on the Issue (3.26 MB, application/msword)
2012-07-02 06:35 UTC, terzis369
no flags Details

Description terzis369 2012-07-01 13:30:17 UTC
Description of problem:
- Deleted an application from "My Applications" on OpenShift.
- Application still shows on the "My Applications" list.
- When I press the ">" button on it though, I get a "Page Not Found" error.

As a result, while I can't delete the application at the same time the list still contains it!

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


How reproducible:


Steps to Reproduce:
1. Go to "My Applications" page
2. Select application with name "example" and click the ">" next to it.
3. Observe the "Page Not Found" error
  
Actual results:


Expected results:


Additional info:

Comment 1 Xiaoli Tian 2012-07-02 01:15:53 UTC
Strange, I can not reproduce it with the same steps.

Comment 2 terzis369 2012-07-02 06:04:28 UTC
The web console has a really weird and unexpected behavior.
Once I click on the ">" next to the application name, it will open up the specific application's page.  
Then when I press the "Delete this application" button, it takes me to the confirmation delete page and if I press the "Delete" button it shows me the "Not found" again.
(I'll provide a screenshot of the browser view).

After that, the application is being removed from the "My Applications" list ONLY FOR A WHILE THOUGH!
After a few minutes, if I refresh my browser (sitting on the "My Applications" page) or if I logout/login again the application is still there.

Comment 3 terzis369 2012-07-02 06:06:27 UTC
Created attachment 595627 [details]
Not Found page

This page is shown when I press the "Delete this application" button on "My Applications" page.

After that the "deleted" application, temporarily disappears from "My Applications" list, only to re-appear a little later again back on the list!!!

Comment 4 Xiaoli Tian 2012-07-02 06:25:53 UTC
It happened to me in PROD as well after waiting for sometime, paste the app info for checking log:

User Info
=========
Namespace: dailywork
  RHLogin: xtian+test1

apptest1
    Framework: jbossas-7
     Creation: 2012-02-16T01:33:47-05:00
         UUID: 11c33b7b34824b14b0e9976dbc1dfe56
      Git URL: ssh://11c33b7b34824b14b0e9976dbc1dfe56.com/~/git/apptest1.git/
   Public URL: http://apptest1-dailywork.rhcloud.com/

 Embedded: 
      None

#rhc app destroy -a apptest1 -l xtian+test1 
!!!! WARNING !!!! WARNING !!!! WARNING !!!!
You are about to destroy the apptest1 application.

This is NOT reversible, all remote data for this application will be removed.
Do you want to destroy this application (y/n): y
Problem reported from server. Response code was 400.
Re-run with -d for more information.

RESULT:
An application named 'apptest1' does not exist

Comment 5 terzis369 2012-07-02 06:35:07 UTC
Created attachment 595639 [details]
Detailed Screenshots on the Issue

This word document file contains a series of screenshots on how to reproduce the issue.

Comment 6 terzis369 2012-07-02 06:43:17 UTC
I'm trying to command line command you suggested just now.  I'll let you know how it goes very soon.

Comment 7 terzis369 2012-07-02 06:58:54 UTC
1.) I destroy the app as follows:
---------------------------------
C:\Users\alex>rhc app destroy -a example
ParseConfig Deprecation Warning: get_value() is deprecated. Use config['param'] or config['group']['param'] instead.
... (more of these warnings deleted by alex) ...
ParseConfig Deprecation Warning: get_value() is deprecated. Use config['param'] or config['group']['param'] instead.
Password: ********

!!!! WARNING !!!! WARNING !!!! WARNING !!!!
You are about to destroy the example application.

This is NOT reversible, all remote data for this application will be removed.
Do you want to destroy this application (y/n): y

RESULT:
Successfully destroyed application: example


2.) I obtain the status as follows:
-----------------------------------
C:\Users\alex>rhc app status -a example -d
ParseConfig Deprecation Warning: get_value() is deprecated. Use config['param'] or config['group']['param'] instead.
... (more of these warnings deleted by alex) ...
ParseConfig Deprecation Warning: get_value() is deprecated. Use config['param'] or config['group']['param'] instead.
Password: ********

Contacting https://openshift.redhat.com
Problem reported from server. Response code was 400.

DEBUG:


Exit Code: 1
broker_c: ["namespace", "rhlogin", "ssh", "app_uuid", "debug", "alter", "cartridge", "cart_type", "action", "app_name", "api"]
api_c: ["placeholder"]
API version:    1.1.3

RESULT:
An application named 'example' does not exist


3.) Immediately afterwards, I login to the https://openshift.redhat.com/app/console/applications site, and the Example application is still there in the "My Applications" list !!!


4.) Five minutes later I re-run the status command, and I get a different response code:
C:\Users\alex>rhc app status -a example
ParseConfig Deprecation Warning: get_value() is deprecated. Use config['param'] or config['group']['param'] instead.
ParseConfig Deprecation Warning: get_value() is deprecated. Use config['param'] or config['group']['param'] instead.
Password: ********

Problem reported from server. Response code was 500.
Re-run with -d for more information.

RESULT:
Node execution failure (invalid exit code from node).  If the problem persists please contact Red Hat support.

Comment 8 terzis369 2012-07-02 06:59:55 UTC
Conclusion:  the problem is still there, and I'm stuck because I can't create new applications!
Please help!

Comment 9 Yujie Zhang 2012-07-02 09:37:14 UTC
Can not reproduce this issue on stage, it only exists on product.

Comment 10 Clayton Coleman 2012-07-03 17:21:15 UTC
This was apparently resolved, but no one seems to have done anything or heard how it was fixed.

Comment 11 Dan McPherson 2012-07-03 17:49:45 UTC
Not sure what to do with this.  Clayton is the issue above with 

ParseConfig Deprecation Warning: get_value() is deprecated. Use config['param']

fixed?

And is your last statement correct that the original issue is no longer there?

Comment 12 Dan McPherson 2012-07-03 18:01:35 UTC
Rajat, can you please work with ops to figure out what is going on with this app.

Comment 13 Rajat Chopra 2012-07-06 01:44:22 UTC
Update: The logs show application deleted correctly. Some caching issue. Still investigating.

Comment 14 Rajat Chopra 2012-07-11 20:03:49 UTC
User account fixed.
The issue is not reproducible manually - going through logs still to find out more about the incident - possibly a race condition or a db write failure.

Comment 15 Rajat Chopra 2012-07-26 21:54:36 UTC
Can we get QE to test and reproduce the issue?
The user's account is fixed already.

Comment 16 Yujie Zhang 2012-07-30 07:39:37 UTC
(In reply to comment #15)
Tested this issue on devenv_1920 and production, did not meet this issue, so verify this bug first.


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