Bug 1011350 - [fork]Domain created by restapi and rhc can not be displayed on website if user has already logged in.
Summary: [fork]Domain created by restapi and rhc can not be displayed on website if us...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Management Console
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jordan Liggitt
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-24 07:02 UTC by Yujie Zhang
Modified: 2015-05-15 01:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-17 13:30:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
full log file (26.70 KB, text/plain)
2013-09-24 07:02 UTC, Yujie Zhang
no flags Details

Description Yujie Zhang 2013-09-24 07:02:22 UTC
Created attachment 802063 [details]
full log file

Description of problem:

Log in to console, then create a domain using restapi and rhc client, then go to /settings page to check the domain, the domain can not be displayed, if trying to create another domain from /settings page, will meet error like "
We appear to be having technical difficulties", even tried to logout and login again, the domain still can not be displayed.

It should be cache issue for the domain can be created successfully.

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

fork_ami_origin_ui_72_membership_845

rhc 1.15.0

How reproducible:

always

Steps to Reproduce:
1.Sign in to openshift console
2.Create domain using rest api and rhc client
3.Go to /settings page to check the domain
4.Try to create another domain from /settings page
5.Try to logout and login again to check the domain

Actual results:

The domain created by restapi can not be displayed on website if user has already logged in, and met error when trying to create another domain from /settings page, log is as following:

2013-09-24 02:00:45.491 [INFO ] Started POST "/app/console/domains" for 66.187.233.202 at 2013-09-24 02:00:45 -0400 (pid:3546)
2013-09-24 02:00:45.493 [INFO ] Processing by DomainsController#create as HTML (pid:3546)
2013-09-24 02:00:45.493 [INFO ] Parameters: {"utf8"=>"✓", "authenticity_token"=>"S472cFx9hMGkod171PGexgOoN6d85I8eltMUlPbKkpo=", "domain"=>{"name"=>"ffff"}} (pid:3546)
2013-09-24 02:00:45.494 [DEBUG] Session contents: {"ticket"=>"0|5SkfTYsQYj59MO0cptpfAjposPB0kxnlKRb", "api_ticket"=>"5ffee2b510b69645fa5025e1f4abd69252932a8c668330a246e9d074b62ae819", "login"=>"yujzhang+devtestnew6", "streamline_type"=>:simple, "terms"=>true, "session_id"=>"1ae78e80aad429009f4c9945fa21dccf", "_csrf_token"=>"S472cFx9hMGkod171PGexgOoN6d85I8eltMUlPbKkpo=", "has_sshkey"=>false} (pid:3546)
2013-09-24 02:00:45.550 [DEBUG] OpenShift API (52.9ms) post https://localhost:443/broker/rest/domains.json [ code: 409 ] (pid:3546)
2013-09-24 02:00:45.551 [DEBUG] Server error: : #103: You may not have more than 1 domain. (pid:3546)
2013-09-24 02:00:45.551 [DEBUG] Found errors on the response object: {:base=>["You may not have more than 1 domain."]} (pid:3546)
2013-09-24 02:00:45.560 [INFO ] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.15.1/app/views/domains/_form.html.haml (7.1ms) (pid:3546)
2013-09-24 02:00:45.560 [INFO ] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.15.1/app/views/domains/new.html.haml within layouts/console (8.1ms) (pid:3546)
2013-09-24 02:00:45.643 [ERROR] Unhandled exception reference #748afbe654dab0a4f2b230de5d7ef9a9: No route matches {:action=>"show", :controller=>"domains", :id=>#<Domain:0x00000005ee22d0 @as=#<WebUser::Integrated:0x00000005ee2848 @rhlogin="yujzhang+devtestnew6", @errors=#<ActiveModel::Errors:0x00000005ee2500 @base=#<WebUser::Integrated:0x00000005ee2848 ...>, @messages={}>, @ticket="0|5SkfTYsQYj59MO0cptpfAjposPB0kxnlKRb", @streamline_type=:simple, @api_ticket="5ffee2b510b69645fa5025e1f4abd69252932a8c668330a246e9d074b62ae819", @remote_ip="66.187.233.202">, @attributes={"id"=>"ffff"}, @prefix_options={}, @persisted=false, @messages=nil, @changed_attributes={}, @connection=#<RestApi::UserAwareConnection:0x00000005ee17e0 @password=nil, @user=nil, @uri_parser=#<URI::Parser:0x00000005ee17b8>, @site=#<URI::HTTPS:0x00000002ba1da8 URL:https://localhost/broker/rest>, @format=#<RestApi::OpenshiftJsonFormat:0x000000029956e0 @root_attrs=[]>, @connection=#<ActiveResource::PersistentConnection:0x0000000411e7a8 @password=nil, @user=nil, @uri_parser=#<URI::Parser:0x0000000411e780>, @site=#<URI::HTTPS:0x00000002ba1da8 URL:https://localhost/broker/rest>, @format=#<RestApi::OpenshiftJsonFormat:0x000000029956e0 @root_attrs=[]>, @idle_timeout=4, @read_timeout=240, @open_timeout=3, 

Expected results:

The domain created by restapi and rhc client should be displayed on console even if user has already logged in.

Additional info:

Comment 1 Jordan Liggitt 2013-09-24 18:13:08 UTC
Will clear web cache after 5 minutes, or at logout/login.

Will fix error page when going to create domain from settings page.

Comment 2 Jordan Liggitt 2013-09-24 20:00:54 UTC
Merged to https://github.com/openshift/li/pull/1903

Comment 3 Yujie Zhang 2013-09-26 05:57:43 UTC
Tested on fork_ami_origin_ui_72_membership_863, domain create using restapi and rhc can be displayed correctly on website, so verify this bug, thanks.


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