diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-04-29 11:52:36 +0000 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2015-04-30 10:20:26 +0000 |
commit | 34870acb27329bb7e3766acb1c6b0b569764becb (patch) | |
tree | c0a0033e58ca1015b00f74b3b5a4fc354eca7d62 /morphlib | |
parent | c9ebfbf5793e25d4a094f7f6a8c81069c55874ba (diff) | |
download | morph-34870acb27329bb7e3766acb1c6b0b569764becb.tar.gz |
Improve 'Deploy failed as system is not yet build' error.
If a user had the wrong setting for artifact-cache-server then they
could build a system with 'morph distbuild', then be told it wasn't
built by 'morph deploy'. The logs do not show any info about which
cache server was used, so it looks like a Morph bug. This change should
make such a configuration problem much easier to spot.
Change-Id: I932ca3c5caa46990f9bcd77d75b3862f49e0dfb8
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/plugins/deploy_plugin.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py index ea84d9ec..65bf7140 100644 --- a/morphlib/plugins/deploy_plugin.py +++ b/morphlib/plugins/deploy_plugin.py @@ -542,10 +542,11 @@ class DeployPlugin(cliapp.Plugin): build_command.cache_artifacts_locally([artifact]) f = build_command.lac.get(artifact) else: - raise cliapp.AppException('Deployment failed as system is' - ' not yet built.\nPlease ensure' - ' the system is built before' - ' deployment.') + raise cliapp.AppException( + 'Deployment failed as built system is not present in the ' + 'artifact cache.\nPlease ensure the system is built ' + 'before deployment, and the artifact-cache-server (%s) is ' + 'the correct one.' % build_command.rac) tf = tarfile.open(fileobj=f) tf.extractall(path=system_tree) |