360 Commits

Author SHA1 Message Date
Jenkins
358e996682 Merge "Start nova-controller services and pods" 2014-10-14 19:42:06 +00:00
Jenkins
ed80f6c515 Merge "Nova-controller needs a start script" 2014-10-14 19:21:48 +00:00
Lars Kellogg-Stedman
bfbf1b8c9b add better validation checks (part 1)
This patch adds a script for validating YAML files, and replaces the
existing JSON checks with one largely identical to the YAML check.

This also provides a script that can be installed as a pre-commit hook
that will perform this checks when you commit changes.  You can install
the hook by running tools/pre-commit-hook --install.

Change-Id: Ib4742a9db062362cfa61d669c691151bc1ca376c
2014-10-14 15:21:22 -04:00
Jenkins
578aab571f Merge "Config will be done by the controller" 2014-10-14 19:20:05 +00:00
Steven Dake
a6edd270db Convert nova-compute-replication to yaml
Yaml is the future - json is the past

\o/

Change-Id: I36a9cbf8db034d1e8deba040a22e556d791c65ed
2014-10-14 11:13:24 -07:00
Ryan Hallisey
41661b3d5c Expose ports needed by the nova-controller
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-14 17:21:52 +00:00
Steven Dake
3063723086 nova-compute-service doesn't expose a port
AFAIK the service files are only for services with ports exposed.  Since
nova-compute doesn't expose a port, kubecfg returns an error when attempting
to register it:

F1014 17:06:34.329482 32317 kubecfg.go:395] Got request error:
service "novacompute" is invalid: port: invalid value '0'

Change-Id: I4d9f8d50d538f42d520f3d9437ab32aa6a226d2b
2014-10-14 10:07:21 -07:00
Steven Dake
c2517e40f2 Start nova-controller services and pods
Start all of the nova-controller services and pods with the start-all-pods
and start-all-services startup scripts

Change-Id: I47fe15d67ef177fbecf342357bff44cf2fdb5d9e
2014-10-14 10:02:45 -07:00
Steven Dake
394725f1b1 Have qemu uri point to correct place
Prevoiusly the connection uri was using an undefined variable.  Now
it will use NOVA_LIBVIRT_SERVICE.

Change-Id: Ia5ceb3428fa7aeb8dd1dd7b500c63119856977f2
2014-10-14 08:36:41 -07:00
Lars Kellogg-Stedman
20e88776bc do not perform database or keystone setup in nova-compute
- do not perform database or keystone initialization in nova-compute
  image (these should happen in the controller images).
- fix incorrect nova.conf path
- configure keystone_authtoken correct

NB: This still won't result in a working image, because it does not
configure the RPC settings yet.  That will be for a subsequent patch.

Change-Id: Icbd66104ef817d360c46003b29fff63f66ace8d2
2014-10-14 11:13:46 -04:00
Jenkins
4ab92d26e6 Merge "Add kube services" 2014-10-14 14:23:27 +00:00
Ryan Hallisey
ed313e4f2e Add kube services
Add kubernetes services so that the nova controller
can use the ports 8773, 8774, and 8775, which correspond with
nova-api, nova-ec2-api, and metadata-api.

Change-Id: Idb083e2e0745c6587f9fa4f01a068727a435c2c6
2014-10-14 14:16:05 +00:00
Ryan Hallisey
742989f88d Update nova-controller's container ports
The previous values were just stand in values.  The new
ports support nova-api, ec2 api, and metadata api.

Change-Id: I330575d9b53b69bcacc61061b271252e61e64d4b
2014-10-14 13:51:15 +00:00
Ryan Hallisey
15cc9c4f5d Nova-controller needs a start script
The nova-controller is going to make all the configurations
so it needs a script to setup nova.conf. The config data is
stored locally in nova.conf and will be read in and executed by line.

Change-Id: Id501212671201ca68cd08018ce024db284dd8c54
2014-10-14 13:11:10 +00:00
Ryan Hallisey
c4b955f662 Config will be done by the controller
Remove config setup in nova-conductor.

Change-Id: I0740e6a69601ab4a39c20a3287792013355a9262
2014-10-14 12:54:23 +00:00
Jenkins
cd13790136 Merge "Nova-api should not set up the database" 2014-10-14 12:39:40 +00:00
Jenkins
659dbe6f63 Merge "batch operations in nova-compute dockerfile" 2014-10-14 12:38:30 +00:00
Jenkins
8fbe677d58 Merge "Nova-controller config setup" 2014-10-14 01:23:49 +00:00
Ryan Hallisey
5dd0e4d958 Minor fixes for the nova-controller Dockerfile
Instead of multiple install commands, add multiple packages
into a single install.

Change-Id: Id27cb53da76df50bf2500eb2d6de18c7401e5c6c
2014-10-13 23:52:55 +00:00
Ryan Hallisey
282b9d2daa Nova-api should not set up the database
Instead, nova-conductor will setup the database.

Change-Id: I91a46aa9bc3fc99fe58053b239929c8121864283
2014-10-13 23:33:04 +00:00
Ryan Hallisey
6b51f35803 Nova-controller config setup
Configurations will exist in nova.conf. They will be read in and
set by the start script.  The mysql configuration will be
made by nova-conductor.

Change-Id: I1709ff6620b19ef5dbcf5efe8b72c329acf96123
2014-10-13 23:13:36 +00:00
Lars Kellogg-Stedman
2f6e0e4eb7 batch operations in nova-compute dockerfile
- batch yum operations to the build goes faster
- yum clean after install to remove yum cache and make
  final image smaller

Change-Id: I62246a6329a6b2ab6ab4fee6f72652a805f1e72e
2014-10-13 17:11:38 -04:00
Lars Kellogg-Stedman
5192dd9506 fix nova-base dockerfile
- use correct namespace for base image
- mariadb and openstack-utils are installed by fedora-rdo-base

Change-Id: I9c8bccab10f8b9dc66340fb94d45c90d1a39fea9
2014-10-13 17:06:01 -04:00
Lars Kellogg-Stedman
8313834d16 log to stdout/stderr
modify glance and keystone images to log to stdout/stderr, so that logs
can be recovered using "docker logs".

Change-Id: I18470c13142ceaf2f10c32e10f5e835ddaf58550
2014-10-13 16:43:13 -04:00
Lars Kellogg-Stedman
282345c12e add kubernetes volumes to glance pod
Use kubernetes volumes for data storage rather than placing data
directly on the container filesystem.  That provides a starting point
for thinking about persistent data -- one could replace the emptyDir
source with an explicit path via hostDir, and then you would have
storage that would persist over a container delete/re-create.

Change-Id: Ifade1cb2ba546e5e0207c3d8c84965dc2195716b
2014-10-13 16:43:13 -04:00
Lars Kellogg-Stedman
7b682062fe arrange for image storage on a volume
Change-Id: I0dcbe6fd4c1d3ac9b79fc205df2013f62ff5a546
2014-10-13 16:43:13 -04:00
Lars Kellogg-Stedman
f593541485 added simple health check scripts
add /check.sh to keystone and glance-api images that can be used to
verify proper functionality of the container.

Change-Id: I0a878678fb8e9427d8e99af4896cbc679d3490a4
2014-10-13 16:43:13 -04:00
Lars Kellogg-Stedman
ecdd5e1c8e keystone pod needs KEYSTONE_DB_PASSWORD
if we want to be able to run multiple keystone container instances, the
password cannot be generated as part of the container boot process; it
must be passed it as part of the pod template.

Change-Id: Idd1b50b6bdb3788eec316bf22fb954f5ecbaa4be
2014-10-13 16:42:28 -04:00
Lars Kellogg-Stedman
270826f662 glance images need keystone password
glance keystone password cannot be generated during container boot
because we need the same value in both the -api and -registry
containers.

Change-Id: I4099ca19bd7433ff2a75ffba3a1597eff0be2ce4
2014-10-13 16:42:28 -04:00
Jenkins
ce9d18186d Merge "glance: cleanup; use kolla-common; exit on errors" 2014-10-13 20:31:45 +00:00
Jenkins
ebb6ae0271 Merge "keystone: exit on errors; cleanup" 2014-10-13 20:31:40 +00:00
Jenkins
3c2bd8a3c8 Merge "rabbitmq: exit on errors" 2014-10-13 20:31:34 +00:00
Jenkins
7b002e7317 Merge "add kolla-common shell library to base image" 2014-10-13 20:31:29 +00:00
Jenkins
a07d6603ac Merge "properly quote password in keystone start script" 2014-10-13 20:31:23 +00:00
Jenkins
dfed1d205f Merge "include mariadb and crux in base image" 2014-10-13 20:31:18 +00:00
Jenkins
4adf2d4b17 Merge "clean yum cache after package install" 2014-10-13 20:24:05 +00:00
Jenkins
39df04381f Merge "normalize start script name for rabbitmq" 2014-10-13 20:18:00 +00:00
Jenkins
a6a936dd6f Merge "update start/stop scripts" 2014-10-13 20:17:53 +00:00
Jenkins
6f7a28d460 Merge "Rename nova-libvirt to libvirt" 2014-10-13 20:12:51 +00:00
Jenkins
1ecdc40532 Merge "Closes-Bug: 1379513" 2014-10-13 20:12:07 +00:00
Jenkins
4afd66aba4 Merge "Closes-Bug: 1379442" 2014-10-13 20:11:02 +00:00
Lars Kellogg-Stedman
165307eb66 glance: cleanup; use kolla-common; exit on errors
cause glance start.sh scripts to exit on any errors (allowing kubernetes
to reschedule the pod).

Change-Id: Ibebbf47758a1dfc241cb04cdb12e44af77f92b55
2014-10-13 14:41:37 -04:00
Lars Kellogg-Stedman
a19e1cdd00 keystone: exit on errors; cleanup
Cause keystone start script to exit on any errors (permitting kubernetes
to reschedule the pod).

Closes-bug: 1379057
Change-Id: Ide2eac6495250c8cba91cf9b7409dcb313f6f74b
2014-10-13 14:41:37 -04:00
Lars Kellogg-Stedman
6ac10ca545 rabbitmq: exit on errors
cause rabbitmq start script to exit on any errors

Change-Id: I08b12e25061048e1fda8e74ce8a62d16b6ddf6db
2014-10-13 14:41:37 -04:00
Lars Kellogg-Stedman
ff0d4d4c06 add kolla-common shell library to base image
This adds a /opt/kolla/kolla-common.sh to the base image as a place to
put commonly used functions.  The goal is to avoid code duplication
across all the images created from this base image.

Change-Id: Ib670fe369bb8048aa69979b74a984fa4ddaae7d9
2014-10-13 14:41:37 -04:00
Lars Kellogg-Stedman
f2a747b353 properly quote password in keystone start script
make sure that DB_ROOT_PASSWORD is in quotes to prevent errors from
shell metacharacters in the password.

Change-Id: I586ba7bb1d518d4ebfef257f92d315684843dd9b
2014-10-13 14:41:37 -04:00
Lars Kellogg-Stedman
964bfd0311 include mariadb and crux in base image
these tools are required by almost all of our images.

Change-Id: I217b766a0c573e530da03aa81a7caf4548b0d2b3
2014-10-13 14:41:37 -04:00
Lars Kellogg-Stedman
fa6e282869 clean yum cache after package install
our Dockerfile was missing "yum clean all", causing a large yum cache to
get baked into the image.

Change-Id: Ib9942a12b8a14c7e04cf8ae3184cdefcdc5a4652
2014-10-13 14:41:37 -04:00
Lars Kellogg-Stedman
05b4364cbb normalize start script name for rabbitmq
this simply makes the source file match the installed name of the
script.

Change-Id: I5e7296780a34f36e28419b49e185be689e4745ad
2014-10-13 14:41:22 -04:00
Steven Dake
d70a992687 Rename nova-libvirt to libvirt
nova-libvirt doesn't make sense as a name since nova is not the
upstream of libvirt

Change-Id: I3e396b5a0897649312f3552a791c82429013f5ae
2014-10-13 11:25:10 -07:00