Merge lp:~corey.bryant/charms/trusty/nova-compute/amulet-git-fixups into lp:~openstack-charmers-archive/charms/trusty/nova-compute/next

Proposed by Corey Bryant
Status: Merged
Merged at revision: 142
Proposed branch: lp:~corey.bryant/charms/trusty/nova-compute/amulet-git-fixups
Merge into: lp:~openstack-charmers-archive/charms/trusty/nova-compute/next
Diff against target: 178 lines (+83/-35)
2 files modified
tests/00-setup (+1/-0)
tests/basic_deployment.py (+82/-35)
To merge this branch: bzr merge lp:~corey.bryant/charms/trusty/nova-compute/amulet-git-fixups
Reviewer Review Type Date Requested Status
OpenStack Charmers Pending
Review via email: mp+264570@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Amulet deploy from source updates:
  * Install amulet pre-req python-distro-info
  * Use modified icehouse branches due to requirements issues

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

charm_lint_check #6123 nova-compute-next for corey.bryant mp264570
    LINT OK: passed

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

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

charm_unit_test #5755 nova-compute-next for corey.bryant mp264570
    UNIT OK: passed

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

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

charm_amulet_test #5112 nova-compute-next for corey.bryant mp264570
    AMULET OK: passed

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

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

charm_lint_check #6127 nova-compute-next for corey.bryant mp264570
    LINT OK: passed

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

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

charm_unit_test #5759 nova-compute-next for corey.bryant mp264570
    UNIT OK: passed

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

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

charm_amulet_test #5116 nova-compute-next for corey.bryant mp264570
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
make: *** [test] Error 1
ERROR:root:Make target returned non-zero.

Full amulet test output: http://paste.ubuntu.com/11875177/
Build: http://10.245.162.77:8080/job/charm_amulet_test/5116/

148. By Corey Bryant

Enable tests/017-basic-trusty-kilo

149. By Corey Bryant

Update tests for kilo

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

charm_lint_check #6175 nova-compute-next for corey.bryant mp264570
    LINT OK: passed

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

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

charm_unit_test #5807 nova-compute-next for corey.bryant mp264570
    UNIT OK: passed

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

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

charm_amulet_test #5119 nova-compute-next for corey.bryant mp264570
    AMULET OK: passed

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/00-setup'
--- tests/00-setup 2014-09-30 20:31:36 +0000
+++ tests/00-setup 2015-07-14 17:49:25 +0000
@@ -5,6 +5,7 @@
5sudo add-apt-repository --yes ppa:juju/stable5sudo add-apt-repository --yes ppa:juju/stable
6sudo apt-get update --yes6sudo apt-get update --yes
7sudo apt-get install --yes python-amulet \7sudo apt-get install --yes python-amulet \
8 python-distro-info \
8 python-glanceclient \9 python-glanceclient \
9 python-keystoneclient \10 python-keystoneclient \
10 python-novaclient11 python-novaclient
1112
=== modified file 'tests/017-basic-trusty-kilo' (properties changed: -x to +x)
=== modified file 'tests/basic_deployment.py'
--- tests/basic_deployment.py 2015-07-09 18:16:49 +0000
+++ tests/basic_deployment.py 2015-07-14 17:49:25 +0000
@@ -70,21 +70,24 @@
70 nova_config = {'config-flags': 'auto_assign_floating_ip=False',70 nova_config = {'config-flags': 'auto_assign_floating_ip=False',
71 'enable-live-migration': 'False'}71 'enable-live-migration': 'False'}
72 if self.git:72 if self.git:
73 release = self._get_openstack_release_string()73 amulet_http_proxy = os.environ.get('AMULET_HTTP_PROXY')
74 reqs_branch = 'stable/' + release74
75 reqs_repo = 'git://github.com/openstack/requirements'
76 nova_repo = 'git://github.com/openstack/nova'
75 if self._get_openstack_release() == self.trusty_icehouse:77 if self._get_openstack_release() == self.trusty_icehouse:
76 nova_branch = release + '-eol'78 reqs_repo = 'git://github.com/coreycb/requirements'
77 else:79 nova_repo = 'git://github.com/coreycb/nova'
78 nova_branch = 'stable/' + release80
79 amulet_http_proxy = os.environ.get('AMULET_HTTP_PROXY')81 branch = 'stable/' + self._get_openstack_release_string()
82
80 openstack_origin_git = {83 openstack_origin_git = {
81 'repositories': [84 'repositories': [
82 {'name': 'requirements',85 {'name': 'requirements',
83 'repository': 'git://github.com/openstack/requirements',86 'repository': reqs_repo,
84 'branch': reqs_branch},87 'branch': branch},
85 {'name': 'nova',88 {'name': 'nova',
86 'repository': 'git://github.com/openstack/nova',89 'repository': nova_repo,
87 'branch': nova_branch},90 'branch': branch},
88 ],91 ],
89 'directory': '/mnt/openstack-git',92 'directory': '/mnt/openstack-git',
90 'http_proxy': amulet_http_proxy,93 'http_proxy': amulet_http_proxy,
@@ -182,8 +185,11 @@
182 if self._get_openstack_release() >= self.precise_folsom:185 if self._get_openstack_release() >= self.precise_folsom:
183 endpoint_vol['id'] = u.not_null186 endpoint_vol['id'] = u.not_null
184 endpoint_id['id'] = u.not_null187 endpoint_id['id'] = u.not_null
185 expected = {'s3': [endpoint_vol], 'compute': [endpoint_vol],188 if self._get_openstack_release() >= self.trusty_kilo:
186 'ec2': [endpoint_vol], 'identity': [endpoint_id]}189 expected = {'compute': [endpoint_vol], 'identity': [endpoint_id]}
190 else:
191 expected = {'s3': [endpoint_vol], 'compute': [endpoint_vol],
192 'ec2': [endpoint_vol], 'identity': [endpoint_id]}
187 actual = self.keystone_demo.service_catalog.get_endpoints()193 actual = self.keystone_demo.service_catalog.get_endpoints()
188194
189 ret = u.validate_svc_catalog_endpoint_data(expected, actual)195 ret = u.validate_svc_catalog_endpoint_data(expected, actual)
@@ -209,6 +215,9 @@
209215
210 def test_ec2_api_endpoint(self):216 def test_ec2_api_endpoint(self):
211 """Verify the EC2 api endpoint data."""217 """Verify the EC2 api endpoint data."""
218 if self._get_openstack_release() >= self.trusty_kilo:
219 return
220
212 endpoints = self.keystone.endpoints.list()221 endpoints = self.keystone.endpoints.list()
213 admin_port = internal_port = public_port = '8773'222 admin_port = internal_port = public_port = '8773'
214 expected = {'id': u.not_null,223 expected = {'id': u.not_null,
@@ -226,6 +235,9 @@
226235
227 def test_s3_api_endpoint(self):236 def test_s3_api_endpoint(self):
228 """Verify the S3 api endpoint data."""237 """Verify the S3 api endpoint data."""
238 if self._get_openstack_release() >= self.trusty_kilo:
239 return
240
229 endpoints = self.keystone.endpoints.list()241 endpoints = self.keystone.endpoints.list()
230 admin_port = internal_port = public_port = '3333'242 admin_port = internal_port = public_port = '3333'
231 expected = {'id': u.not_null,243 expected = {'id': u.not_null,
@@ -382,34 +394,69 @@
382 mysql_relation['db_host'],394 mysql_relation['db_host'],
383 'nova')395 'nova')
384396
385 expected = {'dhcpbridge_flagfile': '/etc/nova/nova.conf',397 expected = {
386 'dhcpbridge': '/usr/bin/nova-dhcpbridge',398 'DEFAULT': {
387 'logdir': '/var/log/nova',399 'dhcpbridge_flagfile': '/etc/nova/nova.conf',
388 'state_path': '/var/lib/nova',400 'dhcpbridge': '/usr/bin/nova-dhcpbridge',
389 'lock_path': '/var/lock/nova',401 'logdir': '/var/log/nova',
390 'force_dhcp_release': 'True',402 'state_path': '/var/lib/nova',
391 'libvirt_use_virtio_for_bridges': 'True',403 'force_dhcp_release': 'True',
392 'verbose': 'False',404 'verbose': 'False',
393 'use_syslog': 'False',405 'use_syslog': 'False',
394 'ec2_private_dns_show_ip': 'True',406 'ec2_private_dns_show_ip': 'True',
395 'api_paste_config': '/etc/nova/api-paste.ini',407 'api_paste_config': '/etc/nova/api-paste.ini',
396 'enabled_apis': 'ec2,osapi_compute,metadata',408 'enabled_apis': 'ec2,osapi_compute,metadata',
397 'auth_strategy': 'keystone',409 'auth_strategy': 'keystone',
398 'compute_driver': 'libvirt.LibvirtDriver',410 'flat_interface': 'eth1',
399 'sql_connection': db_uri,411 'network_manager': 'nova.network.manager.FlatDHCPManager',
412 'volume_api_class': 'nova.volume.cinder.API',
413 }
414 }
415 if self._get_openstack_release() < self.trusty_kilo:
416 d = 'DEFAULT'
417 expected[d]['lock_path'] = '/var/lock/nova'
418 expected[d]['libvirt_use_virtio_for_bridges'] = 'True'
419 expected[d]['compute_driver'] = 'libvirt.LibvirtDriver'
420 expected[d]['sql_connection'] = db_uri
421 expected[d]['rabbit_userid'] = 'nova'
422 expected[d]['rabbit_virtual_host'] = 'openstack'
423 expected[d]['rabbit_password'] = rabbitmq_relation['password']
424 expected[d]['rabbit_host'] = rabbitmq_relation['hostname']
425 expected[d]['glance_api_servers'] = glance_relation['glance-api-server']
426 else:
427 oslo_concurrency = {
428 'oslo_concurrency': {
429 'lock_path': '/var/lock/nova'
430 }
431 }
432 database = {
433 'database': {
434 'connection': db_uri
435 }
436 }
437 oslo_messaging_rabbit = {
438 'oslo_messaging_rabbit': {
400 'rabbit_userid': 'nova',439 'rabbit_userid': 'nova',
401 'rabbit_virtual_host': 'openstack',440 'rabbit_virtual_host': 'openstack',
402 'rabbit_password': rabbitmq_relation['password'],441 'rabbit_password': rabbitmq_relation['password'],
403 'rabbit_host': rabbitmq_relation['hostname'],442 'rabbit_host': rabbitmq_relation['hostname'],
404 'glance_api_servers': glance_relation['glance-api-server'],443 }
405 'flat_interface': 'eth1',444 }
406 'network_manager': 'nova.network.manager.FlatDHCPManager',445 glance = {
407 'volume_api_class': 'nova.volume.cinder.API'}446 'glance': {
447 'api_servers': glance_relation['glance-api-server']
448 }
449 }
450 expected.update(oslo_concurrency)
451 expected.update(database)
452 expected.update(oslo_messaging_rabbit)
453 expected.update(glance)
408454
409 ret = u.validate_config_data(unit, conf, 'DEFAULT', expected)455 for section, pairs in expected.iteritems():
410 if ret:456 ret = u.validate_config_data(unit, conf, section, pairs)
411 message = "nova config error: {}".format(ret)457 if ret:
412 amulet.raise_status(amulet.FAIL, msg=message)458 message = "nova config error: {}".format(ret)
459 amulet.raise_status(amulet.FAIL, msg=message)
413460
414 def test_image_instance_create(self):461 def test_image_instance_create(self):
415 """Create an image/instance, verify they exist, and delete them."""462 """Create an image/instance, verify they exist, and delete them."""

Subscribers

People subscribed via source and target branches