Skip to content

Conversation

@mohitrajain
Copy link
Contributor

@mohitrajain mohitrajain commented Dec 23, 2025

Removed command-line argument parsing - Script no longer supports --deploy-vm, --verbose, or -h flags; now only deploys the full 7-VM standard infrastructure.
Switched from static to dynamic DHCP IPs - VMs now acquire IPs automatically via DHCP instead of using pre-configured static IPs (192.168.122.10-33).
Replaced Autoinstall with Cloud-Init - Simplified provisioning from complex Ubuntu Installer to lightweight cloud-init with cloud-localds seed ISOs. VMs creation was taking 8 mins on physical hypervisor(KVM) enabled nodes and VM were in shut-off state once created, manual start was required. Now it takes 1.5 mins for 6 VMs.
Centralized SSH keys to deploy_dir/ssh/ - SSH keypairs now stored locally in the project directory instead of user's home .ssh/ folder with automatic permission validation.
Added .vm-env environment file export - Script now generates and exports all VM IPs as environment variables for downstream automation and inventory generation.
IP management was static - now it is DHCP based - better way to avoid collisions and in virtual network native way
If VMs are ready - old way was simple running check - modified to perform a ssh check

Change type

  • Fix
  • Feature
  • Documentation
  • Security / Upgrade

Basic information

  • THIS CHANGE REQUIRES A DEPLOYMENT PACKAGE RELEASE
  • THIS CHANGE REQUIRES A WIRE-DOCS RELEASE

Testing

  • I ran/applied the changes myself, in a test environment.
  • The CI job attached to this repo will test it for me.

Offline Build CI (label-based)

Add one or more labels to trigger offline builds:

  • build-default - Full production build (ansible, terraform, all packages)
  • build-demo - Demo/WIAB build
  • build-min - Minimal build (fastest, essential charts only)
  • build-all - Run all three builds

Note: No builds run by default. Add a label to trigger CI.

Tracking

  • I added a new entry in an appropriate subdirectory of changelog.d
  • I mentioned this PR in Jira, OR I mentioned the Jira ticket in this PR.
  • I mentioned this PR in one of the issues attached to one of our repositories.

Knowledge Transfer

  • An Asciinema session is attached to the Jira ticket.

Motivation

Objective

Reason

Use case

@mohitrajain mohitrajain requested review from a team and julialongtin as code owners December 23, 2025 16:19
@sonarqubecloud
Copy link

@mohitrajain mohitrajain changed the title fix: wpb-21356 offline-vm-setup script to manage VMs fix: wpb-21356 offline-vm-setup script to manage VMs wiab-staging Dec 28, 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

Successfully merging this pull request may close these issues.

2 participants