Objective

To provide you with quick start instructions for managing basic Google Compute Engine assets in the RightScale Dashboard.

  • Add Google - Register Google Compute Engine with the RightScale Dashboard
  • Import - Import a base ServerTemplate from the MultiCloud Marketplace
  • Launch - Launch a Server
  • Stop/Start - Stop/Start an Instance on Google Compute Engine

Add Google Compute Engine (GCE)

Follow the instructions on this page to add your GCE Project to RightScale.

Import ServerTemplate

Import a ServerTemplate. Although many ServerTemplates from the Multi-Cloud Marketplace would work, for this tutorial use the Base ServerTemplate for Linux. That ServerTemplate is the blueprint for the Server you will launch in the next and final step. Log into the Dashboard and follow the steps below.

  1. Go to Design > MultiCloud Marketplace > ServerTemplates
  2. Find and select the appropriate ServerTemplate. Browse by categories, perform a keyword search, or use the filter options to find the correct ServerTemplate.
  3. Click Import.

Once imported, the ServerTemplate and associated RightScripts are considered part of your local collection.

Note: If you have problems finding the ServerTemplate, here is an example full URL (below). You can click on that URL and import the ServerTemplate instead of the steps above. https://my.rightscale.com/library/server_templates/Base-ServerTemplate-for-Linux-/lineage/46939

Launch Server

Add and launch the Server that is based on the ServerTemplate you just imported. Click the Add Server action button. This will start the Add Server Assistant.

New Server

  1. Select Google from the Cloud drop-down menu
  2. Select Default from the Deployment drop-down menu (Tip: Alternatively, you could of course select an existing Deployment name. Deployments are simply containers to organize your cloud assets. See Create a New Deployment in the Dashboard Users Guide for more information.)
  3. Click Continue

Server Details

The Server Details dialog is split into two windows: Hardware on the left, and Networking on the right. Provide the following information for each:

  1. Hardware - Leave the default values for Server Name, MultiCloud Image and Instance Type.
  2. Networking
    • Select the Default Security Group
    • Select an available Datacenter / Zone (e.g. us-central1-a)
  3. Click the Confirm action button when ready

Confirm

The Confirm tab provides a detailed summary of the server you're about to create in the cloud. If you are satisfied with your selections, click Finish to create the server.

Launch

After confirming your server creation, you are automatically placed in the correct deployment, viewing the server you just created.

  1. Click the Launch action button. Note: With more complicated server setups you would have the opportunity to set Inputs (server variables). Your server is already configured for you however, so you can simply click the Launch action button one last time.
  2. The server is launched and you should see a message in the blue banner near the top of the Dashboard similar to: Launched server Base ServerTemplate for Linux (RSB) (v13.0)

Congratulations! You just launched your first server in GCE using the RightScale Dashboard... in 3 easy steps! In approximately 10 minutes your server state should progress from pending to operational. Don't forget to terminate your server when finished using it to avoid any unneccessary charges.

Stop/Start an Instance on Google Compute Engine

Once you have successfully launched a server in GCE, you can stop/start the instance from the RightScale CM dashboard using the following steps.

Stop a Running Server

  1. To stop a running server, navigate to Manage > Instances and Servers, locate and select the GCE server you want to stop.
  2. Click the Actions button and select Stop from the menu.

Start a Stopped Server

  1. To start a stopped server, navigate to Manage > Instances and Servers, locate and select the GCE server you want to start.
  2. Click the Actions button and select Start from the menu.

Terminating a Google Instance in RightScale

If you terminate a GCE instance in RightScale, the backing boot disk is automatically cleaned up if the instance was originally launched from RightScale. In this scenario, the terminated instance shows as 'provisioned' in the CM Dashboard. If the instance was launched from the Google Console and then terminated from RightScale, the instance will be shown in a 'clean_up' state in the CM Dashboard ('stopped' the Cloud Analytics UI). In this case, you must access the Google Console in order to properly shutdown the instance. This additional step clears the backing boot disk associated with the terminated instance.