aboutsummaryrefslogtreecommitdiff
path: root/docker/nova/nova-libvirt/Dockerfile.j2
AgeCommit message (Collapse)AuthorFilesLines
2019-01-17Use base_package_typeAlex Schultz1-3/+3
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-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é1-1/+1
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-04Merge "Bump Ubuntu base image to 18.04"Zuul1-11/+1
2018-05-26Bump Ubuntu base image to 18.04Jeffrey Zhang1-11/+1
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.
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-17Include required packages for libvirt SASL auth on CentOs/RHELOliver Walsh1-0/+1
Change-Id: I40fd1c87fd95746ed26de41e501a76c1b83a174a Related-bug: 1732479
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-08-15nova-libvirt: add package qemu-efi to support uefi imageZhangfei Gao1-0/+12
On arm64, uefi image is usually used via --property hw_firmware_type=uefi In order to support this, qemu-efi has to be installed Ohterwise error reports: Terminating instance: libvirtError: Failed to open file '/usr/share/AAVMF/AAVMF_VARS.fd': No such file or directory Change-Id: Ibc1b39e821e84fb9739833be04bdb41db59d2ff5 Signed-off-by: Kevin Zhao <kevin.zhao@linaro.org> Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
2017-08-15nova-libvirt: fix no /usr/sbin/libvirtd issueZhangfei Gao1-0/+1
When testing on arm64, libvirt continue restarts and reports error: Running command: '/usr/sbin/libvirtd --listen' /usr/local/bin/kolla_start: line 17: /usr/sbin/libvirtd: No such file or directory If install package libvirt-daemon, libvirt still report error: libvirtError: unable to connect to server at '192.168.1.98:16509': Connection refused Solve the issue via installing packate: libvirt-daemon-system Change-Id: I7d822c3f18fd7301b79d397c632fe412f4b6f9fd Signed-off-by: Kevin Zhao <kevin.zhao@linaro.org> Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
2017-05-03Override image's meta info.Jawon Choo1-1/+1
centos based images have wrong label info, these changes fix own image's name and build-date. Change-Id: I1d13f8f386c8db12b5fbe5f8ecbbf9e3fbb4ba1c Closes-Bug: #1680341
2017-04-25Merge "nova-libvirt: handle ppc64le"Jenkins1-6/+16
2017-04-20Merge "Use LABEL instead of MAINTAINER (deprecated) in all Dockerfile.j2"Jenkins1-1/+1
2017-04-20nova-libvirt: handle ppc64leMarcin Juszkiewicz1-6/+16
Partially-Implements: blueprint multiarch-and-arm64-containers Depends-On: I71ddb7ef57c64d2505cac96724b1ab6772a57d6a Change-Id: I5f196a36e07ea0f253d886fddf92d1aae8afb3b2
2017-04-20Use LABEL instead of MAINTAINER (deprecated) in all Dockerfile.j2Chen1-1/+1
Use LABEL instruction instead of MAINTAINER (deprecated) instruc- tion as suggested by Docker's official dockerfile guide. docs.docker.com/engine/reference/builder/#maintainer-deprecated Closes-Bug: #1683652 Change-Id: Ie87a1ddf31aefcd0b623fd2837d78de420e76898
2017-04-13debian: move to stretchMarcin Juszkiewicz1-2/+2
Debian 'jessie' even with backports lacks some packages Kolla expects. Due to this we (Linaro) move to Debian 'stretch' release with our OpenStack work. Stretch is now frozen so there should not be many changes. Partially-Implements: blueprint multiarch-and-arm64-containers Change-Id: Iab7232cbe6f8fc3e3de10c67f3d89f134b185f05
2017-04-04debian: enable all images enabled for UbuntuMarcin Juszkiewicz1-3/+3
Debian support is not maintained in Kolla so it got a bit behind Ubuntu one. This changeset enables Debian for all images. Jessie (even with backports) may be too old for some images though. Also unify distro check to ['debian', 'ubuntu'] to keep alphabetical order like it is done for RPM distributions. Partially-Implements: blueprint multiarch-and-arm64-containers Change-Id: I056233fbfa277e0e2360c07c3f80d9558c554357
2017-03-28Alphabetize packagesEduardo Gonzalez1-11/+11
Some images have packages sorted alphabetically and some not. Unify common style between all images. Change-Id: I906ed89c10b12886665618752f525ba71d83d991
2017-02-05Remove include_header and include_footer in all DockerfilesJeffrey Zhang1-1/+0
include_header and include_footer parameter is already removed, remove them in all Dockerfiles. Add missing footer block. Change-Id: I90da03eb9f95a3827361d5f5ede65fde7d6be2b3
2017-02-02Add openvswitch package for nova-libvirt containerJeffrey Zhang1-0/+3
Change-Id: I61ce3b695e66cd76f8f9a43863c94601d312e8fe Closes-Bug: #1661152
2017-01-17use static uid/gid in imagesSam Yaple1-14/+5
This centralizes all user and group creation into a single source. This will fix any current and furture uid/gid mismatches (such as with nova-libvirt). In the process, we also unify users between the distros in a standard way. The users in the following containers change from thier defaults: Ubuntu: _chrony user is now chrony Ubuntu: memcache user is now memcached All: qemu user is used for ownership and socket permissions All uid and gid numbers are customizable via kolla-build.conf Co-Authored-By: Kris Lindgren <klindgren@godaddy.com> Change-Id: I120f26ab0683dc87d69727c3df8d4707e52a4543 Partially-Implements: blueprint static-uid-gid
2016-11-03Remove Fedora supportChristian Berendt1-2/+2
Closes-bug: #1616387 Change-Id: Id97f88b9baa3d48d33ce120962450a374282d044
2016-10-12Fix the failure to launch instance when enabled CephJeffrey Zhang1-1/+1
We need install qemu-kvm package which come from the Cloud SIG rather then qemu-system-x86 which come from EPEL. Change-Id: Ibd027069771552d3db0e4fe0c7406ddd1bfc0673 Closes-Bug: #1631984
2016-09-15Merge "Switch arguments to usermod"Jenkins1-1/+1
2016-09-14Switch arguments to usermodJeff Peeler1-1/+1
Need to add nova user to qemu group. Change-Id: I0df21d00fb295e0f2c14dd6abd4bee518fec8371 Closes-Bug: #1623682
2016-09-13Add header blocks to all DockerfilesPaul Bourke1-0/+2
Change needed to add header blocks to all Dockerfiles, similar to the base. Use case is to easily run something before packages are installed, e.g. to COPY a local rpm in that can be added to the package list. Change-Id: I1bbfdf0b762da0a392aa8bf47781315b45377bee Closes-Bug: 1618969
2016-08-25Customizations for NovaPaul Bourke1-32/+51
Change-Id: I7556d6cd473516c7ceb4aba7c1ba1130af2544ee Partially-implements: blueprint third-party-plugin-support
2016-06-04Make nova-libvirt container build with debianBenedikt Trefzer1-3/+16
- handle different xen-utils version in debian/ubuntu - add rm -f to ignore nonexistent file in debian - add variable for libvirt group since different in debian Partially-implements: blueprint build-debian Change-Id: I44c55981819294286d163b5391aefe967b6dd1d9
2016-05-26Update ubuntu dockerfiles for formattingSwapnil Kulkarni (coolsvap)1-1/+1
Change-Id: If4be00b937e14ec93443dcb7249cf17099d57cbe Closes-Bug: #1569417
2016-04-21Fix failure to deploy with qemu.confSteven Dake1-1/+0
Closes-Bug: #1572819 Change-Id: I1f2edb482af1e85708159a0dba44a79427dc5af3
2016-04-08Fix the qemu has nova permission in nova instances folderJeffrey Zhang1-5/+7
Fix the permission issue on different distro * In CentOS, add the qemu to nova group in CentOS * In Ubuntu, add the nova to libvirtd group Co-Authored-By: Steven Dake <stdake@cisco.com> Change-Id: I1f4f9ce29abf0d788965fe94d8918b10a7169a75 Closes-Bug: #1568012
2016-03-14Use ubuntu Mitaka repoSamYaple1-2/+3
The rabbitmq-server package is upgraded to 3.5.7 in cloud-archive so we update centos to match The xen-utils package now needs an explict version, xen-utils-4.6 is what is provided by cloud-archive mitaka Libvirt 1.3 is in the ubuntu cloud-archive. This has a new daemon for logging that needs further implementation in newton. For now, it has been disabled within the qemu.conf Co-Authored-By: Jeffrey Zhang <jeffrey.zhang@99cloud.net> TrivialFix Change-Id: I84217824817c484b6800a64cbd7767b127a3098e
2016-02-25nova-libvirt is not a child of nova-baseSamYaple1-2/+2
The permissions fix was not applied due to a recent patch. Related-Id: I37d737509bc7cf3dc74bb13ecb0a6ae68080556e TrivialFix Change-Id: Ica737a8e51cdb66b06a09b5484a4915d6e26ee06
2016-02-23Remove duplicate code in nova extend_start.shÉric Lemoine1-3/+3
Change-Id: I37d737509bc7cf3dc74bb13ecb0a6ae68080556e Partial-Bug: #1546944
2016-02-22Multiple hypervisor driver support for novaxionglingfeng1-0/+1
Change-Id: I84a7c817dec17175eb1a5cda64ba9e5056c57e50 Implements: blueprint nova-multiple-drivers
2015-12-29change libvirt sock group to novaKuo-tung Kao1-4/+3
Add `nova` user to nova-libvirt container. And change libvirt-socket group to nova. Change-Id: I183c83f4be8b1d7c75d4ac204df7b7e059626aa2 Closes-Bug: #1525583
2015-12-07Run libvirtd as rootMichal Rostecki1-1/+1
Currently we are not creating any non-root user for running libvirt daemon. That should be done in the future, but currently when we don't have such a user, libvirtd should be runned by root. Change-Id: Ieb0d8bd068b591f522548628b0bfffbe206b749e Related-Bug: #1523630
2015-12-03Drop root for novaSwapnil Kulkarni (coolsvap)1-0/+2
Updates to ensure commands run in the nova containers are done as the 'nova' user rather than root. Change-Id: I0dd0276c2848ad77d92d350dfa0f20161329ed55 Partially-Implements: blueprint drop-root
2015-11-23Remove hardcoded MAINTAINER in DockerfilesSwapnil Kulkarni (coolsvap)1-1/+1
Added new option in kolla-build.conf Change-Id: I45fe51966bcb59ea19d112281ba3d5a1ba091a56 Closes-Bug:#1514304
2015-11-01Prevent virbr0 from being created by defaultSam Yaple1-1/+2
Small change to remove the default network since neutron handles all of the bridge and veth creation. virbr0 becomes clutter. CentOS doesn't seem to come with this default.xml network, so no change there. Note: This doesn't remove virbr0 from a running system, it only prevents its creation. Change-Id: I8e118ea285c674a47884bbe864df134133406bbc Closes-Bug: #1512060 Potential-Backport: Liberty
2015-10-13Make Ceph work for RPM based distributionsSteven Dake1-0/+1
Ceph packages need to be installed in nova, glance, and cinder. Once that is done, Ceph works like a champ! Change-Id: I296da1d04d0c1bcb729f22e65e432d53d561b49c backport: liberty Closes-Bug: #1505549
2015-10-06Common start.shSam Yaple1-3/+2
The majority of the start.sh code is identical. This removes that duplicate code while still maintaining the ability to call code in a specific container. The start.sh is moved into /usr/local/bin/kolla_start in the container The extend_start.sh script is called by the kolla_start script at the location /usr/local/bin/kolla_extend_start . It always exists because we create a noop kolla_extend_start in the base directory. We override it with extend_start.sh in a specific image should we need to. Of note, the neutron-agents container is exempt from this new structure due to it being a fat container. Additionally, we fix the inconsistent permissions throughout. 644 for repo files and the scripts are set to 755 via a Docker RUN command to ensure someones local perm change won't break upstream containers. Change-Id: I7da8d19965463ad30ee522a71183e3f092e0d6ad Closes-Bug: #1501295
2015-09-28Implement a install_type and install_metatypeSteven Dake1-1/+1
This prepares for the RHEL OSP implementation by making the build tool convert all binary-* into an install_type of binary and * into an install_metatype variable substitution inside the Dockerfiles. Further binary-* is substituted as install_name to enable proper building only. Change-Id: Ib681b29176eb79a3cab12ec824313fdecb6e7a5f Partially-Implements: blueprint rhel-based-image-support
2015-09-25Make OpenStack use CephSam Yaple1-1/+4
This implements all the openstack pieces needed to make ceph work. DocImpact Change-Id: I1d24476a966602cf955e5ef872b0efb01319894a Partially-Implements: blueprint ceph-container Implements: blueprint kolla-live-migration
2015-09-25Fix removal of config-externalSam Yaple1-1/+0
I removed the files but not the COPY commands thus breaking all of Kolla Change-Id: I37d3e0cb94a1ecc12971f485f953310ba8fee53c Partially-Implements: blueprint replace-config-external
2015-09-04Add 'rhel' for RPM distrosSteven Dake1-1/+1
Add 'rhel' to list for RPM based distros. Also sort the distro list for rpm packages for affected lines. Change-Id: Ied4cb3e9763d6c6359f314d16185383ac3e006ed Partially-Implements: blueprint rhel-based-image-support
2015-08-31make nova-libvirt is child of baseSam Yaple1-1/+1
Change-Id: I10677bcbb748ff99923e71ead982e778a41f2529 Closes-Bug: #1490246
2015-08-28Move docker_templates to docker dirSam Yaple1-0/+32
Updated build.py to reflect this change. Deprecate --template option and make it a noop. Change-Id: I7cd98d1ee684a4c64984a49597159868152683b2 Partially-Implements: blueprint remove-docker-dir