make 00-setup executable

Bug #1372996 reported by Matt Bruzek
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mongodb (Juju Charms Collection)
Invalid
Undecided
Unassigned

Bug Description

While doing a review of a merge proposal on the mongodb charm, I attempted to run:

juju test -v --set-e --timeout 1000

I got the error that pymongo was not installed:
...
Bootstrapping Juju machine agent
Starting Juju machine agent (juju-agent-mbruzek-local)
Bootstrap complete
juju-test.conductor DEBUG : Waiting for bootstrap
juju-test.conductor DEBUG : Still not bootstrapped
juju-test.conductor DEBUG : Running the following: juju status -e local
juju-test.conductor DEBUG : State for 1.21.0: started
juju-test.conductor.200_deploy.test DEBUG : Running 200_deploy.test (tests/200_deploy.test)
Traceback (most recent call last):
  File "tests/200_deploy.test", line 5, in <module>
    from pymongo import MongoClient
ImportError: No module named 'pymongo'
juju-test.conductor.200_deploy.test DEBUG :
juju-test.conductor.200_deploy.test DEBUG : Got exit code: 1
juju-test.conductor.200_deploy.test RESULT : ✘

I see that pymongo is installed in tests/00-setup but that was never called by the "juju test" command because it was not executable. I moved this to executable and 00-setup was run:

The following extra packages will be installed:
  python-bson python-bson-ext python-gridfs python-pymongo-ext python3-bson
  python3-bson-ext python3-gridfs python3-pymongo-ext
The following NEW packages will be installed:
  python-bson python-bson-ext python-gridfs python-pymongo python-pymongo-ext
  python3-bson python3-bson-ext python3-gridfs python3-pymongo
  python3-pymongo-ext
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.

Revision history for this message
Matt Bruzek (mbruzek) wrote :

I checked both the precise and trusty version of the mongodb charm and the 00-setup is indeed executable. The fix must have went in another merge proposal.

tags: removed: audit
Changed in mongodb (Juju Charms Collection):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.