417821d04253709fc0e53ad3510324437d0fde9f
Commit Graph

1181 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
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
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
Dmitriy Rabotyagov
661ee04abd Make possible to set nova_libvirt_images_rbd_pool to empty string
Checking if nova_libvirt_images_rbd_pool is defined leaves us without
an opportunity to disable ceph usage for specific node.
Instead of that we will use bool filter, which will be true if line
is not empty, and false if it is. That way by setting variable to empty
string in host_vars we can disable all relevant options for specific node
Change-Id: Id7c03399bd54ac790dcfc28ad1dcd7f6d48979db
2020年09月25日 09:51:26 +00:00
OpenStack Proposal Bot
a19b0f3db2 Updated from OpenStack Ansible Tests
Change-Id: I608b68e9bd78be4cf5ef6e4e9f10a7829f9ce8b6
2020年09月24日 16:57:28 +00:00
Jonathan Rosser
578d97f8ce Bind novncproxy host and port to defined variables
These were previously the defaults and resulted in the novncproxy port
not being adustable by the expected variable, and the novncproxy process
always bound to 0.0.0.0
Change-Id: Ic4cd75ff8fa88b3bfa37fea0f8ce0438611ba1db
2020年09月23日 15:50:46 +00:00
Dmitriy Rabotyagov
bcbc2099d2 Bump libvirt version to prevent compute failure
libvirt-python 6.7.0 makes nova-compute with [1]
Since urls can't be used with constraints, we're bumping
libvirt-python right in the requirements.
[1] http://paste.openstack.org/show/797571/
Change-Id: Ie05c8c2b7e0afe1aa7f84468e22f80debb689232
2020年09月08日 11:06:41 +00:00
Jay Jahns
c05a843ef0 Set Bridge Information for NSX Integration
VM interfaces need to connect to a nsx-specific bridge vs the default
of br-int in order for NSX integration to be successful.
Change-Id: I152d9d4d161f18336d9b412d578846f749a0162b
2020年08月28日 20:20:09 +00:00
Guilherme Steinmüller
5e52841391 Use the utility host for db setup tasks
Move it to the service setup host (defaults to utility[0]) instead
of the galera[0] host, and use galera_address (defaults to internal VIP)
as the endpoint instead of a local connection on the db host.
Change-Id: Ic4a2dfeeb022e1dbe0b1ba8aa0d0dd5feb7a8ffe
2020年08月19日 18:14:34 +00:00
OpenStack Proposal Bot
841d6ff7e4 Updated from OpenStack Ansible Tests
Change-Id: Id3e63118d8785c6c8e82e792ff3c49434485cd87
2020年08月12日 11:34:39 +00:00
Zuul
69e156e7de Merge "Use nova_management_address as a default VNC bind address" 2020年08月02日 13:16:04 +00:00
Zuul
a704697197 Merge "Use Nova management IP for live migrations" 2020年08月01日 19:18:08 +00:00
Andrew Bonney
9da99e1f7c Use nova_management_address as a default VNC bind address
Our installation uses separate networks for deployment and
OpenStack management. The current default of 'ansible_host' for
the VNC server results in it binding to our deployment network.
Whilst this could be resolved via variable overrides, the majority
of the defaults and templated options in this role use the Nova
management address as the default choice for binding to.
This patch changes the default VNC bind address to match the
existing standard pattern, which should avoid the need for
overrides in most cases. As a result, for our setup, when
nova_management_address is identified and set in the OSA nova
playbooks to match the OpenStack management network, the VNC server
bind address gets set to the correct address.
Change-Id: I9c5e2584f8f1d9bd76120b8b236e25f63804473a
2020年08月01日 14:53:21 +00:00
Zuul
cd85105f3b Merge "Add nova_management_address to defaults" 2020年07月31日 18:32:13 +00:00
Jan Marquardt
40bf388734 Avoid rebuilding the venv with every run
Until now the necessary pip packages differ between nova-api and
compute hosts, when novnc is used, because 'websockify' was only
added to nova-api containers. As a result, the venv is rebuilt twice
for each run. With this change 'websockify' is always added to
the needed pip packages.
Change-Id: I3f284e6d32f4aa614f311d3e4e754830be2f11a6
2020年07月22日 10:27:36 +02:00
Andrew Bonney
71f3fb224a Use Nova management IP for live migrations
Our installation uses separate networks for deployment and for
OpenStack management. By default, live migrations depend upon a
hostname, which resolves to an IP on our (lower speed) deployment
network. Dependent on the deployment, the hostname may not be a
reliable mechanism for determining the correct network for live
migrations.
Nova exposes a live_migration_inbound_addr which can be used to
correct this. This patch defaults the inbound_addr to match the
Nova service bind address, but provides the option for it to be
overwritten through variables.
Whilst the Nova docs suggest that live_migration_inbound_addr
is ignored when live_migration_tunnelled is enabled this appears
to be inaccurate from our testing.
Change-Id: Iff6326f72971364d275ea999418d476007690ef8
Related-Bug: #1576724 
2020年07月16日 14:46:21 +01:00
Andrew Bonney
3d9b4f876d Add nova_management_address to defaults
nova_management_address is used extensively in
templates/nova.conf.j2, but this relies upon its definition in
external variables and playbooks.
This matches the similar default chosen in the os_cinder repository
Change-Id: I1ead90c82becc1fbeae5670b7703c8389e6a78b6
2020年07月15日 11:29:44 +01:00
root
842c899d8e Add Centos-8 support
We shouldn't need this anymore since interpreter patch has been merged
https://review.opendev.org/#/q/topic:interpreter+(status:open+OR+status:merged)
Change-Id: Ibc8c9b92c8c3c705964fbc85019b357913583ca7
2020年07月01日 23:28:46 +03:00
Zuul
682f65d8ba Merge "Install netcat-openbsd for live migration" 2020年06月13日 01:36:14 +00:00
OpenStack Proposal Bot
bbdaf118d2 Updated from OpenStack Ansible Tests
Change-Id: I0ebcdfcb5ee54f645f9c0f3734388ac93851c8fa
2020年06月08日 19:56:26 +00:00
Zuul
fcdd6a178a Merge "Use newer openstackdocstheme and reno versions" 2020年06月05日 11:42:16 +00:00
OpenStack Proposal Bot
7c241e594e Updated from OpenStack Ansible Tests
Change-Id: I9a94ed995efbb5f2c2cc3de7ef77470f23b5367c
2020年06月03日 19:07:41 +00:00
Andreas Jaeger
dd2f2406d9 Use newer openstackdocstheme and reno versions
The sync from https://review.opendev.org/733244 updated to
openstackdocstheme 2.2.1 and reno 3.1.0 versions.
Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.
openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.
See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: I0cc73a4e714f8b533b5c1381124141c3d07d47d1
2020年06月03日 20:02:19 +02:00
48c46247c2 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.
Change-Id: Ifdf38a2a6c9d96d45fd8c2370e49977c4cfc8700
Sem-Ver: feature
2020年06月01日 13:17:03 +00:00
OpenStack Proposal Bot
3e51d1537d Updated from OpenStack Ansible Tests
Change-Id: I80e39bc85108ee82a3da401fcc3315a5c9a33573
2020年05月22日 07:07:37 +00:00
Andreas Jaeger
292beedfce Update docstheme for style
New version of openstackdocstheme (Victoria+) respects pygments_style.
Since this repo is using now Victoria (master) requirements but has
not branched for Ussuri yet, it uses the new version.
Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.
Change-Id: Ie089410c6ef26c6beb38179730afe641503c0eb9
2020年05月20日 18:50:25 +02:00