Merge lp:~marcoceppi/charms/trusty/nova-compute/trunk into lp:~openstack-charmers-archive/charms/trusty/nova-compute/next

Proposed by Marco Ceppi
Status: Work in progress
Proposed branch: lp:~marcoceppi/charms/trusty/nova-compute/trunk
Merge into: lp:~openstack-charmers-archive/charms/trusty/nova-compute/next
Diff against target: 220 lines (+104/-4) (has conflicts)
9 files modified
README.md (+76/-0)
charm-helpers-hooks.yaml (+1/-1)
charm-helpers-tests.yaml (+1/-1)
config.yaml (+8/-0)
hooks/nova_compute_context.py (+6/-0)
metadata.yaml (+1/-1)
templates/juno/nova.conf (+7/-0)
templates/kilo/nova.conf (+3/-0)
tests/basic_deployment.py (+1/-1)
Text conflict in README.md
To merge this branch: bzr merge lp:~marcoceppi/charms/trusty/nova-compute/trunk
Reviewer Review Type Date Requested Status
OpenStack Charmers Pending
Review via email: mp+259139@code.launchpad.net

Commit message

Add support for iscsi_use_multipath and use_cow_images in kilo and juno

Description of the change

This enables cinder-vnx and cinder-xtremio support for nova-compute by allowing the admin to enable/disable iscsi_use_multipath and use_cow_images which are required to be set for these two charms.

cs:~marcoceppi/trusty/cinder-vnx
cs:~marcoceppi/trusty/cinder-xtremio

I'd like, while being reviewed, if this change could be considered for a stable backport to the 15.04 OpenStack charms as there are solutions being published *soon* which reference these with the current release of the the OpenStack charms

To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #4541 nova-compute-next for marcoceppi mp259139
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/4541/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #4266 nova-compute-next for marcoceppi mp259139
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/4266/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #4120 nova-compute-next for marcoceppi mp259139
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/4120/

Revision history for this message
Ryan Beisner (1chb1n) wrote :

Thank you for working on this. Some early input for you:

While this does pass CI, we won't be able to merge it into next as-is, because this MP is flipping stable bits on the next branch, pulling in some other uncommitted changes, and has a conflict.

I think it would be best to re-base from nova-compute/next and re-propose. It may also be worth adding contexts unit_test coverage for the new config options.

Revision history for this message
Marco Ceppi (marcoceppi) wrote :

Thanks for the feedback, I'll rebase this on top of next and start working on testing

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

Please set back to 'Needs Review' when this is ready for landing.

Unmerged revisions

136. By Marco Ceppi

Updated categories to tags

135. By Marco Ceppi

Ability to use cow-images as config

134. By Marco Ceppi

Add iscsi_use_multipath support for kilo and juno templates

133. By Marco Ceppi

Use text not booleans

132. By Marco Ceppi

Add iscsi_use_multipath support for libvirt

131. By Corey Bryant

[corey.bryant,trivial] Fix deploy from source README

130. By Billy Olsen

[niedbalski,r=wolsen] Check nrpe relation is made before configuring nrpe

Fixes-Bug: LP #1448143

129. By Liam Young

Point charmhelper sync and amulet tests at stable branches

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README.md'
2--- README.md 2015-04-30 12:09:23 +0000
3+++ README.md 2015-05-14 16:27:41 +0000
4@@ -36,6 +36,7 @@
5
6 The minimum openstack-origin-git config required to deploy from source is:
7
8+<<<<<<< TREE
9 openstack-origin-git: include-file://nova-juno.yaml
10
11 nova-juno.yaml
12@@ -46,6 +47,16 @@
13 - {name: nova,
14 repository: 'git://github.com/openstack/nova',
15 branch: stable/juno}
16+=======
17+ openstack-origin-git:
18+ "repositories:
19+ - {name: requirements,
20+ repository: 'git://git.openstack.org/openstack/requirements',
21+ branch: stable/juno}
22+ - {name: nova,
23+ repository: 'git://git.openstack.org/openstack/nova',
24+ branch: stable/juno}"
25+>>>>>>> MERGE-SOURCE
26
27 Note that there are only two 'name' values the charm knows about: 'requirements'
28 and 'nova'. These repositories must correspond to these 'name' values.
29@@ -55,6 +66,7 @@
30
31 The following is a full list of current tip repos (may not be up-to-date):
32
33+<<<<<<< TREE
34 openstack-origin-git: include-file://nova-master.yaml
35
36 nova-master.yaml
37@@ -119,3 +131,67 @@
38 - {name: nova,
39 repository: 'git://github.com/openstack/nova',
40 branch: master}
41+=======
42+ openstack-origin-git:
43+ "repositories:
44+ - {name: requirements,
45+ repository: 'git://git.openstack.org/openstack/requirements',
46+ branch: master}
47+ - {name: oslo-concurrency,
48+ repository: 'git://git.openstack.org/openstack/oslo.concurrency',
49+ branch: master}
50+ - {name: oslo-config,
51+ repository: 'git://git.openstack.org/openstack/oslo.config',
52+ branch: master}
53+ - {name: oslo-context,
54+ repository: 'git://git.openstack.org/openstack/oslo.context.git',
55+ branch: master}
56+ - {name: oslo-db,
57+ repository: 'git://git.openstack.org/openstack/oslo.db',
58+ branch: master}
59+ - {name: oslo-i18n,
60+ repository: 'git://git.openstack.org/openstack/oslo.i18n',
61+ branch: master}
62+ - {name: oslo-log,
63+ repository: 'git://git.openstack.org/openstack/oslo.log',
64+ branch: master}
65+ - {name: oslo-messaging,
66+ repository: 'git://git.openstack.org/openstack/oslo.messaging.git',
67+ branch: master}
68+ - {name: oslo-middleware,
69+ repository': 'git://git.openstack.org/openstack/oslo.middleware.git',
70+ branch: master}
71+ - {name: oslo-rootwrap',
72+ repository: 'git://git.openstack.org/openstack/oslo.rootwrap.git',
73+ branch: master}
74+ - {name: oslo-serialization,
75+ repository: 'git://git.openstack.org/openstack/oslo.serialization',
76+ branch: master}
77+ - {name: oslo-utils,
78+ repository: 'git://git.openstack.org/openstack/oslo.utils',
79+ branch: master}
80+ - {name: pbr,
81+ repository: 'git://git.openstack.org/openstack-dev/pbr',
82+ branch: master}
83+ - {name: stevedore,
84+ repository: 'git://git.openstack.org/openstack/stevedore.git',
85+ branch: 'master'}
86+ - {name: sqlalchemy-migrate,
87+ repository: 'git://git.openstack.org/stackforge/sqlalchemy-migrate',
88+ branch: master}
89+ - {name: python-cinderclient,
90+ repository: 'git://git.openstack.org/openstack/python-cinderclient.git',
91+ branch: master}
92+ - {name: python-glanceclient,
93+ repository': 'git://git.openstack.org/openstack/python-glanceclient.git',
94+ branch: master}
95+ - {name: python-neutronlient,
96+ repository': 'git://git.openstack.org/openstack/python-neutronclient.git',
97+ branch: master}
98+ - {name: keystonemiddleware,
99+ repository: 'git://git.openstack.org/openstack/keystonemiddleware',
100+ branch: master}
101+ - {name: nova,
102+ repository: 'git://git.openstack.org/openstack/nova',
103+ branch: master}"
104+>>>>>>> MERGE-SOURCE
105
106=== modified file 'charm-helpers-hooks.yaml'
107--- charm-helpers-hooks.yaml 2015-03-31 15:01:48 +0000
108+++ charm-helpers-hooks.yaml 2015-05-14 16:27:41 +0000
109@@ -1,4 +1,4 @@
110-branch: lp:charm-helpers
111+branch: lp:~openstack-charmers/charm-helpers/stable
112 destination: hooks/charmhelpers
113 include:
114 - core
115
116=== modified file 'charm-helpers-tests.yaml'
117--- charm-helpers-tests.yaml 2015-03-16 15:38:04 +0000
118+++ charm-helpers-tests.yaml 2015-05-14 16:27:41 +0000
119@@ -1,4 +1,4 @@
120-branch: lp:charm-helpers
121+branch: lp:~openstack-charmers/charm-helpers/stable
122 destination: tests/charmhelpers
123 include:
124 - contrib.amulet
125
126=== modified file 'config.yaml'
127--- config.yaml 2015-04-22 09:21:01 +0000
128+++ config.yaml 2015-05-14 16:27:41 +0000
129@@ -228,3 +228,11 @@
130 stipulated by nova-cloud-controller. The option is only available for
131 backward compatibility for deployments which do not use the neutron-api
132 charm. Please do not enable this on new deployments.
133+ iscsi-use-multipath:
134+ type: boolean
135+ default: False
136+ description: Use multipath connection of the iSCSI volume
137+ use-cow-images:
138+ type: boolean
139+ default: False
140+ description: Use COW images for libvirt
141
142=== modified file 'hooks/nova_compute_context.py'
143--- hooks/nova_compute_context.py 2015-03-31 13:22:53 +0000
144+++ hooks/nova_compute_context.py 2015-05-14 16:27:41 +0000
145@@ -114,6 +114,12 @@
146 if config('migration-auth-type') in ['none', 'None', 'ssh']:
147 ctxt['listen_tls'] = 0
148
149+ if config('use-cow-images'):
150+ ctxt['use_cow_images'] = 'True'
151+
152+ if config('iscsi-use-multipath'):
153+ ctxt['iscsi_use_multipath'] = 'True'
154+
155 if config('migration-auth-type') == 'ssh':
156 # nova.conf
157 ctxt['live_migration_uri'] = 'qemu+ssh://%s/system'
158
159=== modified file 'hooks/nova_compute_hooks.py'
160=== modified file 'metadata.yaml'
161--- metadata.yaml 2015-04-13 12:46:16 +0000
162+++ metadata.yaml 2015-05-14 16:27:41 +0000
163@@ -5,7 +5,7 @@
164 OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
165 addition to its "native" API (the OpenStack API), it also supports the Amazon
166 EC2 API.
167-categories:
168+tags:
169 - openstack
170 provides:
171 cloud-compute:
172
173=== modified file 'templates/juno/nova.conf'
174--- templates/juno/nova.conf 2015-04-13 12:22:05 +0000
175+++ templates/juno/nova.conf 2015-05-14 16:27:41 +0000
176@@ -31,6 +31,10 @@
177 compute_driver=libvirt.LibvirtDriver
178 my_ip = {{ host_ip }}
179
180+{% if use_cow_images -%}
181+use_cow_images={{ use_cow_images }}
182+{% endif -%}
183+
184 {% include "parts/database" %}
185
186 {% include "parts/rabbitmq" %}
187@@ -152,3 +156,6 @@
188 {% if disk_cachemodes -%}
189 disk_cachemodes = {{ disk_cachemodes }}
190 {% endif -%}
191+{% if iscsi_use_multipath -%}
192+iscsi_use_multipath=true
193+{% endif -%}
194
195=== modified file 'templates/kilo/nova.conf'
196--- templates/kilo/nova.conf 2015-04-22 09:21:01 +0000
197+++ templates/kilo/nova.conf 2015-05-14 16:27:41 +0000
198@@ -157,6 +157,9 @@
199 {% if disk_cachemodes -%}
200 disk_cachemodes = {{ disk_cachemodes }}
201 {% endif -%}
202+{% if iscsi_use_multipath -%}
203+iscsi_use_multipath=true
204+{% endif -%}
205
206 {% include "parts/section-database" %}
207
208
209=== modified file 'tests/basic_deployment.py'
210--- tests/basic_deployment.py 2015-04-16 21:31:33 +0000
211+++ tests/basic_deployment.py 2015-05-14 16:27:41 +0000
212@@ -23,7 +23,7 @@
213 """Amulet tests on a basic nova compute deployment."""
214
215 def __init__(self, series=None, openstack=None, source=None, git=False,
216- stable=False):
217+ stable=True):
218 """Deploy the entire test environment."""
219 super(NovaBasicDeployment, self).__init__(series, openstack, source, stable)
220 self.git = git

Subscribers

People subscribed via source and target branches