summaryrefslogtreecommitdiff
path: root/docker/nova
AgeCommit message (Collapse)AuthorFilesLines
2022-03-11libvirt: add Cyrus SASL packages for DIGEST-MD5train-eolMark Goddard2-0/+11
Adds Cyrus SASL packages necessary for the DIGEST-MD5 and SCRAM-SHA-256 mechanisms. These can be used for libvirt SASL authentication. Change-Id: I13e19ca29eeab40cd08fa3afe2cdf7531867f81b Partial-Bug: #1964013 (cherry picked from commit e1efa9d257c45e5f99364974ea66a6d6ba5a5605)
2021-01-26nova-compute: 'pmdk-tools' is x86-64 only in Ubuntu 'bionic'Marcin Juszkiewicz1-2/+4
Victoria+ branches use Ubuntu 'focal' where this package is available for aarch64 as well. Change-Id: I2076ab4a634418df5863174588a72e6c2ce8f05e
2020-12-18Add daxio for nvdimm scenarioMartin Schuppert1-2/+18
nova-compute uses daxio to cleanup vpmem backend device on instance delete. If the daxio binary is missing in the nova-compute container instance delete fails. daxio is provided in centos via daxio, in ubuntu via the pmdk-tools package. Conflicts: docker/base/apt_preferences.debian Also: nova-compute: daxio on CentOS 8 is x86-64 only Change-Id: Ifb5948653565e2ae902783762e20e33527020efe Closes-Bug: 1907124 (cherry picked from commit 6176d54179109e85dee5ebc29a7726bcb05f76a9) (cherry picked from commit 40a1c7a6ebabb1554e0ce7b54d6b356c2bac1ce5) (cherry picked from commit 14b96abd6f6a6671d4dc97035b9ece61145cdcf2)
2020-10-14Add sysfsutils to nova-compute ubuntu sourceRadosław Piliszek1-0/+1
This fixes the FC Cinder backend usage in Nova. Change-Id: I036cfe3af3dd96625f986a820c78a10e6558b086 Closes-bug: #1884484 (cherry picked from commit 0c8702c96f852eae7a1fb784a260c01c15fb86f3)
2020-05-26nova-compute: add ndctl to expose NVDIMMs to guestsPiotr Kopec1-0/+18
`ndctl` is a utility for managing the nvdimm subsystem required by Nova for attaching PMEM(persistent memory) namespaces to guests [0]. [0]: https://docs.openstack.org/nova/latest/admin/virtual-persistent-memory.html Change-Id: I8ed1b6c1d0985b2a73206bd9249a5664cd80c912 Closes-Bug: #1870455 (cherry picked from commit f9ea23d940ec4ce35d503ac62f202daaa9db502d)
2020-02-28Merge "CentOS 8: Allow SSH access to keystone_ssh and nova_ssh" into ↵Zuul1-1/+9
stable/train
2020-02-26Merge "CentOS 8: Update packages in images" into stable/trainZuul3-9/+40
2020-02-26CentOS 8: Allow SSH access to keystone_ssh and nova_sshMark Goddard1-1/+9
The centos:8 image contains a /run/nologin file, which prevents SSH access to it. Remove this file in the keystone_ssh and nova_ssh images to allow login via SSH. Change-Id: I59dc2c4207af6812501b6c6acdb34e51a3e848c4 Partially-Implements: blueprint centos-rhel-8 (cherry picked from commit 892ae92d971fd7a2c8d39e416512bb69f7fd833f)
2020-02-26CentOS 8: Update packages in imagesMark Goddard3-9/+40
* Some further changes for python2 vs python3 packages * Allow rabbitmq 3.7.*, since a newer erlang is available * Switch from qemu-img-ev to qemu-img on CentOS 8 * bridge-utils no longer available on CentOS 8 * libvirt-daemon-driver-lxc no longer available on CentOS 8 * Mark some more images buildable for CentOS 8 Depends-On: https://review.opendev.org/709553 Change-Id: Iaf5b68ff6d944ae730ca0b1d5832172c106a6c08 Partially-Implements: blueprint centos-rhel-8 Partially-Implements: blueprint centos-rhel-python-3 (cherry picked from commit 4b4e26262b9e03190c639481fb60a8f4f92c532a)
2020-02-24nova: use proper uefi package names under CentOS/RHEL 8Marcin Juszkiewicz1-0/+16
Change-Id: I92be17ef1ce0f81ab3f49433a0d1e688874ba64e (cherry picked from commit a04963a6abdf34a49ecb815d97de394d8c7a152b)
2020-02-20Merge "Refactor Apache httpd setup" into stable/trainZuul1-13/+1
2020-01-31nova-libvirt: add UEFI packages to support UEFI instanceschenxing1-0/+30
Fix inability to run UEFI-based images/instances by installing UEFI packages also in nova-libvirt image which is not based on nova-base. Includes support for C8. Backport below Train w/o C8. Closes-Bug: #1814552 Co-authored-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Co-authored-by: Radosław Piliszek <radoslaw.piliszek@gmail.com> Change-Id: I1d5cd3d9af98444acac5bedd7daeaa6c6673dcd6 (cherry picked from commit 15b68c15c1dd0c2df1cc49b550f2fa03a4c65e8e)
2020-01-14Refactor Apache httpd setupMark Goddard1-13/+1
All Apache httpd setup has been moved to a new helper script, kolla_httpd_setup. This includes the existing clean of /run/httpd, /var/run/httpd, /tmp/httpd etc. Horizon has an additional bit of Apache config for Debian/binary, which has been kept in extend_start.sh for horizon. Change-Id: Ia2af74b69c151db0bd7e452460b0babcee50b282 Related: blueprint centos-rhel-8 (cherry picked from commit 8484190e77e4237247dac7fba128e5a111fc9918)
2019-10-30Add xfsprogs to nova-computeMartin Schuppert1-4/+8
xfsprogs is required for formatting XFS ephemeral disk partitions when format=xfs is specified as instance create failes with 'mkfs.xfs: No such file or directory' due to missing xfsprogs package in the nova-compute container. Closes-Bug: #1850610 Change-Id: Iaf3414464f3dd747427247339c6b201b352063cb
2019-09-18Remove support for OracleLinuxMark Goddard2-5/+5
We have agreed to remove support for Oracle Linux. http://lists.openstack.org/pipermail/openstack-discuss/2019-June/006896.html Change-Id: I961dfba1aeef2c509ecdaf376dfe6928926ffb39 Depends-On: https://review.opendev.org/682858
2019-09-09Do not fan out DB sync to all cellsDoug Szumski1-2/+2
Support syncing cell conductor DBs on a per cell basis so that a cell can be upgraded in isolation. Change-Id: I357510a05cacbb9f2cdddbbe9fd06acbce9468ac
2019-08-20Support DB bootstrap from Nova Conductor containerDoug Szumski3-0/+24
Currently the Nova API container does all the database bootstrapping for Nova. In a deployment with more than one active cell, it makes more sense for the conductors to bootstrap their own databases, rather than have the Nova API container do it. This change adds support for that. Until the support is actually used, we leave Nova API as-is. Partially Implements: blueprint support-nova-cells Change-Id: Id3a78b6838a3aae04f5dd5bd6ec928359297cfd3
2019-07-12Limit OVMF_CODE.secboot.fd to el7Alex Schultz1-1/+1
This is no longer needed for el8 Change-Id: I5026a31d3a29b5a31001c6c1f9b90b2a32af6a4b
2019-06-27Merge "Run nova api_db sync before db sync"Zuul1-2/+2
2019-06-17Run nova api_db sync before db syncMark Goddard1-2/+2
Backport: Stein, Rocky Since cells v2 was introduced, nova operators must run two commands to migrate the database schemas of nova's databases - nova-manage api_db sync and nova-manage db sync. It is necessary to run them in this order, since the db sync may depend on schema changes made to the api database in the api_db sync. Executing the db sync first may fail, for example with the following seen in a Queens to Rocky upgrade: nova-manage db sync ERROR: Could not access cell0. Has the nova_api database been created? Has the nova_cell0 database been created? Has "nova-manage api_db sync" been run? Has "nova-manage cell_v2 map_cell0" been run? Is [api_database]/connection set in nova.conf? Is the cell0 database connection URL correct? Error: (pymysql.err.InternalError) (1054, u"Unknown column 'cell_mappings.disabled' in 'field list'") [SQL: u'SELECT cell_mappings.created_at AS cell_mappings_created_at, cell_mappings.updated_at AS cell_mappings_updated_at, cell_mappings.id AS cell_mappings_id, cell_mappings.uuid AS cell_mappings_uuid, cell_mappings.name AS cell_mappings_name, cell_mappings.transport_url AS cell_mappings_transport_url, cell_mappings.database_connection AS cell_mappings_database_connection, cell_mappings.disabled AS cell_mappings_disabled \nFROM cell_mappings \nWHERE cell_mappings.uuid = %(uuid_1)s \n LIMIT %(param_1)s'] [parameters: {u'uuid_1': '00000000-0000-0000-0000-000000000000', u'param_1': 1}] (Background on this error at: http://sqlalche.me/e/2j85) Despite this error, the command actually exits zero, so kolla does not notice the failure. This change reorders these two commands to run the api_db sync before the db sync. Change-Id: I0514c02aaee1a413a7979c3a426e0484df839861 Closes-Bug: #1832860
2019-06-07Remove nova-consoleauthStephen Finucane1-31/+0
The nova-consoleauth service was deprecated during the Rocky release [1] and has not been necessary since unless you're using cells v1. As Kolla has never supported cells v1, which is finally being removed during Train [2], we can get ahead of the curve and stop deploying nova-consoleauth immediately. [1] https://specs.openstack.org/openstack/nova-specs/specs/rocky/implemented/convert-consoles-to-objects.html [2] https://blueprints.launchpad.net/nova/+spec/remove-cells-v1/ Change-Id: I19d467adbc1dab6709ce9667b18f1bb6dff12c1e Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Depends-On: I099080979f5497537e390f531005a517ab12aa7a
2019-06-07Merge "Debian/Ubuntu: more python3 packages for binary"Zuul4-7/+13
2019-06-06Debian/Ubuntu: more python3 packages for binaryMark Goddard4-7/+13
backport: Stein During the switch to Stein UCA, we did not switch all packages to python 3 for Debian/Ubuntu binary images. This change switches some more of those packages. Change-Id: I0bff21384d88ea678608392de2db1ba418c96665 Co-Authored-By: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
2019-06-06Debian/Ubuntu: move to Python 3 for source imagesMarcin Juszkiewicz3-5/+8
Commit 43b74ccc157c0b50138c3785ed91dab504895571 enabled use of Python 3 based packages but not switched to use Python 3. Some of images still contain Python 2. There are two reasons: - Ceph (ceph-common depends on Py2) - python3-ldappool on Ubuntu 18.04 In Ceph situation Py3 packages were added. For second one we can not do anything - Py2 dependency got dropped in Ubuntu 18.10 version. Removed neutron-server-plugin-networking-infoblox due to being not maintained. Once https://review.opendev.org/#/c/657578/ get merged someone may revert that part. Implements: blueprint debian-ubuntu-python3 Depends-on: Ie2a1077f7def0743f1403341985e2109aa490026 Change-Id: Ibfe0c2b8be98db56c61f74fb0247488ab3749ef4
2019-06-03create missing apache2 directory on Debian/UbuntuMarcin Juszkiewicz1-0/+1
Ubuntu/source deployment of several images (horizon, placement-api, zun) failed with: + exec /usr/sbin/apache2 -DFOREGROUND apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot Change-Id: Ie2a1077f7def0743f1403341985e2109aa490026
2019-05-21Merge "nova-libvirt: in Debian qemu-kvm is x86 only"Zuul1-1/+4
2019-05-06nova-libvirt: in Debian qemu-kvm is x86 onlyMarcin Juszkiewicz1-1/+4
This package provides just a wrapper script /usr/bin/kvm which run qemu-system-x86 in kvm mode for backwards compatibility. Change-Id: I0cc03a1ab5a79ae49fa7d13ac549e21d3ec5295d
2019-04-29Remove nova-placement-apiLee Yarwood2-82/+0
Now that the required changes to extract Placement from Nova have landed in kolla-ansible we can remove the nova-placement-api service from kolla. Change-Id: Ifff5c60f5690098619bf5a43f25ae3895a96e0d2
2019-03-25Install trousers to get user tss for nova_libvirtMartin Schuppert1-1/+3
The user tss is wanted by libvirt and comes with the trousers package. Prior RHEL8 it comes via the gnutls -> trousers dependencies, but there is no such a dependency in RHEL8, so make sure we have trousers installed. Change-Id: I9f11ba53d5c6f0a435a62bb462164566c4519d9f Closes-Bug: #1821309
2019-03-21Merge "Install qemu-system in nova-libvirt on ubuntu"Zuul1-1/+1
2019-03-20Merge "Drop redundant rpms from nova-base package list"Zuul1-12/+0
2019-03-15Merge "Move to Debian 'buster'"Zuul2-15/+0
2019-03-15Install qemu-system in nova-libvirt on ubuntuMark Goddard1-1/+1
In https://review.openstack.org/643308 we installed only the x86 qemu emulator due to an issue in nova when installing all emulators via qemu-system. The nova issue should be fixed by https://review.openstack.org/643458, at which point it should be safe to merge this patch. Depends-On: https://review.openstack.org/643458 Change-Id: I1c045d85a8473725baf907d7c6ecb780b8f6748d
2019-03-15Fix lower-constraints and kolla CI jobsMark Goddard2-3/+4
Multiple fixes to fix multiple problems. 1. Bump setuptools requirement to 21.0.0 The 16.0.0 requirement breaks the lower-constraints job on Ubuntu bionic. We see the following error: AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader' 2. ubuntu-binary horizon image needs to use python3 for django manage.py 3. ubuntu-binary nova-placement-api image needs to use python3 for apache mod wsgi. 4. nova-libvirt needs exact qemu dependencies due to packaging change 5. OracleLinux repos definition was changed in official image. 6. Fetch InfluxDB gpg key for Ubuntu base image from influx server. Change-Id: Ic797d41f53a5f146d112619f1683cbfbf3a85dc2
2019-03-14Move to Debian 'buster'Marcin Juszkiewicz2-15/+0
Buster is at freeze phase so safe to update and use. Will give us Python 3 based OpenStack packages (usually release delayed). Change-Id: I48c2d252a834716f1bcf10b18f2d32fe541e8137
2019-03-13Drop redundant rpms from nova-base package listJon Schlueter1-12/+0
- openstack-base explictly pulls in python[3]-keystoneclient - openstack-base pulls in python[3]-openstackclient which pulls in python[3]-cinderclient This simplifies the python2/3 cases, and reduces how many times these 2 packages are installed Change-Id: If8eb4dc1c5d5de88a8d9b59920b01d09cb585ebb
2019-03-12Add python3 packages for RHEL systemsAlex Schultz5-9/+57
RDO is currently working on python3 support for the next version of CentOS/RHEL based systems. This package uses the distro_python3 flag that was added as part of I4028991bad92c0e8e21066cc4173c06ce5eba393 to use the python3 specific package names. This change only adds python3 package names for RHEL systems. Conflicts-With: https://review.openstack.org/#/c/636457/ Change-Id: Iad6b70b433a0dd1b0f8ae6790fd280594517661a Related-Blueprint: python3-support
2019-03-06Merge "debian/ubuntu: make use of Python3 based packages"Zuul1-1/+2
2019-02-28debian/ubuntu: make use of Python3 based packagesMarcin Juszkiewicz1-1/+2
Both Ubuntu Stein UCA and Debian 'buster' migrated their OpenStack packages to Python 3. Note that Debian 'buster' is not released yet and contains Rocky packages. Stein ones will be available later. Co-Authored-By: Lee Yarwood <lyarwood@redhat.com> Co-Authored-By: Eduardo Gonzalez <dabarren@gmail.com> Change-Id: I160f79cc57f54ec3eac857c5babd1a6e2656d228
2019-02-27nova: Remove bridge_utils from base packageLee Yarwood1-4/+0
The dependency on bridge_utils has now been removed from os-vif and so the package is no longer required in the base container. Depends-On: https://review.openstack.org/#/c/636822/ Change-Id: I0924f6bc11558366d6d49472cdd338e43b744030
2019-02-21nova: Only install OVMF on EL 7 when installing from sourceLee Yarwood1-6/+10
This use case was missed in Ic8f865ed9cfc89056991ce4fa50a99c4937af33b. Change-Id: Ibe4c459d60f1143c76657588ed9c0081bda92239
2019-02-18nova: Only install OVMF packages on RHEL 7Lee Yarwood1-6/+10
These packages have been provided as direct dependencies of QEMU in more recent versions of Fedora and will continue to be for RHEL 8 and it's derived distributions. https://src.fedoraproject.org/rpms/qemu/blob/f29/f/qemu.spec#_820 Change-Id: Ic8f865ed9cfc89056991ce4fa50a99c4937af33b
2019-01-17Use base_package_typeAlex Schultz13-37/+37
This change updates the docker files to use base_package_type instead of doing specific distro checks for the rhel/deb generic cases. The base_distro is still available and is used when a specific distro needs a customization but if the differences are purely rpm vs deb, then the base_package_type can be used. Change-Id: I8d720bb185df65a0178061ccf20b1ab2265da2c5
2018-10-15Install UEFI related package for nova imageJeffrey Zhang1-1/+53
- for x86_64 arch, install OVMF for RHEL family and ovmf for Debian family - for aarch64 arch, install AAVMF for RHEL family and qemu-efi for Debian family - there is no package support for ppc64le Closes-Bug: #1796558 Change-Id: Ie1c688e74ec2aa3b6169c0a18a856dd0c92fe443
2018-08-20Add nvme-cli to nova compute packagesHamdy Khader2-0/+2
Change-Id: I7688a1c2065ed9183e5eeaaade8e31e0f76b4467
2018-08-06Using qemu-kvm on rhelAttila Fazekas1-1/+9
qemu-kvm-ev was used with centos, in case of rhel when you have access to the virtualisation related channels qemu-kvm pulls qemu-kvm-rhev which is the recommended one. qemu-kvm-ev was referenced by devstack long time ago, but the explicit package install on rhel family today is qemu-kvm and not qemu-kvm-ev. I am unsure about the other distros, so just changing rhel. Change-Id: If6d1e0367730fa80284395be33674a7cd1465389
2018-07-10Stop using deprecated rpm package namesMartin André2-2/+2
These packages produce a warning during the installation, we should switch to their new names, usually to be specific about their use of python2. Change-Id: I0a80e822f64222d9a32aabd1fd834bcf794d6320
2018-06-11Fix nova-api extend_start.shyatin1-2/+2
Patch https://review.openstack.org/#/c/558765 added an extra closure bracket }, this patch fixes it. Change-Id: I379ff17856509c9321b86c13a72eacc18f5c1202 Closes-Bug: #1775698
2018-06-05Apply Nova rolling upgrade logicDuong Ha-Quang1-0/+11
This patchset apply Nova rolling upgrade logic [1] [1] https://docs.openstack.org/nova/latest/user/upgrade.html Change-Id: I2cc973896d08988c0db121673d357fd1d37e6e6c Implements: blueprint apply-service-upgrade-procedure
2018-06-04Merge "Bump Ubuntu base image to 18.04"Zuul2-31/+9