Commit Graph

24 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 3b8e5a18d8 Cleanup after repo_build and pip_install retirement
Change-Id: Ieea08d0aa195a3b5184335ef6051aa8f487a7c66
2020-05-12 23:27:56 +03:00
Dmitriy Rabotyagov f006a0c00a Replace git.openstack.org with opendev.org
This patch replaces git.openstack.org with opendev.org as redirection
from old path was enabled.
Also we change upper constraints url due to [1]

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Depends-On: https://review.opendev.org/693841/
Change-Id: I0675fb5e77171a1456c08ef4d6bfe0b0d949bbf6
2019-11-14 19:09:18 +02:00
Dmitriy Rabotyagov 7cb2d444c0 Add uwsgi role into local a-r-r and test placement
Change-Id: I2efc775d7e38019eb39ca85b6135b8506fc76c52
2019-11-07 16:57:10 +02:00
melissaml 5123fcda0f Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ib975a6d7e81bad87bc7025b0e682081ceeff8da1
2019-05-06 19:30:47 +08:00
Zuul b8c284631d Merge "Replace openstack.org git:// URLs with https://" 2019-03-29 20:09:33 +00:00
Dmitriy Rabotjagov 0684afa2c5 Update role for new source build process
The variables zun_developer_mode and zun_venv_download
no longer carry any meaning. This review changes zun to
do the equivalent of what developer_mode was all the time,
meaning that it always builds the venv and never requires
the repo server, but it will use a repo server when available.

As part of this, we move the installation out of its own file
because it's now a single task to include the venv build role.
This is just to make it easier to follow the code.

We also change include_tasks to import_tasks and include_role
to import_role so that the tags in the python_venv_build role
will work.

As part of commit xenial testing was removed. Instead centos 7
and opensuse 15 functional tests were added.

Change-Id: Ic8fc09372cf7397df6757c115b2c05dbb5db68f1
2019-03-29 12:43:52 +02:00
Ian Wienand dddb4c5187 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I471dec6d7efcb3dbcbc2e9e3140ee569b8ba7ef8
2019-03-24 20:35:03 +00:00
Jesse Pretorius 7175ef6ae6 Improve docker API version retrieval
The current method does not work due to CLI output formatting
changes. We improve it to render the client output using toml,
which should be more future proof.

This change also disables pinging of the neutron router during
tempest tests, a combined patch is required to pass tests.

Change-Id: I7f611ffd095ca690baba3a987d8eb0b8407fade1
2019-02-23 17:26:47 +00:00
Jesse Pretorius c5c1bbb4cb Set container_name as host_var in test inventory
The connection plugin no longer falls back on using the
inventory_hostname as the container_name. Set container_name as a host
var for each container in the test inventory.

Change-Id: I4e76e65b8e2b4b0968f8e5af89e08da4dd69eb9b
2018-10-22 12:59:19 +01:00
Zuul 8db461a146 Merge "Trivial: Fix the pep8 warning" 2018-09-19 21:24:50 +00:00
wangqi 546afc0d96 Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: I177bb83859298d081ef9e099915b667931c726c5
2018-08-06 08:00:10 +00:00
Jesse Pretorius d4edcbde6d Move MQ vhost/user creation into role
There is no record for why we implement the MQ vhost/user 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 two new variables:
- zun_oslomsg_rpc_setup_host
- zun_oslomsg_notify_setup_host

These are used in the role to allow delegation of the MQ vhost/user
setup for each type to any host, but they default to using the first
member of the applicable oslomsg host group.

We also adjust some of the defaults to automatically inherit existing
vars set in group_vars form the integrated build so that we do not
need to do the wiring in the integrated build's group vars. We still
default them in the role too for independent role usage.

Finally, we remove the test mq setup tasks and clean up any unused
or unnecessary variables configured in tests.

Change-Id: I639a3fa3e138b1ae190325b9794969820267ec23
2018-07-27 12:42:19 +01:00
Zuul 0ab30453ae Merge "tests: Ensure clouds.yaml is present, and use it" 2018-07-27 10:19:14 +00:00
Jesse Pretorius adad0bc0b3 tests: Ensure clouds.yaml is present, and use it
Instead of sourcing openrc (which is so 1995), we
use clouds.yaml instead. Also, to make sure it is
there we run the role that puts it there.

Change-Id: I15769746ffbcfdc990e39dee4fb1545b564bb442
2018-07-27 07:47:05 +00:00
Zuul 24f401ea2c Merge "Include common test vars" 2018-07-26 18:38:46 +00:00
Zuul abf0deb02a Merge "Switch compute to use different inventory_hostname" 2018-07-26 18:17:27 +00:00
Jesse Pretorius f7034f4790 Include common test vars
To help the tests pass, we include the common test vars
so that the defaults galera_root_password if provided.

Change-Id: I8466bcce43d447d9b9e0ff9fcbd23c426fd8f335
2018-07-26 11:40:32 +01:00
Andy Smith 4df8a013fe Update to use oslo.messaging service for RPC and Notify
This introduces oslo.messaging variables that define the RPC and
Notify transports for the OpenStack services. These parameters replace
the rabbitmq values and are used to generate the messaging
transport_url for the service.

This patch:
* Add oslo.messaging variables for RPC and Notify to defaults
* Update transport_url generation
* Add oslo.messaging to tests inventory and update tests
* Install extra packages for optional drivers

Change-Id: I0b2138ca9eb49387948f2ca87800cf966a9414a8
2018-07-26 09:31:02 +00:00
Jesse Pretorius 0b9e6b4a1a Switch compute to use different inventory_hostname
Our role tests execute as non-root users, and the roles
need to access the environment variables for that non-root
user. Ansible, when targeting localhost, changes to
'connection: local' and thus breaks everything we need
to do against localhost as root unless we use 'become: true',
but we if generally use that against remote hosts we lose
the environment variables for the non-root user.

As such, we switch the inventory to target 'compute1' instead,
which has the address '10.1.1.1' (br-mgmt), so that we do not
have to deal with the implict connection type changes implemented
by Ansible.

Change-Id: I4f582ec3edd6ccff9573d4fb5e40e6274ea38847
2018-07-26 10:25:36 +01:00
Jesse Pretorius 9451adb165 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 openstack_openrc role is now executed once on the designated host, so
it is no longer necessary to execute it using include_role here.

The zun_requires_pip_packages variable is not used and is therefore removed.

Depends-On: https://review.openstack.org/579233
Depends-On: https://review.openstack.org/579959
Change-Id: I7108b43109136aac46bc87a0c59827a202f87be8
2018-07-06 13:50:16 +00:00
Zuul 7871710edf Merge "Move database creation into role" 2018-07-02 09:26:25 +00:00
Jean-Philippe Evrard 6ce64bb2eb Add zuul jobs
Add functional and linting tests for the new project.

Change-Id: Iae103901131aef872ba7daae078813ae81b1d0d2
2018-06-28 17:03:22 +00:00
Jesse Pretorius 110c2038ed 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 'zun_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 'zun_galera_address' which
has been used for a long time, but never documented. A bunch of unused
variables have also been removed.

Change-Id: Ic1e3c870a220f67cc5220a1dbc644d8bf47b0f16
2018-06-28 17:11:29 +01:00
Kevin Carter daf9f9d60a
first commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-06-05 15:36:33 -05:00