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:

      Environment Variable

      Description

      Cloud

      CliqrCloudAccountId

      The cloud account ID.

      All supported clouds

      CliqrCloudAccountPwd

      The cloud account password (for AWS, access key).

      CliqrCloudAccountName

      The cloud account username (for AWS, account email ID).

      CliqrTier_NameList

      The comma-separated list of all tiers in the application – loop this variable for each tier in the script.

      CliqrTier_Total_NumCpus

      The total vCpus required to launch the complete App.

      CliqrTier_Total_Memory

      The total memory required to launch the complete App.

      CliqrTier_Total_Local_Storage

      The total local storage required to launch the complete App.

      CliqrTier_<tierName>_instanceType

      The Instance Type for the tier.

      CliqrTier_<tierName>_instanceName

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

      CliqrTier_<tierName>_cloudType

      The 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>_minClusterSize

      The cluster size of the tier that is launched – Total vCPUs required for a tier would be minClusterSize x numOfCPUs.

      CliqrCloud_AccessSecretKey

      The AWS account secret key

      AWS

      CliqrCloud_RegionEndpoint

      The SDK URL for VMware.

      VMware

      CliqrCloud_DomainId

      The default OpenStack domain ID.

      OpenStack

      CliqrCloud_Endpoint

      The OpenStack Keystone authentication endpoint.

      CliqrCloud_TenantName

      The OpenStack default tenant name.

      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.

  • No labels
Terms & Conditions Privacy Statement Cookies Trademarks