Ansible deployment failing on juju 1.20

Bug #1363236 reported by Max Brustkern
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-django (Juju Charms Collection)
Confirmed
Undecided
Patrick Hetu

Bug Description

I am trying to deploy a project on juju 1.20. I see this in the log:
unit-qlbr-0: 2014-08-29 19:54:07 INFO install Processing triggers for python-support ...
unit-qlbr-0: 2014-08-29 19:54:08 INFO install ERROR: /etc/ansible/host_vars/localhost: Expecting property name: line 1 column 1 (char 1)
unit-qlbr-0: 2014-08-29 19:54:08 INFO install Traceback (most recent call last):
unit-qlbr-0: 2014-08-29 19:54:08 INFO install File "/var/lib/juju/agents/unit-qlbr-0/charm/hooks/install", line 745, in <module>
unit-qlbr-0: 2014-08-29 19:54:08 INFO install hooks.execute(sys.argv)
unit-qlbr-0: 2014-08-29 19:54:08 INFO install File "/var/lib/juju/agents/unit-qlbr-0/charm/hooks/charmhelpers/core/hookenv.py", line 375, in execute
unit-qlbr-0: 2014-08-29 19:54:08 INFO install self._hooks[hook_name]()
unit-qlbr-0: 2014-08-29 19:54:08 INFO install File "/var/lib/juju/agents/unit-qlbr-0/charm/hooks/install", line 272, in install
unit-qlbr-0: 2014-08-29 19:54:08 INFO install charmhelpers.contrib.ansible.apply_playbook('playbooks/install.yaml')
unit-qlbr-0: 2014-08-29 19:54:08 INFO install File "/var/lib/juju/agents/unit-qlbr-0/charm/hooks/charmhelpers/contrib/ansible/__init__.py", line 112, in apply_playbook
unit-qlbr-0: 2014-08-29 19:54:08 INFO install subprocess.check_call(call)
unit-qlbr-0: 2014-08-29 19:54:08 INFO install File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
unit-qlbr-0: 2014-08-29 19:54:08 INFO install raise CalledProcessError(retcode, cmd)
unit-qlbr-0: 2014-08-29 19:54:08 INFO install subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'playbooks/install.yaml']' returned non-zero exit status 1
unit-qlbr-0: 2014-08-29 19:54:08 ERROR juju.worker.uniter uniter.go:486 hook failed: exit status 1

If I try to run the ansible-playbook command myself on my deployment machine, I get:
ERROR: provided hosts list is empty
If I run it on the instance with the django charm, I get:
ERROR: /etc/ansible/host_vars/localhost: Expecting property name: line 1 column 1 (char 1)

My configuration file contains:
qlbr:
    vcs: bzr
    repos_url: lp:~canonical-platform-qa/qlbr/rtm-reports
    additional_distro_packages: "python-django,python-django-nose,python-memcache,memcached"

Revision history for this message
Max Brustkern (nuclearbob) wrote :

This seems to fail with a more minimal config as well:
dtest:
    vcs: bzr
    repos_url: lp:~nuclearbob/+junk/d_test

Changed in python-django (Juju Charms Collection):
assignee: nobody → Patrick Hetu (patrick-hetu)
status: New → Confirmed
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.