summaryrefslogtreecommitdiff
path: root/docker/nova
AgeCommit message (Collapse)AuthorFilesLines
2017-01-17use static uid/gid in imagesSam Yaple3-21/+10
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 nova-api containerDan Prince1-2/+25
Some projects that use Kolla docker containers (TripleO) run nova-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: Id22da4626c659d8c9f457b71d9423e5fd9e8c25a
2017-01-03Remove source install type for novnc / spicePaul Bourke2-11/+20
Currently Kolla only offers source installs for OpenStack projects. The novnc and spice images have been consistent with this resulting in tarballs being pulled from github. The binary/source distinction should be removed for these images. Change-Id: Ibdf593a2a164e39bba3ea2a0e6333f2de876c2a0
2016-12-01Remove the "nova-network" container filecaoyuan1-41/+0
The nova-network service was deprecated, this patch to remove nova-network container. TrivialFix Change-Id: I73b4215f7538570e1140780e9f52df9ca58e92ff
2016-11-14Merge "Allow operators to customise pip packages in nova_compute"Jenkins1-1/+6
2016-11-11Allow operators to customise pip packages in nova_computePaul Bourke1-1/+6
TrivialFix Change-Id: I75b82d1d949990f77a1d70992c23544cf53cf9b3
2016-11-07Allow cinder-volume to be configured to use NFSxionglingfeng1-0/+4
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-06Merge "nova-spicehtml5proxy dependency package added"Jenkins1-2/+4
2016-11-03Remove Fedora supportChristian Berendt12-16/+16
Closes-bug: #1616387 Change-Id: Id97f88b9baa3d48d33ce120962450a374282d044
2016-11-03nova-spicehtml5proxy dependency package addedprameswar1-2/+4
centos based container already have python-websockify installed. but it gives warning to install numpy package. ubuntu based container need to install websockify package that will install both module websockify and its dependency numpy module. so no need to install numpy package externally in ubnutu but in centos it need to install. Closes-bug: #1638801 Change-Id: Ic858543733ec86f55ab506edcd3631a6df1a086d
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-16Merge "Add nova-serialproxy container"Jenkins1-0/+27
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-14Add nova-serialproxy containerEduardo Gonzalez1-0/+27
Change-Id: I9cd7e6d26af913f06f6b9119496e2f228266b293 Partially-Implements: blueprint nova-proxies Signed-off-by: Eduardo Gonzalez <dabarren@gmail.com>
2016-09-13Add header blocks to all DockerfilesPaul Bourke12-0/+24
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-01Merge "Create the nova instances directory when need during starting"Jenkins1-4/+1
2016-08-31Merge "Fix nova_ssh container shell to allow instance resizes."Jenkins1-0/+2
2016-08-31Fix nova_ssh container shell to allow instance resizes.Matthew Taylor1-0/+2
According to the configuration reference, http://docs.openstack.org/mitaka/config-reference/compute/resize.html When using KVM, nova utilizes SSH for instance resizing. Kolla nova_ssh container has the nova user configured with "/sbin/nologin" shell, which prevents nova_compute from successfully resizing instances. Added fix to change shell from nologin to bash. Change-Id: I46a48e242dae6ee6c9159bc30edd8b823ffbb515 Closes-Bug: 1617902
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-25Customizations for NovaPaul Bourke12-171/+270
Change-Id: I7556d6cd473516c7ceb4aba7c1ba1130af2544ee Partially-implements: blueprint third-party-plugin-support
2016-08-20Create the nova instances directory when need during startingJeffrey Zhang1-4/+1
The /var/lib/nova/instances should be create if it do not exist during starting nova-compute container. Rather than create it at the bootstrap service stage. Change-Id: Ibcc5fb8eec0b38cf2b4313f48d1beb3ba83b1e85 Closes-Bug: #1614970
2016-08-20Pin to Ubuntu 16.04Jeffrey Zhang1-0/+1
Upgrade Ubuntu base image to Xenial Closes-Bug: #1593599 Change-Id: I5832a729a9a4fa73c02442047c92ba088ce20db3
2016-07-05Fix the overwrite sudoers file issueJeffrey Zhang1-2/+2
Change-Id: I4b109f7fdc3b8e49defed26979b04ca158842e98 Closes-Bug: #1598423
2016-06-16Fix ownership of nova-novncproxy-source directoryChristian Berendt1-1/+3
This solves the following issue when using latest noVNC sources for the nova-novncproxy container: OSError: [Errno 13] Permission denied: '/usr/share/novnc' Change-Id: Iea1f3dfcc696f53431e99570019e27cdef4ca5cb Closes-bug: #1593006
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-30Install missing package in spiceproxy containerChris Ricker1-0/+1
nova-spicehtml5proxy service fails on RPM-based systems unless the spice-html5 RPM is also installed. Change-Id: I0807159cd68bcc9df4da2d94d7b54a2871236f59 Closes-Bug: #1587212
2016-05-26Update ubuntu dockerfiles for formattingSwapnil Kulkarni (coolsvap)12-14/+14
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-13Update Nova dockerfiles for formattingSwapnil Kulkarni (coolsvap)7-7/+14
Change-Id: Ie3731732f2026cd0d3a1bda2925be2b6479ae5c7 Partial-Bug:#1569417
2016-04-12Merge "Adds iscsid and tgtd docker containers"Jenkins1-0/+14
2016-04-10Adds iscsid and tgtd docker containersSerguei Bezverkhi1-0/+14
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-04-08Fix the qemu has nova permission in nova instances folderJeffrey Zhang5-15/+9
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-04-05Merge "Adds migration step from nova to nova_api database"Jenkins1-0/+1
2016-04-05Adds migration step from nova to nova_api databaseSerguei Bezverkhi1-0/+1
This patch adds a missing required step to migrate information from the nova to the new nova_api database. Closes-Bug: #1565497 Change-Id: Ia1554e12c688e5a6509af2d37f1825fd4ab666be Co-Authored-By: Steven Dake <stdake@cisco.com>
2016-04-03Implement nova-ssh containerJeffrey Zhang3-3/+46
Add a nova-ssh container to handle the `nova migrate` and `nova resize` case, in which the nova will use ssh to copy files between machines. Change-Id: Ie6675943f3aeabfbba8589d308d55b9c89d732db Closes-Bug: #1562141
2016-03-29Fixing permission for libvirtd.logSerguei Bezverkhi1-0/+3
Fixing permissions so all users could access libvirtd.log Change-Id: I6f63a847ba9c5591a87922d3b117b101100b2fad Closes-Bug: 1563430 Co-Authored-By: Steven Dake <stdake@cisco.com>
2016-03-25Merge "Adds genisoimage package dependency to nova-compute"Jenkins1-0/+4
2016-03-22Make heka collect libvirtd.log in nova_libvirt containerVikram Hosakote1-0/+7
Test results of this patch set are at: http://paste.openstack.org/show/491382/ Change-Id: I1bc8bdb3180f30dc69af28a35fa057ac801bde0f Closes-Bug: #1560298
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-03-03Libvirt needs openvswitch to connect br-intRyan Hallisey1-0/+3
Libvirt is trying to create a port on br-int and is failing because ovs is not installed. Co-authored-by: Ian Main <imain@redhat.com> Closes-bug: 1552717 Change-Id: I6ed0c1ae5b27b58e4c22bcbe7e674f66cde48990
2016-02-26Adds genisoimage package dependency to nova-computeSean Mooney1-0/+4
- This change enables the nova-compute agent to generate config drives to attach the an instance. - This allows the config drive to be used to pass cloud-init config files to a guest enableing first boot configuration. Change-Id: Id17741b3fce1382350914c1b6c818b0020fe839a Closes-Bug: #1538288
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 Lemoine8-30/+12
Change-Id: I37d737509bc7cf3dc74bb13ecb0a6ae68080556e Partial-Bug: #1546944
2016-02-22Multiple hypervisor driver support for novaxionglingfeng3-1/+8
Change-Id: I84a7c817dec17175eb1a5cda64ba9e5056c57e50 Implements: blueprint nova-multiple-drivers
2016-02-19Make Heka collect Nova logsÉric Lemoine5-2/+35
Partially implements: blueprint heka Change-Id: I67dfc5d762d74454e4a852dd61c57fe9cd4b78c8
2016-02-10Merge "Safely create directories"Jenkins1-1/+5
2016-02-10Safely create directoriesMartin André1-1/+5
This prevents failure when the directory already exists. This commit fixes a failure in centos-binary because of a change in the RDO packaging, where the required directory is now created for us. Change-Id: Idd3e15802c3e3fd363e1295111ec12948d566781 Closes-Bug: #1543417
2016-02-09Cleanup dependencies for nova-baseMartin André1-4/+0
The python-nova package now pulls the required dependency on python-oslo-policy: https://github.com/openstack-packages/nova/blob/036149e93fc41649d1e827e163180e7d9e6cbec5/openstack-nova.spec#L389 TrivialFix Change-Id: I472f600710cb743ef6ede01e722a79b1451cf295
2016-02-06Correct issue with virtualenv rootwrapSamYaple1-1/+2
Because we use rootwrap in a venv we need to update the exec_dirs. Without doing this *some* commands will break for various reasons that I won't get into in this review in detail. But this is required for neutron-l3-agent in a container + drop-root. Change-Id: I1a09f7188fdd501b7ce251d9f2fb0e5b10222142 Partially-Implements: blueprint drop-root