aboutsummaryrefslogtreecommitdiff
path: root/docker/cinder
AgeCommit message (Collapse)AuthorFilesLines
2018-08-06Using qemu-kvm on rhelAttila Fazekas1-2/+10
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-05-26Bump Ubuntu base image to 18.04Jeffrey Zhang1-24/+4
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-03-01Need to install cryptsetup for cinderliyingjun1-0/+4
when creating encrypted volume from image, cryptsetup is needed. Change-Id: I6fab763ba2c17c42e5acf371ef5c02c92600f3e1 Closes-bug: #1752256
2018-01-05Apply Cinder rolling upgradeDuong Ha-Quang1-0/+9
Apply Cinder database migration procedure: [1] https://docs.openstack.org/cinder/pike/upgrade.html Change-Id: I9a847b0a916a85d8f2622e93734330da5122f0d8
2017-11-09Add missing vmware libsPierre Hanselmann1-2/+4
Neutron and Cinder base images doesn't include the necessary vmware libs. If we enable vmware nsx (nsxv or dvs) we need those libraries to be available. Closes-Bug: #1730662 Change-Id: I94005728fbce8320d7cf9d3b746978d8c7634ed5
2017-10-09Merge "cinder-api: handle Debian too"Jenkins1-1/+1
2017-10-02cinder-api: handle Debian tooMarcin Juszkiewicz1-1/+1
Change-Id: Ia4e24568f557a9dd6681a6cdd6def6869b8b6d16
2017-08-31cinder-volume: handle rtslib(-fb) situation in DebianMarcin Juszkiewicz1-4/+26
Closes-Bug: #1714217 Change-Id: I17b387a64132dc2cf17ead292b2472427f04e263
2017-08-18Add systool binary for cinder-volume containerJeffrey Zhang1-0/+2
systool is used when using FC driver backend[0]. [0] https://github.com/openstack/os-brick/blob/master/os_brick/initiator/linuxfc.py#L94 Closes-Bug: #1711490 Change-Id: I4f2a6ff30ec31b835eacf89ea07493e60fa29b2c
2017-07-18Adding thin provision tools to cinder volume for UbuntuSerguei Bezverkhi1-1/+3
Adding thin provision tools to cinder volume for Ubuntu Change-Id: I91ac2818c72d96b58b7df3fbdf06dd3c42b36cf7
2017-07-12Adding targetcli tool to cinder-volumeSerguei Bezverkhi1-4/+7
targetcli tool will be used by kolla-k8s's iscsi-target microservice to save and restore lioadm targets. Change-Id: I7c38d814c5d1dd336d7199c41b77d63b06a4989b
2017-07-10Adding python-rtslib to cinder-volume for lioadm supportSerguei Bezverkhi1-3/+6
Adding python-rtslib to cinder-volume for lioadm support Change-Id: I5e64699909e8aa23ed58f5d8a23011620a76996b
2017-07-06Merge "Migrate cinder-api under apache"Jenkins1-10/+14
2017-07-04Migrate cinder-api under apacheEduardo Gonzalez1-10/+14
Cinder-api in ubuntu binary was migrated under apache because ubuntu packages removed support to system services. This change migrate other install_types under apache to unify all types. Change-Id: Iad6792142019134513a378a7ad9955888ef320e9
2017-05-12Fix if $user is root at extend_startegonzalez901-1/+1
In ubuntu is not evaluating correctly if $user == root check at extend_start. Changing to "$(whoami)" == 'root' fixes the issue Change-Id: I296a1f98764cdfa09650c483bc7beba53e6bdba4 Closes-Bug: #1690360
2017-05-03Override image's meta info.Jawon Choo5-5/+5
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-20Merge "Use LABEL instead of MAINTAINER (deprecated) in all Dockerfile.j2"Jenkins5-5/+5
2017-04-20Add missing cleanup step for new apache imagesMartin André1-3/+4
A few new images got apache as part of blueprint apache-packages-for-apis without a cleaning up. Without this step the containers may fail to restart due to runtime files already present. This commit fixes it for all images with the exception of heat-base so that it can be cleanly backported to stable/ocata. It also removes the unused APACHE_DIR variable from freezer-api and keystone extend_start.sh script. Change-Id: I47d75221b3d1aae91f11d3e0da83e221a00315b7 Closes-Bug: #1679565
2017-04-20Use LABEL instead of MAINTAINER (deprecated) in all Dockerfile.j2Chen5-5/+5
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-19Fix cinder-api ubuntu binaryEduardo Gonzalez2-1/+20
This changes moves cinder-api to make use of apache to launch its processes. Ubuntu binary removed support in Ocata for cinder-api system services [1]. At this moment cinder in Ocata branch is not working at all due this issue. This changes aims to fix cinder in master only for ubuntu binary with the purpose of make a clean backport to stable/ocata without do any other change on the backport process. A follow up change will migrate other OS/install_type to make use of Apache but only changing master branch. [1] http://lists.openstack.org/pipermail/openstack-dev/2017-January/111069.html Change-Id: I86ae3ec899e9b7b1ad9f727b9b9bb3549738f944 Closes-Bug: #1676751
2017-04-04debian: enable all images enabled for UbuntuMarcin Juszkiewicz5-9/+9
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 Gonzalez4-17/+17
Some images have packages sorted alphabetically and some not. Unify common style between all images. Change-Id: I906ed89c10b12886665618752f525ba71d83d991
2017-03-27RHEL: Add mod_ssl for services running over httpdJuan Antonio Osorio Robles1-4/+8
This apache module is necessary for when one wants to use TLS for the services running over httpd. This only addressed RHEL based systems at the moment, since there is no such package available for Ubuntu. This requires apache2.2-common which will carry a lot more dependencies; So I think this should be handled and decided in a separate patch. when installing mod_ssl in RHEL-based distributions, an ssl.conf file is installed in the /etc/httpd/conf.d directory. This file tells httpd to listen on port 443; however, we don't want to do this by default, since this should be explicitly enabled by the container's configuration. This line is thus removed from the configuration. A release note was added, which specifies this. And the last sentence can be removed if this is addressed for debian/ubuntu as well. Related-Bug: #1675490 Co-Authored-By: Martin André <m.andre@redhat.com> Change-Id: Id6215d31547247309d43c031e163fa9e4c4ec5dc
2017-03-23Prevent apache from listening on port 80Martin André1-2/+8
A few new images got apache as part of blueprint apache-packages-for-apis without restricting it to listen on port 80. This commit fixes it for all images with the exception of heat-base so that it can be cleanly backported to stable/ocata. Co-Authored-By: Juan Antonio Osorio Robles <jaosorior@redhat.com> Change-Id: Idd3bbeffea9233eaed420798e22ea9a3a517c166 Closes-Bug: #1675308
2017-03-11cinder-volume ubuntu source buildCharlie Kang1-3/+4
Move debian based family package installs to base_distro from binary conditional. This follows RedHat based family install Closes-Bug: #1671923 Change-Id: I038b6a198d7fd0cf805b211bc32d55bfe88bd581
2017-02-17Use install-pip macro in most source imagesChao Guo1-1/+5
1. Enable customization of pip packages in source branch of most images 2. All pip packages install uniformly through install-pip macro, user can easily customize his own pip command (For example using a mirror) Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com> Change-Id: If09582039f690fa4136e8f33200d5da15e092da7
2017-02-07Merge "Remove include_header and include_footer in all Dockerfiles"Jenkins4-4/+0
2017-02-05Delete the extra blank lineszhubingbing5-38/+0
Change-Id: I41fdfd819c7b162f949a50f928350f246eba7df4
2017-02-05Remove include_header and include_footer in all DockerfilesJeffrey Zhang4-4/+0
include_header and include_footer parameter is already removed, remove them in all Dockerfiles. Add missing footer block. Change-Id: I90da03eb9f95a3827361d5f5ede65fde7d6be2b3
2017-01-17use static uid/gid in imagesSam Yaple1-6/+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
2017-01-12Add Apache packages to cinder-api containerDan Prince1-2/+27
Some projects that use Kolla docker containers (TripleO) run cinder-api under httpd. This patch adds the httpd package so that it exists in the container and can optionally by used via Docker entrypoints. As many of these projects do not require the use of Apache (it is opt-in) at this point not all deployment frameworks support the use of it so the existing configuration defaults have been left as-is for now. Partial-Blueprint: apache-packages-for-apis Change-Id: Ibf9665c268465971f92218833542e20623d1d296
2017-01-05Remove footer block and variable in *-base imagesJeffrey Zhang1-1/+0
Change-Id: I39aa88489f744f779150695f3f55ef80d42e1c61 Closes-Bug: #1653247
2016-11-07Allow cinder-volume to be configured to use NFSxionglingfeng2-31/+3
Allow cinder-volume, nova-compute and nova-libvirtd to be configured to use NFS. In order to mount and work with NFS shares, several containers needed the NFS packages installed during build time. One somewhat significant change is the addition of an explicit bind volume for nova-compute that has shared mounts enabled. According to docker-run(1), the shared mount propagation flag can only be specified for bind mounted Docker volumes and not named volumes. In an NFS setup, cinder-volume mounts the NFS shares so that it can create and manage the Cinder volumes. When a new instance is created with a Cinder volume or a Cinder volume is attached to an existing instance, nova-compute mounts the Cinder volume from the NFS share for nova-libvirtd. In order for nova-libvirtd to then see those Cinder volumes the shared mounts flag must be enabled for the Docker volume. Remove the rpcbind container as it is only necessary for operators who are using NFSv3 or lower. There is no known need for this currently however, this container can be added in the future should an operator require it. Co-authored-by: Ryan Hallisey <rhallise@redhat.com> Co-authored-by: Andrew Widdersheim <amwiddersheim@gmail.com> Change-Id: Iad77c05bce8876bdcc69b7ec22edd50e3bf48b9f Closes-Bug: #1530515 Partially implements: blueprint nfs-support-in-cinder
2016-11-04Merge "Fix cinder volume permission issue"Jenkins1-2/+2
2016-11-04Merge "Remove Fedora support"Jenkins5-7/+7
2016-11-04Fix cinder volume permission issueJeffrey Zhang1-2/+2
cinder volume container overwrite the default cinder_sudoers file in Ubuntu binary install type. Rename it to kolla_cinder_volume_sudoers Change-Id: I20a362ccb3b4d8e6422f63a1815b62ba47c9d7c1 Closes-Bug: #1638585
2016-11-03Changed the start script name in cinder-volumeliuhongjiang1-2/+2
In the Dockerfile of cinder-volume, the "kolla_extend_start" script will be overwritten, and it will cause the cinder-volume container doesn't create /var/log/kolla/cinder folder. The name of the start script should be "kolla_cinder_extend_start" in cinder-volume container. Change-Id: I7251792a4fbe1442e2ffc5ebd9e41bd9cdc33568 Closes-Bug: #1638839
2016-11-03Remove Fedora supportChristian Berendt5-7/+7
Closes-bug: #1616387 Change-Id: Id97f88b9baa3d48d33ce120962450a374282d044
2016-09-13Add header blocks to all DockerfilesPaul Bourke6-0/+12
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-09-07Cinder-backup misses client part for NFS backendVladislav Belogrudov1-2/+25
When using an NFS server for backup a cinder container mounts a location specified in configuration file (one can do this via add-on files). The mount process fails due to missing mount.nfs and mount.nfs4 tools. Change-Id: Ic34667c1bf4d4660a4e773a9f8d98996ea11c070 Closes-Bug: #1620548
2016-08-29Change source with dot at extend_start filesEduardo Gonzalez1-1/+1
Is a best practice in Unix/Linux scripts to use dots instead of source command. Using dots will avoid issues with non BASH shells TrivialFix Change-Id: Ie6480a1954f853f79faffa093452715ebd9f7d90 Signed-off-by: Eduardo Gonzalez <dabarren@gmail.com>
2016-08-19Handle empty package list for install_packagesShaun Smekel6-9/+9
Currently if the install_packages macro is run with an empty package list, it will add a yum or apt-get command with no packages listed. This bug fix aims to omit this line when no packages have been given, or, the operator wants to use the "_override" / "_remove" functionality to disable all packages being installed in a Dockerfile. Co-Authored-By: Paul Bourke <paul.bourke@oracle.com> Change-Id: Ifaaaebfccc3adb0f2f68a35ac08e59378bc87fdb Closes-bug: 1612446
2016-08-11Customizations for CinderPaul Bourke6-54/+103
Implement the new Jinja2 based templating patterns for Cinder, as outlined in the below blueprint. Change-Id: I8d0131aff9cc406bd80ce384003308aee672412a Partially-implements: blueprint third-party-plugin-support
2016-07-18Add Cinder-Volume Package for Ubuntu binary installMathias Ewald1-0/+9
The cinder-volume package is not installed in the cinder-volume container anymore for the Ubuntu binary install. It is still there in stable/mitaka but got lost at I7fb48c954e578772b90a2aa619c8bcfa990b3ae8 Co-Authored-By: Jeffrey Zhang <jeffrey.zhang@99cloud.net> Change-Id: Icf086b241403c1f9098f70d902484b0c565457d0 Closes-Bug: #1603361
2016-07-05Fix the overwrite sudoers file issueJeffrey Zhang1-2/+2
Change-Id: I4b109f7fdc3b8e49defed26979b04ca158842e98 Closes-Bug: #1598423
2016-05-26Update ubuntu dockerfiles for formattingSwapnil Kulkarni (coolsvap)6-7/+7
Change-Id: If4be00b937e14ec93443dcb7249cf17099d57cbe Closes-Bug: #1569417
2016-04-13Update Cinder dockerfiles for formattingSwapnil Kulkarni (coolsvap)3-3/+5
Change-Id: I73a97fa7b7f4a38aea778d9e7e482f35e22c62a8 Partial-Bug:#1569417
2016-04-10Adds iscsid and tgtd docker containersSerguei Bezverkhi3-6/+33
This partially implements iscsi and lvm2 support for cinder in Kolla. Adds iscsid and tgtd docker containers. Change-Id: I7fb48c954e578772b90a2aa619c8bcfa990b3ae8 Partially-Implements: blueprint iscsi-lvm2-docker
2016-02-24Merge "Allow cinder-volume to be configured to use nfs on Centos"Jenkins1-0/+21