12142 Commits

Author SHA1 Message Date
Steven Dake
e35e4f931a Properly create endpoints for Nova services
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-17 00:41:46 -07:00
Steven Dake
a14b8048c2 Make nova-compute work properly with libvirt
The nova-compute POD now starts and produces nearly correct output.
It may be that the libvirt container needs additional attention as it
is spitting out errors related to the firewall toolchain on the container.

Change-Id: I5bcd21c59f341494206a09e882631185ce66f336
2014-10-16 23:02:56 -07:00
Steven Dake
518e724845 Remove nova-base since there is only 1 image for nova-compute
Libvirt imports from fedora-rdo-base rather then nova-base, so no need
in generating an extra image.

Change-Id: I3ddd3aca54900686e3351de3dc11896347b14b6e
2014-10-16 23:02:53 -07:00
Jenkins
cc2821c12d Merge "Run nova-api as privileged so it can muck with iptables" 2014-10-17 00:43:37 +00:00
Lars Kellogg-Stedman
2d1f3dd9f2 configure nova database connection
config-nova-controller.sh needs to set the nova database connection
string.

Change-Id: I82f61f1c003ef9068a664e2d4cafaab1b5c47a00
2014-10-16 17:25:32 -04:00
Lars Kellogg-Stedman
d02543c1bc fix sql typo in nova-conductor start script
Change-Id: Ia01973ef10b1ab94a2cb5ddd9186adb916066beb
2014-10-16 17:22:00 -04:00
Steven Dake
b47c6afed0 Run nova-api as privileged so it can muck with iptables
Not sure if mucking with iptables is safe, but appears required.

Change-Id: I766b0e61e247c47b4449c1ed2c204ddb8919a87d
2014-10-16 14:19:26 -07:00
Jenkins
a3b90f59f1 Merge "add /check.sh script to nova-api image" 2014-10-16 20:53:50 +00:00
Jenkins
b5a164900f Merge "fix typo in crudini command" 2014-10-16 20:53:27 +00:00
Jenkins
6b7cf4506a Merge "Wrong shell script specified in start.sh" 2014-10-16 20:47:25 +00:00
Lars Kellogg-Stedman
b1a2d74406 add /check.sh script to nova-api image
Change-Id: Ia0f796b3a580c57b9f84390bae3b1012f99dcce0
2014-10-16 16:43:53 -04:00
Lars Kellogg-Stedman
818b119d22 fix typo in crudini command
Change-Id: I67f23c1fa987c33abef8607834dfface1de0fee2
2014-10-16 16:43:18 -04:00
Daneyon Hansen
de313681f9 Adds Neutron Server Support
Previously Kolla did not support Neutron. This patch provides
initial Neutron support by implementing neutron-server
functionality. It also creates a neutron-base image that
provides common config and packages for all Neutron-based
services.

Partially Implements: Blueprint Kubernetes Neutron Container

Change-Id: I2399a1331992fae0f387f01e5b5c1c1d34f0637d
2014-10-16 19:50:04 +00:00
Lars Kellogg-Stedman
2ab124bac0 correct missing backslash in config-nova-controller.sh
Change-Id: I3d49c5647744fb7d4e13f2e1fb84dc62f0f7e2c6
2014-10-16 15:08:31 -04:00
Steven Dake
3dd2839394 Wrong shell script specified in start.sh
start.sh was trying to run nova-config.sh which has been renamed
nova-controller-config.sh

Change-Id: I546ce046c0789144cb48668500ea4b206d07487d
2014-10-16 11:57:36 -07:00
Steven Dake
6a5c1d8f50 Make shell scripts executible
Without +x, docker will not run the shell scripts and the containers
exit immediately.

Change-Id: I03ca231d6e46131a58c01fae0f9b65e0a3722d36
2014-10-16 11:40:26 -07:00
Lars Kellogg-Stedman
bd885521ec renamed nova-controller -> nova-ctr-base
there is a 31 character limit on image names in docker hub.

Change-Id: I9624668fc2f09c397084eadf792d4d0cc8486ae1
2014-10-16 13:49:48 -04:00
Lars Kellogg-Stedman
b4560bd0e3 introduce scheduler to common configuration
Change-Id: I56156ed59b6678180bcb5d1bdd00233d8f339643
2014-10-16 11:51:59 -04:00
Lars Kellogg-Stedman
1eba53eb13 introduce conductor to common configuration
- source in common configuration script
- actually sync the database

Change-Id: I61d50edb0b44a71800e172c4777d3b40026e8521
2014-10-16 11:51:56 -04:00
Lars Kellogg-Stedman
4cd2ebcfed Nova has an undeclared dependency on python-cinderclient
Nova imports python-cinderclinet, which is not present by just
installing python-nova-api.  Hard yum-install it until upstream
fixes packaging.

Change-Id: I3187721d3eda7ce81da9540469fcc93b93560d3b
2014-10-16 11:51:53 -04:00
Lars Kellogg-Stedman
60631ac069 have start.sh source in common configuration script
Change-Id: I90fcd6ed43ce6c2b224eb43492586c8f4231ceda
2014-10-16 11:51:50 -04:00
Lars Kellogg-Stedman
558dcb5f56 fix nova-controller pod
remove nova-controller image, which is not meant to be started directly.
add required NEUTRON_SHARED_SECRET environment variable.

Change-Id: Id671c5473db8e6e222b16ccdfd9eaedc872c60fa
2014-10-16 11:51:46 -04:00
Lars Kellogg-Stedman
c3c41964f0 changes to base nova configuration
- correct typos/syntax errors in configuration scripts
- make config script consistent with other images
- do not create keystone entries in base image script

Change-Id: I42986fe1b9c80c5b0735fd70294bce1a6223a3ca
2014-10-16 11:51:39 -04:00
Jenkins
64b7b2a712 Merge "Add nova-libvirt to started services" 2014-10-15 18:47:24 +00:00
Jenkins
05cca9915a Merge "Add replication controllers to start and stop scripts" 2014-10-15 18:47:18 +00:00
Steven Dake
ff038f4a96 Add nova-libvirt to started services
nova-libvirt was not in the list of started services, so its port
was not available prior to this change.

Change-Id: I59cedb68ff87a9a54e93c85e60f748e5cc161a4c
2014-10-15 07:22:42 -07:00
Steven Dake
b79ec04b70 Add replication controllers to start and stop scripts
replicaton controllers are now automatically started by the start
scripts and killed by the stop script

Change-Id: I15d15ff9b1b640bd0f8cace872a827ecfe476ca3
2014-10-15 07:22:39 -07:00
Lars Kellogg-Stedman
8b4f8d91ad modify tox config to use new validation code
this patch modifies tox.ini to perform both the JSON and YAML validation
checks.

Change-Id: Ie8db699f19dc7698407bab1e3d51dcb6184cfad2
2014-10-14 22:36:43 -04:00
Jenkins
63888e7385 Merge "Expose ports needed by the nova-controller" 2014-10-14 22:17:29 +00:00
Jenkins
ec29d5df62 Merge "Have qemu uri point to correct place" 2014-10-14 19:47:24 +00:00
Jenkins
9b484b4026 Merge "nova-compute-service doesn't expose a port" 2014-10-14 19:45:38 +00:00
Jenkins
ec5a16dcec Merge "add better validation checks (part 1)" 2014-10-14 19:44:51 +00:00
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