bundletester only works with -l DEBUG otherwise prints backtrace

Bug #1496979 reported by Manoj Iyer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charmtester
New
Undecided
Unassigned

Bug Description

I did a pip install of bundletester, and installed 'sutf' and other requirements

Without -l DEBUG
===============
ubuntu@manjoubuntu:~$ sudo bundletester -e maas -t cs:trusty/mysql -o result.json
Traceback (most recent call last):
  File "/usr/local/bin/bundletester", line 9, in <module>
    load_entry_point('bundletester==0.5.4', 'console_scripts', 'bundletester')()
  File "/usr/local/lib/python2.7/dist-packages/bundletester/tester.py", line 74, in main
    options = configure()
  File "/usr/local/lib/python2.7/dist-packages/bundletester/tester.py", line 69, in configure
    logging.basicConfig(level=options.log_level.upper())
AttributeError: 'int' object has no attribute 'upper'

with -l DEBUG
============
ubuntu@manjoubuntu:~$ sudo bundletester -e maas -t cs:trusty/mysql -o result.json -l DEBUG
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): store.juju.ubuntu.com
DEBUG:urllib3.connectionpool:Setting read timeout to 45
DEBUG:urllib3.connectionpool:"GET /charm-info?stats=0&charms=trusty%2Fmysql HTTP/1.1" 200 210
DEBUG:bundletester.fetchers:Downloading https://store.juju.ubuntu.com/charm/trusty/mysql
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): store.juju.ubuntu.com
DEBUG:urllib3.connectionpool:Setting read timeout to <object object at 0x7f6b3159d0a0>
DEBUG:urllib3.connectionpool:"GET /charm/trusty/mysql HTTP/1.1" 200 143276
DEBUG:bundletester.fetchers:Extracting /tmp/bundletester-wV2UDm/tmpvVcscT to /tmp/bundletester-wV2UDm/tmpSQI_yW
DEBUG:bundletester.fetchers:unzip /tmp/bundletester-wV2UDm/tmpvVcscT -d /tmp/bundletester-wV2UDm/tmpSQI_yW: Archive: /tmp/bundletester-wV2UDm/tmpvVcscT
 extracting: /tmp/bundletester-wV2UDm/tmpSQI_yW/revision
  inflating: /tmp/bundletester-wV2UDm/tmpSQI_yW/Makefile
  inflating: /tmp/bundletester-wV2UDm/tmpSQI_yW/README.md
  inflating: /tmp/bundletester-wV2UDm/tmpSQI_yW/charm-helpers-tests.yaml
  inflating: /tmp/bundletester-wV2UDm/tmpSQI_yW/charm-helpers.yaml
  inflating: /tmp/bundletester-wV2UDm/tmpSQI_yW/config.yaml
  inflating: /tmp/bundletester-wV2UDm/tmpSQI_yW/copyright

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.