make 00-setup executable
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-
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.
Traceback (most recent call last):
File "tests/
from pymongo import MongoClient
ImportError: No module named 'pymongo'
juju-test.
juju-test.
juju-test.
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-
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
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.