we pass safe parameter to pymongo.MongoClient but this field is
removed in 3.0. the default value is safe=True as of pymongo>=2.4[1].
this patch also cleans up residual ensure_index usage in tests which
were leftover from when ttl was not native to mongodb[2]
Reviewed: https:/ /review. openstack. org/171458 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=b69d3a0f1f7 0274aa55d6dae26 866baa7e9d9bcd
Committed: https:/
Submitter: Jenkins
Branch: master
commit b69d3a0f1f70274 aa55d6dae26866b aa7e9d9bcd
Author: ZhiQiang Fan <email address hidden>
Date: Wed Apr 8 10:29:16 2015 +0800
pymongo 3.0 breaks ci gate
we pass safe parameter to pymongo.MongoClient but this field is
removed in 3.0. the default value is safe=True as of pymongo>=2.4[1].
this patch also cleans up residual ensure_index usage in tests which
were leftover from when ttl was not native to mongodb[2]
[1] http:// emptysqua. re/blog/ pymongos- new-default- safe-writes/ 6cfd5256abbeca4 3ed98321412
[2] I3d91fb08eb51ba
Closes-Bug: #1441393 1f35b726c411d08 04f3bb0cbda
Change-Id: I46f6ba28a4986c