CLM: How to increase API task life?

Version 4
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Cloud Lifecycle Management


    COMPONENT:

    Cloud Lifecycle Management


    APPLIES TO:

    BMC Cloud Lifecycle Management 4.0 or higher



    QUESTION:

    How to increase Cloud Lifecycle Management (CLM) API task life?

    Use CLM API to provision list of Virtual Machines. After submitting bulkCreate API in asynchronous mode, notice that in few hours after CLM task completes, it expires.

    When querying this CLM task again, the following message is observed:

    [{ "cloudClass" : "com.bmc.cloud.model.beans.Task", "errors" : [ { "cloudClass" : "com.bmc.cloud.model.beans.TaskError", "errorAction" : "Please contact System Administrator.", "errorCause" : "Error occurred while retrieving task status since the task 516d064c-b814-43c0-9bc7-68a3f3a91019 has expired.", "errorID" : "BMC-CLMT-11100009", "guid" : "dc380d1b-8192-4b31-8040-9cbbf120be9a", "hostname" : "XX.XX.XX.XXX", "severity" : "MAJOR", "taskInternalUUID" : "516d064c-b814-43c0-9bc7-68a3f3a91019", "transactionID" : "" } ], "guid" : "2f951f3a-1c98-4544-b62b-75b6e02c0ee4", "taskInternalUUID" : "516d064c-b814-43c0-9bc7-68a3f3a91019"}]

    Can we increase the life of CLM tasks so they could last, maybe 3 days, or so?
     


    ANSWER:

     

    Legacy ID:KA400879

    There is a configuration attribute in cloudservices.json file which controls the expiration of Tasks.  


    Here is the snippet from %Platform_Manager%\configuration\cloudservices.json file:

    {
    "cloudClass" : "com.bmc.cloud.model.beans.AccessAttributeValue",
    "accessAttribute" : {
    "cloudClass" : "com.bmc.cloud.model.beans.AccessAttribute",
    "datatype" : "Integer",
    "description" : "Time in hours after which the completed Tasks will be deleted from cache store",
    "guid" : "037B2784-03BB-4032-9BC6-1BCA3390AE5E",
    "isOptional" : true,
    "isPassword" : false,
    "length" : 255,
    "modifiableWithoutRestart" : false,
    "name" : "data.expiration"
    },
    "attributeValue" : "12",
    "description" : "Time in hours after which the completed Tasks will be deleted from cache store",
    "guid" : "0726db66-2153-43aa-9607-191eb1875bc5",
    "name" : "data.expiration"
    },


    Here is the another section:

    {
    "cloudClass" : "com.bmc.cloud.model.beans.AccessAttribute",
    "datatype" : "Integer",
    "description" : "Time in hours after which the completed Tasks will be deleted from cache store",
    "guid" : "037B2784-03BB-4032-9BC6-1BCA3390AE5E",
    "hasValueObject" : [ {
    "cloudClass" : "com.bmc.cloud.model.beans.AccessAttributeValue",
    "attributeValue" : "12",
    "guid" : "0098858D-DAD9-4BDC-98E5-7430CEB60F80",
    "name" : "data.expiration"
    }


    Modify an attribute value from 12 hours to the value which you would like to and restart Platform Manager Service after clearing the cache and org.eclipse.osgi contents.

      
    Related Products:  
       
    1. BMC Cloud Lifecycle Management

     


    Article Number:

    000028248


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles