Merge lp:~zulcss/nova/nova-api-fix-too into lp:~ubuntu-server-dev/nova/icehouse

Proposed by Chuck Short
Status: Merged
Merge reported by: James Page
Merged at revision: not available
Proposed branch: lp:~zulcss/nova/nova-api-fix-too
Merge into: lp:~ubuntu-server-dev/nova/icehouse
Diff against target: 172 lines (+119/-12)
4 files modified
debian/changelog (+6/-5)
debian/patches/fix-nova-api-fake-network.patch (+100/-0)
debian/patches/fix-requirements.patch (+12/-7)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~zulcss/nova/nova-api-fix-too
Reviewer Review Type Date Requested Status
James Page Approve
Review via email: mp+204017@code.launchpad.net

Description of the change

Nova-api-metadata service fix

To post a comment you must log in.
lp:~zulcss/nova/nova-api-fix-too updated
652. By Chuck Short

releasing package nova version 1:2014.1~b2-0ubuntu2

Revision history for this message
James Page (james-page) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2014-01-28 14:19:55 +0000
3+++ debian/changelog 2014-01-30 16:25:47 +0000
4@@ -1,8 +1,9 @@
5-nova (1:2014.1~b2-0ubuntu2) UNRELEASED; urgency=medium
6-
7- * debian/patches/fix-requirements.patch: Refreshed
8-
9- -- Chuck Short <zulcss@ubuntu.com> Tue, 28 Jan 2014 09:19:36 -0500
10+nova (1:2014.1~b2-0ubuntu2) trusty; urgency=medium
11+
12+ * debian/patches/fix-nova-api-fake-network.patch: Fixed nova-api-metadata
13+ not starting. (LP: #1270845)
14+
15+ -- Chuck Short <zulcss@ubuntu.com> Thu, 30 Jan 2014 11:24:16 -0500
16
17 nova (1:2014.1~b2-0ubuntu1) trusty; urgency=low
18
19
20=== added file 'debian/patches/fix-nova-api-fake-network.patch'
21--- debian/patches/fix-nova-api-fake-network.patch 1970-01-01 00:00:00 +0000
22+++ debian/patches/fix-nova-api-fake-network.patch 2014-01-30 16:25:47 +0000
23@@ -0,0 +1,100 @@
24+commit 94587d814f21fa0787dd5447c7581c2f0cfe7966
25+Author: Alexis Lee <alexisl@hp.com>
26+Date: Wed Jan 8 10:43:58 2014 +0000
27+
28+ Move fake_network config option to linux_net
29+
30+ Option 'fake_network' is used by nova/network/linux_net.py but not
31+ imported from nova/network/manager.py. Both use it, but manager imports
32+ linux_net (via nova/network/api.py + nova/network/floating_ips.py) so it
33+ makes more sense to define the option in linux_net and import_opt in
34+ manager.
35+
36+ Precise example import chain:
37+ bin/nova-manage
38+ nova/cmd/manage.py: import_opt('flat_network_bridge', 'nova.network.manager')
39+ nova/network/manager.py: from nova.network import api as network_api
40+ -- At this point, manager has started to import but not yet called
41+ register_opts
42+ nova/network/api.py: from nova.network import floating_ips
43+ nova/nova/network/floating_ips.py: import_opt('public_interface', 'nova.network.linux_net')
44+ nova/nova/network/linux_net.py: import_opt('fake_network', 'nova.network.manager')
45+ -- BANG! Manager hasn't registered the option we want to import
46+
47+ Change-Id: I66f021b34aef650dca148a58203c249f6aa0e83e
48+
49+diff --git a/etc/nova/nova.conf.sample b/etc/nova/nova.conf.sample
50+index baf5d5d..639f63e 100644
51+--- a/etc/nova/nova.conf.sample
52++++ b/etc/nova/nova.conf.sample
53+@@ -1154,6 +1154,10 @@
54+ # value)
55+ #ovs_vsctl_timeout=120
56+
57++# If passed, use fake network devices and addresses (boolean
58++# value)
59++#fake_network=false
60++
61+
62+ #
63+ # Options defined in nova.network.manager
64+@@ -1211,10 +1215,6 @@
65+ # value)
66+ #create_unique_mac_address_attempts=5
67+
68+-# If passed, use fake network devices and addresses (boolean
69+-# value)
70+-#fake_network=false
71+-
72+ # If True, skip using the queue and make local calls (boolean
73+ # value)
74+ #fake_call=false
75+diff --git a/nova/network/linux_net.py b/nova/network/linux_net.py
76+index 4f1624f..dc63970 100644
77+--- a/nova/network/linux_net.py
78++++ b/nova/network/linux_net.py
79+@@ -127,6 +127,9 @@ linux_net_opts = [
80+ default=120,
81+ help='Amount of time, in seconds, that ovs_vsctl should wait '
82+ 'for a response from the database. 0 is to wait forever.'),
83++ cfg.BoolOpt('fake_network',
84++ default=False,
85++ help='If passed, use fake network devices and addresses'),
86+ ]
87+
88+ CONF = cfg.CONF
89+diff --git a/nova/network/manager.py b/nova/network/manager.py
90+index 9ade2b8..635426e 100644
91+--- a/nova/network/manager.py
92++++ b/nova/network/manager.py
93+@@ -126,9 +126,6 @@ network_opts = [
94+ cfg.IntOpt('create_unique_mac_address_attempts',
95+ default=5,
96+ help='Number of attempts to create unique mac address'),
97+- cfg.BoolOpt('fake_network',
98+- default=False,
99+- help='If passed, use fake network devices and addresses'),
100+ cfg.BoolOpt('fake_call',
101+ default=False,
102+ help='If True, skip using the queue and make local calls'),
103+@@ -168,6 +165,7 @@ CONF.register_opts(network_opts)
104+ CONF.import_opt('use_ipv6', 'nova.netconf')
105+ CONF.import_opt('my_ip', 'nova.netconf')
106+ CONF.import_opt('network_topic', 'nova.network.rpcapi')
107++CONF.import_opt('fake_network', 'nova.network.linux_net')
108+
109+
110+ class RPCAllocateFixedIP(object):
111+diff --git a/nova/tests/conf_fixture.py b/nova/tests/conf_fixture.py
112+index e29087f..f8b2ef4 100644
113+--- a/nova/tests/conf_fixture.py
114++++ b/nova/tests/conf_fixture.py
115+@@ -29,7 +29,7 @@ CONF = cfg.CONF
116+ CONF.import_opt('use_ipv6', 'nova.netconf')
117+ CONF.import_opt('host', 'nova.netconf')
118+ CONF.import_opt('scheduler_driver', 'nova.scheduler.manager')
119+-CONF.import_opt('fake_network', 'nova.network.manager')
120++CONF.import_opt('fake_network', 'nova.network.linux_net')
121+ CONF.import_opt('network_size', 'nova.network.manager')
122+ CONF.import_opt('num_networks', 'nova.network.manager')
123+ CONF.import_opt('floating_ip_dns_manager', 'nova.network.floating_ips')
124
125=== modified file 'debian/patches/fix-requirements.patch'
126--- debian/patches/fix-requirements.patch 2014-01-28 14:19:55 +0000
127+++ debian/patches/fix-requirements.patch 2014-01-30 16:25:47 +0000
128@@ -1,18 +1,24 @@
129-diff --git a/requirements.txt b/requirements.txt
130-index c360250..b05a2df 100644
131---- a/requirements.txt
132-+++ b/requirements.txt
133+diff -Naurp nova-2014.1.dev555.g80efcae.orig/requirements.txt nova-2014.1.dev555.g80efcae/requirements.txt
134+--- nova-2014.1.dev555.g80efcae.orig/requirements.txt 2014-01-22 11:10:01.000000000 -0500
135++++ nova-2014.1.dev555.g80efcae/requirements.txt 2014-01-23 09:30:24.278874319 -0500
136+@@ -1,5 +1,5 @@
137+ pbr>=0.5.21,<1.0
138+-SQLAlchemy>=0.7.8,<=0.7.99
139++SQLAlchemy>=0.7.8,<=0.8.99
140+ amqplib>=0.6.1
141+ anyjson>=0.3.3
142+ argparse
143 @@ -9,7 +9,7 @@ Jinja2
144 kombu>=2.4.8
145 lxml>=2.3
146 Routes>=1.12.3
147 -WebOb>=1.2.3,<1.3
148-+WebOb>=1.2.3
149++WebOb>=1.2.3,<1.4
150 greenlet>=0.3.2
151 PasteDeploy>=1.5.0
152 Paste
153 @@ -27,8 +27,6 @@ python-glanceclient>=0.9.0
154- python-keystoneclient>=0.4.2
155+ python-keystoneclient>=0.4.1
156 six>=1.4.1
157 stevedore>=0.12
158 -websockify>=0.5.1,<0.6
159@@ -20,4 +26,3 @@
160 oslo.config>=1.2.0
161 oslo.rootwrap
162 pycadf>=0.1.9
163-
164
165=== modified file 'debian/patches/series'
166--- debian/patches/series 2013-12-11 10:06:24 +0000
167+++ debian/patches/series 2014-01-30 16:25:47 +0000
168@@ -4,3 +4,4 @@
169 fix-novnc-regression.patch
170 sqlachemy-0.8.3-compat.patch
171 skip_ipv6_test.patch
172+fix-nova-api-fake-network.patch

Subscribers

People subscribed via source and target branches