Skip to content

Instantly share code, notes, and snippets.

@AdamIsrael
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdamIsrael/af659b72b18c83a39b7d to your computer and use it in GitHub Desktop.
Save AdamIsrael/af659b72b18c83a39b7d to your computer and use it in GitHub Desktop.

!WIP!

This is a work-in-progress bug report.

Steps to recreate

Open new terminal and run:

debug-wait.sh

In another terminal and run:

juju deploy local:trusty/storage-demo --storage data=2G

Once the initial hook, data-storage-attach, is caught, close the terminal.

juju destroy-environment local --force

ERROR failed to destroy lxc container: error executing "lxc-destroy": lxc_container: lxccontainer.c: lxcapi_destroy: 2073 Error destroying rootfs for vagrant-local-machine-6; Destroying vagrant-local-machine-6 failed ERROR error executing "lxc-destroy": lxc_container: lxccontainer.c: lxcapi_destroy: 2073 Error destroying rootfs for vagrant-local-machine-6; Destroying vagrant-local-machine-6 failed ERROR exit status 1

asf

#!/bin/bash
# Workaround for lp:1227942
set -eux
until juju debug-hooks storage-demo/0; do
echo "Waiting for unit to come online..."
done
2015-07-28 18:47:06 ERROR juju.worker.uniter.filter filter.go:137 tomb: dying
2015-07-28 18:47:06 ERROR juju.worker runner.go:223 exited "uniter": ModeHookError: committing operation "clear resolved flag and skip run storage-attached (data/4) hook": unknown storage "data/4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment