b228cc0fc96e66fdb296fb2b732625ae31b08181
231 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
Jesse Pretorius
|
b228cc0fc9 |
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: Iebf19bc6527aea0ca0ba4796ee38d923ac64281a |
||
|
OpenStack Proposal Bot
|
30cb261cdb |
Updated from OpenStack Ansible Tests
Change-Id: I4e11c4b2f5bac0ccfa766e840fa8a989cee65c16 |
||
|
Zuul
|
d7b14d94d2 | Merge "fix tox python3 overrides" | ||
|
OpenStack Proposal Bot
|
d5223efa52 |
Updated from OpenStack Ansible Tests
Change-Id: I0173209bd9ee73fd0bf8b9ade00d6ddfb337c55b |
||
|
OpenStack Proposal Bot
|
172faa5a79 |
Updated from OpenStack Ansible Tests
Change-Id: I23a9dcd017b32551bee2f3f63efce7d916defe3b |
||
|
Zuul
|
37b8c8de16 | Merge "Completed required variables for README.rst" | ||
|
Doug Hellmann
|
a61d3435ca |
fix tox python3 overrides
We want to default to running all tox environments under python 3, so set the basepython value in each environment. We do not want to specify a minor version number, because we do not want to have to update the file every time we upgrade python. We do not want to set the override once in testenv, because that breaks the more specific versions used in default environments like py35 and py36. Change-Id: I1d625e5fc726fad1a752c44e2032b3bdbbf7bb05 Signed-off-by: Doug Hellmann <doug@doughellmann.com> |
||
|
Jesse Pretorius
|
11c0ef466d |
Remove galera_client meta-dependency
Given that pymysql is pure python and has no C binding dependencies, we no longer need the role to install the MariaDB client libraries. Change-Id: Icb4302793cb0a2a67eef21ab0822bfe4a81cbcab |
||
|
Zuul
|
9ef09507f1 | Merge "[Trivial Fix] Replace Chinese punctuation with English punctuation" | ||
|
Zuul
|
8f626b8cff | Merge "Correct typo in variable name" | ||
|
inspurericzhang
|
9632a38697 |
[Trivial Fix] Replace Chinese punctuation with English punctuation
Curly quotes(Chinese punctuation) usually input from Chinese input method. When read from english context, it makes some confusion. Change-Id: I15794e08ca4a7ea7e6216dffe2fa244ac364873a |
||
|
Jesse Pretorius
|
374b8c2bce |
Use a common python build/install role
In order to radically simplify how we prepare the service venvs, we use a common role to do the wheel builds and the venv preparation. This makes the process far simpler to understand, because the role does its own building and installing. It also reduces the code maintenance burden, because instead of duplicating the build processes in the repo_build role and the service role - we only have it all done in a single place. We also change the role venv tag var to use the integrated build's common venv tag so that we can remove the role's venv tag in group_vars in the integrated build. This reduces memory consumption and also reduces the duplication. This is by no means the final stop in the simplification process, but it is a step forward. The will be work to follow which: 1. Replaces 'developer mode' with an equivalent mechanism that uses the common role and is simpler to understand. We will also simplify the provisioning of pip install arguments when doing this. 2. Simplifies the installation of optional pip packages. Right now it's more complicated than it needs to be due to us needing to keep the py_pkgs plugin working in the integrated build. Depends-On: https://review.openstack.org/598957 Change-Id: Ife2f3e96f7a56279f68509259c099bfe20ff19d8 Implements: blueprint python-build-install-simplification Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk> |
||
|
huang.zhiping
|
5162e06ff3 |
switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation jobs to use the new PTI versions of the jobs as part of the python3-first goal. See the python3-first goal document for details: https://governance.openstack.org/tc/goals/stein/python3-first.html Change-Id: I801fd019f56e67dddb0a1619275fc1f0927ae77b Story: #2002586 Task: #24319 |
||
|
huang.zhiping
|
1363e0c9a7 |
import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving the zuul job settings out of project-config and into each project repository. Because there will be a separate patch on each branch, the branch specifiers for branch-specific jobs have been removed. Because this patch is generated by a script, there may be some cosmetic changes to the layout of the YAML file(s) as the contents are normalized. See the python3-first goal document for details: https://governance.openstack.org/tc/goals/stein/python3-first.html Change-Id: I77fadf17c4e08f837af3e375477a38bb0e4867f0 Story: #2002586 Task: #24319 |
||
|
Zuul
|
80e4c6f2d7 | Merge "Use the TESTING_BRANCH env var for constraints" | ||
|
OpenStack Proposal Bot
|
b9a9aea2e6 |
Updated from OpenStack Ansible Tests
Change-Id: I4f28e1832e16f23fb0f283e7bcd50e95d120ef6c |
||
|
Zuul
|
2d82c48d84 | Merge "Use include_tasks instead of include" | ||
|
ZhijunWei
|
708f780150 |
Completed required variables for README.rst
Required variable section should include external_lb_vip_address and internal_lb_vip_address[0], and add the value to keep consistence with the others[1] [0]: https://github.com/openstack/openstack-ansible-os_cloudkitty/blob/master/README.rst [1]: https://github.com/openstack/openstack-ansible-os_trove/blob/master/README.rst Change-Id: Ib11d7ea2bbf5e6450201a2c6bdc15fc96cd91eed |
||
|
Zuul
|
efa4714aeb | Merge "Trivial: Fix the pep8 warning" | ||
|
Jesse Pretorius
|
d12e71498b |
Use the TESTING_BRANCH env var for constraints
The TESTING_BRANCH environment variable is provided by the run_tests.sh script and is derived from the .gitreview file. This ensures that once the master branch becomes a stable branch, the constraints from the stable branch in the integrated repository will automatically get used once the .gitreview file is updated. To ensure that the required environment variables are present we export them appropriately in run_tests.sh and modify the tox configuration to pass them into the tox test. Change-Id: I21e185ac2127146b33cbd4e67b15134eaa6bf69f Needed-By: https://review.openstack.org/579371 |
||
|
OpenStack Proposal Bot
|
3a426ceb8b |
Updated from OpenStack Ansible Tests
Change-Id: If2f0c08eaa97c4efd19b67ea79ef4eb8b424857c |
||
|
caoyuan
|
15c0163b1e |
Use include_tasks instead of include
include is marked as deprecated since ansible 2.4[0] Switch to include_tasks or import_playbook as necessary [0] https://docs.ansible.com/ansible/2.4/include_module.html#deprecated Change-Id: I0297ca2a66b3344cfc20a1adf81b71339174a205 |
||
| 9c324c3da8 |
Update reno for stable/rocky
Change-Id: Iafa86669b41be5641a9c5eb45a1e321beb928e0b |
|||
|
Jesse Pretorius
|
00097c026b |
Allow tags to be used for MQ tasks
The use of 'include_tasks' and a loop of variables creates a situation where a user is unable to use tags to scope the inclusion of only the MQ tasks when running the playbooks. The use-case this is important for is when the rabbitmq containers are destroyed and rebuilt in order to resolve an issue with them, and the user wishes to quickly recreate all the vhosts/users. Ansible's 'include_tasks' is a dynamic inclusion, and dynamic inclusions are not included when using tags. The nice thing about dynamic inclusions is that they completely skip all tasks when the condition does not apply, cutting down deploy time. However, given the use-case, we should rather take on the extra deployment time. This patch changes the dynamic inclusion to a static one, adds a 'common-mq' tag to cover all MQ implementations, and re-implements the 'common-rabbitmq' tag for the tasks that relate to RabbitMQ specifically. It also implements conditionals for each task set so that the rpc/notify tasks can be skipped if a vhost/user is not required for that purpose (eg: swift does not use RPC, and most roles will not use notifications by default). Depends-On: https://review.openstack.org/588191 Change-Id: Ied4df931d0464173649c39ac82253c541b195cb1 |
||
|
wangqi
|
7f96645298 |
Trivial: Fix the pep8 warning
The yaml should start with "---" Change-Id: Iaf43682075718e85c1e22f8d4ac28fd65dea0d17 |
||
|
Kevin Carter
|
b78966cd09 |
Convert role to use a common systemd service role
This removes the systemd service templates and tasks from this role and leverages a common systemd service role instead. This change removes a lot of code duplication across all roles all without sacrificing features or functionality. The intention of this change is to ensure uniformity and reduce the maintenance burden on the community when sweeping changes are needed. The systemd journal would normally be populated with the standard out of a service however with the use of uwsgi this is not actually happening resulting in us only capturing the logs from the uwsgi process instead of the service itself. This change implements journal logging in the service config, which is part of OSLO logging. OSLO logging docs found here: <https://docs.openstack.org/oslo.log/3.28.1/journal.html> Change-Id: Ieff0119cb09e8971fab5b0393f023010a554edff Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> |
||
|
Jesse Pretorius
|
1ab9470007 |
Cleanup playbook, vars and overrides
1. The venv tag override is unnecessary, given there is a default. 2. The install branch override is unnecessary, given there is a default. The constraint in defaults was set to use the 'cloudkitty_requirements_git_install_branch' instead of this variable anyway. This has been corrected to the right var. 3. The galera address for role tests has a specific var for it. 4. The 'cloudkitty_requirements_git_install_branch' is a relic of the past, and has been removed. 5. The playbook is very dated and is using a lot of old mechanisms and unnecessary vars. It is updated to be normalised with the playbooks from the integrated build. Change-Id: I6a8e8b3ec8b00790416648beb1c4ce0257406409 |
||
|
Jesse Pretorius
|
19f299854e |
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: - cloudkitty_oslomsg_rpc_setup_host - cloudkitty_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: Iac217b80df3da79a944185a90ba4c1ff5409945b |
||
|
Andy Smith
|
cfddca21eb |
Update to use oslo.messaging service 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 in conf * Add oslo.messaging to tests inventory and update tests * Install extra packages for optional drivers * Add release note Change-Id: I0612252927f81b3584054f6cd77a2826c5d3fc3b |
||
|
bhujay
|
eee07a2ddb |
Correct typo in variable name
Change-Id: Ie7ea4baa6cc4032ec4986f8c3ffc07dd6db6ce61 |
||
|
Jean-Philippe Evrard
|
cad8710a8d |
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: I77c037ec01e192ec0723050c05e296d4ccbfb79e |
||
|
zhulingjie
|
44037f0c1b |
Remove the unnecessary space
Change-Id: I5dd365ec21959c60df5f83ad98705f94633e3d8e |
||
|
Zuul
|
4c840ae84c | Merge "Update the default collector" | ||
|
Jesse Pretorius
|
ddb31b12a8 |
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 Change-Id: Ib46638d1cb35e677ecfe789a32bb69a024042d6f |
||
|
Zuul
|
94debf0b96 | Merge "Update server to service" | ||
|
Heba Naser
|
eb17d26ebf |
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: Ib9a986352cf525d7d78ff3cfe1c63d74e30bff8d |
||
|
Zuul
|
71df8fbd44 | Merge "Move database creation into role" | ||
|
LeopardMa
|
982f2dad83 |
Add source code repository notes link to README
Change-Id: I735c45cc492a56b42b2a16bbf41cb4cc85d04d28 |
||
|
ZhijunWei
|
2b1a230452 |
Update server to service
Change-Id: Ie051d256da7d1776fa045412ba5e64ee9591686e |
||
|
Heba Naser
|
681d0961a4 |
Switch to using project-templates
In order to have more centralized configuration, switch the role to use the project-template instead. Depends-On: I3df2c670beeb78baaa1515bcd27e8f2b0d95b3a9 Change-Id: I4a18fc449bad3395547baa0f4ba1e4f95e8900e0 |
||
|
Mohammed Naser
|
55691f7ddc |
Add openSUSE support
Change-Id: I4bd223a3f5fbd36839e8b79103994ba4a7122fd8 |
||
|
Zuul
|
e3b387c9a1 | Merge "Add packages required for osprofiler" | ||
|
Zuul
|
1137f349f4 | Merge "Use coordination to prevent duplicate pricing" | ||
|
melissaml
|
c8f815e9d8 |
Update README.rst information
1) Add documentation url link. 2) Add release notes url link. 3) Add the project home url link. Change-Id: I9d47b013fbcea1fa765754b19999babf38dc4a3e |
||
|
Christian Zunker
|
81991f8621 |
Use coordination to prevent duplicate pricing
Use MySQL as coordination backend for cloudkitty-processors. Otherwise prices may get calculated multiple times. Change-Id: I661ca3b7ffb4f64242422297bafc938ca5082a12 Closes-Bug: 1777432 |
||
|
Jesse Pretorius
|
3fec5b02ec |
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 'cloudkitty_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 cloudkitty_galera_address which has been used for a long time, but never documented. Change-Id: I7bb3f38556558ef14723361d3672a1d06f839b52 |
||
|
Kevin Carter
|
610153f5af |
Add packages required for osprofiler
The following packages are required in-order to run osprofiler. these packages will provide deployers the ability to profile a service on demand should they choose to enable the profile functionality. Change-Id: Ib058bc3dc6e97871f9c3a177c7f7dec48709ec3f Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> |
||
|
OpenStack Proposal Bot
|
b5dd4cdd8f |
Updated from OpenStack Ansible Tests
Change-Id: If2f0eef5da0a2347b575ec59d1f8efcf85c9ebc9 |
||
|
OpenStack Proposal Bot
|
1a8dadbfdd |
Updated from OpenStack Ansible Tests
Change-Id: Ia168ab1ab8a5f868c3686b4f68b5c25bcb659c90 |
||
|
chenxing
|
af1a740da5 |
Update the default collector
As the ceilometer collector has been removed from cloudkitty repo[1], we should stop to use it. [1]https://review.openstack.org/#/c/548630/ Change-Id: I9c244e6a763c2fd82a1f32915e033c4c1b0df280 |