128 Commits

Author SHA1 Message Date
Michal Nasiadka
141dbc8f14 Fixes horizon reconfigure for adding custom *_policy.json files
Change-Id: I2d9fca7d4272c69c75b106ac4cea244a371d3b5f
Closes-bug: #1707163
2017-07-28 13:09:19 +02:00
Jenkins
06046f3943 Merge "Unified Apache access log format" 2017-07-27 09:30:53 +00:00
Tatsuma Matsuki
db0f469614 Unified Apache access log format
Apache access log formats are modified to be consistent with
the format defined in wsgi-keystone.conf, which includes
the response time (%D) and X-forwarder-For fields.

Change-Id: I02aa5eb106fb894196dfb6e22daf2968e27ed3cb
Closes-Bug: #1703571
2017-07-26 04:11:54 +00:00
Pavel Glushchak
0f70b3883d Make cinder-backup service optional
Introduced new option enable_cinder_backup, that controls
whether to deploy cinder-backup service.

Change-Id: Ibb0ca0a478748d4caba4df434456ead0df95ffca
Signed-off-by: Pavel Glushchak <pglushchak@virtuozzo.com>
2017-07-25 11:04:39 +03:00
Jenkins
23ac09c955 Merge "Add dev mode for Horizon" 2017-07-23 02:53:19 +00:00
chenxing
b39da1e4c2 Update the documentation link for doc migration
Change-Id: I8c340cfe33789badb4f8df93f0c13f56fdea5dbf
2017-07-21 09:49:19 +00:00
Jenkins
0cd868243f Merge "Disable trace for all containers running httpd" 2017-07-19 08:09:06 +00:00
Jeffrey Zhang
f5dd178fc5 Disable trace for all containers running httpd
Trace method is enabled in default for httpd. There is security risk
with trace enabled. So disable it in default. more info please check[0].

[0] https://security.stackexchange.com/a/7711

Change-Id: I4496a6d058d88e1abfb210085f189e7a610e0362
Closes-Bug: #1705160
2017-07-19 10:52:41 +08:00
Jeffrey Zhang
cacf08f0a6 Remove all kolla-kubernetes configurations
kolla-kubernetes is using its own configuration generation[0], so it is
time for kolla-ansible to remove the related code to simplify the
logical.

[0] https://github.com/openstack/kolla-kubernetes/tree/master/ansible

Change-Id: I7bb0b7fe3b8eea906613e936d5e9d19f4f2e80bb
Implements: blueprint clean-k8s-config
2017-07-18 22:00:58 +08:00
Paul Bourke
4803b54bdf Add dev mode for Horizon
Includes murano-dashboard plugin

Change-Id: If99b0310dac75776ca462034926dd57794572ce9
2017-07-12 13:22:07 +00:00
Jenkins
0572a394be Merge "Avoid launching "local" actions too many times" 2017-07-10 13:40:49 +00:00
Jenkins
e7e3ad1623 Merge "Add designate dashboard to horizon" 2017-07-06 03:22:15 +00:00
Eduardo Gonzalez
9170cda73e Add designate dashboard to horizon
This change [0] reverted designate dashboard change because
designate was not finished, we forgot to enable again.

[0] https://review.openstack.org/#/c/408714/

Change-Id: Ibaf7e5a5dc8cbef619d86a0f2b240d384984e8bd
2017-07-05 16:03:38 +01:00
Jeffrey Zhang
6022b61146 Use proper variable in horizon copy policy task
* fix wrong variable usage for horizon copy policy task
* notify restart keystone container when policy is changed

Change-Id: I3545205d5d3cfcf7bf893187ca6e65bbc152bf33
Closes-Bug: #1702486
2017-07-05 22:07:26 +08:00
Bertrand Lallau
a9113fc466 Avoid launching "local" actions too many times
In order to speed up deployment time some "local" actions should be run
only once using 'run_once: True'.
This will decrease deployment time in case of multihost configuration.

Change-Id: I6015d772d35c15e96c52f577013b6e41197cb41a
2017-07-05 15:55:39 +02:00
Jenkins
8f3f675b84 Merge "Enable zun ui when zun enabled" 2017-07-04 15:00:30 +00:00
Jenkins
f2f3104e9f Merge "Fix the database user name for all roles" 2017-07-01 00:41:49 +00:00
caoyuan
870836bb19 Enable zun ui when zun enabled
Depends-On: Ie0e02253bd706cad6a568e1574aa4c4bd83744e5

Change-Id: I10e64ea5a104109a7ced3712b29b3b526c55f7f1
Closes-Bug: #1677922
2017-06-29 15:39:27 +08:00
Noboru Iwamatsu
60439d897d fix horizon contents path for ubuntu/binary
The static contents directory path of the openstack-dashboard
provided by Ubuntu Cloud Archive is different from RDO's.
This fixes the horizon.conf template to set the correct alias
when ubuntu+binary are specified.

Change-Id: I1b0c04cecc66b42bf764aa035e7ec24c37d805e3
Closes-Bug: #1700712
2017-06-28 00:30:08 +09:00
caoyuan
36c530f9ed Fix the database user name for all roles
when create database user, it should use
database_user, not database_name.

Change-Id: I4dfa01d1a5a46c5c58f1fc47b0be71b186462764
Closes-Bug: #1698762
2017-06-20 21:19:31 +08:00
James McCarthy
274291463e Change default permissions in jinja templates.
Many of the templates use 600, remove unnecessary permission
on these templates to bring them in line with the others.

Change-Id: I30fe1b3822b9c7bb6ab98729fc519dc1d603db27
2017-05-26 12:29:02 +01:00
Bertrand Lallau
afdd11b9a2 Generalize api_interface_address variable usage
Useful api_interface_address variable has been define here:
https://github.com/openstack/kolla-ansible/blob/master/ansible/group_vars/all.yml#L57
In order to simplify codebase we must use it as much as possible.

Change-Id: I18fec19bf69e05a22a4142a9cd1165eccd022455
2017-05-23 08:35:15 +00:00
Jeffrey Zhang
b1f015616c Add timeout parameter for precheck tasks
wait_for module waits 300 seconds for the port started or stopped.  This
is meaningless and useless in precheck. This patch change timeout to 1
seconds.

Change-Id: I9b251ec4ba17ce446655917e8ef5e152ef947298
Closes-Bug: #1688152
2017-05-04 09:02:25 +08:00
rcherrueau
dcdbe44190
Multi-regions Support
Add support for basic multiple regions, that is to say, many OpenStack
with a shared Keystone (same users) and Horizon. The shared Keystone
and Horizon are deployed into one region, for instance RegionOne.
Services of other regions have an access to this Keystone. This
support assumes that the operator knows the name of all OpenStack
regions in advance, and considers as many Kolla runs as there are
regions.

The new variable, multiple_regions_names, contains the name of
regions. It is needed by the region that includes Keystone and
Horizon. In register.yml, it specifies to create as many Keystone
endpoints as there are regiones, so that services of other regions can
connect to Keystone. In local_settings.j2, it changes the render to
support multiple regions in Horizon. The multi-regions.rst explains
how to perform a multiple regions deployment.

Implements: blueprint multi-kolla-config
Change-Id: Icab2aebfc4de0e3bc609950956e0af397705f403
2017-03-10 14:24:42 +01:00
Paul Bourke
5418ada148 Enable sanity checks from kolla-ansible
Add a new subcommand 'check' to kolla-ansible, used to run the
smoke/sanity checks.

Add stub files to all services that don't currently have checks.

Change-Id: I9f661c5fc51fd5b9b266f23f6c524884613dee48
Partially-implements: blueprint sanity-check-container
2017-03-09 10:37:06 +00:00
Jenkins
ddaa3f70cf Merge "Add missing dashboard policies" 2017-02-23 13:44:10 +00:00
Eduardo Gonzalez
b35901c1ff Add missing dashboard policies
New dashboard plugins are included in horizon,
new custom policies support need to be added for
those services.

Change conditional check to apply changes when
horizon plugin is enabled, not the service itself.

Closes-Bug: #1664505
Change-Id: I67fcb88fd432b4c7554ddf24e76b28c3aab7c01f
2017-02-22 11:49:46 +00:00
caoyuan
1c3c611f40 Add the missing condition for config.yml
- add "item.value.enabled | bool"
- add "| bool" to keystone
- add group check for searchlight

Change-Id: Id4555a0a96ea1670e99c88a1da9d3e07bf253497
2017-02-14 11:19:26 +08:00
Jeffrey Zhang
5872392b59 Fix horizon pull error
Change-Id: I046da36b6086698742a88068328554f0447c3bbd
2017-02-12 07:44:20 -07:00
caoyuan
fdecd21246 Optimize reconfigure action for horizon
Co-Authored-By: Jeffrey Zhang <jeffrey.zhang@99cloud.net>
Change-Id: Ieb44258cd99744a92ef1aa958e3bdccf9519f212
Partially-implements: blueprint better-reconfigure
2017-02-09 11:32:32 +08:00
caowei
d467161399 Load freezer dashboard
Change-Id: Ib7354920de24dbab9481553bad6521e2f5e93fae
Depends-On: I8a70c7e95cdd6517816060e148d3fdc4857182f4
Closes-Bug: #1661953
2017-02-05 21:24:34 +08:00
qiankun.zhang
138ff1656d Enable tacker_horizon when enable_tacker is yes
Depends-On: Ic63c88436b03c14ef767ee102625e697250c00e0
Change-Id: I0220cdb13686deda8b7a3a622530cd72fbe80dad
Closes-Bug: #1647894
2017-02-04 01:54:36 +00:00
Steven Dake
182b3a4180 Revert part of a murano patch which breaks horizon
See bug for more details.

Change-Id: Ieb80b8edb122bba7cde85cb4840730ebdb31f0a9
Closes-Bug: #1659725
2017-01-26 21:10:13 -07:00
Jenkins
7f3d7a30d9 Merge "Load murano dashboard dynamic" 2017-01-23 19:42:17 +00:00
caowei
27b1fde0de Load karbor dashboard
Depends-On: I12d9bc5263b5efbe2ef0277f152eb13e19bb5558
Change-Id: I5cfc0d4d9110b5b5081fa5d6ae14adfd627f5f59
Closes-Bug: #1658122
2017-01-22 16:40:51 +08:00
Jeffrey Zhang
f3ea03d88f Load murano dashboard dynamic
* Add ENABLE_MURANO environment in horizon
* Add murano related setting in local_settings.j2 file

Change-Id: I172b6d07536210623b2e2066ba4f1cc768479e33
Closes-Bug: #1640679
2017-01-21 09:33:51 +08:00
Jenkins
3f8cb8adda Merge "Refactor bootstrap.yml file" 2017-01-18 10:17:50 +00:00
Jeffrey Zhang
7233b45d29 Refactor bootstrap.yml file
Change-Id: I00d2dcb0895548ba169ab85764cf546c2214cbf5
2017-01-12 23:37:50 +08:00
Jenkins
cfac48e3ff Merge "Add enable_horizon_* parameter for dashboard" 2017-01-06 15:16:06 +00:00
Jenkins
6e4f6e9299 Merge "Use openstack_service_workers variable in horizon.conf.j2" 2017-01-06 14:35:17 +00:00
Jeffrey Zhang
2c241b9c15 Add enable_horizon_* parameter for dashboard
We can enable the service without enable the dashboard in this way.

Change-Id: I97b9281c7f6976b75b19c49222faee3ae2a0db66
2017-01-06 22:15:36 +08:00
Jenkins
25926c3f15 Merge "Enable solum dashboard when enable_solum is yes" 2017-01-06 12:02:02 +00:00
caowei
ae88c6fcdf Use openstack_service_workers variable in horizon.conf.j2
Change-Id: I69c94895e4a6f6173363ce818f69344c0fdb22a4
2017-01-05 14:06:16 +08:00
caoyuan
bd1b4e4eef Update the horizon port into all.yml
TrivialFix

Change-Id: Ib38161ecb82b480e4c901efb95efccff33e5a90e
2017-01-03 14:23:54 +08:00
Jenkins
fca27bf0bf Merge "Move horizon precheck into its own role" 2017-01-03 02:40:08 +00:00
Jenkins
70ccea2bbe Merge "Enable magnum dashboard when enable_magnum is yes" 2017-01-02 19:59:15 +00:00
caoyuan
779b0f8310 Move horizon precheck into its own role
Change-Id: I4e2f8e21bfd295d235d1264e427328e4baa85df3
Partially-implements: blueprint condition-pre-check
2017-01-02 22:41:38 +08:00
Kelvin Koh
59393098c4 Fix Horizon 404 on Ubuntu
Change-Id: I6d0d9f1a79f319d53f08ea9cb0bedbd670da55c2
Closes-Bug: #1653011
2016-12-30 10:17:14 -05:00
Jenkins
ff666950de Merge "Use default user group consistently" 2016-12-22 06:37:41 +00:00
Paul Bourke
0db481bfea Enable magnum dashboard when enable_magnum is yes
Change-Id: I820c61771f0ea8f12946f16908e4b8424ba53704
Depends-On: Iaf599ceea70879b8302ffcdf9615f18007e93134
2016-12-20 19:37:47 +08:00