Odin
  • Introduction
  • Why Odin?
  • Key Concepts
    • Environment
      • Environment Type
    • Provisioning
      • Provisioning Config for Component Types
    • Component
      • Available Component Types
      • Component Type reference
        • Optimus Components
          • Aerospike [6.3.0.7-1.0.0]
    • Service
      • Know Your Service Definition
    • Versioning
      • Clearing the Confusion: A Simplified Guide to Artifact, Component, and Service Versions
    • Service Sets
    • Labels
  • Reference
    • CLI reference
  • Onboard Your Service
    • Installation
    • Configure
    • Odin -h
    • Getting Started
    • Create Environment
      • Operations on Environment
    • Service Definition
    • Provisioning Config
    • Deploy Service
    • Release Service
    • Optimus Datastore Operations
      • How to use Optimus Datastore in my service?
      • RDS Operations
      • Aerospike Operations
      • Kafka Operations
    • Operating Service & Components
      • Redeploy
        • In Place Deployment
        • Blue Green Deployment
      • Rolling Restart
      • Adding & removing components
      • Revert a deployment for application component
      • Downscaling a Passive Stack
      • Updating the no. of stacks of application component
    • Dev <> QA iteration
    • Frequently Asked Questions
    • Deploy Concrete Service
    • Undeploy Service
    • Delete Environment
    • Appendix
  • How To
    • Define error threshold for canary deployment
    • Add or Remove a component in an already deployed service
    • Integrate mono-repo(cronjobs) with Odin
    • Deploy crontab with Odin
    • Integrate Data pipeline with Odin
    • Push logs to log central
    • Build artifacts for multi module applications
    • Load test with Odin
    • Track Deployments against Commit Ids
    • Deploy Service on Production - Dream11
    • How and when images are created
    • Check logs for deployed infrastructure - Dream11
    • Onboard Stepfunction as a component
    • Onboard Serverless as a component
    • Login to Kubernetes clusters
  • Release Notes
    • 1.2.0-beta.2 - 11 August, 2022
    • Odin October Release
    • Odin 1.2.0 - Nov 9th 2022
    • Odin February Release
Powered by GitBook
On this page
  • What is revert deployment?
  • Command
  • Frequently Asked Questions
Export as PDF
  1. Onboard Your Service
  2. Operating Service & Components

Revert a deployment for application component

What is revert deployment?

Revert deployment is an operation available for the application component of the service. In this operation, a user can revert the version of the artifact to the previous deployed version.

If your redeploy operation fails, do not use revert operation at any cost

Command

odin operate component  --operation revert --service YourServiceName --name YourAppComponentName --env YourEnvName

For any version below 1.3.4, user must pass empty json in options to perform this operation. The modified command for versions lower than 1.3.4 would be : odin operate component --operation revert --service YourServiceName --name YourAppComponentName --options '{}' --env YourEnvName

Option
Type
Descrption

operation

String

It takes the input of the operation you want to perform, in this case REVERT.

service

String

Service name for which the operation to be performed.

name

String

Application component name for which revert to be performed.

env

String

Environment name where the operation is to be performed.

Frequently Asked Questions

Can I revert to any version of the artifact that I want ?

No, you can only revert to the immediately available previous deployed version. Odin enables this reversion by swapping the passive stack to active and vice versa. If you perform multiple revert operations, the application component will continue to alternate between the active and passive stacks.

Can I use revert if my current deployment fails?

If your redeploy operation fails, do not perform revert at any cost.

Can I revert my service version?

No, only the application component's artifact version can be reverted.

How to verify if my revert operation is successful?

The artifact version can be verified directly from datadog.

PreviousAdding & removing componentsNextDownscaling a Passive Stack

Last updated 1 year ago