aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-nova/nova-convert-path-from-relative-to-absolute.patch
blob: 0dba96058112a6ad2aad024fe99057fea375bc77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 8fbdaba5c172dd95c08a808a3ec12309461ffbdb Mon Sep 17 00:00:00 2001
From: Keith Holman <Keith.Holman@windriver.com>
Date: Tue, 17 Jun 2014 14:34:27 -0400
Subject: [PATCH] nova: convert path from relative to absolute

Nova requires the configuration file "api-paste.ini".  It is currently
installed to the "/etc/nova/" directory.  Nova assumes that this
directory is accessible relative to the current location of source
files.  This works if the files are stored in the source tree,
however, in deployment this doesn't work.  This patch changes the path
to the absolute path on the deployed system.

Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
---
 nova/tests/conf_fixture.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nova/tests/conf_fixture.py b/nova/tests/conf_fixture.py
index f8e6dda..f8935f9 100644
--- a/nova/tests/conf_fixture.py
+++ b/nova/tests/conf_fixture.py
@@ -48,7 +48,7 @@ class ConfFixture(fixtures.Fixture):
         super(ConfFixture, self).setUp()
 
         self.conf.set_default('api_paste_config',
-                              paths.state_path_def('etc/nova/api-paste.ini'))
+                              paths.state_path_def('/etc/nova/api-paste.ini'))
         self.conf.set_default('host', 'fake-mini')
         self.conf.set_default('compute_driver', 'nova.virt.fake.FakeDriver')
         self.conf.set_default('fake_network', True)
-- 
1.9.3