a9818d26c3b90b4b19eab4234a1d461b30a55c0a
Commit Graph

1404 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
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
Dmitriy Rabotyagov
417821d042 Add extra packages from Debian updates
Some extra packages needs to be installed from Debian updates
repository, so we pin them with higher priority.
Change-Id: I49c75dd11d6c4e8d37fe013b7ffdfd56ff193fcd
2021年01月12日 23:10:50 +00:00
Dennis M
fe73200952 Added tag for just policy override reconfiguration
When you change policy on a running system, you expect that
this operation will be fast enough and only change policy.json
Without this tag you have to run whole role.
Use tag: nova-policy-override to just override policy.json
Added nova-config and services restart to the same task
Change-Id: I973658b6a7a7be9f836c603c39d5b11836761d5d
2021年01月11日 19:09:33 +02:00
Dmitriy Rabotyagov
cf19947b53 Use global service variables
Instead of overriding each service separatelly it might make
sense for deployers to define some higher level variable that
will be used first or fallback to default variable.
Change-Id: I6eab9ed6670d0dca149296a81c42ded02db8de6a
2021年01月08日 17:31:06 +00:00
Dmitriy Rabotyagov
05ffae0ef0 Use systemd sockets for libvirt
Since libvirt 5.7 we should not use traditional mode. Instead systemd
mode should be choosen. Sockets are provided by libvirt package.
We just need to conditionally enable or disable them.
As addition we changed nova_libvirtd_listen_tls to 0 by default
because listen_tls requires certificate to be provided which is not
the case in the current role state. So we also fix behaviour of the role
when nova_libvirtd_listen_tls is 1, supposing that deployer has manually
distributed certificates across compute hosts.
Change-Id: Id73cb67de26c305908d0245551fa57a7e6448784
Closes-Bug: #1903846 
2021年01月06日 19:18:16 +00:00
OpenStack Proposal Bot
b03ffb76a2 Updated from OpenStack Ansible Tests
Change-Id: Ie0525a258e859e1545d473175440719ce298631a
2021年01月05日 08:35:39 +00:00
Zuul
43b1b62f22 Merge "Fix use of deprecated image_cache_manager_interval" 2020年12月04日 16:58:19 +00:00
Jonathan Rosser
bd431bb3ed Fix use of deprecated image_cache_manager_interval
Warning message is:
Option "image_cache_manager_interval" from group "DEFAULT" is
deprecated. Use option "manager_interval" from group "image_cache".
Change-Id: Ieabd209733ea640d0776f7d2ee96efe3f3c49ec4
2020年12月03日 15:10:38 +00:00
James Denton
c04152b6f0 Fix templating issue due to conditional
This patch corrects a templating issue with nova.conf related to
a newline and conditional.
Change-Id: I81f03573c4fe9b7a4b112cdd9e89b0c601481c49
2020年12月03日 08:15:42 -06:00
Dmitriy Rabotyagov
246db283d9 Reduce number of processes on small systems
Even the most modest 4C/8T system would run with the maximum 16 processes
due to the calculation being VCPU*2.
We devide amount of CPUs to number of threads for hyperthreaded CPUs
Change-Id: Id1cd254fb758a09c07b7b56ba735b00b94d7a040
2020年11月30日 13:52:38 +02:00
zhoulinhui
87a2549a7b Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is deprecated and TOX_CONSTRAINTS_FILE is
the new environment variable name that replaces it [1].
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.
[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
[2] https://review.opendev.org/#/c/722814/
Change-Id: Id479e07817e2c405564dad2e2dacd1812cabdacd
2020年11月10日 05:15:20 +00:00
Zuul
93bb8c26b8 Merge "Do not symlink ceph libraries for distro path" 2020年11月02日 19:24:47 +00:00
Dmitriy Rabotyagov
e8f63f5fb8 Do not symlink ceph libraries for distro path
ceph_client role checks length of the `openstack_service_venv_bin` variable
to determine if libraries symlinking into venv should occur. So for
distro path this should be empty string as no symlinking should be done.
Change-Id: I7395ba58e10d1c0ed57b53fc9c797297d94df6f8
2020年10月30日 17:37:56 +02:00
Dmitriy Rabotyagov
dea8b714ab Install qemu from buster-backports
Nova on Victoria requires qemu to bo no less then 4.0.0. To satisfy
this requirement we need to install qemu from backports repo
Change-Id: I6e8fbfb8dec58933f854fd0688eb6030a2110279
2020年10月30日 16:28:55 +02:00
James Denton
4b11fa8b70 Support spicehtml5proxy on baremetal with haproxy
This patch changes the listener address for spicehtml5proxy from 0.0.0.0
(default) to the nova_management_address to avoid "Address already in use"
errors.
Change-Id: I952998f3c6dd7db218b572c057149352c41c1d65
2020年10月21日 09:46:26 -05:00
Dmitriy Rabotyagov
afb166d26e Extend list of libvirt types
While we don't test all these virt types, see no reason in explicitly
limiting list of them, considering that they are supported by nova and
libvirt itself [1]
[1] https://docs.openstack.org/nova/latest/configuration/config.html#libvirt.virt_type
Change-Id: Iebea20e8344c21137f1e1e5f23174d3b9b688495
2020年10月19日 11:46:02 +03:00
Zuul
7ca8485954 Merge "use correct filters variable" 2020年10月17日 15:43:10 +00:00
Zuul
abb11881f5 Merge "Enable notifications when Designate is enabled" 2020年10月15日 11:37:38 +00:00
Adrien Cunin
881620bd64 Enable notifications when Designate is enabled
Change-Id: I4953ee9de704c90dac67a70f9296062e5a071a77
2020年10月14日 18:13:06 +02:00
Zuul
d2409627d1 Merge "Define condition for the first play host one time" 2020年10月14日 08:50:44 +00:00
Dmitriy Rabotyagov
a9f5d97672 Define condition for the first play host one time
We use the same condition, which defines against what host some "service"
tasks should run against, several times. It's hard to keep it the same
across the role and ansible spending additional resources to evaluate
it each time, so it's simpler and better for the maintenance to set
a boolean variable which will say for all tasks, that we want to run
only against signle host, if they should run or not now.
Change-Id: I78d44704a0224b2c73832a607e84ea8d9499f8c2
2020年10月13日 14:40:42 +00:00
Erik Berg
3893439e1c use correct filters variable
Change-Id: If5f5640b80c62fa249a0706b6f64d751b04293a6
2020年10月13日 13:48:18 +02:00
Zuul
5961ab812c Merge "Simplify scheduler filter additions" 2020年10月13日 09:35:35 +00:00
Logan V
4f993fdd8e Simplify scheduler filter additions
Add 'nova_scheduler_extra_filters' to allow operators to enable
additional scheduler filters without overriding the entire list of
filters as in [0].
This also reduces the burden on ops to maintain the list of overridden
default schedulers because of things like [1].
[0] 3886dbc40d/openstack_deploy/user_variables.yml (L51-L69)
[1] https://review.openstack.org/#/c/596502/
Change-Id: I9ab6bcbef2b496df7f6ecf11a7d8f5f7891aeeca
2020年10月12日 19:29:35 +00:00
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
2020年10月08日 17:50:32 +03:00
Zuul
939d2f414a Merge "Bind novncproxy host and port to defined variables" 2020年10月08日 12:23:11 +00:00
Marc Gariepy
e51b15888e Adjust the retry for the nova-status upgrade check
there is some race condition on focal because the cell is discovered
after the check, the scheduler have discover_hosts_in_cells_interval=60
adjunsting the attemd to cover more than this 60sec will fix this issue.
Change-Id: Ibe32da3aa6e28d346063b1707d4aafb284cf18fd
2020年10月06日 10:24:21 -04:00
Zuul
980a319ec3 Merge "Make possible to set nova_libvirt_images_rbd_pool to empty string" 2020年10月06日 08:57:53 +00:00
OpenStack Proposal Bot
bb96075fd5 Updated from OpenStack Ansible Tests
Change-Id: I76a8fb75cfe58c642a9f6b0d4e219000c29549ea
2020年10月05日 09:49:24 +00:00
Jonathan Rosser
ac2fbfb52a Fix linter errors
Change-Id: I140b92dc6ccee3023d2a8965af768bd1c6488c5d
2020年10月02日 07:51:23 +01:00