ea84b14612061025d6c6a7c63a84a81ebc721d7d
Commit Graph

95 Commits

Author SHA1 Message Date
Logan V
ea84b14612 Fix UEFI boot support
UEFI booting support was removed on Debian/Ubuntu was broken by the
removal of ovmf and qemu-efi package installs during a package list
cleanup[1].
It looks like suse/redhat did not reecive the same cleanup effects,
as the UEFI bootloader packages are still installed there, so no
fix is needed on those OS families.
[1] https://review.opendev.org/#/c/662585/
Change-Id: I8ce72e4a0c754a745b1abf42030e41d6084f1361
2020年05月17日 15:28:06 -05:00
Erik Berg
d3353d9dd6 Align vars/redhat.yml with other distros
This removes superfluous packages and moves others to align with
what vars/{debian,suse}.yml does.
Change-Id: I88bc42eaa30d59250003339241380e3e50b64e3b
2020年03月25日 09:01:27 +01:00
Dmitriy Rabotyagov
e72835e5ac Use py3 for CentOS
Unfortunatelly CentOS 7 do not have libvirt and guestfs libraries
for py3, so isntead of symlinking them, we have to install devel package
and build inside venv.
Change-Id: Ie678e44c2369347cf0816cbcc4269de8eba7b963
2019年12月24日 17:18:37 +02:00
Dmitriy Rabotyagov
253a2ff610 Readd some distro packages
Return required CentOS packages to build corret venv and
to have virsh CLI tool installed.
Change-Id: I9656f9cf65f371a9640c387b5e5d815bf2062a5f
2019年12月02日 17:16:18 +00:00
Georgina Shippey
149d555d6b Readd some QEMU distro packages
Had issues where QEMU packages were not in sync and got an error:
... Note: only modules from the same build can be loaded. ...
The qemu package no longer lists dependencies on qemu-system, qemu-user,
qemu-utils in apt show.
Qemu-utils is recommended by other packages but I am unsure as to whether
this will guarantee an upgrade in all circumstances.
While qemu-system does list dependencies on the arm, mips, ppc... packages
they are unversioned and therefore do not keep in step.
Change-Id: I8ea4681a58a54bdc6a24ff053b11dfee5cc7af59
2019年11月21日 20:03:56 +00:00
Dirk Mueller
efc6e0ebbb Update dependency list for openSUSE 15.x
In openSUSE 15.x genisoimage was replaced by mkisofs. Although
some projects have added autodetection, nova needs to be explicitly
told.
Also remove deprecated qemu-kvm (wrapper around qemu-system-x86_64).
Change-Id: If0cbd60790935141d52465abe61b40058f1829b1
2019年10月18日 09:41:32 +00:00
Jonathan Rosser
0841c1cd6f Ensure libxml2 is available
In [1] many spurious packages were removed, and libxml2 was probably
a dependancy of a removed package. Add libxml2 as an explicit
requirement.
[1] https://review.opendev.org/662585
Change-Id: I6160b53ccfb161b8b8a161971795fd4962d86201
2019年10月05日 06:56:38 +00:00
Jonathan Rosser
450dc340fe Ensure git is available to clone novnc or spice
In [1] this package was moved to the 'devel' list mistakenly, it is
required on the compute host always.
In addition, due to infra. issues with Debian, this patch marks the
jobs as non-voting[2].
[1] https://review.opendev.org/662585
[2] https://review.opendev.org/686396
Change-Id: Iaa08e18d9da1a55a27241e4b5629eccb7969e2e0
2019年10月03日 19:14:10 +00:00
Mohammed Naser
2e1647ea18 vars: package cleanup
- Created nova_compute_packages for compute common packages
All operating systems:
- bridge-utils because os-vif uses iproute2
- postgres headers because OpenStack doesn't support it
- python libraries as they are already installed
- python-openstackclient as it's not used in run-time
Debian removals:
- qemu-kvm because it's just a legacy wrapper for qemu-system-x86
- qemu-utils recommended by qemu-system-x86
- qemu-system-{arm,mips,misc,ppc,sparc,x86} required by qemu-system
- qemu-{system,user,utils} required by qemu
- vlan as nova no longer uses vconfig
- python3-{guestfs,libvirt} as python3 support is not there yet
RedHat removals:
- libvirt-daemon-config-{nwfilter,qemu} required by libvirt-daemon-kvm
- qemu-img-ev required by qemu-kvm-ev
- iscsi-initiator-utils required by libvirt-daemon-driver-storage-iscsi
SUSE removals:
- open-iscsi required by libvirt-daemon-driver-storage-iscsi
- libvirt-daemon-driver-storage-core required by libvirt-daemon-driver-storage-*
- device-mapper required by libvirt-daemon-driver-storage-disk
- nfs-utils required by libvirt-daemon-driver-storage-core
- qemu-block-{curl,dmg,ssh} as that block storage driver is not used
Change-Id: If81939f95042460dd83234160f44426692189376
2019年10月01日 15:46:59 +00:00
Zuul
8d1acc6996 Merge "[redhat] Update variables to be version agnostic" 2019年09月19日 22:49:46 +00:00
Mohammed Naser
83ddd84d90 [redhat] Update variables to be version agnostic
The RedHat-based operating systems such as CentOS have a pretty
stable list of packages, therefore, we don't need to pin it by
version and we can instead move to a much more generic redhat.yml
which will support a bigger range of systems.
Change-Id: I5eaa3cb6b3bcae96ff8ebebb368eb4a6fdfd1bae
2019年09月19日 19:37:05 +03:00
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
2019年09月19日 19:24:54 +03:00
Zuul
0ec7675079 Merge "Add python3 libs to link into the nova venv for suse" 2019年09月09日 23:26:40 +00:00
Jonathan Rosser
26053a6b1c Add python3 libs to link into the nova venv for suse
Change-Id: Ibc5f8f9f73905c4c04a254e589cd13fe2254521b
2019年09月09日 08:47:13 +01:00
Dmitriy Rabotyagov
060a5beb70 Start using uWSGI role
Move service to use uWSGI role instead of iternal task for uwsgi
deployment. This aims to ease the maintenance of uWSGI and speedup
metal deployments as the same uwsgi environment will be used
across all services.
Depends-On: https://review.opendev.org/678200/
Depends-On: https://review.opendev.org/678055/
Change-Id: If5aeeefb93c8ba3c1368970de61ea1300218f637
2019年09月04日 15:35:44 +03:00
Jonathan Rosser
9376fd253d Remove support for the nova-lxd driver
This driver has been retired [1] and tests are now failing becasue the
nova-lxd repo master branch is now empty.
[1] https://review.opendev.org/#/c/672283/
Change-Id: I9906ede54f6b41972a03bfa1d39ba5f99c6235ed
2019年08月10日 15:28:47 -04:00
Jonathan Rosser
999e1b91a0 Ensure that UEFI firmware is present for aarch64
The qemu-efi package will pull in the x86_64 and aarch64 uefi firmware
ensuring both architectures are supported on debian/ubuntu
Change-Id: Id2f266def07e0ba6967746738efd07cff628a19a
2019年07月27日 17:34:22 +01:00
Dmitriy Rabotyagov
7d904743ef Use systemd-journald instead of log files
This patch aims to migrate service from usage of regular syslog files
to journald. We also disable uwsgi logging, since it dublicates
requests that are logged by service itself.
Change-Id: If1eda4d803661a0b924941aecd1867302391a5f4
2019年07月16日 19:33:03 +03:00
Zuul
19b740bc7c Merge "Install netcat on compute hosts" 2019年07月09日 22:00:46 +00:00
Logan V
a01e6d9607 Install netcat on compute hosts
Compute hosts require netcat in order to perform live migrations.
Closes-Bug: #1833644
Change-Id: Ie0caab0b10e878722f1804f67808f1d83d504c59
2019年06月27日 14:59:00 +00:00
Dirk Mueller
21da07ff19 Switch to openSUSE Leap 15.1
Depends-On: https://review.opendev.org/666058
Depends-On: https://review.opendev.org/666298
Change-Id: I0ac8593477cd127c33594fd8f1c209f08b138794
2019年06月27日 13:35:39 +02:00
Zuul
4a9e201b97 Merge "Cleanup debian nova service distro package list" 2019年06月10日 22:25:09 +00:00
Zuul
cfcad0689a Merge "powervm: drop support" 2019年06月06日 08:23:24 +00:00
Jimmy McCrory
1e1e858a22 Cleanup debian nova service distro package list
The debian packages for individual nova services provide service
configs which automatically start after install, leading to all nova
services running on each compute host. Instead only install the
python3-nova library package and rely on the service files OSA manages.
The nova_service_distro_packages can be cleaned up further since most
packages are provided as dependencies. uwsgi packages are only required
on hosts running nova-api-os-compute or nova-api-metadata, so an
additional key, 'nova_api' has been added for these hosts under
'nova_service_extra_distro_packages'.
Beginning in the Stein release, Ubuntu distro packages are now using
Python3. This requires additionally installing and using the uwsgi python3
plugin.
Change-Id: Id0c7b57f0119c5213abdf3505e4644680a78d55e
2019年06月04日 15:20:06 +00:00
Mohammed Naser
3341ce834f powervm: drop support
The PowerVM driver has been untested for a few years as well
as broken due to using the wrong driver as well. It's not possible
to test it within our infrastructure neither has there been any
contributions to improve/fix it.
This patch drops the support for it.
Change-Id: Iea84648c7ff65b5a4d8b97957fb92716578f714d
2019年05月31日 18:37:37 -04:00
Mohammed Naser
739647dffa kvm: add support for booting uefi instances
In order to boot UEFI instances successfully, the OVMF image
must be installed and located at the path that is hardcoded
inside Nova.
This patch takes care of installing the OVMF images and sets
up links to point towards the hardcoded path for operating
systems that don't install at the expected path.
Change-Id: I62f4aa26ffd0d2f3ba4aa19fbdb72578ef0223e4
Closes-Bug: #1825386
Closes-Bug: #1831279 
2019年05月31日 18:12:31 -04:00
Logan V
477b0a116b Stop installing python-httplib2
Since we no longer install python-keystoneclient[1], there is no
longer a need to install python-httplib2.
Change-Id: I7ef1dac07656bec527b631fdcb621e66b769ccd2
2019年05月22日 11:05:36 -05:00
Logan V
5bffb86bbb Remove nova placement API
Placement is now a separate service and has been removed from nova[1]
and implemented as a separate service in OSA[2]. As such, the nova
in-tree placement API is now disabled and can be removed.
[1] https://review.opendev.org/#/c/618215/
[2] https://review.opendev.org/#/c/656891/
Depends-On: I01df855d8b9255d24efe16ab053ffa491fda351f
Depends-On: I25ce79b9e3492cb075c50beed90ea2b78055e474
Change-Id: I2f5d4c2f1fc1418bc4f4c4baa1ce3c90b88208fc
2019年05月14日 17:29:23 +00:00
Dmitriy Rabotjagov
8148200b6a Drop libvirt-devel from kvm_distro_packages
As far as we are linking libvirt-python inside venv, we do not need
libvirt-devel anymore and it might not be installed.
Change-Id: I289e04f5fe4f441e82cdd236b2ff865476a4f8d2
2019年04月18日 16:04:34 +03:00
Mohammed Naser
1431472d26 debian: add support
This patch adds support for this role to be able to deploy on
Debian Stretch.
Change-Id: I1058238e2467cc257ec48ba84fb89995079e9be7
Needed-By: I9a92b73c419a0dc1cca40dacfef75de61a61db94
2019年04月05日 23:41:34 -04:00
Mohammed Naser
1df0bd51ee Drop nova-consoleauth service
The nova-consoleauth service was deprecated in Rocky and unless
you have the workarounds section enabled (which we don't), it will
not be used.
This patch drops it and adds tasks to turn it off and remove alll
the unit files.
Change-Id: I14b4870fd652d33a22c0d8480d847570ace8a3a3
2019年04月01日 20:47:36 -04:00
Mohammed Naser
83cd24912d Eliminate nova_novnc_distro_packages
The variable is useless and it only breaks things. The js-jquery
packages don't even exist on RedHat. All those dependencies are
pulled in and vendored in anyways, the Python ones are built, so
noVNC can run with no problem without any of those.
Change-Id: I59ad2014ed001a318ae4b865f0e218b6f8e18d92
2019年03月31日 20:51:44 -04:00
Jesse Pretorius
377588a57c Update role for new source build process
The variables nova_developer_mode and nova_venv_download
no longer carry any meaning. This review changes nova to
do the equivalent of what developer_mode was all the time,
meaning that it always builds the venv and never requires
the repo server, but it will use a repo server when available.
We also change include_tasks to import_tasks and include_role
to import_role so that the tags in the python_venv_build role
will work.
Change-Id: I1a1ac5948f3bd647eb0ee5e10e9e7ae06b740bb7
2019年03月28日 14:15:23 +00:00
Kevin Carter
874c8df029 Cleanup files and templates using smart sources
The files and templates we carry are almost always in a state of
maintenance. The upstream services are maintaining these files and
there's really no reason we need to carry duplicate copies of them. This
change removes all of the files we expect to get from the upstream
service. while the focus of this change is to remove configuration file
maintenance burdens it also allows the role to execute faster.
 * Source installs have the configuration files within the venv at
 "<<VENV_PATH>>/etc/<<SERVICE_NAME>>". The role will now link the
 default configuration path to this directory. When the service is
 upgraded the link will move to the new venv path.
 * Distro installs package all of the required configuration files.
To maintain our current capabilities to override configuration the
role will fetch files from the disk whenever an override is provided and
then push the fetched file back to the target using `config_template`.
Depends-On: https://review.openstack.org/636162
Change-Id: Ib7d8039513bc2581cf7bc0e2e73aa8ab5da82235
Signed-off-by: Kevin Carter <kevin@cloudnull.com>
2019年02月12日 10:21:06 +00:00
Andy Smith
2448db8064 Update messaging notification configuration
This patch removes the conditional inclusion of the notification
section of the service configuration. This ensures that oslo.messaging
notifications use the correct transport for deployments that have
separate rpc and notify messaging backends. For example, if the
transport_url is not provided in the notification section of the
service configuration, the transport_url specified in the default
section will be used instead.
Change-Id: Ia66fe9a4c5c18f31fa50e06017389489be8c66a4
2018年12月04日 09:10:00 -05:00
Mohammed Naser
03d9636177 Drop un-used nova_nginx_conf_path
Change-Id: I27e4856e1f7a6cd48fab146c308f9dab850feb2b
2018年11月09日 13:26:52 +00:00
Zuul
7ff33c8613 Merge "Remove unnecessary package install duplication" 2018年11月02日 11:25:32 +00:00
Zuul
3a12b83b48 Merge "Add libpython2.7 as a required package" 2018年11月01日 15:19:00 +00:00
Jesse Pretorius
e8de852a54 Remove unnecessary package install duplication
Currently the devel packages are installed everywhere,
but they only need to be where the wheels are built.
Also, there is already a task to install the packages
needed on the target hosts when installing - so we do
not need to give the same list to the venv install role
because they will already have been installed.
Change-Id: Iab434e8c91463d9b0c34eba23b0550fa2af46481
2018年10月30日 19:05:32 +00:00
Jonathan Rosser
1d5caac3fd Add libpython2.7 as a required package
Nova requires this package at runtime and currently assumes
that it is present in the environment. This patch ensures that
assumption is correct.
Change-Id: Ic74ffffb0e3f06ed1392d4006f1a511f66b4a30b
2018年10月26日 16:04:49 +00:00
Jimmy McCrory
5772607ef6 Cleanup nova distro package install lists
The distro install package lists included virtual packages to install
everything nova, packages for deprecated services (cells v1,
nova-network, nova-volume), and packages specific
to hypervisors currently unsupported by OSA (xen).
nova-compute and serialconsole specific packages been moved out to
nova_service_extra_distro_packages.
Depends-On: https://review.openstack.org/612614
Change-Id: I8fb5e17598b24c2399fbff7ac29957b73042329d
2018年10月23日 00:22:17 -07:00
Mohammed Naser
3ff434a1f3 Add support for NFS
This support allows deployers to easily use NFS and automatically
have mountpoints during deployment.
Change-Id: Ifb15cb7815487f047c0249f340a79c67971f5411
2018年10月20日 16:45:40 +02:00
Markos Chandras
b6fa5989b9 SUSE: Add support for openSUSE Leap 15
This also removes python-keystonemiddleware from the distro packages
since anything that needs it should pull it as a dependency.
Depends-On: https://review.openstack.org/604473
Depends-On: https://review.openstack.org/604286
Change-Id: I8398b70fc7e371d163bed8bed8fc11f50c521e28
2018年09月25日 08:08:02 +01:00
Andy Smith
f10fb179e8 Setup oslo.messaging extra packages for optional drivers
Change-Id: I9f593b04024fc0bbd6d57d4d959044f0dcffb01c
2018年09月18日 14:55:47 -04:00
Jesse Pretorius
06619a346a Rename SUSE vars file to cater for any version
To make the transition between versions easier,
we rename the vars file. This also resolves
issues when meta-dependent role inclusions do
not pick up the correct file when using the
include_vars task with multiple search paths.
Depends-On: https://review.openstack.org/602924
Depends-On: https://review.openstack.org/602920
Depends-On: https://review.openstack.org/602926
Depends-On: https://review.openstack.org/603056
Depends-On: https://review.openstack.org/603205
Change-Id: Idc082d44f456ca506300de4fab138ee9f8da6181
2018年09月17日 18:31:42 +00:00
Jesse Pretorius
b18668360c Remove python-keystoneclient package install
Now that we no longer use our own keystone module, but
instead make use of the ansible runtime venv's shade
library and upstream ansible modules, we can eliminate
this package/library being installed on the host.
Change-Id: I7c885974295fa6df3005b68210fc9e3442296ac1
2018年08月01日 10:06:57 +01:00
Jonathan Rosser
160375c268 Use generic vars file for ubuntu
These vars work for both Xenial and Bionic
Change-Id: I8ab82f2b063621bae904510b0648fabc2b90d7c9
2018年07月31日 10:42:36 +01:00
Jonathan Rosser
b4cc9b36ee Remove dosfstools-dbg package from ubuntu installs
This packages was added in [1] without an explanation of why the
debug symbols are required. The symbols package is not built for
bionic [2] so we remove it allowing the common vars file to work
for both Xenial and Bionic releases.
[1] e771983f2c
[2] http://archive.ubuntu.com/ubuntu/pool/main/d/dosfstools/dosfstools_4.1-1.dsc
Change-Id: I283628e6d42c6708934975d272712353472e066b
2018年07月31日 10:42:25 +01:00
Jean-Philippe Evrard
0772146a59 Ensure python3 compatibility
Currently everything is wired in the venv to work on python2.
If the virtualenv was built during repo build with python3, the
linking of the library will fail, as the lib folder for python2
doesn't exist.
This should solve the issue by ensuring the existing lib folder
of the env is used.
A problem arises then: Different distros organise packages
differently, in different locations. This makes the approach
compatible with multi-distros and multiple python versions.
Change-Id: I02b296089d5351d68bb14e87e458a4f5d18a4776
2018年07月13日 08:37:06 +00:00
Markos Chandras
1deb3b5a26 Add support for using distribution packages for OpenStack services
Distributions provide packages for the OpenStack services so we add
support for using these instead of the pip ones.
Depends-On: https://review.openstack.org/#/c/579151/
Depends-On: https://review.openstack.org/#/c/579071/
Change-Id: Iff373b5402c664206b940b8e95a0b8845050213b
Implements: blueprint openstack-distribution-packages
2018年07月03日 11:19:56 +01:00