Skip to content

[BB-853] Automatically activates first manually created AppServer for beta tester

This PR fixes a small bug while provisioning instances for beta testers: If an automatic provisioning fails and a new AppServer is spawned manually, the automatic activation email is sent to the client but the AppServer is not marked as active. This PR automatically marks the first instance of a beta tester instance as active, even if it's created manually after the automatic provisioning fails.

Testing instructions: Note: These changes are deployed on stage.

  1. Create an account on https://stage.console.opencraft.com/registration/ and confirm your email
  2. Login with a admin account and find the instance that you just registered. On my case I registered giovanni-test-manual-activation-email.
  3. Get the IP address of the first spawned appserver, SSH into it and reboot it:
ssh user@147.135.193.152
$ sudo reboot
  1. This will break the provisioning and make Ocim retry the deployment on another VM. SSH into it and reboot it too. This way, we've spent all the retries for the automatic redeployment.
  2. On the console, click on Launch new AppServer and wait.
  3. When the machine is successfully provisioned, check that it's marked as active and that you received the activation email.

Reviewers: @viadanna

Merge request reports