While testing a Vagrant setup I wanted to view the output in a log directory. We used the -o option on charm test like this: sudo -u vagrant -H charm test -e local -o vagrant-log -v $test The actual Amulet tests passed but when the tool went to get the logs rsync threw an error and the tests "failed" with this error: juju-test.conductor.10-deploy-test.py WARNING : Failed to fetch logs for bootstrap node Host key verification failed. rsync: connection unexpectedly closed (0 bytes received so far) [Receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(226) [Receiver=3.1.0] juju-test.conductor.10-deploy-test.py WARNING : Failed to grab logs for lamp/0 Host key verification failed. rsync: connection unexpectedly closed (0 bytes received so far) [Receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(226) [Receiver=3.1.0] juju-test.conductor.10-deploy-test.py WARNING : Failed to grab logs for relation-sentry/0 juju-test INFO : Results: 0 passed, 1 failed, 0 errored Included is the full stdout of what happened. Notice that the ssh keys are being generated and there is a warning that the keys are already generated: vagrant provision [default] Running provisioner: shell... [default] Running: /tmp/vagrant-shell20140224-490-1yf9lm0 stdin: is not a tty Installing juju-local provider support Ign http://us.archive.ubuntu.com trusty InRelease Ign http://security.ubuntu.com trusty-security InRelease Hit http://security.ubuntu.com trusty-security Release.gpg Ign http://us.archive.ubuntu.com trusty-updates InRelease Hit http://security.ubuntu.com trusty-security Release Ign http://us.archive.ubuntu.com trusty-backports InRelease Hit http://security.ubuntu.com trusty-security/main Sources Ign http://ppa.launchpad.net trusty InRelease Hit http://us.archive.ubuntu.com trusty-updates Release.gpg Hit http://security.ubuntu.com trusty-security/restricted Sources Hit http://us.archive.ubuntu.com trusty-backports Release.gpg Hit http://security.ubuntu.com trusty-security/universe Sources Hit http://ppa.launchpad.net trusty Release.gpg Get:2 http://us.archive.ubuntu.com trusty Release [58.5 kB] Hit http://security.ubuntu.com trusty-security/multiverse Sources Hit http://security.ubuntu.com trusty-security/main i386 Packages Hit http://security.ubuntu.com trusty-security/restricted i386 Packages Hit http://ppa.launchpad.net trusty Release Hit http://security.ubuntu.com trusty-security/universe i386 Packages Hit http://us.archive.ubuntu.com trusty-updates Release Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages Hit http://us.archive.ubuntu.com trusty-backports Release Hit http://ppa.launchpad.net trusty/main i386 Packages Get:3 http://us.archive.ubuntu.com trusty/main Sources [1,062 kB] Hit http://security.ubuntu.com trusty-security/main Translation-en Hit http://security.ubuntu.com trusty-security/multiverse Translation-en Hit http://security.ubuntu.com trusty-security/restricted Translation-en Hit http://security.ubuntu.com trusty-security/universe Translation-en Get:4 http://us.archive.ubuntu.com trusty/restricted Sources [5,380 B] Get:5 http://us.archive.ubuntu.com trusty/universe Sources [6,402 kB] Ign http://ppa.launchpad.net trusty/main Translation-en_US Ign http://security.ubuntu.com trusty-security/main Translation-en_US Ign http://security.ubuntu.com trusty-security/multiverse Translation-en_US Ign http://security.ubuntu.com trusty-security/restricted Translation-en_US Ign http://ppa.launchpad.net trusty/main Translation-en Ign http://security.ubuntu.com trusty-security/universe Translation-en_US Get:6 http://us.archive.ubuntu.com trusty/multiverse Sources [176 kB] Get:7 http://us.archive.ubuntu.com trusty/main i386 Packages [1,345 kB] Get:8 http://us.archive.ubuntu.com trusty/restricted i386 Packages [12.1 kB] Get:9 http://us.archive.ubuntu.com trusty/universe i386 Packages [5,881 kB] Get:10 http://us.archive.ubuntu.com trusty/multiverse i386 Packages [134 kB] Hit http://us.archive.ubuntu.com trusty/main Translation-en Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en Hit http://us.archive.ubuntu.com trusty/restricted Translation-en Hit http://us.archive.ubuntu.com trusty/universe Translation-en Hit http://us.archive.ubuntu.com trusty-updates/main Sources Hit http://us.archive.ubuntu.com trusty-updates/restricted Sources Hit http://us.archive.ubuntu.com trusty-updates/universe Sources Hit http://us.archive.ubuntu.com trusty-updates/multiverse Sources Hit http://us.archive.ubuntu.com trusty-updates/main i386 Packages Hit http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages Hit http://us.archive.ubuntu.com trusty-updates/universe i386 Packages Hit http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages Hit http://us.archive.ubuntu.com trusty-updates/main Translation-en Hit http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en Hit http://us.archive.ubuntu.com trusty-updates/restricted Translation-en Hit http://us.archive.ubuntu.com trusty-updates/universe Translation-en Hit http://us.archive.ubuntu.com trusty-backports/main Sources Hit http://us.archive.ubuntu.com trusty-backports/restricted Sources Hit http://us.archive.ubuntu.com trusty-backports/universe Sources Hit http://us.archive.ubuntu.com trusty-backports/multiverse Sources Hit http://us.archive.ubuntu.com trusty-backports/main i386 Packages Hit http://us.archive.ubuntu.com trusty-backports/restricted i386 Packages Hit http://us.archive.ubuntu.com trusty-backports/universe i386 Packages Hit http://us.archive.ubuntu.com trusty-backports/multiverse i386 Packages Hit http://us.archive.ubuntu.com trusty-backports/main Translation-en Hit http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en Hit http://us.archive.ubuntu.com trusty-backports/restricted Translation-en Hit http://us.archive.ubuntu.com trusty-backports/universe Translation-en Ign http://us.archive.ubuntu.com trusty/main Translation-en_US Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US Ign http://us.archive.ubuntu.com trusty-updates/main Translation-en_US Ign http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en_US Ign http://us.archive.ubuntu.com trusty-updates/restricted Translation-en_US Ign http://us.archive.ubuntu.com trusty-updates/universe Translation-en_US Ign http://us.archive.ubuntu.com trusty-backports/main Translation-en_US Ign http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en_US Ign http://us.archive.ubuntu.com trusty-backports/restricted Translation-en_US Ign http://us.archive.ubuntu.com trusty-backports/universe Translation-en_US Fetched 15.1 MB in 15s (950 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... juju-local is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 58 not upgraded. Generating public/private rsa key pair. id_rsa already exists. Overwrite (y/n)? Running test-pre-setup script + dpkg -s amulet Package: amulet Status: install ok installed Priority: optional Section: python Installed-Size: 117 Maintainer: Marco Ceppi