Configure a Google Cloud

Configuring a Google cloud is a four step process:

Add a Google Cloud

To add an Google cloud follow these steps.

  1. Navigate to Admin > Clouds. This brings you to the Clouds page. If you, or another tenant admin in your tenant, has already added clouds to your tenant, they will be listed here. Click the Add Cloud link in the upper right.
  2. After clicking Add Cloud, the Add Cloud dialog box is displayed. Enter the cloud name and select the cloud provider.
  3. After clicking Next, the second page of the Add Clouds dialog box, Connectivity Settings, appears with a single toggle displayed
    • Worker VMs Directly Connect with CloudCenter Suite

    as shown in the figure below.

    If you set this toggle is set to No, a second toggle appears: CloudCenter Suite Directly Accessible from Cloud Remote. 

    Note

     If you set the first toggle to No, you will need to install the Cloud Remote component in every region within this cloud, or else, override these settings in the region connectivity settings of the regions were you do not want to install Cloud Remote.

    Follow the table below for guidance on setting these toggles.

    Toggle settingsUse case

    Diagram

    Worker VMs Directly Connect with CloudCenter Suite = YesUnimpeded connectivity exists between the CloudCenter Suite cluster and the cloud region API endpoint
    AND
    Unimpeded connectivity exists between the CloudCenter Suite cluster and worker VMs

    Cloud Remote is not required


    Worker VMs Directly Connect with CloudCenter Suite = No
    AND
    CloudCenter Suite Directly Accessible from Cloud Remote = Yes

    Worker VMs need to communicate to the CloudCenter Suite cluster through Cloud Remote
    AND
    Cloud Remote can initiate the connection to the CloudCenter Suite cluster

    Worker VMs Directly Connect with CloudCenter Suite = No
    AND
    CloudCenter Suite Directly Accessible from Cloud Remote = No
    Worker VMs need to communicate to the CloudCenter Suite cluster through Cloud Remote
    AND
    the CloudCenter Suite cluster cannot receive a connection initiated by Cloud Remote

    Click Done to save the configuration and close the dialog box.  This brings you back to the Clouds page and the cloud you just created will be added to the bottom of the list on the left side of the page.

Add a Google Region

After creating a Google cloud, the next step is to create the first region for the cloud. Follow these steps.

  1. Navigate to the Clouds page and select the cloud you created on the left side of the screen. Then click the Add Region button on the right side of the screen.
  2. After clicking the Add Region button, the Add Region dialog box is displayed. Select a region from the list and click Save.
  3. After clicking Save you are brought back to the Clouds page with the region you added shown on the right side of the page.

Configure a Google Region

To configure a region you added to your Google cloud, follow this procedure:

  1. Navigate to Clouds page: Admin > Clouds. Find the your Google cloud from the cloud list on the left half of the screen and click its Configure Cloud link. This displays the Regions tab for this cloud as shown in the figure below with the Cloud Settings section displayed first.



    After you have added multiple regions to your Google cloud, the Regions tab will show multiple individual region tabs on the left side of the screen. Click the tab of the region you want to configure.
  2. Click the Edit Cloud Settings link in upper right of the Cloud Settings section. This displays the Configure Cloud Settings dialog box.

    The Cloud Settings section contains fields that are unique to Google and settings that are common to all cloud providers. Adjust these field values per the instructions in the following tables:

    Google Specific Cloud Settings:

    FieldUsage
    Region
    This field is set by CloudCenter Suite based on the region location you selected from the Add Region dialog box.
    Default Preferred Zone
    This field is set by CloudCenter Suite based on the region location you selected from the Add Region dialog box.


    Cloud Agnostic Cloud Settings:
    FieldUsage
    Exclude these special characters for Windows passwordWhen the Workload Manager agent is installed on a Windows worker VM, a special user account, called cliqruser, is created to support RDP sessions that may be initiated by the user through the Workload Manager UI. A Workload Manager process running on the CloudCenter Suite cluster creates a random password and passes it to the agent for creating the cliqruser account. Because some Windows deployments may restrict using certain characters for Windows passwords, this field is provided to tell the Workload Manager to exclude these special characters in the generation of the password for the cliqruser account.
    Agent Bundle URL

    If you plan to use a local repository to host the bundle store, you need to enter the URL of the local bundle store here. Otherwise leave blank.


    Agent Custom RepositoryIf you plan to use a local repository to host the package store, you need to enter the URL of the local package store here. Otherwise leave blank.
    HTTP/HTTPS proxy fields (host, username, password)

    If you require VMs in your region to access public addresses through a web proxy, enter the URL and credentials of the HTTP and HTTPS proxy servers in these fields.

    No Proxy HostsIf you have specified an HTTP or HTTP proxy using the above fields, you can specify that managed VMs in the region should bypass the proxy and connect directly to certain hosts. Use this field to create a comma separated list of IP addresses or URLs that should be accessed directly. This field is ignored if an HTTP or HTTPS proxy is not specified.

    Important information on proxy settings

    In CloudCenter Suite it is possible to specify proxy settings at the region level, as described here, and at the suite level. To understand the expected behavior when proxy settings are specified at both levels, see Precedence of Proxy Settings.


    When you are done editing the settings in the dialog box, click Save.

  3. Scroll down to the Region Connectivity section for the region and click on the Configure Region link in the upper right to open the Configure Region dialog box. The toggle settings should be the same as when you set them in the connectivity page of the Add Cloud dialog box. If all of the connectivity toggles in the Region Connectivity dialog box are set to Yes, then Cloud Remote is NOT needed for this cloud region. In this case, you would normally leave all region connectivity settings at their current values and continue to the next settings section. The two exceptions to this guidance  are summarized in the table below.
    Networking ConstraintFieldValue
    Worker VMs must use a proxy server or NAT firewall to access the "local" AMQP server running in the CloudCenter Suite cluster.Worker AMQP IP AddressIP address and port number that the firewall or proxy server presents to the worker VMs on behalf of the "local" AMQP server running in the CloudCenter Suite cluster.
    Users must use a proxy server or NAT firewall to access the Guacamole server running in the CloudCenter Suite cluster.Guacamole IP AddressIP address and port number that the firewall or proxy server presents users on behalf of the Guacamole server running in the CloudCenter Suite cluster.

    Click OK to save the changes and dismiss the dialog box. You can now proceed to the next region settings section.

  4. If any of the connectivity toggles in the Region Connectivity dialog box are set to No, then you must install and configure Cloud Remote for this region

     Steps to configure Cloud Remote in a Google cloud region

    Configure Cloud Remote in a Google region as follows:

    1. Request the Cloud Remote shared VMI form Cisco support by opening a CloudCenter Support case. In your request, specify the following details:

      1. Your GCP account number

      2. Your GCP project ID number
      3. Your CloudCenter Suite version

      4. Your Customer ID (CID)

      5. Your customer name

      6. Specify if your setup is in production or for a POC

      7. Your Contact Email

    2. After you open a case, your support case is updated with the shared VMI ID. Proceed to the next step only after your support case is updated with the VMI ID.

    3. Navigate to the GCP dashboard and search for the VMI ID name provided in the CloudCenter Support case in the list of images for your project.

    4. Launch an instance using the shared VMI. 

      1. Click on the image name. This takes you to the page for the image


      2. Click on Create Instance to display the Instance properties page

      3. Complete these fields:

        1. Instance name

        2. Region and zone

        3. Machine type: select 2 vCPU, 7.5 GB RAM

        4. Click the checkbox to allow HTTPS access

        5. Click the Security tab (under the Allow HTTPS traffic checkbox). In the SSH key field, add your organization's public ssh key followed by a space and then the username you want to use to login to the Cloud Remote appliance. Click the Add Item button when done.

      4. Click Create to launch the instance.

    5. Optional but recommended for production environments: Deploy two additional instances of the appliance to form a cluster for HA. Cloud Remote includes support for clustering of multiple nodes. You will "add" these two additional instances to the first instance after the first instance is configured.  See Cloud Remote (Conditional) > Scaling for details.

    6. Once the first instance of the appliance has been launched, use the GCP console to note its IP public and private addresses. You will need this information later on in order login to the Cloud Remote web UI and to complete the Region Connectivity settings in the CloudCenter Suite Web UI. Also, note the IP addresses of any other appliances you launch.

    7. Setup the appropriate firewall rules. You will need to open various ports on each instance of the appliance. To do this, use the tools provided by the cloud provider to create a new security group for your Cloud Remote cluster; then, associate each appliance in the cluster with that security group. Use the tables below for guidance on what port rules should be added to that security group.

      Port rules for a single node Cloud Remote deployment:
      PortProtocolSourceUsage
      22TCPLimit to address space of users needing SSH access for debugging and changing default portsSSH
      443TCPLimit to address space of users needing access to the Cloud Remote web UI for setup and scalingHTTPS (Cloud Remote web UI)
      8443TCPLimit to address space of users needing SSH or RDP access to their managed VMsUser to Guacamole
      5671TCPLimit to address space of the managed VMs and the address of the CloudCenter Suite cluster's local AMQP serviceAMQP
      15671TCPLimit to address space of users needing web access for debugging the remote AMQP serviceHTTPS (AMQP Management)
      7789TCPLimit to address space of the managed VMsWorker VM to Guacamole

      The Cloud Remote web UI, User-to-Guacamole, and AMQP ports listed above are the defaults used by Cloud Remote. You may change these port numbers using the Change Ports shell script (see Cloud Remote (Conditional) > Custom Port Numbers (Conditional)) once the appliance is fully configured and communicating with the CloudCenter Suite cluster. If you plan to modify any of these three port numbers, update the firewall rules accordingly.

      For a multi-node Cloud Remote cluster deployment, these additional port rules should be added to the same security group used for the single node configuration:

      PortProtocolSource
      2377TCP<cr_sec_group> *
      25672TCP<cr_sec_group>
      7946UDP<cr_sec_group>
      4369TCP<cr_sec_group>
      9010TCP<cr_sec_group>
      4789UDP<cr_sec_group>

       * <cr_sec_group> represents the security group that all Cloud Remote nodes are joined to.


    8. Switch back to the Workload Manager or Cost Optimizer UI and click Configure Region link in the upper left of the Region Connectivity section to bring up the Configure Region dialog box. The toggle settings should be the same as when you set them in the connectivity page of the Add Cloud dialog box. You must update some of the address fields in the dialog box according to the scenarios summarized in the table below.
      Toggle SettingsFieldValue

      Worker VMs Directly Connect with CloudCenter = No
      AND
      CloudCenter Directly Accessible from Cloud Remote = Yes

      Local AMQP IP Address

      Pre-populated with the address and port number of the "local" AMQP server running in the CloudCenter Suite cluster. This address must be accessible to Cloud Remote

      If Cloud Remote is accessing the CloudCenter Suite cluster through a user-supplied proxy server or NAT firewall, overwrite this field with the corresponding local AMQP IP address and port number provided by the user-supplied proxy server or NAT firewall and accessible to Cloud Remote.

      Worker VMs Directly Connect with CloudCenter = No
      AND
      CloudCenter Directly Accessible from Cloud Remote = No
      Remote AMQP IP Address

      Enter <Cloud_Remote_IP>:<amqp_port>, where
      <Cloud_Remote_IP> = the IP address Cloud Remote which is accessible to the CloudCenter Suite cluster, and
      <amqp_port> = 5671 OR the custom AMQP port number you would later set with the Change Ports shell script on the Cloud Remote appliance (see Cloud Remote (Conditional) >
      Custom Port Numbers (Conditional)).

      If there is no user-supplied NAT firewall or proxy server between the CloudCenter Suite cluster and Cloud Remote, the IP address would be the public IP address of Cloud Remote.

      If there is a NAT firewall or proxy server between the CloudCenter Suite cluster and Cloud Remote, instead, enter the corresponding public IP address and port number that the firewall or proxy server presents to the internet on behalf of the "remote" AMQP server running in Cloud Remote.


      Worker VMs Directly Connect with CloudCenter = NoWorker AMQP IP Address

      Enter <Cloud_Remote_IP>:<amqp_port>, where
      <Cloud_Remote_IP> = the Cloud Remote IP address accessible to the worker VMs, and
      <amqp_port> = 5671 OR the custom AMQP port number you would later set with the Change Ports shell script on the Cloud Remote appliance (see Cloud Remote (Conditional) > Custom Port Numbers (Conditional)).

      Worker VMs Directly Connect with CloudCenter = NoGuacamole IP AddressEnter <Cloud_Remote_IP>:<guac_port>, where
      <Cloud_Remote_IP> = the Cloud Remote IP address accessible to CloudCenter Suite users, and
      <guac_port> = 8443 OR the custom Guacamole port number you would later set with the Change Ports shell script on the Cloud Remote appliance (see Cloud Remote (Conditional) > Custom Port Numbers (Conditional)).

      When done, click OK to save the setting and dismiss the dialog box.

    9. After saving the Region Configuration settings, the next step is downloading the connectivity configuration file and copying its encryption key. Click the Download Configuration link in the upper right of the Region Connectivity section, as shown in the figure below.

      Clicking Download Configuration causes two things to happen:

      • A file named artifacts.zip will be downloaded by your browser. Make note of the location of this zip file as you will need to upload it to Cloud Remote through the Cloud Remote web UI (see below).
      • The Region Connectivity section header briefly displays the encryption key for the zip file, as shown in figure below. The key is the text after ":- ". You must copy this key within one minute of it being displayed as you will need to enter this key in the Cloud Remote web UI (see below). The key is only displayed for one minute. If you miss the chance to copy it, you must download a new copy of the zip file and copy the new key.


    10. After you have set the region connectivity settings in CloudCenter Suite, and downloaded the zip file and copied the encryption key, login to Cloud Remote web UI.
      1. Open another browser tab and login to https://<Cloud Remote_ip> with the default credentials: admin / cisco. 
      2. You will immediately be required to change your password. Do so. 
      3. You are now brought to the Cloud Remote home page as shown in the figure below.
      4. Click the Apply Configuration button in the page header.
      5. Clicking Apply Configuration cause. This prompts you to select a configuration file and enter the encryption key as shown in the figure below.
      6. Paste the encryption key you saved from the CloudCenter Suite web UI into the Encryption Key field in the dialog box.
      7. Click Select File and browse to the artifacts.zip file that you downloaded through the CloudCenter Suite web UI and select it.
      8. Click Confirm.
      9. Once the zip file is successfully transmitted and accepted, the Cloud Remote appliance attempts to establish communication with the CloudCenter Suite cluster and the Cloud Remote web UI home page is updated to show the name of the region it is connecting to in the upper right (see figure below).
      10. Now, switch your focus back to the Region Connectivity section of the target cloud region in the CloudCenter Suite web UI. The status indicator in the Region Connectivity section header will change from Not Configured to Running once connectivity between  Cloud Remote and the CloudCenter Suite cluster is completely established (see figure below).
        After completing these steps, Workload Manager and Cost Optimizer can both use Cloud Remote for communicating with the target cloud region.

  5. VM Naming and IPAM Strategy (conditional): Configure any VM naming or IPAM strategies in the Strategy section as explained in VM Naming and IPAM Strategies. If you leave the settings at the defaults, no IPAM strategy is applied and the default VM naming strategy is applied.
  6. External Lifecycle Actions (conditional): Specify any external lifecycle actions to be performed on all VMs launched by Workload Manager in this region as explained in External Lifecycle Actions Settings
  7. Instance Types (informational): CloudCenter Suite automatically syncs instance types for public cloud regions on a daily basis. This data includes published pricing for each instance type. It is possible to edit Google region instance types, but only the changes in the cost are used by CloudCenter Suite. See Instance Types Settings for more details.
  8. Storage Types (conditional): CloudCenter Suite automatically syncs storage types for public cloud regions on a daily basis. This data includes cloud provider published pricing for each storage type. It is possible to edit Google region storage types, but only the changes in the cost are used by CloudCenter Suite.See Storage Types Settings for more details.
  9. Image Mappings: Image mappings allow services based on CloudCenter Suite logical images to be deployed using the appropriate physical image stored on the target cloud region. CloudCenter Suite automatically maps the CloudCenter Suite OOB logical images to public cloud region physical images when you add the region to your cloud. Cisco periodically updates these mappings when new versions of OS physical image are uploaded by the cloud provider. To apply these updates to your region after it is added to your cloud, click the Sync Image Mappings link in the upper right of this section. If you create any custom logical images, you must manually import the corresponding physical images into your region and then map the corresponding logical images to these physical images. See Map Images for details.

Add a Google Cloud Account

Be aware that these screenshots may change based on the Google Cloud platform changes. They are provided in this section as a point of reference.

Prerequisites

Before adding a Google cloud account, verify the following Google requirements:

    • A valid Google Cloud Platform account with Project Owner permissions

    • If using the Shared VPC network feature, you also required Shared VPC Admin permissions (see https://cloud.google.com/vpc/docs/provisioning-shared-vpc for additional context).

    • CloudCenter Suite appends the network name with a unique ID to form the firewall rule name; the network name can be a maximum of 24 (network name) + 39 (unique ID) = 63 total characters. For example:abcdefghijklmnopqrstuvwx-c3f-462828f37a06acd3ee194716bfe10de0

    • Enable the following APIs for each Google cloud account you will be adding to CloudCenter Suite:

      • Google Compute Engine API

      • Google Cloud Resource Manager API

      • Google Cloud SQL Admin API (needed only for Cost Optimizer for PAAS services)

      The following image depicts the Google portal to enabled APIs:

    • Set the minimum permissions. See Cloud Overview > Minimum Permissions for Public Clouds for additional details.

    • Create a new service account key in JSON format per the GCP documentation: https://cloud.google.com/iam/docs/creating-managing-service-account-keys.
      Make sure you use the default JSON format as shown in the create key dialog box below. 

    • Once you click Create, the file will be downloaded by your browser. Make note of its name and location as you will need to specify this in the Service Account JSON File field in the CloudCenter Suite UI as explained below.

Configuration Process

To add a Google cloud account, follow this procedure.

  1. Locate the newly-added cloud and click the Add Cloud Account link. The Add Cloud Account dialog box displays:

  2. Assign a new cloud account name.

    Tip

    The name should not contain any space, dash, or special characters.

  3. Add the following Cloud Credentials associated with your Google account.

    The location of these details in GCP is identified in the Prerequisites section.

    Field

    Description

    GCP Email Address

    The email address that you used to log into the GCP account.

    GCP Service Account JSON File

    The JSON private key associated with the Service Account. (See Prerequisites section)

  4. Enter the Bucket Name and Report Prefix as shown in the figure below. For information on setting up billing information, see https://cloud.google.com/billing/docs/how-to/export-data-file.

    In the cloud console, create a bucket, if not already, and navigate to Billing > Billing Export to view billing information.

  5. Click the Connect button. CloudCenter Suite will now attempt to validate your account credentials.
  6. After the credentials are verified, the Connect button changes to an Edit button and two new fields appear Enable Account For and Enable Reporting By Org Structure, as shown in the figure below.



    1. Set the Enable Account For dropdown per the table below.

      ValueUsage
      ProvisioningWorkload Manager can deploy jobs using this account.
      ReportingCost Optimizer and Workload Manager will track cloud costs for this account. Typical usage: master cloud accounts which are used for billing aggregation.
      Provisioning, ReportingDefault. Account is used for both provisioning and reporting.
    2. For AWS and Google clouds only: Set the Enable Reporting By Org Structure toggle to On to cause Cost Optimizer to import the cost hierarchy created in the cloud provider portal. This saves the time of manually creating a comparable cost hierarchy within Cost Optimizer. See Cost Groups Configuration for more information on cost hierarchies in Cost Optimizer.

  7. Click the Save button when done. 

After you add cloud accounts, they will appear in the Cloud Accounts list in the Accounts tab for the cloud as shown in the figure below.

The cloud account list contains columns for data you entered into the Add Cloud Account dialog box: Account Name, Description, Enabled For; and two additional columns: Billing Units and Actions. The third column, Billing Units, is dual function. If the cloud account contains only one billing unit, the ID for that billing unit is displayed. If the cloud account contains multiple billing units, such as an AWS master account, the number of billing units in that account is displayed followed by the text "Billing Units". 

A billing unit is the most granular level of cloud cost recording in CloudCenter Suite. The definition of billing unit varies by cloud provider as shown in the table below.

Cloud ProviderBilling Unit
AWSAccount ID
AzureRMSubscription ID
GoogleProject ID
vCenterCloud Group Prefix - Datacenter Name
OpenStackProject ID
KubernetesNamespace UID

The last column, Actions, contains links to let you edit or deleted the cloud account, or manage instance types for the cloud account.



© 2017-2019 Cisco Systems, Inc. All rights reserved