support mongo 3.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
John A Meinel | ||
2.3 |
Fix Released
|
High
|
John A Meinel |
Bug Description
There are a few failures that I'm seeing trying to run the test suite with Mongo 3.6
1) --nohttpinterface
diff --git a/mgo.go b/mgo.go
index c128747..cde1be0 100644
--- a/mgo.go
+++ b/mgo.go
@@ -230,7 +230,6 @@ func (inst *MgoInstance) run() error {
- "--nohttpinterf
Looking at "mongod --help" I can see that mongo 2.6, 3.2 and 3.4 (and presumably 2.4 and 3.0) support passing '--httpinterface'. Which doesn't appear to be present in 3.6. Presumably because they have an "--httpinterface" we are passing "--nohttpinterface" to make sure it isn't enabled, but it doesn't look like it would be active unless we actually were passing "--httpinterface", so I think we can just always drop it.
2) 'cannot drop admin':
-------
FAIL: <autogenerated>:1: ActionSuite.
dev/go/
c.Assert(err, jc.ErrorIsNil)
... value *errors.Err = &errors.
... error stack:
Dropping the 'admin' database is prohibited.
PASS: action_
PASS: action_
PASS: action_test.go:987: ActionPruningSu
PASS: action_
We generally avoid dropping 'system.' tables. But this seems we are getting confused and trying to destroy the entire database.
Regardless, we need to avoid doing that.
3) Eventually we'll need to start passing --bind_ip_all on the command line for 3.6, but we don't need to do that for the test suite.
Changed in juju: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/juju/ testing/ pull/136