Conjure-up dev summary highlights: screen ordering and improved deploy

Adam Stokes

Adam Stokes

on 27 July 2017

conjure-up dev summary highlights: screen ordering and improved deployment resilience

conjure-up dev summary highlights: screen ordering and improved deployment resilience conjure-up dev summary highlights: screen ordering and improved deployment resilience conjure-up dev summary highlights: screen ordering and improved deployment resilience

Screen Ordering

Previously, you would go through the install journey by picking your spell, selecting a cloud, modifying charm options, and then waiting for bootstrap/applications to be completely deployed prior to performing the post processing steps. In this latest update we’ve moved all steps to be completed prior to any of those longer blocking tasks.

This allows you to see the complete picture and giving you the ability to go back and make updates to your configuration items prior to running the longer tasks of the deployment.

Deployment resilience

We use a mechanism for determining when a deployment has “finished”, meaning, all hooks have been fired and each application is in a ready state to handle the next set of instructions from the installer. In some cases an application may get into a state of error but quickly resolve itself.

This was causing us some issues as we were taking a very strict approach that if there is an error in the application then the deployment should fail. Even though this is the proper thing to do we’ve made a decision that if the application is able to fix itself then we shouldn’t pass on that failed experience to the user since technically the deployment is able to finish and function as intended.

To combat this we’ve made our deployment checker a little more lenient and performing retries (up to 5 times) to validate if an application does fix itself. However, since an error was seen in the application it should not go unnoticed and needs to be fixed in the charm itself. In our integration tests we have an environment variable CONJURE_UP_MODE that can be set to test and gives us the ability to fail on charm failures and get those bugs reported upstream and resolved.

Spell authors can make use of this feature in their own spells by updating the 00_deploy-done script with the following bits:

set -eux
if [[ "${CONJURE_UP_MODE-}" == "test" ]]; then
if ! juju wait $retry_arg -vwm "$JUJU_CONTROLLER:$JUJU_MODEL"; then
 setResult "Applications did not start successfully"
 exit 1
setResult "Applications Ready"
exit 0

Getting these changes

Installing the snap from the edge channel will give you the latest work outlined in these developer summaries:

sudo snap install conjure-up --classic --edge



Ubuntu cloud

Ubuntu offers all the training, software infrastructure, tools, services and support you need for your public and private clouds.

Sign up for email updates

Choose the topics you're interested in


Related posts

Firefox Quantum snap now available on Linux-based devices

London, UK, 19 March 2018: Canonical, the company behind Ubuntu, today announced that Mozilla has launched a Firefox snap bringing their latest Quantum browser to multiple Linux distributions, including Ubuntu. Developed by Canonical,…

Your first robot: Sharing with others [5/5]

This article originally appeared on Kyle Fazzari’s blog and is the fifth and final installment in a series. This is the fifth (and final) blog post in this series about creating your first robot with ROS and Ubuntu Core. In the previous…

Ubuntu Desktop weekly update – 16th March 2018

We’ve had a busy few weeks, and so this email is a roll up of what’s been going on in Desktopland. Last week we had a team sprint in Budapest where we got to work side by side with our teammates and colleagues across Canonical.…