133 Commits

Author SHA1 Message Date
Dai Dang Van
6d49dbb48a Support policy.yaml file [part 8]
- Horizon

This will copy only yaml or json policy file if they exist.

Change-Id: Ib8875ca54dc9dc69abc8338413f7724d9d4ecc45
Implements: blueprint support-custom-policy-yaml
Co-authored-By: Duong Ha-Quang <duonghq@vn.fujitsu.com>
2018-01-22 01:57:14 +00:00
Duong Ha-Quang
2d3866c6a4 Specify 'become' for only necessary tasks (default roles)
Add become to only neccesary tasks in roles:
- glance
- heat
- horizon
- keystone
- neutron
- nova
- openvswitch

Gate is also updated to use 'become' feature

Change-Id: I2f3f27306e9f384148e1ad4d54d8da2ebef34d00
Partial-Implements: blueprint ansible-specific-task-become
2017-10-31 02:55:31 +00:00
Paul Bourke
e44a396f54 Perform bootstrap on Horizon upgrade
The value of horizon_backend_database defaults to the value of
'enable_murano'. If a user happens to have enabled/deployed Murano prior
to upgrading Horizon, Horizon will then get configured to use the
backend database, though the bootstrap will be missing and results in a
broken Horizon on upgrade.

Closes-Bug: #1714949
Change-Id: I37c99c93f2966915c38d4e1aeaa48152254d62ea
2017-09-04 12:54:23 +00: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
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
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
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
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
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
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
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
Vladislav Belogrudov
25fcdfb986 Use default user group consistently
Default user group should be set much earlier in deployment
and should be used consistently accross all projects.

Change-Id: Id399f9ddebc903bb9c3eeb5a0ff6f33ca6d6828c
Closes-Bug: #1650501
2016-12-19 11:43:23 +03:00
caoyuan
d173e60cb5 Remove the unnecessary space
TrivialFix

Change-Id: Ibe921e2568a33345960e6bccc76d9b72156845be
2016-12-19 11:34:37 +08:00
jianyi
e89de06614 Enable solum dashboard when enable_solum is yes
Change-Id: I4124a0dcbb1ba821899cca18b9e0cc8d0d37d007
Depends-On: I531ef11f11920bb9db4b0cba43038694998afcf3
Closes-Bug: #1648709
2016-12-19 01:43:50 +00:00
portdirect
94efc9ea39 Fix syntax error in horizon custom policies file
Fixes syntax error in Horizon custom policy implementation

Change-Id: Id2386968dbe8ec9cac9cd00f465a833f5db7f217
Closes-Bug: #1649480
2016-12-13 06:47:59 +00:00
Jenkins
199015ce5d Merge "Horizon custom policies" 2016-12-13 04:04:54 +00:00
Jenkins
dc6467d7f4 Merge "Revert "Enable designate dashboard when enable_designate is yes"" 2016-12-12 17:07:28 +00:00
Jenkins
6d7c24d4f7 Merge "Enable mistral dashboard when enable_mistral is yes" 2016-12-12 13:57:10 +00:00
caoyuan
b3ab37d0c8 Enable mistral dashboard when enable_mistral is yes
Depends-On: I37c73e6304ed005fe019dcdd105c1f333137fa60

Change-Id: I544810afaa5c740f67702ba34e146c19b480de8d
Closes-Bug: #1647267
2016-12-10 14:14:21 +00:00
caoyuan
f301bba26c Enable watcher dashboard when enable_watcher is yes
Depends-On: Ief5898f6bf1caa3a7fe6b2a96be2bdb79e402f28

Change-Id: I2ea4bd9308637056c6cb1b1d515efd1020a60d1b
Closes-Bug: #1647162
2016-12-10 14:13:48 +00:00
Paul Bourke
492116b654 Revert "Enable designate dashboard when enable_designate is yes"
The designate role has not merged yet so there is no 'enable_designate'
variable.

This reverts commit 316f3ea4a9c3798b6f52baba20040340a81c0529.

Change-Id: I287a5ac04db00a9c19224deb41983be584f4e35a
2016-12-08 16:50:44 +00:00
Jenkins
347a86dbaa Merge "Enable searchlight ui when searchlight enabled" 2016-12-08 09:00:08 +00:00
Jenkins
628418f3ea Merge "Enable designate dashboard when enable_designate is yes" 2016-12-07 12:35:06 +00:00
Eduardo Gonzalez
bba32efdae Horizon custom policies
Apply custom policies for different OpenStack services.

Change-Id: I26df2d0d7c52215ffbedbfa66acd352063e885ae
Partially-Implements: blueprint custom-policies
2016-12-06 17:41:52 +00:00
Jeffrey Zhang
ba173ceb10 Revert "Enable zaqar ui when zaqar enabled"
This reverts commit 9fc5157cc7172eea6cd875692a44e13cab1b8226.

zaqar role is not implemented and there is no enable_zaqar variable,
too.

Change-Id: If40fdf8d672ee5e0b375513364734f245fa1d682
2016-12-06 20:14:39 +08:00
liyingjun
ad3085bffd Enable searchlight ui when searchlight enabled
Depends-On: Ie65c374dd319e38fe50fc3dca15c64d07edc8e1a
Change-Id: I9867f1b96b732b473fe043ab57e3338582f7dd9a
Closes-bug: #1646690
2016-12-06 19:05:59 +08:00
jianyi
5cb2ec8ee9 Enable senlin dashboard when enable_senlin is yes
Depends-On: I27ac67f42ad04ac5cf6d18b6f56506949aa4887c
Change-Id: I42c8cc7a750d1fd0c4e6ca491ef13d14c968d67b
Closes-Bug: #1646023
2016-12-06 13:58:12 +08:00
caoyuan
9fc5157cc7 Enable zaqar ui when zaqar enabled
Depends-On:I430340b38ff7642f46d76ec621ae65dcae8157c3

Change-Id: If669601691d1505049ba4196bd3c5856091ed921
Closes-Bug: #1647164
2016-12-04 23:24:08 +08:00