Determining Server Products

When coding entries in the blueprint template Product selector section you need to specify entries for each cloud that want to allow the blueprint to launch stacks in. The cloud entries must contain entries for each region in the cloud you want to allow the blueprint to launch stacks in. For each region you need to specify one or more server products to be selectable and used for launching the servers.

What server product property values that you need to specify in the productMappings section for a cloud region can be determined by running the mixcoatl dcm-list-server-products command.

Note

You must use a DCM User API key that was created for the cloud account you wish to display the server products for.

Amazon Cloud

First display the Amazon cloud regions using the mixcoatl dcm-list-regions command with a DCM API key created for use with the Amazon cloud account.

dcm-list-regions
+-----------+----------------+-------+----------------+----------------+--------+
| Region ID | Provider ID    | Cloud | Region Name    | Description    | Status |
+-----------+----------------+-------+----------------+----------------+--------+
| 14        | ap-northeast-1 | 1     | ap-northeast-1 | ap-northeast-1 | ACTIVE |
| 11        | ap-southeast-1 | 1     | ap-southeast-1 | ap-southeast-1 | ACTIVE |
| 12        | ap-southeast-2 | 1     | ap-southeast-2 | ap-southeast-2 | ACTIVE |
| 13        | eu-central-1   | 1     | eu-central-1   | eu-central-1   | ACTIVE |
| 10        | eu-west-1      | 1     | eu-west-1      | eu-west-1      | ACTIVE |
| 16        | sa-east-1      | 1     | sa-east-1      | sa-east-1      | ACTIVE |
| 15        | us-east-1      | 1     | us-east-1      | us-east-1      | ACTIVE |
| 17        | us-west-1      | 1     | us-west-1      | us-west-1      | ACTIVE |
| 18        | us-west-2      | 1     | us-west-2      | us-west-2      | ACTIVE |
+-----------+----------------+-------+----------------+----------------+--------+

Then using the Region ID value (1st column value) for the desired region you wish to display the server products for, issue the dcm-list-server-products command with that Region ID value. In this example the server products for the Amazon cloud us-east-1 region (Region ID 15) will be displayed.

dcm-list-server-products --regionid 15 --json

Sample output showing just 1 server product t1.micro

{
    "architecture": "I64",
    "cloud": {
        "cloud_id": 1
    },
    "cpu_count": 1,
    "currency": "USD",
    "description": "t1.micro [t1.micro/0.66 GB memory/EBS only/1.0 Compute Units]",
    "disk_size_in_gb": 0,
    "hourly_rate": 0.02,
    "name": "t1.micro",
    "platform": "UNIX",
    "product_id": 3026,
    "provider_product_id": "t1.micro",
    "provider_region_id": "us-east-1",
    "ram_in_mb": 676,
    "software": ""
}

Click here to see the entire output from the dcm-list-server-products command

A product value to specify in the productMappings: section of the product_selector must be the provider_product_id value from the desired server product. In this example one of the server product values is t1.micro.

    ################################################################################################################################################
    # This defines the Product selector which allows the user to select the server product size
    ################################################################################################################################################        
    product_selector:                                                 # Define the product selector so the user can select the cloud and region
      type: dcm.inputs.Product                                        # Input type is dcm.inputs.Product
      properties:
        accountRegionSelector: account_region_zone_selector           # This connects the AccountRegionSelector to the Product selector
        platform: UNIX                                                # Virtual machine images are Linux
        architecture: I64                                             # 64 bit images
        productMappings:
          "Amazon":                                                   # Amazon cloud
            "us-east-1":                                              # us-east-1 Region
              image: "ami-c4edc0d3"                                   # Machine image identifier for an Ubuntu image in this region
              products: ['t1.micro', 'm1.small', 'm1.medium']         # The virtual machine product sizes for this region
            "us-west-1":                                              # us-west-1 Region
              image: "ami-e7035687"                                   # Machine image identifier for an Ubuntu image in this region
              products: ['t1.micro', 'm1.small', 'm1.medium']         # The virtual machine product sizes for this region
            "us-west-2":                                              # us-west-2 Region
              image: "ami-578c2f37"                                   # Machine image identifier for an Ubuntu image in this region
              products: ['t1.micro', 'm1.small', 'm1.medium']         # The virtual machine product sizes for this region
            "eu-west-1":                                              # eu-west-1 Region
              image: "ami-e6a1f795"                                   # Machine image identifier for an Ubuntu image in this region
              products: ['t1.micro', 'm1.small', 'm1.medium']         # The virtual machine product sizes for this region

Launch Blueprint screen showing the Product Selector for the Amazon Cloud us-east-1 region

../_images/launch_stack_amazon_cloud_product_selector.png

Private VMWare Cloud

Attention

The Dell Cloud Manager Blueprint function requires that you have pricing for the server products in the Dell Cloud Manager provisioning database server_product table for the server products you specify in the template productMappings section.

Currently the Dell Cloud Manager installation configures pricing for these public clouds: Amazon Web Service, Microsoft Azure, DigitalOcean, Google Compute Engine and Joyent.

You will need to be configure the server pricing for the other cloud providers which includes VMWare. Refer to the Dell Cloud Manager Administrator’s Guide Server Pricing for more information on configuring the server pricing.

First display the private VMWare cloud regions using the mixcoatl dcm-list-regions command with a DCM API key created for use with the desired private VMWare cloud account.

dcm-list-regions
+-----------+-------------+-------+-------------+-------------+--------+
| Region ID | Provider ID | Cloud | Region Name | Description | Status |
+-----------+-------------+-------+-------------+-------------+--------+
| 62        | WTC         | 10201 | WTC         | WTC         | ACTIVE |
+-----------+-------------+-------+-------------+-------------+--------+

Then using the Region ID value (1st column value) for the desired region you wish to display the server products for, issue the dcm-list-server-products command with that Region ID value. In this example the server products for the private VMWare cloud WTC region (Region ID 62) will be displayed.

dcm-list-server-products --regionid 62 --json

Sample output showing just 1 server product 1:1024

{
    "architecture": "I64",
    "cloud": {
        "cloud_id": 10201
    },
    "cpu_count": 1,
    "currency": "USD",
    "description": "1 CPUs/1024 GB RAM",
    "disk_size_in_gb": 1,
    "hourly_rate": 0.1,
    "name": "small",
    "platform": "UNIX",
    "product_id": 30081,
    "provider_product_id": "1:1024",
    "provider_region_id": "WTC",
    "ram_in_mb": 1024,
    "software": ""
}

Click here to see the entire output from the dcm-list-server-products command

A product value to specify in the productMappings: section of the product_selector must be the provider_product_id value from the desired server product. In this example one of the server product values is 1:1024.

  ####################################################################################################################################################
  # This defines the Product selector which allows the user to select the server product size
  ####################################################################################################################################################        
  product_selector:                                                       # Define the product selector so the user can select the server product size
    type: dcm.inputs.Product                                              # Input type is dcm.inputs.Product
    properties:
      accountRegionSelector: account_region_zone_selector                 # This connects the AccountRegionSelector to the Product selector
      platform: UNIX                                                      # Virtual machine images are Linux
      architecture: I64                                                   # 64 bit images
      productMappings:
        "ACME VMWare":                                                    # Private VMWare Cloud
          "WTC":                                                          # WTC Region
            image: "422e59e8-f46e-634a-6a99-c71fd25523dd"                 # Machine Image to use in this region 
            products: ['1:1024', '1:4096', '2:2048', '2:4096', '4:10240'] # Server Products to allow

Launch Blueprint screen showing the Product Selector for the private VMWare Cloud WTC region

../_images/launch_stack_vmware_cloud_product_selector.png

Private OpenStack Cloud

Attention

The Dell Cloud Manager Blueprint function requires that you have pricing for the server products in the Dell Cloud Manager provisioning database server_product table for the server products you specify in the template productMappings section.

Currently the Dell Cloud Manager installation configures pricing for these public clouds: Amazon Web Service, Microsoft Azure, DigitalOcean, Google Compute Engine and Joyent.

You will need to be configure the server pricing for the other cloud providers which includes OpenStack. Refer to the Dell Cloud Manager Administrator’s Guide Server Pricing for more information on configuring the server pricing.

First display the private OpenStack cloud regions using the mixcoatl dcm-list-regions command with a DCM API key created for use with the desired private OpenStack cloud account.

dcm-list-regions
+-----------+-------------+-------+-------------+-------------+--------+
| Region ID | Provider ID | Cloud | Region Name | Description | Status |
+-----------+-------------+-------+-------------+-------------+--------+
| 61        | RegionOne   | 10200 | RegionOne   | RegionOne   | ACTIVE |
+-----------+-------------+-------+-------------+-------------+--------+

Then using the Region ID value (1st column value) for the desired region you wish to display the server products for, issue the dcm-list-server-products command with that Region ID value. In this example the server products for the private OpenStack cloud RegionOne region (Region ID 61) will be displayed.

dcm-list-server-products --regionid 61 --json

Sample output showing just 1 server product 3

{
    "architecture": "I64",
    "cloud": {
        "cloud_id": 10200
    },
    "cpu_count": 2,
    "currency": "USD",
    "description": "m1.medium 64-bit, 2 CPUs, 4 GB RAM, 40 GB Disk, Price per hour .08",
    "disk_size_in_gb": 40,
    "hourly_rate": 0.08,
    "name": "m1.medium",
    "platform": "UNIX",
    "product_id": 70008,
    "provider_product_id": "3",
    "provider_region_id": "RegionOne",
    "ram_in_mb": 4096,
    "software": ""
}

Click here to see the entire output from the dcm-list-server-products command

A product value to specify in the productMappings: section of the product_selector must be the provider_product_id value from the desired server product. In this example one of the server product values is 3.

  ################################################################################################################################################
  # This defines the Product selector which allows the user to select the server product size
  ################################################################################################################################################        
  product_selector:                                                 # Define the product selector so the user can select the server product size
    type: dcm.inputs.Product                                        # Input type is dcm.inputs.Product
    properties:
      accountRegionSelector: account_region_zone_selector           # This connects the AccountRegionSelector to the Product selector
      platform: UNIX                                                # Virtual machine images are Linux
      architecture: I64                                             # 64 bit images
      productMappings:
        "ACME OpenStack":                                           # Private OpenStack Cloud
          "RegionOne":                                              # RegionOne region
            image: "bba418d0-21b4-45db-a646-12a8ddc265f1"           # Machine Image to use in this region 
            products: ['1', '2', '3', '4', '5']                     # Server Products to allow

Launch Blueprint screen showing the Product Selector for the private OpenStack Cloud RegionOne region

../_images/launch_stack_openstack_cloud_product_selector.png