Merge lp:~1chb1n/charms/trusty/cinder-ceph/next-amulet-relation-settle into lp:~openstack-charmers-archive/charms/trusty/cinder-ceph/next
| Status: | Work in progress |
|---|---|
| Proposed branch: | lp:~1chb1n/charms/trusty/cinder-ceph/next-amulet-relation-settle |
| Merge into: | lp:~openstack-charmers-archive/charms/trusty/cinder-ceph/next |
| Diff against target: |
88 lines (+48/-5) 2 files modified
tests/basic_deployment.py (+2/-5) tests/charmhelpers/contrib/amulet/utils.py (+46/-0) |
| To merge this branch: | bzr merge lp:~1chb1n/charms/trusty/cinder-ceph/next-amulet-relation-settle |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ryan Beisner | Disapprove on 2015-07-13 | ||
| Corey Bryant | 2015-07-02 | Pending | |
|
Review via email:
|
|||
Description of the Change
Amulet tests (in general) are sometimes racey when the test rig is under higher load, as the relations may not have settled before tests begin.
Instead of an arbitary sleep time after deployment is "complete," use the same logic we use in openstack-
Ex. http://
This MP is dependent on c-h changes @ https:/
charm_unit_test #5361 cinder-ceph-next for 1chb1n mp263716
UNIT OK: passed
- 36. By Ryan Beisner on 2015-07-02
-
use juju run all (a la openstack-
mojo-specs) instead of arbitrary sleep; resync tests/charmhelpers
charm_lint_check #5730 cinder-ceph-next for 1chb1n mp263716
LINT OK: passed
charm_unit_test #5362 cinder-ceph-next for 1chb1n mp263716
UNIT OK: passed
charm_amulet_test #4923 cinder-ceph-next for 1chb1n mp263716
AMULET OK: passed
Build: http://
charm_amulet_test #4928 cinder-ceph-next for 1chb1n mp263716
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://
Build: http://
charm_amulet_test #4925 cinder-ceph-next for 1chb1n mp263716
AMULET OK: passed
Build: http://
charm_amulet_test #4927 cinder-ceph-next for 1chb1n mp263716
AMULET OK: passed
Build: http://
charm_amulet_test #4926 cinder-ceph-next for 1chb1n mp263716
AMULET OK: passed
Build: http://
charm_amulet_test #4924 cinder-ceph-next for 1chb1n mp263716
AMULET OK: passed
Build: http://
charm_amulet_test #4993 cinder-ceph-next for 1chb1n mp263716
AMULET OK: passed
Build: http://
charm_amulet_test #4996 cinder-ceph-next for 1chb1n mp263716
AMULET OK: passed
Build: http://
charm_amulet_test #4995 cinder-ceph-next for 1chb1n mp263716
AMULET OK: passed
Build: http://
charm_amulet_test #4994 cinder-ceph-next for 1chb1n mp263716
AMULET OK: passed
Build: http://
charm_amulet_test #4997 cinder-ceph-next for 1chb1n mp263716
AMULET OK: passed
Build: http://
| Ryan Beisner (1chb1n) wrote : | # |
FYI: To check the new wait logic, I repeatedly ran multiple simultaneous jobs while the system was under load, and all passed.
http://
http://
http://
http://
http://
| Ryan Beisner (1chb1n) wrote : | # |
Before these changes, in a looped local test run, appx 1 in 4 tests failed with the relation data issue.
With these changes, 15 of 15 local test runs succeeded.
- 37. By Ryan Beisner on 2015-07-09
-
resync tests/charmhelpers
charm_lint_check #5901 cinder-ceph-next for 1chb1n mp263716
LINT OK: passed
charm_unit_test #5533 cinder-ceph-next for 1chb1n mp263716
UNIT OK: passed
charm_amulet_test #5014 cinder-ceph-next for 1chb1n mp263716
AMULET OK: passed
Build: http://
| Corey Bryant (corey.bryant) wrote : | # |
Looks good, I'll approve once the c-h portion lands.
charm_amulet_test #5025 cinder-ceph-next for 1chb1n mp263716
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://
Build: http://
charm_amulet_test #5026 cinder-ceph-next for 1chb1n mp263716
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://
Build: http://
charm_amulet_test #5028 cinder-ceph-next for 1chb1n mp263716
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://
Build: http://
charm_amulet_test #5029 cinder-ceph-next for 1chb1n mp263716
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://
Build: http://
charm_amulet_test #5027 cinder-ceph-next for 1chb1n mp263716
AMULET FAIL: amulet-test failed
AMULET Results (max last 2 lines):
Timeout occurred (2700s), printing juju status.
ERROR:root:Make target returned non-zero.
Full amulet test output: http://
Build: http://
| Ryan Beisner (1chb1n) wrote : | # |
^^ Amulet test builds #5025 - 5029 #undercloud-fail
Will re-run after confirming test rig's undercloud health...
charm_amulet_test #5032 cinder-ceph-next for 1chb1n mp263716
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://
Build: http://
charm_amulet_test #5033 cinder-ceph-next for 1chb1n mp263716
AMULET OK: passed
Build: http://
charm_amulet_test #5034 cinder-ceph-next for 1chb1n mp263716
AMULET OK: passed
Build: http://
| Ryan Beisner (1chb1n) wrote : | # |
^ 1 of 3 failed with the relation settling race, with the 2nd remote run check removed, the test race condition re-appeared. So I added it back, which also keeps the approach in line with the same in openstack mojo specs.
- 38. By Ryan Beisner on 2015-07-13
-
resync tests/charmhelpers
charm_lint_check #6111 cinder-ceph-next for 1chb1n mp263716
LINT OK: passed
charm_unit_test #5743 cinder-ceph-next for 1chb1n mp263716
UNIT OK: passed
charm_amulet_test #5097 cinder-ceph-next for 1chb1n mp263716
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://
Build: http://
charm_amulet_test #5099 cinder-ceph-next for 1chb1n mp263716
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://
Build: http://
| Ryan Beisner (1chb1n) wrote : | # |
Abandoning this as the juju run twice approach appears to no longer be effective.
I disapprove. ;-)
charm_amulet_test #5100 cinder-ceph-next for 1chb1n mp263716
AMULET OK: passed
Build: http://
charm_amulet_test #5098 cinder-ceph-next for 1chb1n mp263716
AMULET OK: passed
Build: http://
Unmerged revisions
- 38. By Ryan Beisner on 2015-07-13
-
resync tests/charmhelpers
- 37. By Ryan Beisner on 2015-07-09
-
resync tests/charmhelpers
- 36. By Ryan Beisner on 2015-07-02
-
use juju run all (a la openstack-
mojo-specs) instead of arbitrary sleep; resync tests/charmhelpers - 35. By Ryan Beisner on 2015-07-02
-
increase initial wait

charm_lint_check #5729 cinder-ceph-next for 1chb1n mp263716
LINT OK: passed
Build: http:// 10.245. 162.77: 8080/job/ charm_lint_ check/5729/