440 Commits

Author SHA1 Message Date
Zuul
fc5f85676b Merge "fix execution of horizon_translations_update.yml" 2018-08-03 16:53:39 +00:00
Frank Kloeker
b3a2d1c618 fix execution of horizon_translations_update.yml
Just realized, that 'static: no' ignores the include of the
translation update playbook. Without that and the explicit
tag brings the function back in service.

Change-Id: If45599b25c2be682662150b7d3a4b05e852e436d
2018-07-31 11:30:04 +02:00
Dirk Mueller
4530c4d903 Reenable designate dashboard for openSUSE
The packaging error that prevented this from being used
should be fixed meanwhile

Change-Id: I59934be8ec4cc6d60e55a326270d9e71296e5409
2018-07-25 16:35:30 +02:00
Zuul
9aadbba2f0 Merge "Add support for using distribution packages for OpenStack services" 2018-07-25 12:47:47 +00:00
Zuul
73b74637f5 Merge "tasks: horizon_post_install: Add 'force' parameter when creating symlink" 2018-07-25 11:04:23 +00:00
Zuul
cacc869e43 Merge "tasks: horizon_post_install: Add missing become statements for horizon user" 2018-07-25 09:35:41 +00:00
Zuul
0512b32e9d Merge "tasks: horizon_post_install: Ensure horizon dashboard directory is accessible" 2018-07-25 09:33:19 +00:00
Zuul
a4a642be08 Merge "Change default horizon_server_name to ansible_fqdn" 2018-07-25 08:18:06 +00:00
Markos Chandras
2af1b7a6c4 Add support for using distribution packages for OpenStack services
Distributions provide packages for the OpenStack services so we add
support for using these instead of the pip ones.

Implements: blueprint openstack-distribution-packages
Change-Id: Ie6eeff541a319967715e619dcdc26177aec5be72
2018-07-23 17:29:14 +01:00
Zuul
51979f4951 Merge "Add support for the default_dns_nameservers variable" 2018-07-21 13:24:32 +00:00
Adrien Cunin
2eec94604c New horizon_enable_router variable
Set to False if you don't want router support in Horizon or if you don't
have Neutron L3 agent deployed.

Change-Id: I72eaa7829372b91c286efa06263e3f78b86ef35c
2018-07-20 15:41:33 +02:00
Markos Chandras
a37d0af9ca tasks: horizon_post_install: Add 'force' parameter when creating symlink
A local_settings.py may already exist as a regular file so in that case
we need to use the 'force' parameter to force the symlink creation.

Change-Id: I05eb9026707639aa12ea1c3ae93b872191528069
2018-07-20 12:09:41 +01:00
Markos Chandras
8d5aec9df4 tasks: horizon_post_install: Add missing become statements for horizon user
The operation needs to be performed as the horizon user since our user
may or may not have access to the horizon directory.

Change-Id: I2fb11b6874256ef3ee26e1e255cb25c3087fbc07
2018-07-19 16:41:24 +01:00
Markos Chandras
33e7a677c1 tasks: horizon_post_install: Ensure horizon dashboard directory is accessible
During the DB migration step, the horizon user needs full access to the
directory so we need to ensure that all the permissions are set
correctly before we reach that point.

Change-Id: I52933cf52b33bf81a2cee2f18665a1760760b08f
2018-07-19 16:41:24 +01:00
Jean-Philippe Evrard
8b0a89d02a Fix usage of "|" for tests
With the more recent versions of ansible, we should now use
"is" instead of the "|" sign for the tests.

This should fix it.

Change-Id: Id1763360f4d9c270c1d0b98d6ee4bb05920e6e74
2018-07-12 16:55:18 +02:00
Zuul
93091a1196 Merge "Update the project home to https" 2018-07-11 20:03:53 +00:00
Zuul
9aa822757d Merge "Trivial: Fix the pep8 warning" 2018-07-11 20:03:53 +00:00
Zuul
36b2f3ce78 Merge "Add source code repository notes link to README" 2018-07-11 19:31:46 +00:00
jacky06
bade570b4b Update the project home to https
Change-Id: I3432ae45b76f3ceec557e1878627fde13b022efa
2018-07-05 21:37:21 -04:00
Jesse Pretorius
4ac6093e36 Execute service setup against a delegated host using Ansible built-in modules
In order to reduce the packages required to pip install on to the hosts,
we allow the service setup to be delegated to a specific host, defaulting
to the deploy host. We also switch as many tasks as possible to using the
built-in Ansible modules which make use of the shade library.

The 'virtualenv' package is now installed appropriately by the openstack_hosts
role, so there's no need to install it any more. The 'httplib2' package is a
legacy Ansible requirement for the get_url/get_uri module which is no longer
needed. The keystone client library is not required any more now that we're
using the upstream modules. As there are no required packages left, the task
to install them is also removed.

With the dependent patches, the openstack_openrc role is now executed once
on the designated host, so it is no longer required as a meta-dependency for
the role.

Depends-On: https://review.openstack.org/579233
Depends-On: https://review.openstack.org/579959
Depends-On: https://review.openstack.org/580156
Change-Id: Ic3c0bb31c12a83fe8fe475091e97e5d5537fab6f
2018-07-05 19:41:30 +00:00
Robert Donovan
b88e5f6015 Add support for the default_dns_nameservers variable
This variable was introduced in Newton and allows you to specify a
list of default DNS servers populated when creating a tenant subnet.

Change-Id: I7c6767bb883296c55b7a7302d7af8a8721fd2844
2018-07-05 10:45:54 +01:00
LeopardMa
3a935b7a40 Add source code repository notes link to README
Change-Id: Id9740e58440428206dfabacdd186411c131dca9f
2018-07-04 20:34:51 -04:00
Heba Naser
416c23dd09 Use tests repo for common role test requirements
Using tox for requirements management requires in-repo
requirements files for all our repositories. Rather than
do that, we make use of the tests repo to capture our
common requirements and use this to install them.

This reduces our review requirement rate and simplifies
maintenance for us for the tox config. It also makes it
usable with 'Depends-On', which is marvellous!

The tox requirements definitions for docs/releasenotes
builds are left in-place as those are standard entries
across the community. If that changes at some point, we
can re-assess those entries too.

Depends-On: https://review.openstack.org/579208
Change-Id: Ic21746968da2f0a091ed2d343561a4e98b8499c0
2018-07-02 10:53:40 -04:00
Zuul
08b864ab6b Merge "Switch to using project-templates" 2018-06-29 18:53:12 +00:00
Zuul
f665c0ffad Merge "Add openstack_auth to translations update" 2018-06-27 15:13:18 +00:00
Stuart Grace
252ac6af5c Change default horizon_server_name to ansible_fqdn
horizon_server_name setting in apache config file must be a FQDN
otherwise when debug mode is enabled, HTTP requests without a
host: header (such as haproxy health checks) fail with a message
about invaid domain name.

Change-Id: I8672593019e4cc5cf6144c40359ecb9d64bc9224
Closes-Bug: #1778085
2018-06-27 11:11:20 +01:00
Zuul
a7a5462a21 Merge "Replace port 35357 with 5000" 2018-06-27 01:21:46 +00:00
Zuul
dcbbb76bef Merge "Add required packages to build mysql-python" 2018-06-25 15:54:11 +00:00
Andy McCrae
6f6af10880 Add required packages to build mysql-python
The horizon deploys are failing due to missing packages required to
install the mysql-python pip package. This PR adds those in.

Depends-On: I3df2c670beeb78baaa1515bcd27e8f2b0d95b3a9
Change-Id: I20abe34118014f9bca03daadf5d1f14b7f9fd0ff
2018-06-24 17:16:52 +00:00
ZhijunWei
ef28dc441f Replace port 35357 with 5000
Now that the v2.0 API has been removed, we don't have a reason to
include deployment instructions for two separate applications on
different ports.

Depends-On: I3df2c670beeb78baaa1515bcd27e8f2b0d95b3a9
Change-Id: I495f7649ee0200ac5e62dd4d62840a74fe1a8ef8
2018-06-24 17:15:23 +00:00
Heba Naser
7cb16be7a0 Switch to using project-templates
In order to have more centralized configuration, switch the role
to use the project-template instead.

Change-Id: Id2d97bfbeb39c3ee58a8ea726cb30fdf9cc5026e
2018-06-22 14:55:39 -04:00
Andy McCrae
646b98f07e Add openstack_auth to translations update
This PR adds the openstack_auth directory to the list of directories
that are being updated when we run a translations update.

Change-Id: I332af52b0aea589d966d0d12b9eea6431828d02e
Depends-On: https://review.openstack.org/576891
Closes-Bug: #1776944
2018-06-20 16:23:14 +01:00
fpxie
69799c1ba0 Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: I03b578ad2704edfb527b86c9dde8afc33e92e042
2018-06-20 16:03:09 +08:00
zhulingjie
cdcb4c7847 Add release note link in README
Change-Id: I1bd4ef348a1e38cb3930c3fae1d64783ab6b6242
2018-06-12 11:46:30 -04:00
OpenStack Proposal Bot
5a163fc36e Updated from OpenStack Ansible Tests
Change-Id: I6e2d5b19f0d0b7ea8413bec1ad6e8ccf69456e4a
2018-06-06 00:41:42 +00:00
Zuul
6794d4c913 Merge "Move database creation into role" 2018-06-04 15:34:15 +00:00
OpenStack Proposal Bot
16ddeb552c Updated from OpenStack Ansible Tests
Change-Id: Idfd769255f8d20b6d15f56d49054e26edbad2699
2018-06-01 22:06:09 +00:00
Jesse Pretorius
36ec620afd Move database creation into role
There is no record for why we implement the database creation outside
of the role in the playbook, when we could do it inside the role.

Implementing it inside the role allows us to reduce the quantity of
group_vars duplicated from the role, and allows us to better document
the required variables in the role. The delegation can still be done
as it is done in the playbook too.

In this patch we implement a new variable called 'horizon_db_setup_host'
which is used in the role to allow delegation of the database setup
task to any host, but defaults to the first member of the galera_all
host group. We also document the variable horizon_galera_address which
has been used for a long time, but never documented.

Change-Id: I7946c325d87c74e2bd9b1dcc1f92ea09a5386729
2018-06-01 15:53:58 +01:00
OpenStack Proposal Bot
316b859368 Updated from OpenStack Ansible Tests
Change-Id: I2a0e0bb9a711d0e5dbf93018c46ef790b88d1e2c
2018-05-09 19:41:10 +00:00
OpenStack Proposal Bot
f19888c6ed Updated from OpenStack Ansible Tests
Change-Id: I03956009308002b33f83fe285ed84e6c85f9f3fa
2018-04-30 05:14:32 +00:00
Jonathan Rosser
b6ea51848d Correct the fwaas horizon panel filenames
upstream neutron-fwaas-dashboard has added/renamed files, update
osa horizon role to account for this

Change-Id: Iee185167fefdcb4c85006df07992ccbd1c501420
2018-04-23 10:00:34 +01:00
Zuul
87d900ea7e Merge "Only replace python when re-initializing the venv" 2018-04-20 20:34:33 +00:00
Frank Kloeker
c3a1fe8954 Rename pull_catalog args from version to branch
This is required after duplicate argument settings, fixed in
https://review.openstack.org/#/c/559071/

The branch must be overridable per item, and should default
to the master branch, and be the same for all the items
by default.

Change-Id: I656c8793714b5dc764d7aa0cef28e5eca65d927a
Co-Authored-By: Jean-Philippe Evrard <jean-philippe@evrard.me>
2018-04-19 13:27:23 +00:00
Jean-Philippe Evrard
98c973739d Do not log passwords
This prevents data to be leaked into the callback plugin.

Change-Id: Ib5505342858a3fa162afa5a13fd4b429be7f21f0
2018-04-19 15:26:12 +02:00
Jesse Pretorius
1085b03ec5 Only replace python when re-initializing the venv
We reinitialize the venv to ensure that the right version of
python is in the venv, but we do not want virtualenv to also
replace pip, setuptools and wheel so we tell it not to. If we
don't do this then virtualenv will install the latest available
version, which is not what we want.

Change-Id: Ic69473a9723df59d0a3a93fb3a8209d59fe1c6b6
Partial-Bug: #1764470
2018-04-18 10:42:39 +01:00
Jesse Pretorius
f20af16e4a Remove tests-repo-clone.sh
Now that run_tests.sh handles the tests repo clone, we can
remove the use of the older tests-repo-clone.sh script.

Change-Id: I14d165dd9cb14eddd79e3a09715bcc8b8a41fa2e
2018-03-28 10:14:17 +01:00
OpenStack Proposal Bot
4cf1067cf1 Updated from OpenStack Ansible Tests
Change-Id: I2b064582b9bdde211b3aebd9a8ae78212c48f32a
2018-03-27 15:52:26 +00:00
Zuul
6434040f07 Merge "ansible-role-requirements: Use systemd_service role from openstack namespace" 2018-03-25 17:44:11 +00:00
Jesse Pretorius
2c8d9052ad ansible-role-requirements: Use systemd_service role from openstack namespace
In order to ensure that the updated role is used for tests,
we adjust the a-r-r file to pull from the correct repo.

Change-Id: I36d113ed00c9b270915707499c64c22eb25beb03
2018-03-25 16:20:04 +01:00
Jesse Pretorius
da3e2b8007 ansible-role-requirements: Add common python_venv_build role
In order to allow tests to work as the use of the common
role is implemented in the various roles, we pre-implement
the addition of the role into the a-r-r file.

Change-Id: Ia18ed3c3440b4de04e3e034303e1fc84ceede442
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-24 23:20:09 +00:00