summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-nova
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-08-25 23:59:46 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-08-28 18:42:00 -0400
commit6e8b7c9fb262768cb89712948b9fadf461e472ba (patch)
treed29fc8dd1b43815e3892ab28b2c1a05333359ef3 /meta-openstack/recipes-devtools/python/python-nova
parentec5aab41b280d719c14e1c5d88d09e7b38168bb3 (diff)
downloadmeta-cloud-services-6e8b7c9fb262768cb89712948b9fadf461e472ba.tar.gz
nova: split into explicit compute and controller recipes
To allow unique configuration of nova for compute and controller nodes, the nova class is split into two, but packaged largely the same way. The compute and controller classes are introduced to hold configuration values and operations that are used by the common packaging routines to customize and deploy. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-nova')
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova/0001-nova-api-paste.ini-make-controller-IP-configurable.patch26
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova/nova.conf5
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova/openrc4
3 files changed, 31 insertions, 4 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova/0001-nova-api-paste.ini-make-controller-IP-configurable.patch b/meta-openstack/recipes-devtools/python/python-nova/0001-nova-api-paste.ini-make-controller-IP-configurable.patch
new file mode 100644
index 0000000..7d2ed7e
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-nova/0001-nova-api-paste.ini-make-controller-IP-configurable.patch
@@ -0,0 +1,26 @@
1From dd200f769d745ed4cb02faf40ebc32252046d783 Mon Sep 17 00:00:00 2001
2From: Bruce Ashfield <bruce.ashfield@windriver.com>
3Date: Wed, 28 Aug 2013 01:38:16 -0400
4Subject: [PATCH] nova/api-paste.ini: make controller IP configurable
5
6Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
7---
8 etc/nova/api-paste.ini | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/etc/nova/api-paste.ini b/etc/nova/api-paste.ini
12index 34c87b9..c770408 100644
13--- a/etc/nova/api-paste.ini
14+++ b/etc/nova/api-paste.ini
15@@ -98,7 +98,7 @@ paste.filter_factory = nova.api.auth:NovaKeystoneContext.factory
16
17 [filter:authtoken]
18 paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
19-auth_host = 127.0.0.1
20+auth_host = %CONTROLLER_IP%
21 auth_port = 35357
22 auth_protocol = http
23 admin_tenant_name = %SERVICE_TENANT_NAME%
24--
251.7.10.4
26
diff --git a/meta-openstack/recipes-devtools/python/python-nova/nova.conf b/meta-openstack/recipes-devtools/python/python-nova/nova.conf
index dbbd1a8..f698349 100644
--- a/meta-openstack/recipes-devtools/python/python-nova/nova.conf
+++ b/meta-openstack/recipes-devtools/python/python-nova/nova.conf
@@ -34,11 +34,12 @@ force_dhcp_release=False
34dhcpbridge=/usr/bin/nova-dhcpbridge 34dhcpbridge=/usr/bin/nova-dhcpbridge
35 35
36#Database configuration 36#Database configuration
37sql_connection = postgresql://%DB_USER%:%DB_PASSWORD%@localhost/nova 37# sql_connection = postgresql://%DB_USER%:%DB_PASSWORD%@localhost/nova
38sql_connection = postgresql://%DB_USER%:%DB_PASSWORD%@%CONTROLLER_HOST%/nova
38 39
39#RabbitMQ configuration 40#RabbitMQ configuration
40rpc_backend = nova.rpc.impl_kombu 41rpc_backend = nova.rpc.impl_kombu
41rabbit_host = 0.0.0.0 42rabbit_host = %CONTROLLER_IP%
42rabbit_port = 5672 43rabbit_port = 5672
43 44
44#Quantum 45#Quantum
diff --git a/meta-openstack/recipes-devtools/python/python-nova/openrc b/meta-openstack/recipes-devtools/python/python-nova/openrc
index 1d0a1ea..c28f355 100644
--- a/meta-openstack/recipes-devtools/python/python-nova/openrc
+++ b/meta-openstack/recipes-devtools/python/python-nova/openrc
@@ -1,6 +1,6 @@
1export OS_TENANT_NAME=admin 1export OS_TENANT_NAME=admin
2export OS_USERNAME=admin 2export OS_USERNAME=admin
3export OS_PASSWORD=%OS_PASSWORD% 3export OS_PASSWORD=%OS_PASSWORD%
4export OS_AUTH_URL="http://localhost:5000/v2.0/" 4export OS_AUTH_URL="http://%CONTROLLER_HOST%:5000/v2.0/"
5export SERVICE_ENDPOINT="http://localhost:35357/v2.0" 5export SERVICE_ENDPOINT="http://%CONTROLLER_HOST%:35357/v2.0"
6export SERVICE_TOKEN=%SERVICE_TOKEN% 6export SERVICE_TOKEN=%SERVICE_TOKEN%