aboutsummaryrefslogtreecommitdiff
path: root/docker/nova
AgeCommit message (Collapse)AuthorFilesLines
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-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
2016-02-02Create nova-api databaseSamYaple1-0/+1
This is a required patch. Kilo introduced a nova-api database but didn't use it. [1] Mitaka now uses it and has broken booting instances. [2] [1] https://wiki.openstack.org/wiki/ReleaseNotes/Kilo#OpenStack_Compute_.28Nova.29 [2] https://github.com/openstack/nova/blob/df0fca62cf5324f5b6eae0fed1f88c6c9ed61c71/releasenotes/notes/request-spec-api-db-b9cc6e0624d563c5.yaml Change-Id: If0a7f4ba4937fab8d60f5236ca00db06faa768c7 Closes-Bug: #1540579
2016-01-29Remove the machine-id which cause nova-compute raise exceptionJeffrey Zhang1-1/+2
Change-Id: I3cfb239e6f99e7079b2781b06550fa627fcb8998 Closes-Bug: #1539064
2016-01-22Merge "Ironic ubuntu binary container"Jenkins1-0/+2
2016-01-20Fix permissions to /var/lib/nova/Artur Zarzycki5-0/+21
Due to changes with the drop-root work, we lost the ability to write to /var/lib/nova/*. This fixes those permissions and ensures cross container talk works properly between nova_libvirt and nova_compute Additionally, this fixes another issue introduced which saw that nova-compute could not run sudo commands as it did not have a proper sudoers entry Testing from previous deploys means you need a fresh environment. You have to remove all of the named volumes that kolla created in docker. Check these with `docker volume ls` Signed-off-by: Hui Kang <kangh@us.ibm.com> Signed-off-by: Artur Zarzycki <azarzycki@mirantis.com> Co-Authored-By: Sam Yaple <sam@yaple.net> Co-Authored-By: Hui Kang <kangh@us.ibm.com> Closes-Bug: #1533350 Change-Id: I7f864c448a2414e0b5d89f48337be411b891df35
2016-01-20Ironic ubuntu binary containerAndrey Shestakov1-0/+2
Change-Id: I94ef03c11657d36261f3ddc63056422f84ec2c6a Partially-Implements: blueprint binary-ubuntu
2016-01-07Merge "Nova ubuntu binary container"Jenkins10-0/+70
2016-01-05Cleanup dependencies for nova-baseMartin André1-1/+1
Rely on packagers for managing dependencies. openstack-nova-common now pulls the required packages: https://github.com/openstack-packages/nova/blob/rpm-master/openstack-nova.spec TrivialFix Change-Id: I7f0da95f82221a83ae7bcbfe6f9fd4962db4cc18
2015-12-31Nova ubuntu binary containerArtur Zarzycki10-0/+70
Change-Id: I1bb609dc4d77250c45ffa7e00ea603d24cbcfd6e Partially-Implements: blueprint binary-ubuntu
2015-12-30Merge "change libvirt sock group to nova"Jenkins1-4/+3
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-27Fix pip install settingsSamYaple2-2/+2
There were some inconsistencies with pip install instructions thoughout Kolla. We fix those here. Additionally, we fix the virtualenv to properly use the site-packages on the host if a library is not available in the venv. Change-Id: Ib84d48e8826bb96060338b3fa0782620c98794a8 Related-Bug: #1524684 Closes-Bug: #1529434
2015-12-27Add missing contraintsSamYaple2-2/+2
There were some missing constraint caps on our pip installs TrivialFix Change-Id: I3d0af9556d08a9a0a99248a9992637d08fd3ad01
2015-12-25Add container for nova-compute-ironicAndrey Shestakov1-0/+16
Implements blueprint ironic-compute-container Change-Id: I110bf3aa94bdfd33038ed39d78bd40ea30b13e57
2015-12-12Add workaround to fix centos-binary-deploy gateMartin André1-0/+3
The RDO nova package is missing a dependency on oslo-policy and this is breaking our centos-binary-deploy gate. Install the missing package in nova-base until the issue is fixed upstream. Change-Id: Iece7edd754c6f173635b0e0c437a998f3b9492d3 Closes-Bug: #1525502
2015-12-08Merge "create path, `/var/lib/nova`, in nova-base"Jenkins1-2/+2
2015-12-08create path, `/var/lib/nova`, in nova-baseKuo-tung Kao1-2/+2
Without root privileges, nova process can't create and access the path, `/var/lib/nova`. Create the path and change the permission. Change-Id: I6e5650298041b672bf386c50ccb68a6a80f9de43 Closes-Bug: #1523753
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)11-1/+21
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-27Source installation in virtualenvMichal Rostecki2-4/+7
Use virtualenv for installation of OpenStack projects and dependencies to avoid conflicts with Python libraries installed by non-OpenStack binary packages. Change-Id: I21ecd673b2e93335b1d3dd4e279e940c9d694c3c Implements: blueprint virtualenv
2015-11-23Remove hardcoded MAINTAINER in DockerfilesSwapnil Kulkarni (coolsvap)10-10/+10
Added new option in kolla-build.conf Change-Id: I45fe51966bcb59ea19d112281ba3d5a1ba091a56 Closes-Bug:#1514304
2015-11-03Merge "Make nova-spice5htmlproxy build on RDO"Jenkins1-2/+2
2015-11-03Make nova-spice5htmlproxy build on RDOSteven Dake1-2/+2
Change-Id: Id031ee7f38a4c023c424e8a8b5d9e1636c4c7563 Closes-Bug: #1512579 Partially-Implements: blueprint nova-proxies
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-21Merge "Add nova-spicehtml5proxy console"Jenkins1-0/+18
2015-10-20Make Ceph install from Source on RPMSteven Dake1-1/+2
Ceph doesnt install from source on RPM because Ceph pulls in python-requests. This causes a cpio error during unpacking because requests is installed in the base image. A simple workaround is to remove in the nova-compute container which is the only container this conflict occurs within. backport: liberty Change-Id: I493900854a53c98f1a5cb6478675a18feceefea5 Closes-Bug: #1508236
2015-10-19Add nova-spicehtml5proxy consoleSam Yaple1-0/+18
Change-Id: I0ca15e00ee52373b84f7021d86a29304526b7436 Partially-Implements: blueprint nova-proxies
2015-10-14Merge "Make Ceph work for RPM based distributions"Jenkins2-0/+3
2015-10-13Make Ceph work for RPM based distributionsSteven Dake2-0/+3
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-13Fix issue with su and bad kernelsSam Yaple1-1/+1
Long story short, some kernels before 3.15 had an issue with using su in a container when the network namespace was --net=host. The gate has a 3.10 and a 3.13 kernel and has a problem with this. This changes everything to use sudo backport: liberty Partially-Implements: blueprint functional-testing-gate Change-Id: I4d79ccaa1cddffcc8393f64e7e1be2538efe33e5
2015-10-06Common start.shSam Yaple16-87/+7
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-29Make libvirt function on CentOSSteven Dake1-0/+8
Recent regressions in the code base removed permission setting of /dev/kvm to root:kvm 660 permissions which are default for CentOS's version of libvirt. Also Libvirt must be able to read its cnofiguration file, which was previously 600 root:root. Now its 644 root:root so its always readable. This is fine, since this file doesn't contain any secret information. Change-Id: Id87cf5da8e37bc5bb613ce919d0293803d0fe5ed Closes-Bug: #1500733
2015-09-28Merge "Implement a install_type and install_metatype"Jenkins9-9/+9
2015-09-28Merge "remove set_configs"Jenkins8-39/+0
2015-09-28Implement a install_type and install_metatypeSteven Dake9-9/+9
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-27remove set_configsSam Yaple8-39/+0
Change-Id: I9bb0a1fac63cc326234b0f06b1e56b43e0753279 Partially-Implements: blueprint replace-config-external
2015-09-27Remove all fail sections for UbuntuSam Yaple1-7/+1
Ubuntu binary is not supported and may never be. Installing from cloud-archive packaging is only for the current stable distros, Ubuntu does not have a Delorean type repo. We place a fail message in the base image to catch this and remove the messages throughout the project. An additional fail message is placed to catch all other things. Change-Id: Id2953f503ebd42226f6a08e75979ae56511c40f7 Implements: blueprint install-from-ubuntu
2015-09-25Make OpenStack use CephSam Yaple3-10/+9
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 Yaple8-8/+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-25Remove config-external.shSam Yaple8-80/+0
Removes config-external for all services that have been replaced in Ansible Change-Id: I839a14418638b977fbc1d02ba6839811b0f909ea Partially-Implements: blueprint replace-config-external
2015-09-23Replace config-external with a JSON file for Novarthallisey8-48/+39
Change-Id: I38c545484a7b1f3906d844eb3a7486e11c4b276a Partially-Implements: blueprint replace-config-external