Deploying OpCenter in Google Cloud

Before you begin

  • Contact your Google Cloud administrator to obtain a Google Cloud account for you and to assign a project for your work.
  • You need specific IAM privileges to install OpCenter. Ask your Google Cloud administrator to assign the Service Networking Admin role to the principal that identifies you.

About this task

Google Cloud provides granular control over compute resources using the concepts of service accounts and roles. The preferred method of deploying the OpCenter in a production environment uses service accounts. In a test environment, it is common to deploy the OpCenter with the user's credentials (which is the method described here). Consult your Google Cloud administrator to determine the approved procedure for your environment.

Procedure

  1. Log in to the Google Cloud Platform at console.cloud.google.com
  2. From the Welcome page, use the pulldown menu on the navigation bar to select the project you are working in.
  3. From the Navigation menu at the left of the navigation bar, select Marketplace.
  4. In the search bar in the middle of the page, type MemVerge
    The search returns one result called Memory Machine Cloud.
  5. Click anywhere inside the box displaying information about Memory Machine Cloud.
  6. Click Launch
    A page is displayed that shows the steps required to install the OpCenter using a Terraform template.
  7. Skip over the section titled Configure a service account (Optional) (do not click the CONFIGURE button).
  8. Skip over the section titled Configure gcloud.
  9. Skip over the section titled Review VM images.
  10. Click the Download button to get the Terraform module.
    A zip file with a name in this format xxx_terraform.zip is downloaded to your local machine.
  11. At the top, right-hand side of the navigation bar, click the Activate Cloud Shell icon.
    A Cloud shell terminal session opens in the bottom part of your browser window. Resize the terminal as needed.
    A message like the following is displayed.
    Welcome to Cloud Shell! Type "help" to get started.
    Your Cloud Platform project in this session is set to se-demo-350716.
    Use “gcloud config set project [PROJECT_ID]” to change to a different project.
    The project ID shown here (se-demo-350716) is an example.
  12. In the Cloud shell terminal, go to the right hand side of the navigation bar, click the More icon (three dots), and then click Upload.
  13. In the pop-screen screen, click Choose Files to locate and select the terraform module (zip file) on your local machine, and then click UPLOAD.
    The file is uploaded to your home directory on the virtual machine running the Cloud shell terminal. Type ls to check that the file is there.
  14. Unzip the terraform module by entering the following.
    unzip *terraform.zip
    Check that the files are in your home directory by entering the following.
    ls
    433db1d1-5e26-4715-b919-23de8b400480_terraform.zip  examples  modules     providers.tf           README.md         variables.tf
    backend.tf                                          main.tf   outputs.tf  README-cloudshell.txt  terraform.tfvars
  15. Edit the terraform.tfvars file (by typing vi terraform.tfvars, for example) to configure the project ID and a name for the OpCenter instance as follows.
    mmc_project = "[PROJECT_ID]"
    mmc_name = "[OP_CENTER_NAME]"
    where
    [PROJECT_ID]
    is the project ID (for example, se-demo-350716) and
    [OP_CENTER_NAME]
    is the prefix for the OpCenter instance name (for example, docs). A string of the form "-opcenter-xxxxxx" is postpended to this prefix to form the OpCenter instance name.

    Deploy OpCenter in a new VPC by editing the following lines:

    new_vpc = true
    vpc_name = "[VPC_NAME]"
    subnet _name ="[SUBNET_NAME]"

    For example, vpc_name = "docsvpc" and subnet_name = "docssubnet"

  16. Optional: Change any parameter values from their default values by editing the relevant entries in terraform.tfvars, for example, mmce_region.
  17. Initialize the terraform environment by entering the following.
    terraform init
    Initializing the backend...
    Initializing modules...
    
    Initializing provider plugins...
    ...[edited]
    
    Terraform has been successfully initialized!
    
    You may now begin working with Terraform. Try running "terraform plan" to see
    any changes that are required for your infrastructure. All Terraform commands
    should now work.
    
    If you ever set or change modules or backend configuration for Terraform,
    rerun this command to reinitialize your working directory. If you forget, other
    commands will detect it and remind you to do so if necessary.
  18. Apply the terraform module by entering the following.
    terraform apply
  19. Enter yes at the prompt.
    Do you want to perform these actions?
      Terraform will perform the actions described above.
      Only 'yes' will be accepted to approve.
    
      Enter a value:
    ...[edited]
    Apply complete! Resources: 20 added, 0 changed, 0 destroyed.
    
    Outputs:
    
    mmc_project = "se-demo-350716"
    opcenter_instance_name = "docs-opcenter-5156db"
    opcenter_ip_addr = "a.b.c.d"
    opcenter_nfs_disk_name = "docs-opcenter-5156db-nfs"
    opcenter_website = "https://a.b.c.d"
    vpc_name = "docs-docsvpc"

    where a.b.c.d is a placeholder for the public IP address assigned to your OpCenter instance.

  20. Wait a few minutes and then click the entry next to opcenter_website.
    A new browser window opens displaying the login screen for the OpCenter web interface.
  21. Optional: To delete the OpCenter instance, enter the following command.
    terraform destroy

What to do next

Go to the section on Using the OpCenter Web Interface for instructions on how to log in, change passwords, add users, submit jobs, and so on.