Symptoms

APS resource provisioning fails with

[APSC] resource of type http://mycompany.com/types/hyperv/offers/1.0 can not be created by available brokers.

What does it mean and what could be the reason of these failures?

Cause

This just means that OA is unable to create a resource with type

http://mycompany.com/types/hyperv/offers/1.0

There can be multiple reasons for that:

  1. For example, if you increased version this resource it this resources schema, so schema for offers has version 1.1, but some other resource that requires the offers resource still wants to have version 1.0 of the resource (which does not exist anymore), you will get this error.

  2. In addition, if you have resource relations defined in schema in such a way that the resource cannot be properly created, you will also get the same error.

  3. It is possible that you did not add the required application resource in the service template. Check the provider guide documentation to make sure that you created all required resources and the service template contains these resources.

  4. It can be also a typo if the resource is defined incorrectly. For example backslash is used in:

    http:\\mycompany.com/types/hyperv/offers/1.0

  5. Included resource limit set to zero in resource rate while provisioning subscription.

Resolution

Obtain the error message from failed sales order item

    Service Creation Failed: Parallels Operations Automation error #extype_id #1, module_id #Common, Internal error: APSC: Provisioning: resource 61cbf7fa-6383-4500-a649-091541b2c370 of type 'environments' (http://www.parallels.com/infrastructure/virtual-environment/1.0) for APS application 'Cloud Infrastructure-1.4-1918': Resource of type http://www.parallels.com/infrastructure/virtual-environment/sample/1.0 can not be created by available brokers...
    Description     1 Month(s) Subscription for Plan 'vServer M Linux (CT)'.

From the scheduler or poa.log obtain the resources need to be provisioned

    [15-09-10 18:27:42.109 XMLRPC      RQ73778 TH07326 TRC] REQUEST: pem.activateSubscription : 
    { 'account_id' => 1000020, 
    'parameters' => [ 
    { 'var_name' =
    > 'aps_defaults_1', 'var_value' => '
    {"aps":{"type":"http://www.parallels.com/infrastructure/virtual-environment/1.0"},"name":"",     "hostname":"","osId":"0
    6bb83cb-8449-4b75-8036-84544a307e2f"}', }, ], 
    'resource_limits' => [
    { 'resource_id' => 1000256, 'resource_limit64' => '1', },
    { 'resource_id' => 1000257, 'resource_limit64' => '1', }, 
    { 'resource_id' => 1000259, 'resource_limit64' => '8000', }, 
    { 'resource_id' => 1000260, 'resource_limit64' => '4', }, 
    { 'resource_id' => 1000261, 'resource_limit64' => '8388608', }, 
    { 'resource_id' => 1000264, 'resource_limit64' => '-1', }, 
    { 'resource_id' => 1000265, 'resource_limit64' => '-1', }, 
    { 'resource_id' => 1000266, 'resource_limit64' => '209715200', }, 
    { 'resource_id' => 1000273, 'resource_limit64' => '209715200', }, 
    { 'resource_id' => 1000411, 'resource_limit64' => '0', }, ], 
    'service_template_id' => 21, 'subscription_id' => 1000067, 'subscription_name' => 'vServer M         (Container, Linux)', 'txn_id' => '250959000', }

Get the service type of APS resource from problematic APS APP-META.xml

    # egrep -A9 "service.*sample" APP-META.xml

    <presentation>
                <name>Samples</name>
                <summary>Configuration Samples</summary>
    </presentation>

Go to OA Control Panel and get the resource id containing service type sample

OA CP > Services > Applications > 110 Cloud Infrastructure > Resource Types > Search with service type "Samples"

    1000411 PACI Template 201509-VPS-Container-Linux-Only           Application Service Reference   Samples 0

Make sure resource ID #1000411 contains the included limit 1 while provisioning.

Set the included limit to 1 in Service Plan for configured resource rate and sync.

Resubmit failed Sales Order.

Internal content

Link on internal Article