af44f385d75b0e97c0fd1cf43e289eec39a42fe2
Commit Graph

1233 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
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
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
Zuul
735c99057c Merge "Install spice-html5 from source for RedHat" 2021年04月19日 10:51:10 +00:00
Zuul
07715e344a Merge "Remove nova console variables" 2021年04月19日 10:51:07 +00:00
Zuul
c2688515a8 Merge "Re-add nova_dhcp_domain variable" 2021年04月19日 10:36:44 +00:00
OpenStack Proposal Bot
481a924bf8 Updated from OpenStack Ansible Tests
Change-Id: I8e3d0c4e2c6aa43306259d9ac8c2703a48ddbd33
2021年04月19日 09:59:17 +00:00
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 
2021年04月15日 17:17:04 +03:00
Dmitriy Rabotyagov
c6d4c6207f Use template URLs in Cell Mappings
In Rocky Nova has implemented templating in Cell Mappings [1]
That means that instead of hardcoding connection details in database,
we can just put a template there. Variables are parsed from nova.conf
and substituted on the service load. Thus we don't need to update cells
every time we change passoword and we can use different credentials
across nodes since they will be just taken from config files.
We also perform upgrade of the cells to the templates when cell exist.
Task `Map instances to new Cell1` is removed, since it's required to
map instances to cellv2 only during upgrade from cellsv1 to cellsv2
which is not the case nowadays or when migrating instances between
cells [2].
[1] https://docs.openstack.org/nova/latest/user/cells.html#template-urls-in-cell-mappings
[2] https://docs.openstack.org/nova/rocky/cli/nova-manage.html#nova-cells-v2
Change-Id: Ia6bef7b902c0fb99a529c592172226bb16ed0d9d
2021年04月15日 13:57:49 +00:00
Dmitriy Rabotyagov
fe8d651eaf Remove nova console variables
Bunch of variables that were related to nova consoles were missused or
unneded at all.
Here we deprecate and remove them, along with
fixing behaviour to disable spice agent functionality.
Change-Id: I28f6d733db689eab879ae5939d1236e7c0d5f521
Closes-Bug: #1923184 
2021年04月13日 19:48:40 +03:00
Zuul
f7858e9440 Merge "Set default qemu settings for RBD" 2021年04月13日 11:08:19 +00:00
Dmitriy Rabotyagov
ffd2823327 Re-add nova_dhcp_domain variable
It still makes sense to carry a variable for defining dns_domain
since deployers will be able to control them with single variable
for all services.
Closes-Bug: #1922703
Change-Id: I2be47100ce701e71dda2fe4e8ca58a7b6cad529c
2021年04月06日 13:11:54 +00:00
Zuul
0870a01a6a Merge "[goal] Deprecate the JSON formatted policy file" 2021年04月06日 12:59:43 +00:00
Dmitriy Rabotyagov
4cc6ed4b48 Set default qemu settings for RBD
When Nova and/or Cinder are using Ceph as backend, qemu will need
to open a connection and two threads for each and every Ceph OSD.
Since all connections occur in the same qemu process, this may result
in hitting default max open files limit.
Thus in case of more then 10 volumes are attached
to the same instance and are used actively can end up in blocked
IO operations inside VMs.
We increase these limits by default when RBD backend is used.
Change-Id: Ib3081280cdbae1eb2235083c95c27e2efd0b413e
2021年04月01日 19:35:17 +00:00
Dmitriy Rabotyagov
da09cb83bb [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to replace policy.json to
policy.yaml and remove deprecated policy.json.
config_template has been choosen instead of the copy, since it can
properly handle content that has been lookuped.
We make a separate task not to restart service when it's not needed.
[1] https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html
Change-Id: I3ff3ce4f150854ece690f1bcbd7183f511fccf2e
2021年03月30日 16:41:23 +00:00
Dmitriy Rabotyagov
f15417aa31 Do not use imports inside included task
It appears that usage of static imports is not allowed inside dynamicaly
included task. This results in ansible error which hasn't been catched
by CI for some reason.
Currently setup ends up with the following error for LXC deployments [1]
[1] http://paste.openstack.org/show/803922/
Change-Id: Id5081f204e168056c6588d21c71f5cf28afb214d
2021年03月25日 18:17:00 +02:00
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
2021年03月24日 17:43:22 +02:00
OpenStack Proposal Bot
78657cee37 Updated from OpenStack Ansible Tests
Change-Id: I06d8e877acfd3d9aec738ef7da585530a29d8d5a
2021年03月22日 08:48:20 +00:00
Zuul
86535afde3 Merge "Convert remaining ansible_ fact vars to ansible_facts[]" 2021年03月16日 22:56:57 +00:00
Jonathan Rosser
ac29f8a87f Convert remaining ansible_ fact vars to ansible_facts[]
Change-Id: Ibe1434a64deff044683167d9866e079594e680d6
2021年03月16日 08:13:33 +00:00
Zuul
4423e884cb Merge "Add Virtual GPU Config to nova.conf template" 2021年03月15日 10:44:54 +00:00
OpenStack Proposal Bot
0d5ec328bb Updated from OpenStack Ansible Tests
Change-Id: I670e098252706f58e8307ca6419c645bff450223
2021年03月12日 22:20:28 +00:00
Zuul
604fa69778 Merge "Remove references to unsupported operating systems" 2021年03月10日 17:19:58 +00:00
Jonathan Rosser
7b03c1b5b1 Remove references to unsupported operating systems
All references to Gentoo, SUSE, Debian stretch and Centos-7 are removed.
Conditional tasks, ternary operators and variables are simplified where possible
OS specific variables files are generalised where possible
Change-Id: I4a68549bf85fd322ea344139869916aae3275377
2021年03月10日 12:16:39 +00:00
Jonathan Rosser
cd6ecfd6a8 Switch default virtualenv to python3
Change-Id: If3e77a139b950cb90f493455dc813d227f22bd73
2021年03月10日 08:59:54 +00:00
Danny Meloy
3edfbe6896 Add Virtual GPU Config to nova.conf template
Currently, the list of supported vGPUs is populated automatically
within the Nova playbook when the /sys/class/mdev_bus folder is
present. This will populate the `enabled_vgpu_types` variable with
the full list of vGPUs that are supported by default, with only
the first one listed being used.
This change provides the ability to define a new variable
`nova_enabled_vgpu_types` that will populate the enabled_vgpu_types
config option. It also adds the ability to map vgpu types to PCI
addresses in line with Ussuri updates to provide multi-vGPU support.
Change-Id: Icc0c2cd896d4c9a01601d4d733f38443ad8400d4
2021年03月04日 11:54:05 +00:00
Jonathan Rosser
b6f03470c4 Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654
Change-Id: I3cf2a30e0929835a84f0502bc4e87522b688b538
2021年02月25日 16:58:42 +00:00
Zuul
7dd9f42945 Merge "Move nova pip package from a constraint to a requirement" 2021年02月05日 20:56:32 +00:00
Dmitriy Rabotyagov
ca7eed516e Fix nova_libvirt_images_rbd_pool check
nova_libvirt_images_rbd_pool is a string, so applying bool filter always
results to false, which ends up in incorrect behaviour and nova does
not use ceph storage for ephemeral drives.
Change-Id: I66decd266655680172c3e272df61313bde652479
Closes-Bug: #1914272 
2021年02月02日 19:02:37 +02:00
dmitriy
560f132dbd [reno] Stop publishing release notes
Since we copy all release notes to the integrated repo there is not need
in publishing release notes for each repository. We should only verify their
validity and linting.
Change-Id: Ieffaedbb3bd728a27b71bc3a4f4da62ddc3bc28d
2021年01月22日 18:27:08 +02:00
Zuul
57cb97b5d8 Merge "Added tag for just policy override reconfiguration" 2021年01月18日 17:42:15 +00:00
Jonathan Rosser
dd93f405e3 Move nova pip package from a constraint to a requirement
This is necessary to support the new pip resolver.
Depends-On: I9be6bbf4a29a4da2ddf96dc0336bc2a7d8ec9281
Depends-On: I49c75dd11d6c4e8d37fe013b7ffdfd56ff193fcd
Change-Id: Ie2c30984b9ad7fc2cc55900f49b2300e2bdaa1e3
2021年01月18日 16:39:40 +00:00
Zuul
775c90a67a Merge "Add extra packages from Debian updates" 2021年01月13日 09:57:55 +00:00