11617 Commits

Author SHA1 Message Date
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
Lars Kellogg-Stedman
6ccd3a9b44 update start/stop scripts
- use new yaml config files
- provide separate service- and pod- start/stop scripts

Change-Id: Iaff2a5b4d5a33467a9d10b10e9bd5c922eeed3aa
2014-10-13 11:31:39 -04:00
Lars Kellogg-Stedman
dd16b95aa6 convert all configs to yaml
Change-Id: I7edbd3a59007d9e2f7f5ab5e4c020eeb58d03dd3
2014-10-13 11:25:11 -04:00
Jenkins
a0794220f9 Merge "Add a replicationController for nova-compute so it runs on each minion" 2014-10-13 15:18:27 +00:00
Jenkins
ba64bb4789 Merge "update existing keystone objects" 2014-10-13 15:15:12 +00:00
Jenkins
64aa6e64e5 Merge "remove erroneous bind_host from config" 2014-10-13 15:10:29 +00:00
Jenkins
6ae94e99c0 Merge "Update start/stop scripts with updated paths/names" 2014-10-13 15:04:41 +00:00
Jenkins
866ff0d590 Merge "correct various issues with glance images and configs" 2014-10-13 15:02:26 +00:00
Lars Kellogg-Stedman
a4069300aa correct various issues with glance images and configs
- update keystone endpoints/user on boot (to avoid problems caused by,
  e.g., a stale password or invalid endpoint urls)
- require GLANCE_DB_PASSWORD and GLANCE_KEYSTONE_PASSWORD in the
  environment, since we start multiple containers

Change-Id: I31214b81280ed34409f92e79003c1116d5737d2e
2014-10-13 09:53:56 -04:00
Daneyon Hansen
250bb5f453 Closes-Bug: 1379442
Previously, the glance-api start script would use the container
IP instead of the proxy IP for the public url when creating the
keystone endpoint. This causes keystone to provide an unreachable
IP within the public url and other OS services are unable to
connect to the public url.

Change-Id: I44befc84a90f59d535a951ee81aaff0fa1ba952d
2014-10-10 21:30:35 +00:00
Jeff Peeler
8e040e7047 Update start/stop scripts with updated paths/names
Change-Id: I931e02bfe4360548a404e0d22ca9dd9a39312771
2014-10-10 16:26:35 -04:00
Daneyon Hansen
7c0fd1c58d Closes-Bug: 1379513
Previously the glance-base script did not configure the registry
host IP. This causes API to try connecting to registry on
localhost. Since registry is bound to MY_IP, api is unable to
connect to registry. This change adds support for the glance-base
script to configure the registry_host parameter in api.conf to
MY_IP.

Change-Id: I1c711ff8aa95abec5ca306f03bd7e0a3883ca578
2014-10-09 20:46:21 +00:00
Lars Kellogg-Stedman
fae986fff0 remove erroneous bind_host from config
this was part of some experimental work and should have not made it into
the kolla/master branch.

Change-Id: Ibb933a09e3de17c33bd194c4d3dd6aa972721012
2014-10-09 11:14:18 -04:00
Lars Kellogg-Stedman
03f616f87c clean up base Dockerfile
- run "yum update" after installing RDO repository (to ensure we get any
  package updates from this repository)
- "yum clean" after the "yum update" to prevent yum cache from being
  baked into the image

Change-Id: Id897fd85214855bb08f7e16da4bbdf07b821d991
2014-10-09 09:35:37 -04:00
Lars Kellogg-Stedman
4fd63199f1 update existing keystone objects
when booting the keystone container with an existing database, make sure
to update credentials for admin user and replace existing keystone
endpoint in the service catalog.

Change-Id: I2c66d75210ef7ba5a96077eea15a8c564e99f662
2014-10-08 21:53:13 -04:00
Steven Dake
0f294f4610 Add a replicationController for nova-compute so it runs on each minion
We want the nova-compute controller to run on each minion

Change-Id: If0355034927e195d1dd5482dab1026418185e9c6
2014-10-08 13:11:07 -07:00
Steven Dake
cb05bb513b Modify rabbitmq pod to point to right image
The image location for rabbitmq was incorrectly pointing at Lars
private repository.  Change it to point to the global kollaglue repo.

Change-Id: Ib4fd84db9410fa7057730ff74be2acc0babfa438
2014-10-08 09:25:39 -07:00
Steven Dake
2bc783b8c6 Reorganize k8s structure
All services go to TLD/k8s/service
All pods go to TLD/k8s/pod

Change-Id: Iad2977a9f0cd5f430c4e0a566846bf4681618379
2014-10-07 15:33:11 -07:00
Jenkins
732f224358 Merge "Updated base image in Dockerfile and changed CMD to reference correct file" 2014-10-07 22:20:10 +00:00
James Labocki
6edaffbc3b Updated base image in Dockerfile and changed CMD to reference correct file
Also, fixed up environment variable to use RABBITMQ_NODE_PORT, which is
what RabbitMQ expects (http://www.rabbitmq.com/configure.html).

Implements: blueprint kube-rabbitmq-container
Change-Id: Iacc2ea5d3c4a002e6920ed17cb21733a0cbd8d21
2014-10-07 17:51:00 -04:00
Steven Dake
b00b75cae1 Change sdake/image to kollaglue/image
Had my personal repo checked in.  Assuming we want kollaglue for repo-based
files :)

Change-Id: I5ccdba8c3d3301c8140c5143aea3db5ebfa6db76
2014-10-07 12:40:16 -07:00
Steven Dake
ea45d6aa6f Modify start.sh for nova-compute/nova-compute
This should get us a working nova-compute.  Once rabbitmq is operational
we can further debug and implement this container.

Change-Id: I0768b9f33bc43748f4e08da0edc111d669895cc8
2014-10-07 12:40:13 -07:00
Steven Dake
120936fc47 chmod +x nova-compute/nova-libvirt/start.sh
start.sh must be executable

Change-Id: I2de86343d194af5c3783d2169192f158fdada178
2014-10-07 12:38:55 -07:00
Steven Dake
73d38acc10 chmod +x start.sh for nova-compute/nova-compute
start.sh must be executable

Change-Id: I552b151069d4baee66b058671486846f2dc08c13
2014-10-07 12:38:55 -07:00
Jenkins
6ebb1a0be1 Merge "Get to a functional nova-libvirt start" 2014-10-07 18:29:55 +00:00
Jenkins
0c53fc6b03 Merge "Initial setup for nova-controller" 2014-10-07 18:29:09 +00:00
Jenkins
0f86b2b477 Merge "Modify nova-compute pod to operate properly" 2014-10-07 18:28:42 +00:00
Jenkins
3c9e09e9d1 Merge "Add service files for libvirt and compute" 2014-10-07 18:28:36 +00:00
Jenkins
d6721bed0f Merge "Remove -master from README.md" 2014-10-07 18:28:31 +00:00
Jenkins
3eae02da41 Merge "do not add image prefix when building" 2014-10-07 18:27:00 +00:00
Steven Dake
727d8d139c Get to a functional nova-libvirt start
Get a working Dockerfile
Sort out start.sh to run libvirt in a container

Change-Id: Iaafe807b1631ad59fea200a02e46a8cabd6791ca
2014-10-07 11:20:26 -07:00
Steven Dake
6dbd9c470a Modify nova-compute pod to operate properly
Several things were done incorrectly in previous pod.  Fix that.

Change-Id: I7387964979b4ceef4dfda2349023aa0267320349
2014-10-07 11:19:33 -07:00
Steven Dake
2de279e026 Add service files for libvirt and compute
Add service files for libvirtd and nova-compute

Change-Id: I94c5cad75605104f57859e23341ba106a3250fc8
2014-10-07 11:19:05 -07:00
Lars Kellogg-Stedman
d28f83dace fix issues with glance scripts
- glance was using wrong var name for admin_password
- also missing "\" in several places, breaking multi-line crudini
  commands.
- glance was using wrong tenant name
- in the registry container, glance-manage appears to reference
  glance-api.conf
- the glance.json config file was not spawning a registry container

Change-Id: I280d1db3ed576988f2bf29ea665e1922a37f8752
2014-10-07 12:49:23 -04:00
Lars Kellogg-Stedman
44d173f2e6 do not add image prefix when building
because we don't need fedora-rdo-fedora-rdo-base.

Change-Id: I75ac2aa6904ad27b500c7fb1e48897939530cb09
2014-10-07 12:34:46 -04:00
Steven Dake
fcb3145df7 Remove -master from README.md
The removal of the foo-master labels left the README.md in an
incorrect state.  Fix that problem.

Change-Id: I61802a18c0f424cd9e5c16b988d5fbd5d462afac
2014-10-07 08:16:50 -07:00
Lars Kellogg-Stedman
3c080f9e62 renamed keystone services
This renames the keystone services so that they are named by function,
rather than port number (which would be confusing if they were running
on a different port).

Change-Id: Ibb0263a133c28a104563df431870a9effe584012
2014-10-07 11:11:19 -04:00
Ryan Hallisey
9e420ba27e Initial setup for nova-controller
Partial-blueprint: kube-nova-container
Change-Id: Ib48e6318ae458bf03510725a220332d1920cbeae
2014-10-07 14:59:07 +00:00
Lars Kellogg-Stedman
068face6fa use renamed mariadb services
This patch updates all the json files that reference the mariadb service
variables to ues the new names.

Labelling things foo-master crept into this repository from the
kubernetes guestbook example (which has redis-master and redis-slaves).
We're not running clustered software at the moment so these labels are
unnecessary.

Change-Id: I229d04c89aa13cb6cc2e1c33a0a7b21e1c6e9caa
2014-10-07 10:58:52 -04:00
Jenkins
296b09e0c4 Merge "remove "master" from mariadb k8s configs" 2014-10-07 14:54:56 +00:00
Jenkins
83e451a69c Merge "Remove the trailing space in README.md" 2014-10-07 14:50:58 +00:00
Lars Kellogg-Stedman
863e29a780 remove "master" from mariadb k8s configs
Labelling things foo-master crept into this repository from the
kubernetes guestbook example (which has redis-master and redis-slaves).
We're not running clustered software at the moment so these labels are
unnecessary.

Change-Id: Ibf4cb2b005cc57bcb11e298dd5109cfe309c9ec3
2014-10-07 10:40:00 -04:00
Haiwei Xu
fd0275b659 Remove the trailing space in README.md
Change-Id: Iafdae5d5e38f6910dbf89af5a5f47a9c29df4e5c
2014-10-07 17:45:08 +09:00
Chmouel Boudjnah
e35b376994 Validate JSON
Let's get that quickly so we can add a gate. There was some respacing
along the way (used http://jsonlint.com)

Change-Id: Id18b9f9757306cf3f06e6221a21a9f600db1bd2e
2014-10-07 10:02:04 +02:00