Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add redeploy command #1010

Closed
hellt opened this issue Aug 31, 2022 · 5 comments
Closed

add redeploy command #1010

hellt opened this issue Aug 31, 2022 · 5 comments

Comments

@hellt
Copy link
Member

hellt commented Aug 31, 2022

redeploy command answers the need to quickly re-deploy a lab. It should be possible to redeploy a lab with and without keeping the lab directory.

Conceptually, redeploying a lab is a sequence of a destroy and deploy commands.

@alexandrehassan
Copy link
Contributor

I'd like to try and tackle this if possible.

@hellt
Copy link
Member Author

hellt commented Sep 29, 2022 via email

@scotho3
Copy link

scotho3 commented Nov 1, 2022

@hellt - re: keeping the lab directory, am I correct in these assumptions?

  1. In keeping the directory - the user has made changes, and wants a clean slate to reset the lab
  2. In destroying the directory - the user has made changes in the node.cfg files and wants to rebuild the lab with the new config files

@hellt
Copy link
Member Author

hellt commented Nov 2, 2022

@scotho3

  1. you want to keep a directory if you want some artifacts from it to be picked up when you destroy+deploy it again. Typically, this is related to the configuration that users saved during lab lifetime and they want these configs to be applied once they redeployt the lab.
    For example, you launched a lab, added some configs to the nodes, saved those configs so that they got written to disk (lab directory). Now you want to redeploy the lab for whatever reason, maybe you want to free up resources and get back to that lab later. You destroy the lab without removing the lab directory. Then you deploy the lab again, and those files from the lab directory will be picked up as startup config.
  2. When you remove the lab dir, all your configs that were persisted before will be flushed. You will start from a completely clean slate.

HTH

@hellt
Copy link
Member Author

hellt commented Jan 3, 2025

done in #2374 and #2371

@hellt hellt closed this as completed Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants