Merge lp:~evarlast/charms/trusty/mongodb/fix-dump-actions into lp:charms/trusty/mongodb
| Status: | Merged |
|---|---|
| Merged at revision: | 80 |
| Proposed branch: | lp:~evarlast/charms/trusty/mongodb/fix-dump-actions |
| Merge into: | lp:charms/trusty/mongodb |
| Diff against target: |
461 lines (+156/-59) 9 files modified
actions/backup.py (+5/-4) config.yaml (+1/-1) hooks/hooks.py (+1/-0) metadata.yaml (+1/-1) tests/01_deploy_single.py (+4/-1) tests/02_deploy_shard_test.py (+47/-19) tests/03_deploy_replicaset.py (+73/-19) tests/04_deploy_with_storage.py (+18/-11) tests/50_relate_ceilometer_test.py (+6/-3) |
| To merge this branch: | bzr merge lp:~evarlast/charms/trusty/mongodb/fix-dump-actions |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Review Queue (community) | automated testing | Approve on 2015-12-17 | |
| Matt Bruzek (community) | Approve on 2015-12-16 | ||
| Jay R. Wren (community) | Resubmit on 2015-12-10 | ||
| Ryan Beisner | Needs Fixing on 2015-11-23 | ||
| Matthew Williams (community) | Approve on 2015-11-12 | ||
| Tim Van Steenburgh | 2015-11-10 | Needs Fixing on 2015-11-11 | |
|
Review via email:
|
|||
Description of the Change
Dump wasn't working. Now it works and if args has spaces, they can be escaped with quotes.
e.g.
$ juju action do mongodb/0 dump args='-q "{a:1, b:2}"'
Action queued with id: 7b627526-
$ juju action fetch 7b
results:
command: mongodump -q "{a:1, b:2}"
charm_unit_test #12564 mongodb for evarlast mp277191
UNIT OK: passed
charm_amulet_test #7839 mongodb for evarlast mp277191
AMULET OK: passed
Build: http://
| Tim Van Steenburgh (tvansteenburgh) wrote : | # |
Charm CI tests failed due to hardcoded unit numbers in the tests. Jenkins log: http://
To fix, replace occurrences of `d.sentry.
- 80. By Jay R. Wren on 2015-11-12
-
fix hardcoded unit numbers in the tests
charm_unit_test #12615 mongodb for evarlast mp277191
UNIT OK: passed
charm_lint_check #13484 mongodb for evarlast mp277191
LINT OK: passed
Build: http://
charm_amulet_test #7845 mongodb for evarlast mp277191
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://
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
- 81. By Jay R. Wren on 2015-11-13
-
use sentry[service][N] instead of sentry.unit[unit]
- 82. By Jay R. Wren on 2015-11-13
-
categories is now tags.
config key now defaults to ""
charm_lint_check #13701 mongodb for evarlast mp277191
LINT OK: passed
Build: http://
charm_unit_test #12771 mongodb for evarlast mp277191
UNIT OK: passed
charm_amulet_test #7858 mongodb for evarlast mp277191
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://
- 83. By Jay R. Wren on 2015-11-17
-
some ipv6 support
charm_lint_check #13928 mongodb for evarlast mp277191
LINT FAIL: lint-test failed
LINT Results (max last 2 lines):
make: *** [lint] Error 1
ERROR:root:Make target returned non-zero.
Full lint test output: http://
Build: http://
charm_unit_test #12984 mongodb for evarlast mp277191
UNIT OK: passed
charm_amulet_test #7911 mongodb for evarlast mp277191
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://
- 84. By Jay R. Wren on 2015-11-17
-
fix ipv6 url
- 85. By Jay R. Wren on 2015-11-17
-
fix ipv6 url
- 86. By Jay R. Wren on 2015-11-18
-
fix lint
charm_lint_check #14010 mongodb for evarlast mp277191
LINT OK: passed
Build: http://
charm_unit_test #13061 mongodb for evarlast mp277191
UNIT OK: passed
charm_amulet_test #7939 mongodb for evarlast mp277191
AMULET OK: passed
Build: http://
- 87. By Jay R. Wren on 2015-11-19
-
fix broken amulet tests
we do not know which is master, cannot assume it is /0, so try 0 and if it fails try /1.
enable ipv6 in mongodb. We cannot know which provider is being used and if the public-address may be ipv6, so we must enable ipv6
charm_lint_check #14066 mongodb for evarlast mp277191
LINT FAIL: lint-test failed
LINT Results (max last 2 lines):
make: *** [lint] Error 1
ERROR:root:Make target returned non-zero.
Full lint test output: http://
Build: http://
charm_unit_test #13112 mongodb for evarlast mp277191
UNIT OK: passed
charm_amulet_test #7941 mongodb for evarlast mp277191
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://
- 88. By Jay R. Wren on 2015-11-20
-
use sentry.wait() instead of time.sleep - much faster.
charm_lint_check #14136 mongodb for evarlast mp277191
LINT FAIL: lint-test failed
LINT Results (max last 2 lines):
make: *** [lint] Error 1
ERROR:root:Make target returned non-zero.
Full lint test output: http://
Build: http://
charm_unit_test #13176 mongodb for evarlast mp277191
UNIT OK: passed
- 89. By Jay R. Wren on 2015-11-20
-
fix lint
charm_lint_check #14137 mongodb for evarlast mp277191
LINT OK: passed
Build: http://
charm_unit_test #13177 mongodb for evarlast mp277191
UNIT OK: passed
charm_amulet_test #7957 mongodb for evarlast mp277191
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 #7956 mongodb for evarlast mp277191
AMULET OK: passed
Build: http://
- 90. By Jay R. Wren on 2015-11-20
-
Use hostname used in relation.
Can't assume relation hostname is public-address. It isn't in many environments.
charm_lint_check #14138 mongodb for evarlast mp277191
LINT OK: passed
Build: http://
charm_unit_test #13178 mongodb for evarlast mp277191
UNIT OK: passed
- 91. By Jay R. Wren on 2015-11-20
-
use sentry.wait not time.sleep
charm_amulet_test #7958 mongodb for evarlast mp277191
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_unit_test #13180 mongodb for evarlast mp277191
UNIT OK: passed
charm_lint_check #14140 mongodb for evarlast mp277191
LINT OK: passed
Build: http://
charm_amulet_test #7960 mongodb for evarlast mp277191
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://
- 92. By Jay R. Wren on 2015-11-20
-
wait longer for replset
Don't retry on unit 1 when unit 0 is not primary.
Additional logging on fail.
charm_lint_check #14141 mongodb for evarlast mp277191
LINT FAIL: lint-test failed
LINT Results (max last 2 lines):
make: *** [lint] Error 1
ERROR:root:Make target returned non-zero.
Full lint test output: http://
Build: http://
charm_unit_test #13181 mongodb for evarlast mp277191
UNIT OK: passed
charm_amulet_test #7961 mongodb for evarlast mp277191
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://
- 93. By Jay R. Wren on 2015-11-20
-
fix lint
charm_unit_test #13182 mongodb for evarlast mp277191
UNIT OK: passed
charm_lint_check #14142 mongodb for evarlast mp277191
LINT OK: passed
Build: http://
charm_amulet_test #7962 mongodb for evarlast mp277191
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://
- 94. By Jay R. Wren on 2015-11-23
-
increase wait time for CI
charm_lint_check #14253 mongodb for evarlast mp277191
LINT OK: passed
Build: http://
charm_unit_test #13284 mongodb for evarlast mp277191
UNIT OK: passed
charm_amulet_test #8016 mongodb for evarlast mp277191
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://
- 95. By Jay R. Wren on 2015-11-23
-
increase wait time for CI
charm_lint_check #14254 mongodb for evarlast mp277191
LINT OK: passed
Build: http://
charm_unit_test #13285 mongodb for evarlast mp277191
UNIT OK: passed
charm_amulet_test #8017 mongodb for evarlast mp277191
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 : | # |
Thank you for your work on this.
While I realize that the test race wasn't introduced by your proposed changes, please see:
https:/
It would be awesome to resolve that test issue along with this, as it's definitely presenting a pain point.
- 96. By Jay R. Wren on 2015-11-24
-
retry every 10s for replset validation
| Jay R. Wren (evarlast) wrote : | # |
This should address https:/
charm_lint_check #14310 mongodb for evarlast mp277191
LINT OK: passed
Build: http://
charm_unit_test #13338 mongodb for evarlast mp277191
UNIT OK: passed
charm_amulet_test #8028 mongodb for evarlast mp277191
AMULET OK: passed
Build: http://
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
charm_lint_check #14635 mongodb for evarlast mp277191
LINT OK: passed
Build: http://
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
- 97. By Jay R. Wren on 2015-12-02
-
retry replSetGetStatus and use minimum unit number for master
charm_lint_check #14756 mongodb for evarlast mp277191
LINT FAIL: lint-test failed
LINT Results (max last 2 lines):
make: *** [lint] Error 1
ERROR:root:Make target returned non-zero.
Full lint test output: http://
Build: http://
charm_unit_test #13759 mongodb for evarlast mp277191
UNIT OK: passed
- 98. By Jay R. Wren on 2015-12-02
-
fix lint
charm_lint_check #14757 mongodb for evarlast mp277191
LINT OK: passed
Build: http://
charm_unit_test #13761 mongodb for evarlast mp277191
UNIT OK: passed
charm_amulet_test #8078 mongodb for evarlast mp277191
AMULET OK: passed
Build: http://
charm_amulet_test #8079 mongodb for evarlast mp277191
AMULET FAIL: amulet-test failed
AMULET Results (max last 2 lines):
make: *** [functional_test] Error 124
ERROR:root:Make target returned non-zero.
Full amulet test output: http://
Build: http://
charm_amulet_test #8081 mongodb for evarlast mp277191
AMULET OK: passed
Build: http://
- 99. By Jay R. Wren on 2015-12-03
-
retry shard status interface test
sort units and use them based on order in 04_deploy_with_storage test
charm_lint_check #14813 mongodb for evarlast mp277191
LINT OK: passed
Build: http://
charm_unit_test #13813 mongodb for evarlast mp277191
UNIT OK: passed
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
charm_amulet_test #8134 mongodb for evarlast mp277191
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://
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
- 100. By Jay R. Wren on 2015-12-07
-
use constraints for storage test to prevent filling root volume
charm_lint_check #15041 mongodb for evarlast mp277191
LINT OK: passed
Build: http://
charm_unit_test #14029 mongodb for evarlast mp277191
UNIT OK: passed
charm_amulet_test #8205 mongodb for evarlast mp277191
AMULET OK: passed
Build: http://
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
| Jay R. Wren (evarlast) wrote : | # |
The only fail remaining is from a known bug, which I am not attempting to fix.
From the README:
Deploying three or more units at start can sometimes lead to unexpected race-conditions so it's best to start with two nodes.
http://
Please consider this for merging.
| Matt Bruzek (mbruzek) wrote : | # |
Hello Jay,
While reviewing the queue today and noticed more than one mongodb charm merge proposals. Since we review the oldest first this proposal did not get reviewed first.
As Ryan points out in a bug 1518468 ( https:/
## 03_deploy_
The new code contains the comment “# We assume minimum unit number is master.” There should be a better way to get the master address in the test. Again you may be able to run commands on the units to determine their master relationship, or use a mongo python library to determine the master reliably.
The tests passed for me on AWS and I am going to merge this code. I would encourage you to change the test code to detect the state of the mongodb deployment from reliable sources that do not involve sleeping for arbitrary amounts of time. Such as running a command on the unit to tell when it is ready, or using `juju status-history unit/0` to determine ready states.
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
| Review Queue (review-queue) wrote : | # |
The results (PASS) are in and available here: http://

charm_lint_check #13430 mongodb for evarlast mp277191
LINT OK: passed
Build: http:// 10.245. 162.77: 8080/job/ charm_lint_ check/13430/