Bug 912665 - Error message is duplicate when upgrading plan to MegaShift using unactivted account on devenv-stage.
Summary: Error message is duplicate when upgrading plan to MegaShift using unactivted ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Website
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: N. Harrison Ripps
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-19 11:06 UTC by Yujie Zhang
Modified: 2015-05-15 01:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-15 14:02:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot1 (82.84 KB, image/png)
2013-02-19 11:06 UTC, Yujie Zhang
no flags Details
/var/www/openshift/site/config/environments/development.rb (3.07 KB, text/plain)
2013-03-05 09:14 UTC, Yujie Zhang
no flags Details
/etc/drupal6/default/redhat_settings.php (1.02 KB, text/plain)
2013-03-05 09:15 UTC, Yujie Zhang
no flags Details

Description Yujie Zhang 2013-02-19 11:06:15 UTC
Created attachment 699412 [details]
screenshot1

Description of problem:

Registered a new account and login, tried to upgrade my account to megashift, after clicking "Save Payment" button on "Payment Method" page, met error like "Your payment information could not be processed at this time. Please contact the OpenShift team for support.", and the error message is duplicate, details can see in attachment.

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

How reproducible:
always

Steps to Reproduce:
1.Go to openshift website and login
2.Try to upgrade account to megashift
3.
  
Actual results:

Met "Your payment information could not be processed at this time. Please contact the OpenShift team for support." error.

Expected results:

User should be able to upgrade account to megashift on devenv.

Additional info:

Comment 1 Clayton Coleman 2013-02-19 23:08:04 UTC
I think this is because direct post is not configured.  I need to instruct matt to run a rake command to establish the direct post config.

Comment 2 Clayton Coleman 2013-02-28 01:05:39 UTC
This should now be configured on stage (against the new aria instance)

Comment 3 Mengjiao Gao 2013-02-28 11:54:29 UTC
Tested this issue on devenv-stage_311, and the issue still existed. Not sure this issue fixed in which version, and will test it when the newer devenv-stage comes out.

Comment 4 Yujie Zhang 2013-03-01 11:20:51 UTC
Assign it back for the issue still exists on devenv-stage_311, could you please check this agagin?

Comment 5 Clayton Coleman 2013-03-01 20:18:18 UTC
The change I made was direct to config - so it should work on stage.  Can you provide the development.log and the browser redirect behavior?

Comment 6 Yujie Zhang 2013-03-04 10:33:47 UTC
(In reply to comment #5)
The site/development.log is as following:

2013-03-04 05:30:19.888 [INFO ] Started GET "/app/account/plans/megashift/upgrade/payment_method/direct_create?inSessionID=d8ad43f4a9cae7143f28abb914d43480&error_messages%5B0%5D%5Berror_key%5D=servercouldnotgetaccountdetails&error_messages%5B0%5D%5Berror_code%5D=1011&error_messages%5B0%5D%5Berror_field%5D=server_error&errors=1" for 203.114.244.88 at 2013-03-04 05:30:19 -0500 (pid:5160)
2013-03-04 05:30:19.909 [INFO ] Processing by AccountUpgradePaymentMethodController#direct_create as HTML (pid:5160)
2013-03-04 05:30:19.909 [INFO ] Parameters: {"inSessionID"=>"d8ad43f4a9cae7143f28abb914d43480", "error_messages"=>{"0"=>{"error_key"=>"servercouldnotgetaccountdetails", "error_code"=>"1011", "error_field"=>"server_error"}}, "errors"=>"1", "plan_id"=>"megashift"} (pid:5160)
2013-03-04 05:30:19.910 [DEBUG] Login required (pid:5160)
2013-03-04 05:30:19.910 [DEBUG] Session contents: {"ticket"=>"0|n9O3fbbMtT5yEy7KgA32aTpOyn59Dvvz4De", "login"=>"yujzhang+dev99879", "streamline_type"=>:simple, "ticket_verified"=>1362392864, "session_id"=>"d8ad43f4a9cae7143f28abb914d43480", "_csrf_token"=>"OVKVtrtN5/uE90qU6NMQV4mb0VdqW3roGzygDywkGV8=", "terms"=>true, "caps"=>[3, 0, [:small], nil, true]} (pid:5160)
2013-03-04 05:30:19.911 [DEBUG] {"inSessionID"=>"d8ad43f4a9cae7143f28abb914d43480", "error_messages"=>{"0"=>{"error_key"=>"servercouldnotgetaccountdetails", "error_code"=>"1011", "error_field"=>"server_error"}}, "errors"=>"1", "action"=>"direct_create", "controller"=>"account_upgrade_payment_method", "plan_id"=>"megashift"} (pid:5160)
2013-03-04 05:30:21.131 [DEBUG] Aria call (1217.5ms) get_acct_details_all https://streamline-proxy1.ops.rhcloud.com/api/ws/api_ws_class_dispatcher.php [ code: 200, error_code: 0 ] (pid:5160)
2013-03-04 05:30:21.137 [INFO ] Redirected to https://ec2-54-242-49-196.compute-1.amazonaws.com/app/account/plans/megashift/upgrade/payment_method/new?payment_method%5Berrors%5D%5Bbase%5D%5B%5D=unknown&payment_method%5Berrors%5D%5Bbase%5D%5B%5D=servercouldnotgetaccountdetails (pid:5160)
2013-03-04 05:30:21.137 [INFO ] Completed 302 Found in 1227ms (pid:5160)
2013-03-04 05:30:21.426 [INFO ] Started GET "/app/account/plans/megashift/upgrade/payment_method/new?payment_method%5Berrors%5D%5Bbase%5D%5B%5D=unknown&payment_method%5Berrors%5D%5Bbase%5D%5B%5D=servercouldnotgetaccountdetails" for 203.114.244.88 at 2013-03-04 05:30:21 -0500 (pid:5160)
2013-03-04 05:30:21.444 [INFO ] Processing by AccountUpgradePaymentMethodController#new as HTML (pid:5160)
2013-03-04 05:30:21.445 [INFO ] Parameters: {"payment_method"=>{"errors"=>{"base"=>["unknown", "servercouldnotgetaccountdetails"]}}, "plan_id"=>"megashift"} (pid:5160)
2013-03-04 05:30:21.445 [DEBUG] Login required (pid:5160)
2013-03-04 05:30:21.450 [DEBUG] Session contents: {"ticket"=>"0|n9O3fbbMtT5yEy7KgA32aTpOyn59Dvvz4De", "login"=>"yujzhang+dev99879", "streamline_type"=>:simple, "ticket_verified"=>1362392864, "session_id"=>"d8ad43f4a9cae7143f28abb914d43480", "_csrf_token"=>"OVKVtrtN5/uE90qU6NMQV4mb0VdqW3roGzygDywkGV8=", "terms"=>true, "caps"=>[3, 0, [:small], nil, true]} (pid:5160)
2013-03-04 05:30:22.547 [DEBUG] Aria call (1095.9ms) get_acct_details_all https://streamline-proxy1.ops.rhcloud.com/api/ws/api_ws_class_dispatcher.php [ code: 200, error_code: 0 ] (pid:5160)
2013-03-04 05:30:22.550 [DEBUG] Found keys ["unknown", "servercouldnotgetaccountdetails"] for base (pid:5160)
2013-03-04 05:30:23.449 [DEBUG] Aria call (839.7ms) set_reg_uss_config_params https://streamline-proxy1.ops.rhcloud.com/api/ws/api_ws_class_dispatcher.php [ code: 200, error_code: 0 ] (pid:5160)
2013-03-04 05:30:23.504 [INFO ] Rendered payment_methods/_form.html.haml (41.8ms) (pid:5160)
2013-03-04 05:30:23.505 [INFO ] Rendered account_upgrade_payment_method/new.html.haml within layouts/account (49.3ms) (pid:5160)
2013-03-04 05:30:23.518 [INFO ] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.4.9/app/views/layouts/_head.html.haml (6.8ms) (pid:5160)
2013-03-04 05:30:23.543 [INFO ] Rendered layouts/console/_stylesheets.html.haml (23.6ms) (pid:5160)
2013-03-04 05:30:23.554 [INFO ] Rendered layouts/account/_header.html.haml (7.9ms) (pid:5160)
2013-03-04 05:30:23.564 [INFO ] Rendered layouts/_footer.html.haml (4.5ms) (pid:5160)
2013-03-04 05:30:23.584 [INFO ] Rendered layouts/console/_javascripts.html.haml (18.6ms) (pid:5160)
2013-03-04 05:30:23.587 [INFO ] Completed 200 OK in 2142ms (Views: 137.3ms) (pid:5160)

Comment 7 Clayton Coleman 2013-03-04 15:29:06 UTC
This may be the direct post config - the post is returning servercouldnotgetaccountdetails which USUALLY means that we're posting to the wrong system (direct post configured for one system, but we're accessing another to get the info)

Comment 8 N. Harrison Ripps 2013-03-04 19:58:06 UTC
I've attempted to recreate this on a devenv that is synced to the latest stage branch, with no success. Please attach /var/www/openshift/site/config/environments/development.rb and /etc/drupla6/default/redhat_settings.php to this ticket and let us know about any other places that you may have modified the system configuration by hand.

Comment 9 Yujie Zhang 2013-03-05 09:09:36 UTC
(In reply to comment #8)
Reproduce steps:

1.Laucn an instance of devenv-stage_312
2.run sh /etc/drupal6/enable-sso.sh
3.Register a new account
4.Go to openshift website and login
5.Go to my account page
6.Click the "Upgrade plan" link
7.Input valid info of user
8.Click the confirm button
9.Click the "Save Payment" button

Actuall result:

Error message is as following:

Your payment information could not be processed at this time. Please contact the OpenShift team for support.
Your payment information could not be processed at this time. Please contact the OpenShift team for support.

Comment 10 Yujie Zhang 2013-03-05 09:14:09 UTC
Created attachment 705343 [details]
/var/www/openshift/site/config/environments/development.rb

Comment 11 Yujie Zhang 2013-03-05 09:15:52 UTC
Created attachment 705344 [details]
/etc/drupal6/default/redhat_settings.php

Comment 12 N. Harrison Ripps 2013-03-05 19:44:38 UTC
You are encountering this error on devenv-stage_312, which corresponds with the current PROD enviorment. However, fixes have come in during this sprint that solve this issue. Please retest when you receive the next STG build (which will be built @ 17h00 EST on 06-MAR-2012).

Comment 13 Yujie Zhang 2013-03-06 11:26:55 UTC
(In reply to comment #12)
Tested on devenv_2901 today, user can upgrade to megashift successfully, but when I clicked the "downgrade" button to try to downgrade, but met "Your account encountered a problem during the create account step. Please contact technical support about the error: IDCOLLISION." error, log is as following:

2013-03-06 06:25:44.630 [INFO ] Started GET "/app/account/plans/freeshift/upgrade" for 203.114.244.88 at 2013-03-06 06:25:44 -0500 (pid:31116)
2013-03-06 06:25:44.649 [INFO ] Processing by AccountUpgradesController#show as HTML (pid:31116)
2013-03-06 06:25:44.650 [INFO ] Parameters: {"plan_id"=>"freeshift"} (pid:31116)
2013-03-06 06:25:45.520 [DEBUG] Streamline call (867.9ms) roles! /wapps/streamline/cloudVerify.html [ args: {}, code: 200, response: {"username"=>"yujzhang+int999", "roles"=>["cloud_access_1", "orgadmin", "admin:org:all", "authenticated"]} ] (pid:31116)
2013-03-06 06:25:45.631 [INFO ] Rendered account_upgrades/error.html.haml within layouts/console (0.2ms) (pid:31116)
2013-03-06 06:25:45.640 [INFO ] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.5.10/app/views/layouts/_head.html.haml (4.0ms) (pid:31116)
2013-03-06 06:25:45.663 [INFO ] Rendered layouts/console/_stylesheets.html.haml (20.3ms) (pid:31116)
2013-03-06 06:25:45.674 [INFO ] Rendered layouts/console/_header.html.haml (7.9ms) (pid:31116)
2013-03-06 06:25:45.684 [INFO ] Rendered layouts/_footer.html.haml (6.6ms) (pid:31116)
2013-03-06 06:25:45.705 [INFO ] Rendered layouts/console/_javascripts.html.haml (18.9ms) (pid:31116)
2013-03-06 06:25:45.706 [INFO ] Completed 200 OK in 1055ms (Views: 86.6ms | Streamline: 867.9ms) (pid:31116)
2013-03-06 06:25:46.129 [INFO ] Started GET "/app/assets/modernizr.min.js?body=1" for 203.114.244.88 at 2013-03-06 06:25:46 -0500 (pid:31116)
2013-03-06 06:25:46.330 [INFO ] Started GET "/app/assets/jquery.js?body=1" for 203.114.244.88 at 2013-03-06 06:25:46 -0500 (pid:31116)
2013-03-06 06:25:46.855 [INFO ] Started GET "/app/assets/redhat.png" for 203.114.244.88 at 2013-03-06 06:25:46 -0500 (pid:31116)


Could you please help to check?

Comment 14 N. Harrison Ripps 2013-03-06 15:07:16 UTC
I have confirmed that this is working correctly on devenv_2901. Here is the process that I used:

1. Created an instance directly from the AWS management console based on devenv_2901
2. SSHed into the instance
    a. Ran /etc/drupal6/migrate-sprint-24.sh
    b. Edited /etc/drupal6/default/redhat_settings.php and set
       $conf['redhat_sso_skip_password'] = false;
    c. Edited /var/www/openshift/site/config/environments/development.rb and set
       config.integrated = true
    d. service rhc-site restart
    e. service httpd restart
3. Went to the Web UI at https://ec2-174-129-85-126.compute-1.amazonaws.com/app/console
    a. Clicked the Create an Account link
    b. Set up new account and submitted; received confirmation e-mail
    c. Clicked confirmation link in e-mail and was returned to Web UI
    d. Click "My Account" link, and on the "My Account" page clicked on
       "Upgrade Now"
    e. Went through upgrade workflow. Upgraded to MegaShift.
    f. From the upgrade confirmation page, immediately click on "Downgrade" button.
    g. Confirmed downgrade operation; downgrade completed successfully.

I have disabled auto-termination in the system that I used so that you can compare it to your test environment.

Comment 15 Yujie Zhang 2013-03-07 11:48:24 UTC
(In reply to comment #14)
Tested on devenv_2906 with above steps, user can upgrade and downgrade plan successfully, so verify this bug.


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