7a0c0f0ad27c9eae188f33d99b95f5299b9b7fc4
Commit Graph

1263 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Andrew Bonney
7a0c0f0ad2 Fix nova-key tag handling
It appears that this tag stopped working recently when switching
from import to include syntax. This patch adds the necessary
'always' tag to ensure the 'nova-key' tag gets carried through.
Change-Id: Iee1dca9221b6968d11be54fc1df03b2f8a6c3f44
2022年01月13日 11:38:25 +00:00
Zuul
4618d8d95c Merge "Refactor use of include_vars" 2022年01月12日 14:49:00 +00:00
Zuul
b9dea9e4a0 Merge "Enable recursion in combine() filter" 2022年01月12日 11:55:12 +00:00
Jonathan Rosser
1c353392c3 Refactor use of include_vars
Use a first_found lookup instead of a with_first_found loop so that
the 'paths' parameter can be used.
This ensures that only vars from the role are included, and not vars
from a parent calling role. This can happen when a parent role has
a higher priority vars file available for inclusion than the role
it calls.
Change-Id: I046def5a5cc94f680bc0daa3a2a1734f325d8022
2022年01月12日 08:18:07 +00:00
Damian Dabrowski
0a0776df36 Enable recursion in combine() filter
Ansible's combine() filter needs recursive=True parameter in order to recursively merge nested hashes.
https: //docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#combining-hashes-dictionaries
Change-Id: I2e84c0370c04336c124e5b6549b638483f107601
2022年01月11日 19:22:26 +01:00
Andrew Bonney
7a33271509 Revert "Disable shell for nova when tunneled migration not used"
This reverts commit ca352be75b.
Change-Id: I19e1cc491e2441ab8d1bd39d383dd2e09a5b7077
2022年01月07日 11:20:04 +00:00
Andrew Bonney
0bdf469993 Reinstate ssh key distribution for all nova deployments
Further testing has revealed that cold migration still requires
SSH communication between hypervisors which requires SSH keys to
be distributed between hosts.
Change-Id: Ida18b057d68d4edf7ce6dd2a46ef990f34ad36e3
2022年01月07日 10:47:18 +00:00
Dmitriy Rabotyagov
ca352be75b Disable shell for nova when tunneled migration not used
Change-Id: If4d036794cf8edb14e6b0ed491cf0de78f425b2c
2021年12月23日 16:37:44 +02:00
OpenStack Proposal Bot
31e053e944 Updated from OpenStack Ansible Tests
Change-Id: If2279eba00d9a0da23464491167bb496901c47c0
2021年12月17日 16:47:31 +00:00
OpenStack Proposal Bot
f67e879225 Updated from OpenStack Ansible Tests
Change-Id: I59a095d0d7d20063454fded5c8fbd2d40c633ebd
2021年12月04日 17:40:56 +00:00
Dmitriy Rabotyagov
7faf500a87 Don't fail when nova_console_type is disabled
Change-Id: I63ac851ab8195a2eaaa6474d31af999f22584ca5
2021年12月02日 20:55:16 +02:00
Zuul
6015ee227c Merge "Database connection pooling improvements" 2021年12月02日 15:48:47 +00:00
Dmitriy Rabotyagov
0536843b26 Fix PKI include condition
In order for AIO to pass against ironic role, we need to cover the case
when ironic_compute == nova_compute host. For that we use more
common condition and verifying virt_type which must be set for
Ironic.
Change-Id: I7540e4c6848bad80c368a1227b09437428fe64a2
Closes-Bug: #1952649 
2021年12月02日 06:00:26 +02:00
Damian Dabrowski
fcd582731b Database connection pooling improvements
- Implemented new variable ``connection_recycle_time`` responsible for SQLAlchemy's connection recycling
- Set new default values for db pooling variables which are inherited from the global ones.
Change-Id: Ibc876f2744c271e9c4ad797597c15af8d73867c1
2021年12月01日 22:04:50 +01:00
Zuul
9200186888 Merge "Refactor definition of lock path" 2021年12月01日 19:51:06 +00:00
Zuul
d8d0e4a9af Merge "Use config_template as a collection" 2021年12月01日 19:08:44 +00:00
Zuul
dc6d040d2b Merge "Exclude ironic_compute hosts from PKI tasks" 2021年12月01日 16:50:45 +00:00
James Denton
11ec8d572e Exclude ironic_compute hosts from PKI tasks
This patch excludes ironic_compute hosts, which don't
run libvirtd, from the PKI/SSL certificate business.
Closes-Bug: #1952649
Change-Id: I57455b9f54f0a5ae0f1f8e1a424df930cd6bab48
2021年12月01日 12:14:49 +00:00
Dmitriy Rabotyagov
3bc115b8a1 Revert UEFI firmware workaround
Change-Id: I5761e63ca609a617abfafe8d870dc4dc0b9c8096
2021年12月01日 12:13:59 +00:00
Dmitriy Rabotyagov
36d6f4f48c Use config_template as a collection
Since we still use ceph-ansible that has their own implementation of
config_template module it's worth to use mentioned module as a collection
explicitly.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/819814
Change-Id: If8db876955572d0fc809414bf38370a9aac84a2e
2021年11月30日 15:17:24 +02:00
Dmitriy Rabotyagov
93ef742841 Refactor definition of lock path
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/819300
Depends-On: https://review.opendev.org/c/openstack/ansible-role-systemd_service/+/819298
Change-Id: If5622f736e17f0f187a0740d60ea435d03a131bb
2021年11月30日 12:18:27 +02:00
Dmitriy Rabotyagov
b0a26dbd7d Fix certificates group permissions
Change-Id: I6fded616989ccae02d9d34efb68543336f87f848
2021年11月30日 10:51:38 +02:00
Zuul
e9f3c79832 Merge "Allow to provide mdev addresses as list" 2021年11月16日 17:51:29 +00:00
Zuul
db6e446bc7 Merge "Enable TLS for VNC from novncproxy to compute hosts" 2021年11月15日 12:37:45 +00:00
Dmitriy Rabotyagov
ab3bbd50d5 Allow to provide mdev addresses as list
With new Ampere GPUs you need to explicitly define explicit lists of PCI
devices which length depends on picked type as placement can't pick them
automatically due to nvidia driver brokeness.
In order to have readable representation of the variable it's worth
to make it iterable but keep a simple string for
backwards compatability.
Change-Id: I2a1e85efc8ad4f6a2596e6d53b1d793b2f934758
2021年11月12日 13:02:06 +02:00
Zuul
d62950ac51 Merge "Enable TLS for live migrations" 2021年11月12日 00:49:13 +00:00
Zuul
14c229ad94 Merge "Rename nova_enabled_vgpu_types" 2021年11月11日 22:30:23 +00:00
James Gibson
2b8d5a0b88 Enable TLS for VNC from novncproxy to compute hosts
To secure communications from the proxy server to the compute
nodes using VeNCrypt authentication scheme.
In a previous patch a TLS server certificate was deployed to
compute nodes, this patch makes use of this same server cert for
securing VNC sessions on compute nodes. It is recommended that
this certificate be issued by a dedicated certificate authority
solely for the VNC service, as libvirt does not currently have a
mechanism to restrict what certificates can be presented by the
proxy server. This has not been implemented to reduce complexity.
In addition the noVNC proxy needs to present a client certificate
so only approved VNC proxy servers can connect to the Compute nodes.
The PKI role has been used to create a client certificate for the
nova console nodes.
Related Nova docs:
https://docs.openstack.org/nova/latest/admin/remote-console-access.html
To help with the transition from from unencrypted VNC to VeNCrypt,
initially compute nodes auth scheme allows for both encrypted and
unencrypted sessions using the variable `nova_vencrypt_auth_scheme`, this
will be removed in future releases.
Change-Id: Iafb788f80fd401c6ce6e4576bafd06c92431bd65
2021年11月11日 14:23:27 +00:00
James Gibson
ad8bda5f64 Enable TLS for live migrations
Instead of using SSH to live migrate VM's use TLS as this is more
secure and SSH migrations are deprecated.
https://docs.openstack.org/nova/xena/admin/secure-live-migration-with-qemu-native-tls.html
A pre-existing PKI (Public Key Infrastruture) setup is required.
TLS live migrations require that all compute hosts can communcate
with each other on port 16514 and port range 49152 to 49261.
To enable TLS live migrations, both libvirt and QEMU require server
and client certificates, the server certicicates is used to verify
servers and the client cert is used by servers to authenticate
clients. A single cert is created by the pki role, that can be
used by both libvirt and QEMU for both client and server auth.
The client, server and CA certifcates need to installed in a
number of locations on each compute host:
* For Libvirt https://libvirt.org/tlscerts.html
* For QEMU https://github.com/libvirt/libvirt/blob/master/src/qemu/qemu.conf
Depends-On: https://review.opendev.org/c/openstack/ansible-role-pki/+/815007
Depends-On: https://review.opendev.org/c/openstack/ansible-role-pki/+/815849
Depends-On: https://review.opendev.org/c/openstack/ansible-role-pki/+/816857
Change-Id: Iddbe8764bb6d3cd3eaee122b2d5ddc02fa3f7662
2021年11月09日 09:11:24 +00:00
Dmitriy Rabotyagov
af44f385d7 Rename nova_enabled_vgpu_types
In order to reflect upstream nova variable change [1] we rename
nova_enabled_vgpu_types to nova_enabled_mdev_types.
[1] https://docs.openstack.org/nova/latest/configuration/config.html#devices.enabled_mdev_types
Change-Id: I7fcc6f6fbfd8e6e358036e72a82348b9cefe74ef
2021年11月03日 13:49:25 +02:00
Dmitriy Rabotyagov
aa05a3fa93 Refactor galera_use_ssl behaviour
With PKI role in place in most cases you don't need to explicitly
provide path to the CA file because PKI role ensures that CA is trusted
by the system overall. In the meanwhile in PyMySQL [1] you must either
provide CA file or cert/key or enable verify.
Since current behaviour is to provide path to the custom CA we expect
certificate being trusted overall. Thus we enable cert verification when
galera_use_ssl is True.
[1] 78f0cf99e5/pymysql/connections.py (L267)
Change-Id: I99509b519c91d8fefc91745bb982866fe3fbc8e7
2021年09月20日 18:02:48 +03:00
likui
0f25baaa38 Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020年07月23日
Change-Id: I5b77381ceaa34e2069b226fc6825f78cefc57a30
2021年07月03日 21:12:28 +08:00
Zuul
254726bdb7 Merge "Use version from repo_packages for SPICE HTML5" 2021年06月21日 11:43:54 +00:00
Zuul
1ee475f1b1 Merge "Drop CentOS 7 specific task" 2021年06月18日 10:05:52 +00:00
Gaudenz Steinlin
9244767bcd Use version from repo_packages for SPICE HTML5
Use the version pinned in repo_packages/nova_consoles.yml in
openstack-ansible to install the SPICE HTML5 client. Without this change
the version pin in openstack-ansible has no effect and the role always
installs master.
This is the same change as already done for the noVNC console in commit
1de7b24e70.
Change-Id: Ie004f845138a23095f6e02138401511054975a01
2021年06月17日 16:50:50 +02:00
Dmitriy Rabotyagov
476c39273e Drop CentOS 7 specific task
CentOS 7 support has been removed for a while and no reason to carry
task that is specific to this version.
Change-Id: I6735188f5fc75b44f587e6a810c8e8aad73df684
2021年06月17日 15:32:28 +03:00
Jonathan Rosser
1a358f5dc2 Add galera port to nova config and database template
This always existed as a default value but was only used for service
setup, never in the runtime db connection url. Update the URL and
database connection template to include the port.
Change-Id: Ie404c117146c6bbd7eea79300f7c85515fa4e27d
2021年06月11日 10:29:43 +00:00
Dmitriy Rabotyagov
4e88bdb7da Don't rely on compute_hosts existance
There might be scenarios when compute_hosts group is not present, but
we still need to deploy nova scheduler.
So we have to set default for groups['compute_hosts'].
Change-Id: I18d42e902b0b3eb5494bcffb424731dfe85c74f9
2021年06月01日 14:59:47 +03:00
Zuul
f7cb4f60e7 Merge "Add libcapstone4 pinning from backports" 2021年06月01日 09:52:41 +00:00
Damian Dabrowski
56fdbfe0d8 Dynamically compute nova_scheduler_host_subset_size value
Having this variable set to 10 might be a very bad option for small environments. From the other side, switching back to nova default value(1) also has another disadvantages. I think the best option is to add some logic here and compute a proper value based on number of compute nodes
Change-Id: I073875d380b14771cff434620553eada5068a430
2021年05月31日 21:14:30 +00:00
Dmitriy Rabotyagov
e1e078350a Replace linters test with integarted one
We've created integrated linters check job a while back and it's successfully
working for several releases. At the moment we experience difficulties
with future maintenance of the linters check from the openstack-ansible-tests
repo. So instead of fixing current one, we replace it with modern version of
the test.
Change-Id: Ia1e4677d7e09bd74d57e9b48f606ddc1febf135a
2021年05月25日 19:56:18 +03:00
Dmitriy Rabotyagov
d8c7ad355f Add libcapstone4 pinning from backports
After qemu has been updated in osbpo repo, extra requirement has
appeared, that is available only from backports repo.So we add it
to nova_backports_packages and limit apt_package_pinning
only to Debian Buster.
Change-Id: I284fbd7f8587886502ecc54adfe7314fb80967fd
2021年05月25日 10:27:51 +03:00
Zuul
2bf1293b12 Merge "Add variables for rabbitmq ssl configuration" 2021年05月17日 12:43:48 +00:00
Zuul
454bcf01ec Merge "setup.cfg: Replace dashes with underscores" 2021年05月14日 13:48:36 +00:00
Jonathan Rosser
5a60846262 Add variables for rabbitmq ssl configuration
Change-Id: Ibe24bf754bd56d6e518b93f05f47d163454e169d
2021年05月13日 14:47:16 +00:00
Jonathan Rosser
64d733fe10 Add port to transport_url database template
Change-Id: I544bc806b60d3190dfb42aa427c93673ceb34ed4
2021年05月12日 18:28:15 +00:00
yangyawei
df5a20da2f setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:
 UserWarning: Usage of dash-separated 'description-file' will not be
 supported in future versions. Please use the underscore name
 'description_file' instead
[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb
Change-Id: Idab6e815af523b3d0f424b278f94ab5e3d55d12e
2021年04月30日 14:08:20 +08:00
Zuul
75c8e7563a Merge "Do not use service_facts" 2021年04月22日 18:58:47 +00:00
Jonathan Rosser
f0d865ea6f Do not use service_facts
This module collects a very large number of facts, 5x more than
data the 'minimum' set collected by the setup module.
To increase performance by minimising the facts per host, we
can avoid using the service_facts module and use systemd to
return the service status.
Change-Id: Ieb7e1081cf307720bb9d78002ca10a8deaadffb5
2021年04月22日 13:54:34 +00:00
Zuul
dc0bd2a2b0 Merge "Updated from OpenStack Ansible Tests" 2021年04月19日 15:48:51 +00:00