diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-08-25 23:59:46 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-08-28 18:42:00 -0400 |
commit | 6e8b7c9fb262768cb89712948b9fadf461e472ba (patch) | |
tree | d29fc8dd1b43815e3892ab28b2c1a05333359ef3 /meta-openstack/recipes-devtools/python/python-nova | |
parent | ec5aab41b280d719c14e1c5d88d09e7b38168bb3 (diff) | |
download | meta-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')
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 @@ | |||
1 | From dd200f769d745ed4cb02faf40ebc32252046d783 Mon Sep 17 00:00:00 2001 | ||
2 | From: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
3 | Date: Wed, 28 Aug 2013 01:38:16 -0400 | ||
4 | Subject: [PATCH] nova/api-paste.ini: make controller IP configurable | ||
5 | |||
6 | Signed-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 | |||
11 | diff --git a/etc/nova/api-paste.ini b/etc/nova/api-paste.ini | ||
12 | index 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 | -- | ||
25 | 1.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 | |||
34 | dhcpbridge=/usr/bin/nova-dhcpbridge | 34 | dhcpbridge=/usr/bin/nova-dhcpbridge |
35 | 35 | ||
36 | #Database configuration | 36 | #Database configuration |
37 | sql_connection = postgresql://%DB_USER%:%DB_PASSWORD%@localhost/nova | 37 | # sql_connection = postgresql://%DB_USER%:%DB_PASSWORD%@localhost/nova |
38 | sql_connection = postgresql://%DB_USER%:%DB_PASSWORD%@%CONTROLLER_HOST%/nova | ||
38 | 39 | ||
39 | #RabbitMQ configuration | 40 | #RabbitMQ configuration |
40 | rpc_backend = nova.rpc.impl_kombu | 41 | rpc_backend = nova.rpc.impl_kombu |
41 | rabbit_host = 0.0.0.0 | 42 | rabbit_host = %CONTROLLER_IP% |
42 | rabbit_port = 5672 | 43 | rabbit_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 @@ | |||
1 | export OS_TENANT_NAME=admin | 1 | export OS_TENANT_NAME=admin |
2 | export OS_USERNAME=admin | 2 | export OS_USERNAME=admin |
3 | export OS_PASSWORD=%OS_PASSWORD% | 3 | export OS_PASSWORD=%OS_PASSWORD% |
4 | export OS_AUTH_URL="http://localhost:5000/v2.0/" | 4 | export OS_AUTH_URL="http://%CONTROLLER_HOST%:5000/v2.0/" |
5 | export SERVICE_ENDPOINT="http://localhost:35357/v2.0" | 5 | export SERVICE_ENDPOINT="http://%CONTROLLER_HOST%:35357/v2.0" |
6 | export SERVICE_TOKEN=%SERVICE_TOKEN% | 6 | export SERVICE_TOKEN=%SERVICE_TOKEN% |