summaryrefslogtreecommitdiff
path: root/docker/horizon/extend_start.sh
AgeCommit message (Collapse)AuthorFilesLines
2019-04-16Write hash after compressing horizon static assetsMark Goddard1-3/+3
If you run the horizon container with a restart policy of never, and the static asset compression fails, the container fails to start, e.g. (seen in CI) ++ /usr/bin/manage.py collectstatic --noinput --clear Traceback (most recent call last): File "/usr/bin/manage.py", line 18, in <module> from django.core.management import execute_from_command_line ImportError: No module named django.core.management However, with a restart policy of unless-stopped (the default). the horizon container will fail the first time but will succeed after a restart. This is because the settings bundle hash is updated before the compression is attempted. To fix this, update the hash after compression completes successfully. Change-Id: I3f1682ed55e7d45c1e97a1b34c7993aa839f0bb2 Closes-Bug: #1824137 (cherry picked from commit 92c2456851857c45e8de9a3ff8f167579e0588f4)
2019-04-12Fix ubuntu binary deploysMark Goddard1-11/+13
1. Install python3-pymysql in placement-base image. 2. Remove default placement WSGI config. 3. Use python3 for manage.py in horizon Change-Id: Ibb620af2241e39fe99bc48757f90296c0d77d438 Partial-Bug: #1823989 (cherry picked from commit 6c0065185943355851308ae4df23b73918fab7be)
2019-03-12replace 'distro_python3' variable with 'distro_python_version'Marcin Juszkiewicz1-2/+2
RHEL7 derived distros use Python 2.7 RHEL8 uses Python 3.6 Ubuntu 18.04 uses Python 3.6, but we haven't enabled it yet. Debian:buster uses Python 3.7, but we haven't enabled it yet. We have several places in code where "/lib/pythonX.Y/site-packages" is used so we need to know value of X.Y rather than py2/py3 switch. How to check for Python 2: {% if distro_python_version == '2.7' %} Breaks: Iad6b70b433a0dd1b0f8ae6790fd280594517661a Change-Id: Ie24f109af19ae0438c21e0d43cb3cc947812b4ce
2019-01-10Copy missing heat_policy.json fileKien Nguyen1-0/+4
Change-Id: Ic90821f1a9ebfcea67183bb91aebca00c046133e
2018-08-14horizon: regenerate compressed javascript and css on configuration changesLars Kellogg-Stedman1-11/+18
previously, the horizon container would not re-rerun the manage.py collectstatic/compress tasks when configuration files in /etc/openstack-dashboard/local-settings.d were modified (or added or deleted). This commit modifies the checksum calculation to take all configuration files into account. Closes-bug: 1778963 Change-Id: I6946ab96cd758ef6eed56c9c4130046ac884b5e3
2018-06-20Add neutron-vpnaas-dashboard into horizon imagejing.liuqing1-0/+7
neutron-vpnaas-dashboard is split into standalone repo. Need install it into horizon image. Change-Id: Ife1e39d4fff9e878a101ff716545166a30091f69 Closes-Bug: #1777750
2018-05-24[horizon] change settings prefix for ubuntu/binaryJorge Niedbalski1-3/+9
Use /usr/share/openstack-dashboard/openstack_dashboard/local/ instead of site-packages/** for ubuntu/binary installs. Change-Id: I4043d1439012afa0100e94c40d1dec2ef92152d4 Closes-Bug: #1773105 Signed-off-by: Jorge Niedbalski <jorge.niedbalski@linaro.org>
2018-05-15Add congress-dashboard into horizon imagecaoyuan1-0/+9
Change-Id: I5cd0cc2c884530525b3019c22c04a782a181a3bf
2018-05-10Create symlink if /e/o-d/customer_local_settings existsJorge Niedbalski1-6/+21
Create site-packages custom_local_settings symlink if /etc/openstack-dashboard/custom_ local_settings exists, this will be used as a mechanism to extend the current local_settings without a need to change the file and rebuild the image Change-Id: I06221de3633d1ad30160bfc83d53a3b98f586f39 Partial-Bug: #1769970 Signed-off-by: Jorge Niedbalski <jorge.niedbalski@linaro.org>
2018-04-20Add blazar-dashboard into horizon imagecaoyuan1-0/+9
Change-Id: I67876c734d147593a188ba385b60e02350b44fae
2018-04-05Fix vitrage dashboardEduardo Gonzalez1-1/+1
A typo in the start script makes horizon to not copy vitrage files into horizon enabled dashboards. Change-Id: Ic6c010b343757e3172b92386cda386524f749eeb Closes-Bug: #1761392
2018-03-28Add octavia-dashboard to horizon imageCarlos Goncalves1-0/+7
Change-Id: Ic99e9e7b499e82a998386e13dceab4e67f23e989
2018-01-20Merge "Check whether the source file exists before configuring the dashboard"Zuul1-1/+3
2018-01-17Check whether the source file exists before configuring the dashboardchenxing1-1/+3
Change-Id: If96f8d8b4f4c87724b73ed866c9ec6007b70371c Closes-Bug: #1699083
2018-01-05Add vitrage dashbord into horizon imagechenxing1-0/+9
Change-Id: I5846b48d336583ae82743f61bfbdadc99c755e8d Partially-implements: blueprint vitrage-roles
2017-12-11Add heat dashboard to horizon imageJeffrey Zhang1-0/+9
heat dashboard is split from horizon code base in Queens cycle.[0][1] [0] https://review.openstack.org/#/c/523402/ [1] https://github.com/openstack/heat-dashboard Closes-Bug: #1737475 Change-Id: I920394b8cb6eb7027df9110fe88de6842d2bd8b3
2017-10-17Fix Horizon asset compression not happening on redeployPaul Bourke1-1/+1
A recent change to kolla-ansible (a729dcc4) bind mounts /tmp from the host to handle uploading of larger images. Unfortunately this is also where we keep the state file for horizon which controls whether assets need to be recompressed (.local_settings.md5sum.txt). This means it is left over on destroy and causes issues with CSS / assets on redeploy. Change the location of this file to /var/lib/kolla/.local_settings.md5sum.txt so it is cleaned up correctly along with the container. Change-Id: Icfc71266cabedc2c1a3d30590cada3f774bc0d2c Closes-Bug: #1721281
2017-09-25Add neutron-fwaas-dashboard into horizon imageJeffrey Zhang1-0/+9
neutron-fwaas-dashboard is split into standalone repo. Need install it into horizon image. Change-Id: Ic1ff58df2c23db77aace95fd6d4eabbd62227e3b Closes-Bug: #1719147
2017-07-25Fix horizon start errors for binary imagesEduardo Gonzalez1-2/+2
In kolla we set SECRET_KEY from passwords.yml Ubuntu and source images deploy right because they dont remove defaults secret_key file but really is ununsed. [1] RDO removes the import and the default key [2] file making horizon container fail to start due cannot stat <Key file>. Symlink to local_settings is only needed for source images, binary packages already do that symlink during package install[3] [1]https://github.com/openstack/horizon/blob/master/openstack_dashboard/local/local_settings.py.example#L149 [2]https://github.com/rdo-packages/horizon-distgit/blob/rpm-master/python-django-horizon.spec#L354 [3] https://github.com/rdo-packages/horizon-distgit/blob/rpm-master/python-django-horizon.spec#L319 Change-Id: Idfb0a18a95a1a48a4c3323385fd00485699f3fb6
2017-07-24Merge "Tweaks to allow Horizon dev mode"Jenkins1-8/+18
2017-07-13Fix Horizon container starting with Watcher enabledBertrand Lallau1-1/+1
When Watcher service is enabled, Horizon container failed to start. Path to Horizon dashboard files was wrong. Add missing part to previous commit 11e04d0782d32d203830c9c8e40094658cee5cae Change-Id: I2b2b3a72949d125900fe5b2e1c1de42e2c24c9c3 Closes-Bug: #1703971
2017-07-12Fix Horizon container starting if Watcher is enabledBertrand Lallau1-1/+1
When Watcher service is enabled, Horizon container failed to start. Path to Horizon dashboard files was wrong. This patch fix it. Change-Id: I8031612caf7c02e02f1079413ff8e648d1a4ca54 Closes-Bug: #1703971
2017-07-11Tweaks to allow Horizon dev modePaul Bourke1-8/+18
* Paramaterise FORCE_GENERATE so it can be set by Ansible when horizon dev mode is enabled. * Move the soft linking of local_settings to run time * Check perms on the secret_key_store at run time Change-Id: I9bb9a3061412e2f71c60a90ecf9d2e9d78ba2d78 Depends-On: If99b0310dac75776ca462034926dd57794572ce9
2017-07-04Install zun ui into horizon imagecaoyuan1-0/+9
Change-Id: Ie0e02253bd706cad6a568e1574aa4c4bd83744e5 Closes-Bug: #1677922
2017-02-07Merge "Fix the policy file path in horizon container"Jenkins1-3/+3
2017-02-06Merge "Install freezer dashboard into horizon image"Jenkins1-0/+9
2017-02-06Merge "Fix solum dashboard"Jenkins1-2/+2
2017-02-06Fix solum dashboardcaowei1-2/+2
Change solum_dashboard to solumdashboard Change-Id: I7147de35026e0a18f6032c7b46597cf440eda7d4 Closes-Bug: #1662085
2017-02-06Fix tacker dashboardcaowei1-1/+1
Change tacker_dashboard to tacker_horizon Change-Id: I6f6f7c53e4ad31f4b6c16c2071a9e1114ef41a57 Closes-Bug: #1662088
2017-02-06Install freezer dashboard into horizon imagecaowei1-0/+9
Change-Id: I8a70c7e95cdd6517816060e148d3fdc4857182f4 Closes-Bug: #1661953
2017-02-04Fix the policy file path in horizon containerJeffrey Zhang1-3/+3
all policy files should be moved to /etc/openstack-dashboard folder Change-Id: Ibd2fd67fccce14e2efc8296f1a1b134965963c1f
2017-02-03Install tacker-horizon into horizon imageqiankun.zhang1-0/+9
Depends-On: I2090363441cd1a51b51356d59baebc43e1986dc6 Co-Authored-By: zhubingbing <zhubingbing10@gmail.com> Change-Id: Ic63c88436b03c14ef767ee102625e697250c00e0 Closes-Bug: #1647894
2017-02-02Merge "Fix mistral _50_mistral.py location"Jenkins1-1/+1
2017-01-28Fix the murano policy file pathJeffrey Zhang1-1/+1
The policy files should be put into /etc/openstack-dashboard folder Change-Id: I08cd74b0c1c6e770d988805469a7ff2c2e0aa555
2017-01-24Merge "install murano dashboard package in horizon"Jenkins1-0/+16
2017-01-24install murano dashboard package in horizonJeffrey Zhang1-0/+16
Change-Id: I96408b734eb4bc51d9acaa686d139a1653bff453 Closes-Bug: #1640679
2017-01-23Merge "Fix searchlight dashboard into horizon image."Jenkins1-2/+2
2017-01-22Fix solum dashboard into horizon image.caowei1-3/+5
TrivialFix Change-Id: I044c7edb2ac6388d807084b921c1203337eb8008
2017-01-22Fix searchlight dashboard into horizon image.caowei1-2/+2
TrivialFix Change-Id: I7b37b505a7763b83052d06abf94363344f87efaf
2017-01-21Install karbor dashboard into horizon imagecaowei1-0/+9
Change-Id: I12d9bc5263b5efbe2ef0277f152eb13e19bb5558 Closes-Bug: #1658122
2017-01-06Fix mistral _50_mistral.py locationJeffrey Zhang1-1/+1
_50_mistral.py has been moved into enabled folder through Ie1415ea66ed6608ecff622c42e3a433be23bbdfea patch Change-Id: I20b6703face3ebbc1762e148dd748db19f499114
2016-12-16Merge "Install solum dashboard into horizon image"Jenkins1-0/+7
2016-12-15Merge "Fix manila-ui"Jenkins1-2/+2
2016-12-15Trivial fix of horizon image4.0.0.0b2Chao Guo1-19/+19
Fix some incorrect indents Fix the alphabet order of config functions Change-Id: Ib11a014141972d4cb06a66ee1289467f344045b9
2016-12-14Fix manila-uiMauricio Lima1-2/+2
The manila-ui folder was updated[1] from manila_ui/enabled/ to /manila_ui/local/enabled/ 1. https://review.openstack.org/#/c/397926/ Change-Id: I3711b0649632f7d528d3fbd4d36023693b858b56
2016-12-14Install solum dashboard into horizon imagejianyi1-0/+7
Co-Authored-By: caoyuan <cao.yuan@99cloud.net> Change-Id: I531ef11f11920bb9db4b0cba43038694998afcf3 Closes-Bug: #1648709
2016-12-10Merge "Install mistral dashboard into horizon image"Jenkins1-0/+7
2016-12-10Merge "Install watcher dashboard into horizon image"Jenkins1-0/+13
2016-12-09Install mistral dashboard into horizon imagecaoyuan1-0/+7
Change-Id: I37c73e6304ed005fe019dcdd105c1f333137fa60 Closes-Bug: #1647267
2016-12-06Install watcher dashboard into horizon imagecaoyuan1-0/+13
Change-Id: Ief5898f6bf1caa3a7fe6b2a96be2bdb79e402f28 Closes-Bug: #1647162