python-django charm fails to deploy bzr project

Bug #1322449 reported by Brad Marshall
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-django (Juju Charms Collection)
Fix Committed
Undecided
Patrick Hetu

Bug Description

After following the instructions on the python-django charm webpage for deploying a django based project stored in a bzr repo, I end up with my django unit in a failure mode.

The deployment commands I used were:

$ juju bootstrap
$ juju deploy --config mydjango.yaml python-django mydjango
$ juju deploy postgresql
$ juju add-relation mydjango postgresql:db
$ juju deploy gunicorn
$ juju add-relation mydjango gunicorn

My yaml file used to install was:

mydjango:
    vcs: 'bzr'
    repos_url: 'lp:~brad-marshall/+junk/test-django'

An extract of the juju status looks like:

      mydjango/0:
        agent-state: error
        agent-state-info: 'hook failed: "install"'
        agent-version: 1.18.3
        machine: "1"

The error on the django unit is:

2014-05-23 06:00:42 INFO install PLAY [localhost] ********************************************************
******
2014-05-23 06:00:42 INFO install
2014-05-23 06:00:42 INFO install GATHERING FACTS *********************************************************
******
2014-05-23 06:00:42 INFO install fatal: [localhost] => /etc/ansible/host_vars/localhost: Expecting property name: line 1 column 1 (char 1)
2014-05-23 06:00:42 INFO install
2014-05-23 06:00:42 INFO install TASK: [get mercurial source] ********************************************
******
2014-05-23 06:00:42 INFO install fatal: [localhost] => /etc/ansible/host_vars/localhost: Expecting property name: line 1 column 1 (char 1)
2014-05-23 06:00:42 INFO install
2014-05-23 06:00:42 INFO install FATAL: all hosts have already failed -- aborting
2014-05-23 06:00:42 INFO install
2014-05-23 06:00:42 INFO install PLAY RECAP ********************************************************************

I've attached a copy of the host_vars file so you can see exactly whats happening. Its very odd that the task is listed as "get mercurial source" when I've definitely set vcs to bzr.

I've tried this with both precise and trusty images, as well as with juju 1.18.3 and juju 1.19.2.

Please let me know if you need any further information or debugging done.

Revision history for this message
Brad Marshall (brad-marshall) wrote :
Changed in python-django (Juju Charms Collection):
assignee: nobody → Patrick Hetu (patrick-hetu)
Revision history for this message
Patrick Hetu (patrick-hetu) wrote :
Changed in python-django (Juju Charms Collection):
status: New → Fix Committed
Revision history for this message
Brad Marshall (brad-marshall) wrote :

I can confirm that this indeed does fix this issue, the python-django charm now installs.

 I now get a 500 error, but I'm pretty sure thats more to do with the content of my branch and having to figure out the right format for that than any other issue.

Thanks for the quick response!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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