Article ID: 9547, created on Jan 5, 2011, last review on May 9, 2014

  • Applies to:
  • Operations Automation

Symptoms


Provider created custom APS application of 'External system' provisionig type.

This custom application cannot be installed in customer subscription, task fails in POA with the error message 'Cannot get value of DB_main_HOST variable'. See more details in the example below:
Task ID          1016339
Task name        Executing configuration script for instance with id 1124 of service 'webmail' of instance with id 517 of APS application with id 301
Task description Executing configuration script for instance with id 1124 of service 'webmail' of instance with id 517 of APS application with id 301
Queue name       aps_application_instance517
Method name      taskExecuteApplicationInstanceScript
Execution status Failed  
Start not earlier than  Aug-17-2010 20:02        
Finished         Aug-17-2010 20:02        
Output  Execution of configuration script for service instance with id 1124 of instance with id 517 of application with id 301 failed
- returned value: -1 output: '<output xmlns="http://apstandard.com/ns/1/configure-output">
<errors>
<error id="2000">
<message>Cannot get value of DB_main_HOST variable</message>
<system>getenv(DB_main_HOST) fails</system>
</error>
</errors>
</output>


Cause


In current implementation POA does not support database service for applications of 'External system' provisioning type (such application provides only configuration scripts that create account/service in an external system).

Resolution


If own database instance is not actually necessary for each application instance then application data may be stored in POA database instead.

Application configuration script can send setting values back to POA using 'structed-output' XML format. POA will save the settings in own system database and pass them to application any time configuration script is called again.

An example of structed-output may be found e.g. in Open-Xchange application. If such format is declared in the APS application configuration file APP-META.xml, only XML must be printed to standard output by configuration script.

Refer to APS Format Specification for more details.
 

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF