Install hook fails for bzr projects

Bug #1591968 reported by David Planella
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charm Helpers
In Progress
Marco Ceppi

Bug Description

We've been trying unsuccessfully to deploy with Juju, which worked fine for a few months until recently. We've tracked it to be a failed install hook that fails at doing a bzr checkout:

You can see it in the code that that can never work:

1. Create directory
2. If directory exists, do a `bzr pull`
3. Of course the directory exists, but it's not a bzr branch, so the `pull` fails

I've noticed this stopped working after the charm helpers migration to Python 3.0, where the original bzr API code was replaced by process calls. However, in doing the replacement, it seems the tests were not updated, as they seem to pass even though the code does not work.

Steps to reproduce:

    cd $HOME/charms/layers
    bzr branch lp:~ubucon-site-developers/ubucon-site/ubucon-layer ubucon
    cd ubucon

    charm build
    juju deploy postgresql
    juju deploy $HOME/charms/builds/ubucon
    # Deployment fails during the deploy step, as the
    # install hook cannot do a bzr checkout of the site's code

    juju add-relation postgresql:db ubucon
    juju expose ubucon

Related branches

David Planella (dpm)
description: updated
description: updated
Marco Ceppi (marcoceppi)
Changed in charm-helpers:
status: New → Triaged
importance: Undecided → High
Marco Ceppi (marcoceppi)
Changed in charm-helpers:
status: Triaged → In Progress
assignee: nobody → Marco Ceppi (marcoceppi)
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.