summaryrefslogtreecommitdiff
path: root/docker/horizon/extend_start.sh
AgeCommit message (Collapse)AuthorFilesLines
2022-12-06Remove monasca, kafka, storm and zookeeper.Michal Nasiadka1-10/+0
Monasca, kafka, storm and zookeeper have been removed in kolla-ansible [1],[2]. [1]: https://review.opendev.org/c/openstack/kolla-ansible/+/861392 [2]: https://review.opendev.org/c/openstack/kolla-ansible/+/865029 Change-Id: I0958a9353bc4585c4f65a1d316328a0e80b0b8b7
2022-04-11horizon: binary images are goneMarcin Juszkiewicz1-5/+1
We no longer need to check for them so one MANAGE_PY is enough. Change-Id: Iee2f3bb1c0444f414cad2617dea225192ab8dc81
2022-04-09docker: drop binary partsMarcin Juszkiewicz1-22/+2
Big patch drops all mentions of binary images support. Suggestions are welcome how to split it into parts or handle better. Change-Id: I5d5a46c6ce7734ceb8b844e17b43e359d7cac6e3
2021-08-07[horizon] Copy Masakari policy in YAML formatRadosław Piliszek1-2/+2
Since commit 39f03063c0b0b22e608bbc606423e51be632be2a in masakari-dashboard (also in Depends-On), Masakari dashboard uses and distributes only the policy in YAML format. Depends-On: https://review.opendev.org/c/openstack/masakari-dashboard/+/798842 Change-Id: Id1aad2c8894331b9540bfc66177368536667f003
2021-06-17Merge "Horizon: Install required policy files for heat-dashboard"Zuul1-2/+5
2021-06-17Merge "Horizon: Install policy files for manila-ui"Zuul1-0/+7
2021-06-11horizon: Correct location of monitoring_policy fileScott Shambarger1-1/+1
Patch to correctly copy monitoring_policy.json into /etc/openstack-dashboard. Policy was misplaced, and not being enforced. Note that by current default policy, admin doesn't not have Monitoring access. Closes-Bug: #1928408 Change-Id: I4faabdfa9c273fc61b536e6ce88b8d71ab2fc581
2021-06-07Horizon: Install policy files for manila-uiTakashi Kajinami1-0/+7
Since the commit 89a90ff9773b93062760df5e3deefb9750112633 was merged, manila-ui provides two policy files. This change ensures that these files are installed when manila-ui is enabled. Change-Id: Id92145ba74237da2fd8430b9d84413465297d3a7
2021-06-05Horizon: Install required policy files for heat-dashboardTakashi Kajinami1-2/+5
Since the commit 8e7914fce24d2c9d94a83795983aaa0fb05f020c was merged, heat-dashboard no longer use policy.json but it use two yaml files to manage policy rules. This change updates managed files for heat-dashboard accordingly. Change-Id: I0cae18c1d5169cd444a14ba3b56de24dede5919c
2021-01-25Remove zaqar image and related pluginsChristian Berendt1-9/+0
Signed-off-by: Christian Berendt <berendt@betacloud-solutions.de> Change-Id: Id3187b2b95e9b9bd3d9233a498f7c45e66c604c7
2021-01-25Horizon: gentler `-o nounset` handlingRadosław Piliszek1-36/+31
When running with `-o nounset` since [1], the Horizon became quite fragile to run as it started requiring all ENABLE_* environment variables to be set upfront. Normally they are - via kolla-ansible. However, when working with it outside of kolla-ansible or removing services (like it was the case 3 times during the Wallaby cycle), it creates needless issues (like having to wait for images to get published for kolla-ansible gate or users bumping into irrelevant incompatibilities [2]). This patch makes sure all ENABLE_* environment variables default to 'no' and are no longer required to be set when there is no need to set them to 'yes'. [1] 032804e5a0ddf89f7726880d1b57dd492d7d5c07 [2] https://bugs.launchpad.net/kolla/+bug/1911141 Change-Id: I644e072a699dccd8f32a24e484ff6dab7b9b449d
2021-01-16Merge "horizon: set FORCE_GENERATE to no if not set"Zuul1-1/+1
2020-12-18Remove Retired Karbor SupportKendall Nelson1-9/+0
As announced on the openstack-discuss ML[1], Karbor is retiring this cycle (Wallaby). Needed-By: https://review.opendev.org/c/openstack/karbor/+/767032 [1] http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018643.html Change-Id: I0b8b1782874282636552f3ffe924a8d512d48959
2020-12-11Remove retired Searchlight support and imagesGhanshyam Mann1-17/+0
Searchlight project is retiring in Wallaby cycle[1]. This commit removes the images and support of Searchlight project before its code is removed. Needed-By: https://review.opendev.org/c/openstack/searchlight/+/764526 [1] http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018637.html Change-Id: Ibcae8d0af13fd1d242912b8703c1d1253e2a1326
2020-12-11Remove retired Qinling support and imagesGhanshyam Mann1-9/+0
Qinling project is retiring in Wallaby cycle[1]. This commit removes the usages of Qinling project before its code is removed. Needed-By: https://review.opendev.org/c/openstack/qinling/+/764521 [1] http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018638.html Change-Id: I5bb79f08b76830981be95df19f3a33f5fda6893d
2020-11-30horizon: set FORCE_GENERATE to no if not setChristian Berendt1-1/+1
Signed-off-by: Christian Berendt <berendt@betacloud-solutions.de> Change-Id: I303ee5367aba0ae114e52b7b559faf06133f2304
2020-10-05Be strict about errors in startRadosław Piliszek1-1/+8
Make start.sh run with pipefail and nounset to avoid common errors in the start scripts and detect them early. Httpd code had to be patched to allow it to pass on Debuntu. Also fix the two missed applications of httpd to make sure all its path are covered. And also fix Horizon's ENABLE_ZAQAR - K-A does not use Zaqar. Yet another - Horizon's settings_bundle. :-) Finally, fix Neutron for Debuntu (KOLLA_LEGACY_IPTABLES). Change-Id: I39b8d78f6758df1f92b8b0d2c06ea99b038b843b Depends-On: https://review.opendev.org/711923
2020-09-06Fix Masakari dashboard policy file locationMark Goddard1-1/+1
The horizon image copies the masakari dashboard's policy file to Python site packages, but it should go to /etc/openstack-dashboard. This allows the dashboard to be seen by non-admins, although it fails to load. We get an error like the following in horizon.log: No policy rules for service 'instance-ha' in /etc/openstack-dashboard/masakari_policy.json This change fixes the issue. Change-Id: I8ede183c76a830de06ce6524dc3f6f6944b182c1 Closes-Bug: #1894240
2020-06-30Merge "Remove deployment of FWaaS"Zuul1-9/+0
2020-06-19Remove the congress images since it has been retiredgugug1-9/+0
more info: https://review.opendev.org/#/c/721733/ Depends-On: I12d74b53b64268d0358220af35f7fd719d82b397 Depends-On: I21c9ab9820f78cf76adf11c5f0591c60f76372a8 Change-Id: I7bd03b4f70ddfb15c96ed68e659cb6dccb0c36a3 Co-Authored-By: jacky06 <zhang.min@99cloud.net>
2020-06-18Remove deployment of FWaaSAlfredo Moralejo1-9/+0
FWaaS is being retired upstream [1][2] in V cycle. [1] https://review.opendev.org/#/c/735838/ Change-Id: I45679c8596844780565644e52034bd3de0915ff4
2020-01-04Adds monasca-ui to horizonHamed Bahadorzadeh1-0/+10
'config_monasca_dashboard' method added and called so if 'ENABLE_MONASCA' is set this merhod will add monasca-ui to horizon. Change-Id: If46d0d629a678f9878f36f1cfbe31153ab5ebf9b Implements: blueprint monasca-ui Signed-off-by: Hamed Bahadorzadeh <h.bahadorzadeh@gmail.com>
2019-12-11Refactor Apache httpd setupMark Goddard1-15/+7
All Apache httpd setup has been moved to a new helper script, kolla_httpd_setup. This includes the existing clean of /run/httpd, /var/run/httpd, /tmp/httpd etc. Horizon has an additional bit of Apache config for Debian/binary, which has been kept in extend_start.sh for horizon. Change-Id: Ia2af74b69c151db0bd7e452460b0babcee50b282 Related: blueprint centos-rhel-8
2019-10-01Horizon: fix for DebianViktor Michalek1-5/+8
Stein/Buster packages are enabling plugins by default at its installation time, but we actually know what plugins should be enabled just only at the deploy time. Therefore we need to install all available plugins and disble them right at the image build time. Plugins will be enabled according to deployment (kolla-ansible) configuration at deploy time. Change-Id: I9604ebb4f2a5081fd1209b9841aa997a70a90a11
2019-07-11Add Masakari containersKien Nguyen1-0/+15
Masakari provides Instances High Availability Service for OpenStack clouds by automatically recovering failed Instances. Change-Id: I279d6b43f8e4d4e30b39deb607823ceca272a4b8 Implements: blueprint masakari-support
2019-06-15Merge "Remove Neutron LBaaS support"Zuul1-7/+0
2019-06-07Remove Neutron LBaaS supportCarlos Goncalves1-7/+0
The project has been retired and there will be no Train release [1]. This patch removes Neutron LBaaS support in Kolla. [1] https://review.opendev.org/#/c/658494/ Depends-On: https://review.opendev.org/#/c/663875/ Change-Id: I99484c48ed09f7e015e134bdff1f298c359c6905
2019-06-06Debian/Ubuntu: move to Python 3 for source imagesMarcin Juszkiewicz1-1/+5
Commit 43b74ccc157c0b50138c3785ed91dab504895571 enabled use of Python 3 based packages but not switched to use Python 3. Some of images still contain Python 2. There are two reasons: - Ceph (ceph-common depends on Py2) - python3-ldappool on Ubuntu 18.04 In Ceph situation Py3 packages were added. For second one we can not do anything - Py2 dependency got dropped in Ubuntu 18.10 version. Removed neutron-server-plugin-networking-infoblox due to being not maintained. Once https://review.opendev.org/#/c/657578/ get merged someone may revert that part. Implements: blueprint debian-ubuntu-python3 Depends-on: Ie2a1077f7def0743f1403341985e2109aa490026 Change-Id: Ibfe0c2b8be98db56c61f74fb0247488ab3749ef4
2019-05-28Merge "create missing apache2 directory on Debian/Ubuntu"Zuul1-0/+1
2019-05-23create missing apache2 directory on Debian/UbuntuMarcin Juszkiewicz1-0/+1
Ubuntu/source deployment of horizon and placement-api failed: + exec /usr/sbin/apache2 -DFOREGROUND apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot Once directory is in place it works fine. Change-Id: Icbd500e5b16deb0eafc0821a1c117794ddb8ae62
2019-05-20Add Qinling containersGaetan Trellu1-0/+9
Add Qinling Dockerfile , Qinling is an OpenStack project to provide "Function as a service". This project aims to provide a platform to support serverless functions. Change-Id: Idebf5c8756a0d0225adcce29b45a399120bb5eb6 Implements: blueprint qinling-support
2019-04-10Write 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
2019-04-10Fix 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
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