summaryrefslogtreecommitdiff
path: root/docker/nova
AgeCommit message (Collapse)AuthorFilesLines
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-02-05nova-libvirt: add UEFI packages to support UEFI instanceschenxing1-0/+18
Fix inability to run UEFI-based images/instances by installing UEFI packages also in nova-libvirt image which is not based on nova-base. Adapted for Stein and below (e.g. Rocky) by removing any C8 support. 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) (cherry picked from commit ffaf585d0f05ccd9123459bb0cdf345af5b09573)
2019-12-31create 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 (cherry picked from commit 932f09bcd65e15524b5229fdb6bc73a7e0111b27)
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 (cherry picked from commit 9b1a243a3a1669532f25bbdcbc56b78f0f72882c)
2019-07-17nova-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 (cherry picked from commit 408554475ba02d89206a7fa01824d7277bfc2664)
2019-06-27Run 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 (cherry picked from commit 84a07102e2db92333ce416a520151f1a1856f162)
2019-06-07Debian/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> (cherry picked from commit aa59f0db6f88ed0a03169b473fdf6d541d34df9f)
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
2018-05-26Bump Ubuntu base image to 18.04Jeffrey Zhang2-31/+9
Ubuntu 18.04 has been released. We need upgrade to it this cycle. Changes made in this patch - Bump ubuntu repo from xenial to bionic. Some repos do not have bionic packages, so still using xenial repos. - Drop mariadb, percona and nfs-ganesha repo, because these packages are already provided by Ubuntu official repo. - Since qdrouterd does not have bionic repo and xenial packages does not work on Ubuntu bionic, just add it into ignore image list. - Use python-rtslib-fb and targetcli-fb rather than python-rtslib and targetcli - use xen-utils package name rather than with package version one. - Seems unsigned repo won't work on Ubuntu bionic, stop using infra mirrored unsigned repo in gate building job. Needed-By: https://review.openstack.org/568728 Implement blueprint: ubuntu-bionic Change-Id: I4e3b0ca669cfbf6316bf591f2d8428fa1a0d6182
2018-05-14nova-libvirt: install libpam-systemd from backportsMarcin Juszkiewicz1-0/+1
As in d50cc5d5d4a577ddd87f1e6bc77d25c509a31cb6 we got hit again: Change-Id: I49fa406cb394e5d3f831b35eff2b070a1adcc2c4 INFO:kolla.common.utils.nova-libvirt:The following information may help to resolve the situation: INFO:kolla.common.utils.nova-libvirt:The following packages have unmet dependencies: INFO:kolla.common.utils.nova-libvirt: libvirt-daemon-system : Depends: policykit-1 but it is not going to be installed INFO:kolla.common.utils.nova-libvirt:.[91mE: Unable to correct problems, you have held broken packages.
2018-05-08base/nova-compute: install udev/systemd to satisfy dependenciesMarcin Juszkiewicz1-0/+4
For Debian we use 'stretch-backports' image due to requirements of some images. That means that we also have systemd from backports. This breaks 'open-iscsi' (base) and 'python-guestfs' (nova-compute) installation. Solution is to install 'udev' and 'systemd' in proper versions. INFO:kolla.common.utils.base:Some packages could not be installed. This may mean that you have INFO:kolla.common.utils.base:requested an impossible situation or if you are using the unstable INFO:kolla.common.utils.base:distribution that some required packages have not yet been created INFO:kolla.common.utils.base:or been moved out of Incoming. INFO:kolla.common.utils.base:The following information may help to resolve the situation: INFO:kolla.common.utils.base:The following packages have unmet dependencies: INFO:kolla.common.utils.base: open-iscsi : Depends: udev but it is not going to be installed INFO:kolla.common.utils.base:E: Unable to correct problems, you have held broken packages. INFO:kolla.common.utils.nova-compute: python-guestfs : Depends: libguestfs0 (= 1:1.34.6-2) but it is not going to be installed INFO:kolla.common.utils.nova-compute:E: Unable to correct problems, you have held broken packages. Closes-bug: #1769850 Change-Id: I4865c279d665cf34fc150794c01368a1602319f0
2018-03-13Merge "Remove customizable for plugins_pip_packages"Zuul1-1/+1
2018-02-19Merge "change python-libguestfs to python-guestfs for ubuntu"Zuul1-2/+2
2018-01-23Remove customizable for plugins_pip_packagesMartin André1-1/+1
The pip packages are normally already configurable with the <image_name>_pip_packages variable. It doesn't make much sense to make the list of packages installed with the plugins mechanism configurable via the <image_name>_plugins_pip_packages variable too. And even if we wanted to, the parameter to the `customizable()` function should be 'plugins_pip_packages' and not 'pip_packages'. This commit removes the customizable bits from the plugins install macro, at least until we get a good use case for it. Change-Id: I90dd28b8c5d981e6028af353e34645712ef09b0b
2018-01-11change python-libguestfs to python-guestfs for ubuntuZhaokun Fu1-2/+2
python-libguestfs is for centos, python-guestfs is for ubuntu. Related-Bug: #1742029 Change-Id: Ia1578dfcc9e4dbf32d29773f07424bbfe9328951
2018-01-10Remove /lib/udev in $PATH for nova-computeZhongShengping1-2/+0
Add /lib/udev environment variable[1] is to solve the scsi_id access problems, but the patch[2][3] pointed out the absolute path scsi_id, we can not add /lib/udev environment variables in the system for nova-compute. So we can remove /lib/udev in $PATH for nova-compute. [1]https://review.openstack.org/#/c/291285/ [2]https://review.openstack.org/#/c/277224/ [3]https://github.com/openstack/os-brick/blob/master/os_brick/initiator/linuxscsi.py#L147 Change-Id: I5326edf8fff5745ef119c0c3decd6f4c51e8bd5d Closes-Bug: #1742340
2017-12-11Revert "nova-libvirt: fix kvm permission issue"Xinliang Liu1-11/+2
This is not needed. If we make sure qemu use nova user. Because nova user in group qemu. See comment #7 of bug #1715356: The root cause for this issue is that qemu not run with nova user on debian. If we set qemu running with nova user with this patch: https://review.openstack.org/#/c/525891/ Then we need to revert commit f1b98a4925826333cf22dafe15ef755066c51d48. This reverts commit f1b98a4925826333cf22dafe15ef755066c51d48. Closes-bug: #1715356 Depends-on: I36720af0c7d3dd7c69d2404843f54c0991aea1bb Change-Id: I62fbcf9e4ee5c3170c96576698f4ae8b66db1b74
2017-11-30Merge "Implement nova-mksproxy"Zuul1-0/+14
2017-11-24nova-libvirt: fix build for DebianMarcin Juszkiewicz1-1/+0
Change-Id: Ia0429294b2d99ef225dafb37bb77fae5fe0fe36c
2017-11-21Merge "Include required packages for libvirt SASL auth on CentOs/RHEL"Zuul1-0/+1
2017-11-21Merge "Install libvirt-clients for nova-libvirt image"Zuul1-27/+18
2017-11-17Include required packages for libvirt SASL auth on CentOs/RHELOliver Walsh1-0/+1
Change-Id: I40fd1c87fd95746ed26de41e501a76c1b83a174a Related-bug: 1732479
2017-10-31Merge "nova-libvirt: fix kvm permission issue"Zuul1-2/+11
2017-10-26XenServer: Add packages for initial supportnaichuans1-0/+4
Add `parted` to support xenserver in nova. Change-Id: I07d88702a8f8443efe4487837c2b47b06e16e417 blueprint: xenserver-support
2017-10-23nova-libvirt: fix kvm permission issueKevin Zhao1-2/+11
When deploy in AArch64, will meet kvm permission issue. Fix it with Arch specified. Closes-bug: #1715356 Change-Id: I09dc27693a83dc77704773a25547725de480dbe8 Signed-off-by: Kevin Zhao <kevin.zhao@arm.com>
2017-10-20Install libvirt-clients for nova-libvirt imageJeffrey Zhang1-27/+18
libvirt-clients is nice to have, which is helpful for operator. Change-Id: I892eebf542ee624e275c215809a3f1a9e6ab3135 Closes-Bug: #1720051
2017-10-17Implement nova-mksproxyJeffrey Zhang1-0/+14
nova-mksproxy is a Nova console proxy for VMware instances Change-Id: I446dd9eacdd0f0ee6f980133d1419d67c8dc7857 Closes-Bug: #1723997
2017-09-23Install multipath binary in nova-compute imageJeffrey Zhang1-0/+4
multipath binary is required after enabled multipath in nova. This patch is pushed to ocata branch first by mistake. Need cherry pick into master and pike branch. Change-Id: I0a1d85597999415cab11feb71a7fdfd7af3f7148 Closes-Bug: #1713639 (cherry picked from commit 4e6add7dbd80ef9326cc8a7e2afd5f6d02f1f68f)
2017-09-06Revert "nova-libvirt: fix kvm permission issue"Jeffrey Zhang1-1/+1
This reverts commit 43650d5837372449294a7a22e9c9167a92744e96. This fix do not work with CentOS x86_64. Since I haven't arm64 env, and we have fix this soon before pike is release. Just revert this and fix in the future. Change-Id: Id9eb531de7d05051f38e3ed13b64ae7abf552767 Partial-Bug: #1715356