12de509741a4b93193175d5db0bca595aaad6de2
17 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
Dmitriy Rabotyagov
|
11ff642fe6 |
Auto-fix usage of modules via FQCN
Since ansible-core 2.10 it is recommended to use modules via FQCN In order to align with recommendation, we perform migration by applying suggestions made by `ansible-lint --fix=fqcn` Change-Id: I335f0f1bcdb5e5564ce3f82f44eec7d8c6ab4e0e |
||
|
Dmitriy Rabotyagov
|
aa1503d8ce |
Auto-fix yaml rules
In order to reduce divergance with ansible-lint rules, we apply auto-fixing of violations. In current patch we replace all kind of truthy variables with `true` or `false` values to align with recommendations along with alignment of used quotes. Change-Id: Ie1737a7f88d783e39492c704bb6805c89a199553 |
||
|
Dmitriy Rabotyagov
|
9b9bc21121 |
Fix linters and metadata
With update of ansible-lint to version >=6.0.0 a lot of new linters were added, that enabled by default. In order to comply with linter rules we're applying changes to the role. With that we also update metdata to reflect current state. Depends-On: https://review.opendev.org/c/openstack/ansible-role-systemd_service/+/888223 Change-Id: I730ae569f199fc8542a5a61beb149f459465d7e2 |
||
|
Dmitriy Rabotyagov
|
604085ffe6 |
Remove mention of haproxy-endpoints role
Keystone role was never migrated to usage of haproxy-endpoints role and included task was used instead the whole time. With that to reduce complexity and to have unified approach, all mention of the role and handler are removed from the code. Change-Id: I3693ee3a9a756161324e3a79464f9650fb7a9f1a |
||
|
Dmitriy Rabotyagov
|
101f5d5b17 |
Install spice-html5 from source for RedHat
CentOS used to have spice-html5 package in epel, but it's not the case for CentOS 8 or Stream. Thus, we need to install SPICE from git repo even for distro installs. Change-Id: If435ba24dbdf12450cead70e0e1eaecc50f46470 Closes-Bug: #1923183 |
||
|
Dmitriy Rabotyagov
|
d354e1d1b7 |
Fix usage of tags
Tags are working differently with includes vs imports, so we should respect that and use appropriently. Change-Id: Iaa029ebb27cec98b51472ce4f127337fb83b8b45 |
||
|
Dmitriy Rabotyagov
|
4fd7f70cc0 |
Trigger uwsgi restart
When we were migrating service to uwsgi usage, we clean forgot to trigger uwsgi restart on service config change. Change-Id: I850db85234cbdf50e18f355ba39fa14e57081efd |
||
|
Jonathan Rosser
|
ac2fbfb52a |
Fix linter errors
Change-Id: I140b92dc6ccee3023d2a8965af768bd1c6488c5d |
||
|
Jimmy McCrory
|
f777a2de36 |
Only clone console repos on source based installs
For distro package based deployments, install the packaged nova console proxies and console clients packages instead of git repos. For debian/ubuntu installs, use the console client packages directly so that the service configs of console proxy services are managed by OSA. Change-Id: I27577ea263d38555e73ead078526cff1c3114b5a |
||
|
Jesse Pretorius
|
fa691f538c |
Move novnc python package install into common venv_build task
Currently the install task fails with: The conditional check 'nova_get_venv | failed or nova_get_venv | skipped' failed. This is due to the fact that these registered vars are no longer present, since https://review.openstack.org/599240 removed them. Rather than have a seperate task to install the extra package, we can consolidate it into the common task with the same conditionals. Change-Id: I41becf0edc25a4b5ea59cb1559facded32f0bbf9 |
||
|
Jean-Philippe Evrard
|
9f53e04687 |
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: If3e4366c22e900557e4730a7e8838f55ffe30ecc |
||
|
Gaudenz Steinlin
|
45382c0e10 |
Fix nova_console_novnc_ssl.yml include path
This was broken since this include was moved into a subdirectory with commit |
||
|
Major Hayden
|
044025ca0a |
Change include: to include_tasks:
This removes warnings in Ansible 2.4+. The patch also removes "static:" arguments which are no longer used by Ansible. Change-Id: I6341e694cee527b4bcf46f813c09db9f1bcabb00 |
||
|
Jesse Pretorius
|
c41103ba70 |
Improve console install and restart services appropriately
The current implementation wipes out the novnc/spice directory every single time the playbook executes. While it does replace it afterwards it does not fire a notifier to make the service restart, resulting in the service failing. This patch makes the install process idempotent - it will only wipe out the directory if it does not look the way it is expected to look. It also fires the notifier to restart services if the git repo changes. This should ensure that novnc/spice restart properly on upgrades and that there are no changes/restarts for the service if the git SHA or software does not change. Closes-Bug: #1746523 Change-Id: Ic39f884016a6ba0498110267027783001a087a1c |
||
|
Logan V
|
902e638d95 |
Add external LB management handler hook interface
Based on conversation on an ansible issue[1], I implemented a LB orchestration role[2] similar to the POC here[3]. This will allow external loadbalancer management roles to hook into a universal notify listener "Manage LB" to perform before/ after endpoint management actions when the service is being restarted. [1]: https://github.com/ansible/ansible/issues/27813 [2]: https://github.com/Logan2211/ansible-haproxy-endpoints [3]: https://github.com/Logan2211/tmp-ansible-27813 Change-Id: I5aecc26606f41bc6b27fbe9a5f600914a88ff2c7 |
||
|
Andy McCrae
|
b17d8808a5 |
Allow the developer constraints to be adjusted
In order to do a developer mode that allows installation of packages from local file, which take precedence over the developer_mode constraints, we need to allow the order of the constraints to be changed. This patch adds a "pip_install_developer_constraints" var which is used to set the developer mode constraints. By default this will leave the same behaviour but will allow additional constraints to be added, or the developermode constraints file to be overriden altogether. Change-Id: I9b639cf11f0197c996f9d87210142e898ad46191 |
||
|
Kevin Carter
|
33b2472724 |
Streamline task execution
This change moves the compute drivers into their own directory which will isolate the compute execution tasks which will limit the loaded tasks and ensure we're not excessively skipping tasks. Change-Id: I67895687906c3ba4cbdc8c3cb6a3b17f07bceee1 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> |