Activity log for bug #1423783

Date Who What changed Old value New value Message
2015-02-20 03:23:43 Bjoern bug added bug
2015-02-23 10:20:31 Jesse Pretorius summary Horizion is not generating CSS correctly Horizon is not generating CSS correctly
2015-02-23 10:20:50 Jesse Pretorius description Horizion is not generating CSS correctly when it runs in a load balanced environment. We need to configure the following settings to do it right : OMPRESS_OFFLINE = True COMPRESS_CSS_HASHING_METHOD = 'content' and then run the compress: sudo -u www-data horizon-manage.py collectstatic sudo -u www-data horizon-manage.py compress I have this problem pretty often in a 10.x deployment and here the log of an issue. After I did configure the local_settings.py with the settings above, the problem went away consistently # ansible horizon_container -m shell -a 'service apache2 restart' infra01_horizon_container-46069b23 | success | rc=0 >> * Restarting web server apache2 ...done. infra02_horizon_container-2e3a02dd | success | rc=0 >> * Restarting web server apache2 ...done. infra03_horizon_container-7d46d7f7 | success | rc=0 >> * Restarting web server apache2 ...done. # ansible horizon_container -m shell -a 'curl -k https://localhost |grep screen' infra01_horizon_container-46069b23 | success | rc=0 >> <link rel="stylesheet" href="/static/dashboard/css/0e35198fb8e0.css" type="text/css" media="screen" /> % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1920 0 1920 0 0 48605 0 --:--:-- --:--:-- --:--:-- 49230 infra03_horizon_container-7d46d7f7 | success | rc=0 >> <link rel="stylesheet" href="/static/dashboard/css/0e35198fb8e0.css" type="text/css" media="screen" /> % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1920 0 1920 0 0 50517 0 --:--:-- --:--:-- --:--:-- 51891 infra02_horizon_container-2e3a02dd | success | rc=0 >> <link rel="stylesheet" href="/static/dashboard/css/0e35198fb8e0.css" type="text/css" media="screen" /> % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1920 0 1920 0 0 51111 0 --:--:-- --:--:-- --:--:-- 51891 # https://localhost/static/dashboard/css/6c6ddb7aa3b5.css/static/dashboard/css/0e35198fb8e0.css |head' infra03_horizon_container-7d46d7f7 | success | rc=0 >> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /static/dashboard/css/0e35198fb8e0.css was not found on this server.</p> <hr> <address>Apache/2.4.7 (Ubuntu) Server at localhost Port 443</address> </body></html> % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 310 100 310 0 0 33659 0 --:--:-- --:--:-- --:--:-- 34444 infra02_horizon_container-2e3a02dd | success | rc=0 >> .btn { display: inline-block; margin-bottom: 0; font-weight: normal; text-align: center; vertical-align: middle; cursor: pointer; background-image: none; border: 1px solid transparent; white-space: nowrap; % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 6 1178k 6 81920 0 0 4551k 0 --:--:-- --:--:-- --:--:-- 4705k curl: (23) Failed writing body (4096 != 16384) infra01_horizon_container-46069b23 | success | rc=0 >> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /static/dashboard/css/0e35198fb8e0.css was not found on this server.</p> <hr> <address>Apache/2.4.7 (Ubuntu) Server at localhost Port 443</address> </body></html> % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 310 100 310 0 0 34148 0 --:--:-- --:--:-- --:--:-- 38750 Horizon is not generating CSS correctly when it runs in a load balanced environment. We need to configure the following settings to do it right : COMPRESS_OFFLINE = True COMPRESS_CSS_HASHING_METHOD = 'content' and then run the compress: sudo -u www-data horizon-manage.py collectstatic sudo -u www-data horizon-manage.py compress I have this problem pretty often in a 10.x deployment and here the log of an issue. After I did configure the local_settings.py with the settings above, the problem went away consistently # ansible horizon_container -m shell -a 'service apache2 restart' infra01_horizon_container-46069b23 | success | rc=0 >>  * Restarting web server apache2    ...done. infra02_horizon_container-2e3a02dd | success | rc=0 >>  * Restarting web server apache2    ...done. infra03_horizon_container-7d46d7f7 | success | rc=0 >>  * Restarting web server apache2    ...done. # ansible horizon_container -m shell -a 'curl -k https://localhost |grep screen' infra01_horizon_container-46069b23 | success | rc=0 >> <link rel="stylesheet" href="/static/dashboard/css/0e35198fb8e0.css" type="text/css" media="screen" /> % Total % Received % Xferd Average Speed Time Time Time Current                                  Dload Upload Total Spent Left Speed 100 1920 0 1920 0 0 48605 0 --:--:-- --:--:-- --:--:-- 49230 infra03_horizon_container-7d46d7f7 | success | rc=0 >> <link rel="stylesheet" href="/static/dashboard/css/0e35198fb8e0.css" type="text/css" media="screen" /> % Total % Received % Xferd Average Speed Time Time Time Current                                  Dload Upload Total Spent Left Speed 100 1920 0 1920 0 0 50517 0 --:--:-- --:--:-- --:--:-- 51891 infra02_horizon_container-2e3a02dd | success | rc=0 >> <link rel="stylesheet" href="/static/dashboard/css/0e35198fb8e0.css" type="text/css" media="screen" /> % Total % Received % Xferd Average Speed Time Time Time Current                                  Dload Upload Total Spent Left Speed 100 1920 0 1920 0 0 51111 0 --:--:-- --:--:-- --:--:-- 51891 # https://localhost/static/dashboard/css/6c6ddb7aa3b5.css/static/dashboard/css/0e35198fb8e0.css |head' infra03_horizon_container-7d46d7f7 | success | rc=0 >> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /static/dashboard/css/0e35198fb8e0.css was not found on this server.</p> <hr> <address>Apache/2.4.7 (Ubuntu) Server at localhost Port 443</address> </body></html> % Total % Received % Xferd Average Speed Time Time Time Current                                  Dload Upload Total Spent Left Speed 100 310 100 310 0 0 33659 0 --:--:-- --:--:-- --:--:-- 34444 infra02_horizon_container-2e3a02dd | success | rc=0 >> .btn {   display: inline-block;   margin-bottom: 0;   font-weight: normal;   text-align: center;   vertical-align: middle;   cursor: pointer;   background-image: none;   border: 1px solid transparent;   white-space: nowrap; % Total % Received % Xferd Average Speed Time Time Time Current                                  Dload Upload Total Spent Left Speed   6 1178k 6 81920 0 0 4551k 0 --:--:-- --:--:-- --:--:-- 4705k curl: (23) Failed writing body (4096 != 16384) infra01_horizon_container-46069b23 | success | rc=0 >> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /static/dashboard/css/0e35198fb8e0.css was not found on this server.</p> <hr> <address>Apache/2.4.7 (Ubuntu) Server at localhost Port 443</address> </body></html> % Total % Received % Xferd Average Speed Time Time Time Current                                  Dload Upload Total Spent Left Speed 100 310 100 310 0 0 34148 0 --:--:-- --:--:-- --:--:-- 38750
2015-03-10 16:29:34 Jesse Pretorius openstack-ansible: assignee Evan Callicoat (apsu-2)
2015-03-10 16:29:42 Jesse Pretorius openstack-ansible: importance Undecided Low
2015-03-13 02:44:58 OpenStack Infra openstack-ansible: status New Fix Committed
2015-03-13 06:57:56 Darren Birkett tags juno-backport-potential
2015-03-13 06:58:39 Darren Birkett nominated for series openstack-ansible/juno
2015-03-13 06:58:39 Darren Birkett bug task added openstack-ansible/juno
2015-03-13 06:58:39 Darren Birkett nominated for series openstack-ansible/trunk
2015-03-13 06:58:39 Darren Birkett bug task added openstack-ansible/trunk
2015-03-13 06:59:03 Darren Birkett openstack-ansible/juno: milestone 10.1.3
2015-03-13 06:59:17 Darren Birkett bug task deleted openstack-ansible
2015-04-02 21:27:24 Steve Lewis openstack-ansible/juno: assignee Steve Lewis (steve-lewis)
2015-04-02 21:59:08 Steve Lewis openstack-ansible/juno: status New In Progress
2015-04-07 17:42:46 Christopher H. Laco openstack-ansible/juno: status In Progress Fix Committed
2015-04-11 00:43:31 Kevin Carter openstack-ansible/juno: status Fix Committed Fix Released
2015-09-03 09:54:13 Jesse Pretorius openstack-ansible/trunk: milestone liberty-3
2015-09-14 08:58:40 Jesse Pretorius openstack-ansible/trunk: status Fix Committed Fix Released
2015-09-14 08:58:44 Jesse Pretorius openstack-ansible/juno: importance Undecided Low