Define Resource Validation

Overview

The CloudCenter platform has ability to deploy enterprise applications over public, private, or hybrid clouds by configuring user-specified cloud settings in the Workload Manager UI > Environments  > Edit Deployment  Environment > Cloud Settings page.

The Resource Validation integration feature extends the Workload Manager platform capabilities by blocking new deployments – if users reach a configured threshold limit when using cloud resources (for example, restricting VMs being launched only if cloud resources consume < 75% of your maximum capacity).

You can configure these integrations using an automation callout script.

Resource Validation Flow

The Resource Validation feature is supported for all clouds supported by the Workload Manager.

The validation callout script is executed on a per-deployment basis, with environment variables containing details for all the tier-level hardware requirements along with summed up values for the hardware requirements required for the deployment.

To configure the Resource Validation feature, follow this procedure.

  1. Toggle the switch to YES in the Resource Validation section, as shown in the following screenshot.

  2. Identify the script location and the specific script for the Validation Configuration.

    • Sample Resource Validation Callout Script
      #!/bin/bash
      
      . /utils.sh
      
      content="{\"validated\":\"false\",\"comment\":\"Not Enough Resources to Launch the nodes\"}"
      print_ext_service_result "$content" 
    • The following table describes available environment variables for the Resource Validation script:

      Cloud(s)Environment VariableDescription
      All supported cloudsCliqrCloudAccountId

      The cloud account ID.

      This information is only populated after the first deployment from this ID. From the second deployment, this value is available for validation.


      CliqrCloudAccountPwd

      The cloud account password.

      This information is only populated after the first deployment from this ID. From the second deployment, this value is available for validation.

      CliqrCloudAccountName

      The cloud account username.

      This information is only populated after the first deployment from this ID. From the second deployment, this value becomes is available for validation.

       

      CliqrTier_NameListThe comma separated list of all tiers in the application –  loop this variable for each tier in the script.
      CliqrTier_Total_NumCpusThe total vCPUs required to launch the complete App.
      CliqrTier_Total_MemoryThe total memory required to launch the complete App.
      CliqrTier_Total_Local_Storage

      The total local storage required to launch the complete App.

      CliqrTier_<tierName>_instanceTypeThe Instance Type for the tier.
      CliqrTier_<tierName>_instanceName

      The Instance Type name (logical name) for the tier.

      CliqrTier_<tierName>_cloudTypeThe Cloud Type for the tier.
      CliqrTier_<tierName>_numOfCPUs

      The number of CPU’s required for the tier.

      CliqrTier_<tierName>_memorySize

      The memory required for the tier.

      CliqrTier_<tierName>_localStorageSize

      The local storage required for the tier.

      CliqrTier_<tierName>_minClusterSizeThe cluster size of the tier that is launched – Total vCPUs required for a tier would be minClusterSize x numOfCPUs.
      AWSCliqrCloud_AccessSecretKeyThe AWS account secret key
      CliqrCloudAccountPwdThe cloud account access key
      CliqrCloudAccountNameThe cloud account email ID
      Azure

      CliqrCloudAccountPwd

      This is not a valid key.

      A shared account is required for Azure environments.

      A local cloud account is required for Azure clouds.

      OpenStack








      CliqrCloud_DomainId

      The default OpenStack domain ID.

      CliqrCloud_RegionEndPoint

      The OpenStack Keystone authentication endpoint.

      CliqrCloud_Endpoint is not a valid key for this purpose.

      CliqrCloud_TenantName

      The OpenStack default tenant name.

      Verification of cloud account details like tenant name is only passed if the account is created by the local user, not a user with a shared account.

      A local cloud account is required for OpenStack clouds.

      CliqrCloud_DomainName

      The OpenStack default domain name.

      CliqrCloudAccountPwd

      The OpenStack password.

      CliqrCloud_Region

      The OpenStack region.

      CliqrCloudAccountName

      The OpenStack user name for this account.

      CliqrCloud_TenantId

      The OpenStack default tenant ID.

      Verification of cloud account details like tenant name is only passed if the account is created by the local user, not a user with a shared account.

      A local cloud account is required for OpenStack clouds.

      VMware

      CliqrCloud_RegionEndPoint

      The SDK URL for VMware.
  • No labels
© 2017-2019 Cisco Systems, Inc. All rights reserved