Merge lp:~1chb1n/charms/trusty/cinder/next-amulet-mitaka-1601 into lp:~openstack-charmers-archive/charms/trusty/cinder/next

Proposed by Ryan Beisner
Status: Merged
Merged at revision: 144
Proposed branch: lp:~1chb1n/charms/trusty/cinder/next-amulet-mitaka-1601
Merge into: lp:~openstack-charmers-archive/charms/trusty/cinder/next
Diff against target: 71 lines (+17/-13)
1 file modified
tests/basic_deployment.py (+17/-13)
To merge this branch: bzr merge lp:~1chb1n/charms/trusty/cinder/next-amulet-mitaka-1601
Reviewer Review Type Date Requested Status
David Ames (community) Approve
Review via email: mp+282519@code.launchpad.net

Description of the change

Enable Mitaka amulet tests. Wait for unit status instead of sleeping.

Addresses these bugs:

https://bugs.launchpad.net/ubuntu/+source/neutron-openvswitch/+bug/1474030

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

charm_lint_check #17262 cinder-next for 1chb1n mp282519
    LINT OK: passed

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

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

charm_unit_test #16128 cinder-next for 1chb1n mp282519
    UNIT OK: passed

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

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

charm_amulet_test #8769 cinder-next for 1chb1n mp282519
    AMULET FAIL: amulet-test failed

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

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

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

charm_amulet_test #8777 cinder-next for 1chb1n mp282519
    AMULET FAIL: amulet-test failed

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

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

146. By Ryan Beisner

disable xenial test, not quite yet juju-deployable with current tools/streams

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

charm_lint_check #17328 cinder-next for 1chb1n mp282519
    LINT OK: passed

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

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

charm_unit_test #16190 cinder-next for 1chb1n mp282519
    UNIT OK: passed

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

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

charm_amulet_test #8784 cinder-next for 1chb1n mp282519
    AMULET OK: passed

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

147. By Ryan Beisner

rebase

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

charm_lint_check #17779 cinder-next for 1chb1n mp282519
    LINT OK: passed

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

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

charm_unit_test #16621 cinder-next for 1chb1n mp282519
    UNIT OK: passed

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

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

charm_amulet_test #8912 cinder-next for 1chb1n mp282519
    AMULET OK: passed

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

Revision history for this message
David Ames (thedac) wrote :

Looks good, merging.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/018-basic-trusty-liberty' (properties changed: -x to +x)
=== modified file 'tests/019-basic-trusty-mitaka' (properties changed: -x to +x)
=== modified file 'tests/020-basic-wily-liberty' (properties changed: -x to +x)
=== modified file 'tests/basic_deployment.py'
--- tests/basic_deployment.py 2015-08-03 20:18:39 +0000
+++ tests/basic_deployment.py 2016-01-20 04:39:26 +0000
@@ -2,7 +2,6 @@
22
3import amulet3import amulet
4import os4import os
5import time
6import yaml5import yaml
76
8from charmhelpers.contrib.openstack.amulet.deployment import (7from charmhelpers.contrib.openstack.amulet.deployment import (
@@ -35,6 +34,11 @@
35 self._add_relations()34 self._add_relations()
36 self._configure_services()35 self._configure_services()
37 self._deploy()36 self._deploy()
37
38 u.log.info('Waiting on extended status checks...')
39 exclude_services = ['mysql']
40 self._auto_wait_for_status(exclude_services=exclude_services)
41
38 self._initialize_tests()42 self._initialize_tests()
3943
40 def _add_services(self):44 def _add_services(self):
@@ -120,9 +124,6 @@
120 u.log.debug('openstack release str: {}'.format(124 u.log.debug('openstack release str: {}'.format(
121 self._get_openstack_release_string()))125 self._get_openstack_release_string()))
122126
123 # Let things settle a bit original moving forward
124 time.sleep(30)
125
126 # Authenticate admin with keystone127 # Authenticate admin with keystone
127 self.keystone = u.authenticate_keystone_admin(self.keystone_sentry,128 self.keystone = u.authenticate_keystone_admin(self.keystone_sentry,
128 user='admin',129 user='admin',
@@ -670,22 +671,25 @@
670 conf_file = '/etc/cinder/cinder.conf'671 conf_file = '/etc/cinder/cinder.conf'
671672
672 # Services which are expected to restart upon config change673 # Services which are expected to restart upon config change
673 services = [674 services = {
674 'cinder-api',675 'cinder-api': conf_file,
675 'cinder-scheduler',676 'cinder-scheduler': conf_file,
676 'cinder-volume'677 'cinder-volume': conf_file
677 ]678 }
678679
679 # Make config change, check for service restarts680 # Make config change, check for service restarts
680 u.log.debug('Making config change on {}...'.format(juju_service))681 u.log.debug('Making config change on {}...'.format(juju_service))
682 mtime = u.get_sentry_time(sentry)
681 self.d.configure(juju_service, set_alternate)683 self.d.configure(juju_service, set_alternate)
682684
683 sleep_time = 40685 sleep_time = 40
684 for s in services:686 for s, conf_file in services.iteritems():
685 u.log.debug("Checking that service restarted: {}".format(s))687 u.log.debug("Checking that service restarted: {}".format(s))
686 if not u.service_restarted(sentry, s,688 if not u.validate_service_config_changed(sentry, mtime, s,
687 conf_file, sleep_time=sleep_time,689 conf_file,
688 pgrep_full=True):690 retry_count=4,
691 retry_sleep_time=20,
692 sleep_time=sleep_time):
689 self.d.configure(juju_service, set_default)693 self.d.configure(juju_service, set_default)
690 msg = "service {} didn't restart after config change".format(s)694 msg = "service {} didn't restart after config change".format(s)
691 amulet.raise_status(amulet.FAIL, msg=msg)695 amulet.raise_status(amulet.FAIL, msg=msg)

Subscribers

People subscribed via source and target branches