python-django charm fails to deploy bzr project
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:
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/
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/
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.
Changed in python-django (Juju Charms Collection): | |
assignee: | nobody → Patrick Hetu (patrick-hetu) |
Brad, you hit that bug: #1318036
and this MR will fix it:
https:/ /code.launchpad .net/~patrick- hetu/charms/ precise/ python- django/ charmhelpers/ +merge/ 216351