Knowledge Base  /  Cloud Application Manager  /  Automating Deployments
Knowledge Base  /  Cloud Application Manager  /  Automating Deployments

Version Control and Auto-Updates

In large-scale, complex deployments where tens or hundreds of distributed applications run from a single box configuration, you need a way to manage changes to box configurations and handle those updates to running instances. Versioning and auto updates help with that.

In this article:

  • Versioning a box
  • Version semantics
  • Updating instances automatically or manually
  • Manage a version box

Versioning a Box

A box must be versioned to push its updates automatically to live instances deployed from it. To create a version, navigate to the box and click the Versions tab.

version-control-and-auto-updates-1.png

Click New Version and save with an appropriate version number.

version-control-and-auto-updates-2.png

  • Use Major to indicate a lot of changes. For example, you may alter the box configuration with different child boxes or variables or a binding.
  • Use Minor to indicate small changes. For example, instead of apt-get you now install and compile software from a Git repo.
  • Use Patch to indicate trivial changes like fixing a typo, as an example.

Version Semantics

Major, minor, and patch follow semantic versioning standards. Cloud Application Manager does not check for the quality or correctness of changes between the versions. It’s up to the box composer to test changes be they minor, patch, or major. Versioning semantics helps others consuming the box decide the level of updates they are comfortable pushing to their instances.

Draft, current, latest

  • Latest is the highest version number of a box. When you deploy from the Instances page, you always get the latest.
  • Draft indicates changes not yet saved to the box. When you deploy from the box page, you typically deploy the draft.
  • Current refers to a specific version restored to the box. If you want to restore a box version you have to do it from the versions tab. Select the gear icon and click on Restore.

version-control-and-auto-updates-3.png

Updating Instances Automatically or Manually

When launching an instance, choose the level of auto update you’re comfortable applying. Go with All Updates if you are not concerned about big or small configuration changes. Otherwise, choose Minor and Patch Updates or Patch Updates, which make sure the configuration remains unchanged, for the most part.

Note: This option is available for box versions only.

version-control-and-auto-updates-4.png

If you don’t set instances to auto-update, no worries. A visual cue on the Instances page reminds you when changes are available from the related box.

version-control-and-auto-updates-5.png

You can always manually update from the Instances page. Select the instance and under the Bulk Actions or the gear icon of the instance, click Update Instance.

version-control-and-auto-updates-6.png

From here, you can update the instance with a specific version. An update always triggers a reinstall operation.

version-control-and-auto-updates-7.png

Note: When deploying a box from the Instances page, you consume the latest configuration of the parent and child boxes unless you chose a specific version for the child boxes. To deploy a different version of the parent box, launch it from the box page. From the Versions tab > gear icon, click Deploy on a select version.

Manage a version box

Version boxes can be managed in different ways. To see these options, go to versions tab and select gear icon.

version-control-and-auto-updates-8.png

  1. Delete: You can delete the selected version box. Please be aware that clicking on this option deletes the version without a warning popup.
  2. Deploy: You can deploy the selected version box.
  3. Diff: You can see the updates made to each version box from the versions tab. Select gear icon and click on Diff.

version-control-and-auto-updates-9.png

  1. Restore: You can restore your version box to its previous version. The version you are working on now will turn into the current version.
  2. Publish box: This option changes the privacy settings of the version box, making it public, after being published. To execute this change, complete the request form. Please note that only those fields marked with an asterisk are mandatory.

version-control-and-auto-updates-10.png

Contacting Cloud Application Manager Support

We’re sorry you’re having an issue in Cloud Application Manager. Please review the troubleshooting tips, or contact Cloud Application Manager support with details and screenshots where possible.

For issues related to API calls, send the request body along with details related to the issue.

In the case of a box error, share the box in the workspace that your organization and Cloud Application Manager can access and attach the logs.

  • Linux: SSH and locate the log at /var/log/elasticbox/elasticbox-agent.log
  • Windows: RDP into the instance to locate the log at ProgramData/ElasticBox/Logs/elasticbox-agent.log