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:
Will clear web cache after 5 minutes, or at logout/login. Will fix error page when going to create domain from settings page.
Merged to https://github.com/openshift/li/pull/1903
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.