Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update module to use new pymongo (version 3) API #10

Open
gst opened this issue Apr 9, 2015 · 2 comments
Open

Update module to use new pymongo (version 3) API #10

gst opened this issue Apr 9, 2015 · 2 comments

Comments

@gst
Copy link

gst commented Apr 9, 2015

See commit 2d4e23e
and :
https://test.savoirfairelinux.com/view/Shinken/job/Shinken-Upstream-Daily-Long-Tests/1961/

Pile d'exécution

  File "/var/lib/jenkins/workspace/Shinken-Upstream-Daily-Long-Tests/test/jenkins/env2.7.6/local/lib/python2.7/site-packages/unittest2/case.py", line 67, in testPartExecutor
    yield
  File "/var/lib/jenkins/workspace/Shinken-Upstream-Daily-Long-Tests/test/jenkins/env2.7.6/local/lib/python2.7/site-packages/unittest2/case.py", line 597, in run
    self.setUp()
  File "/var/lib/jenkins/workspace/Shinken-Upstream-Daily-Long-Tests/test/tmp/mod-logstore-mongodb/test/test_livestatus_mongodb.py", line 254, in setUp
    self.init_livestatus(dbmodconf=dbmodconf)
  File "/var/lib/jenkins/workspace/Shinken-Upstream-Daily-Long-Tests/test/shinken_modules.py", line 126, in init_livestatus
    self.livestatus_broker.db.open()
  File "modules/logstore-mongodb/module.py", line 175, in open
    raise LiveStatusLogStoreError(err)
"'module' object has no attribute 'Connection'
@GuusH
Copy link
Contributor

GuusH commented May 8, 2015

Hi,

I ran into the same thing, but hit the other mongo module first. See shinken-monitoring/mod-retention-mongodb#8
I've made a fix for the issue in a fork of that module and I'm currently testing with pymongo 2.6.2 and 3.0.1. So far so good. The fix is fairly minimal. I'll apply the same logic to this module and see if I can get this to work with 2.x and 3.x version of pymongo.

To be continued!

@GuusH
Copy link
Contributor

GuusH commented May 8, 2015

See #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants