aboutsummaryrefslogtreecommitdiff
path: root/docker/nova-controller/nova-api
AgeCommit message (Collapse)AuthorFilesLines
2015-05-15Restructure builds to allow more flexibilitySam Yaple4-74/+0
As a restructure, nothing is changed from the original behaviour and naming despite the file structure changing. The symlinks to build had to be updated generating lots of "deleted" and "new_file". The new structure is: docker/${base_distro}/${type}/${container} base_distro == centos, ubuntu, fedora, etc type == source, binary, rdo type rdo is a symlink to binary for backwards compatibility Two new flags are added to the build-all script to support the ability to support different base distros and a flag to support binary or source containers. There are several added folders that are empty to hold the directory structure for future containers of these types. To use a prefix other than centos-rdo- you can set PREFIX in the toplevel directory .buildconf file Change-Id: Ifc7bac0d827470f506c8b5c004a833da9ce13b90
2015-05-06Make nova read config files for KiloSteven Dake1-1/+1
In Kilo, nova no longer reads the config files automatically. They must be specified in the command line to run the nova-* tools. Change-Id: Ifbdf4fd3f952f7bb65e9937b46cf9b96e262c3b0 Paritally-Impleents: blueprint port-kilo
2015-05-06Port to icehouseSteven Dake1-1/+1
This represents making build-docker-images --release build with the icehouse tag and causes docker-compsoe to pull from the icehouse tag. Partially-implements: blueprint port-kilo Change-Id: I66b2c39abc55c0f47152dd90e696fc46b9c58f50
2015-04-27Change the default shell to bashChen Zhiwei2-2/+2
Unify the shell to bash in all Kolla scripts. Change-Id: Ib9591b2f8f344eb88455c5e9b7ecf2164fb5960a Implements: blueprint use-bash-shell
2015-04-13Removes check_required_vars for Log FilesDaneyon Hansen1-2/+1
Previously, check_required_vars was requiring log file variables to be set in openstack.env. This would cause an error when starting nova/neutron containers that used default (blank) log file settings. Since the log files are not required for the services to start, the default log files are left blank (without a value in the K/V pair). This patch removes the log_file variable for check_required_vars in each nova/neutron script. Change-Id: I169baab28f63a0e0ae06c8aef21b5e8d3155bdda
2015-04-07Adds Initial Logging SupportDaneyon Hansen1-1/+7
Previously, logging was hard coded into the nova and neutron containers. This patch creates two common params for logging: DEBUG_LOGGING VERBOSE_LOGGING and sets default values of verbose=true and debug=false. This patch implements logging for Nova and Neutron. Add'l OS service config scripts and images will need to be updated to use the logging params. Change-Id: I03d48005d5b4789aa3c519879a20d963ef1cbaa3
2015-04-06Remove EXPOSE options from DockerfilesSteven Dake1-2/+0
The EXPOSE options will create a local docker-proxy. This is unnecessary with --net=host mode. The docker-proxy adds about 20 microseconds of latency. Add documentation to the specification to indicate where to find the ports that are exposed by the services in case someone were to desire to add EXPOSE back to the Dockerfiles. Change-Id: I398e922fe096d6022a2d5985bb92498f89a5ea31
2015-04-01Allow check_for_* functions to be consumed by wait_forMartin André1-2/+2
In order for the `check_for_*` functions to be consumed by `wait_for`, they should notify of their success but not exit. As a consequence, the previous behavior is restored by the fail_unless_* companion functions. With this change, it is now possible to do: wait_for 30 1 check_for_os_service_running keystone Change-Id: I16ddf8913027030c3ccb5487713d172904508fd6
2015-03-02Allow changing base imageMartin André1-1/+1
By changing the PREFIX variable in the .buildconf one is now able to build docker images from different bases. For example, add the following line to your .buildconf file to build CentOS based images: PREFIX=centos-rdo- Default base image is Fedora. For now only RH family is supported. Additionally, changing the namespace either with the NAMESPACE variable in .buildconf or via --namespace commandline option now changes the source namespace as well from the default kollaglue one. Implements: blueprint multi-baseos Co-Authored-By: Steven Dake <stdake@cisco.com> Change-Id: I3964cd2292789ea883a1f2d2738a5731a4fff49b
2015-02-24Remove l3_ovs_wip tag from DockerfilesSteven Dake1-1/+1
These tags don't belong in docker files. Instead we should put them in the build system since the build system will be creating a custom From line in the Dockerfile. Partially-implements: blueprint multi-baseos Change-Id: I68d0a0e572e35f39dbe21f7c536d7ac4ca885da3
2015-01-21Check for nova DB availability in dependent containersMartin André1-1/+2
When nova-api start and the nova database hasn't yet been created, it would create it itself, preventing the migration in nova-conductor to run and making it unable to start. This commit ensures that nova-api container will not try to steal nova-conductor's job of creating the nova database. Nova-scheduler reacts differently to the missing database and simply exits with a backtrace. This commit also prevents nova-scheduler to start when the nova database cannot be found. Change-Id: Ib6f7521151815faa7a26ec1d170df5a1cdb7fd63 Related-Bug: #1335804
2015-01-19Cleanup required variables checks for all containersMartin André1-0/+4
This allows Kubernetes to reschedule containers in case a required variable is missing, for example when the Kubernetes pod is started before the service. The checks were cleaned using the following method: * remove duplicates * remove check for variables that get a default value in the same file * check for all variables used in the file * check for required services when it is obvious. Change-Id: Ib7e0530c410c61f828d36efe8925a20dc9781eab
2014-11-25Adds Neutron Networking SupportDaneyon Hansen1-1/+1
Implements: blueprint kube-neutron-container Previously, only the neutron-server service was functional. This patch adds support the the rest of the neutron services need by Nova instances to function. The linux-bridge agent is used instead of the OVS agent to realize network abstractions. This is because the ovs-agent package will install the kernel module version of OVS instead of the userspace version. Additionally, the OVS userspace code is still very experimental and reduces performance. Requires: https://github.com/larsks/heat-kubernetes/pull/8 Change-Id: I5ef34ddeb48d4954934571a928cc82ae7f3a0f20
2014-10-22Update MAINTAINER in Dockerfiles to Kolla ProjectLars Kellogg-Stedman1-1/+1
Remove individual MAINTAINER information from Dockerfiles. Change-Id: I777df5cde049599dc786176e1d5b4b9597f0b334
2014-10-17fix script name in nova-controller imagesLars Kellogg-Stedman1-1/+1
Change-Id: Ia0b9057887bf34423546ca36346d9253ef4c90b9
2014-10-17introduce a common base for compute and controllerLars Kellogg-Stedman1-1/+1
This moves nova-ctr-base one level up and renames it nova-base, so that we can share the same basic config between compute and controller pods. Change-Id: I325f70c278744a1e1fe99b891e05c59c4248c55f
2014-10-17Properly create endpoints for Nova servicesSteven Dake1-4/+16
The endpoints for Nova services needed to be properly created for ports 8773 (ec2/ec2) and 8774(nova/compute) and 8774(novav3/computev3). Change-Id: I5e1931d2e7ea35f741ab73b070e24926a3763054
2014-10-16Merge "add /check.sh script to nova-api image"Jenkins2-0/+19
2014-10-16add /check.sh script to nova-api imageLars Kellogg-Stedman2-0/+19
Change-Id: Ia0f796b3a580c57b9f84390bae3b1012f99dcce0
2014-10-16Wrong shell script specified in start.shSteven Dake1-1/+1
start.sh was trying to run nova-config.sh which has been renamed nova-controller-config.sh Change-Id: I546ce046c0789144cb48668500ea4b206d07487d
2014-10-16Make shell scripts executibleSteven Dake1-0/+0
Without +x, docker will not run the shell scripts and the containers exit immediately. Change-Id: I03ca231d6e46131a58c01fae0f9b65e0a3722d36
2014-10-16renamed nova-controller -> nova-ctr-baseLars Kellogg-Stedman1-1/+1
there is a 31 character limit on image names in docker hub. Change-Id: I9624668fc2f09c397084eadf792d4d0cc8486ae1
2014-10-16have start.sh source in common configuration scriptLars Kellogg-Stedman1-23/+15
Change-Id: I90fcd6ed43ce6c2b224eb43492586c8f4231ceda
2014-10-14Expose ports needed by the nova-controllerRyan Hallisey1-0/+2
The nova-controller will be using ports 8773, 8774, and 8775. Therefore, Docker needs to be made aware of this. Change-Id: Ia53dd50bdce4b328c246bad5399ab7ff44750d58
2014-10-13Nova-api should not set up the databaseRyan Hallisey1-9/+0
Instead, nova-conductor will setup the database. Change-Id: I91a46aa9bc3fc99fe58053b239929c8121864283
2014-10-07Initial setup for nova-controllerRyan Hallisey3-0/+50
Partial-blueprint: kube-nova-container Change-Id: Ib48e6318ae458bf03510725a220332d1920cbeae