summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-nova
diff options
context:
space:
mode:
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%