cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
370
Views
5
Helpful
1
Replies

MultiCloud 3.02 (Starter Edition) Deployment FAQ

derevan
Level 4
Level 4

I am starting this thread to share information regarding deploying the Multi-Cloud Accelerator Kit based on reported issues. Please feel free to add your own and I will try to roll these into the next version of the deployment guide.

One issue that we have seen a few times is with Catalog Deployer reversing JavaScript parameters. As a precaution, when deploying Multi-Cloud, you may want to verify whether you have run into this problem and fix it if you have.

There is a known issue with the triggerEvent javascript. During deployment, the function parameters are often reversed, and this will cause all sorts of strange behaviors with the execution of form rules.

To determine, whether you have the issue, look at the Function Arguments tab for the triggerEvent script (under Service Designer|Scripts in Cloud Portal). The order of the arguments need to match that of the script. If the order is different, change the order in the script itself as it is much more difficult to attempt to change the order on the Function Arguments tab.

For example, if the Function Arguments are in the order 1) elements and 2) eventtype and the script is in the order 1) eventtype and 2) elements, you would fix the script arguments to be in the order 1) elements and 2) eventtype:

triggerEvent(elements,eventtype)

1 Reply 1

derevan
Level 4
Level 4

There is a typo in theCloudSync_EC2Option javascript that affects CloudSync for EC2. You can fix this in Service Designer | Scripts. Edit the script by replacing the line in red below with the line in green.

CloudSync_EC2Options()

{

var platformType= serviceForm.ProviderVDCvCenterTarget.PlatformElementType.getValue()[0];

var search = platformType.indexOf("EC2");

if( search!= -1)

{

var options = ":";

var filters = "";

var inclusions=":";

if (serviceForm.EC2_CloudSync.IncludeImages.getValue() == "Yes")

    inclusions = inclusions + "IMG:";

if (serviceForm.CEC2_CloudSync.IncludeSubnets.getValue() == "Yes")
if (serviceForm.EC2_CloudSync.IncludeSubnets.getValue() == "Yes")

    inclusions = inclusions + "NET:";

if (serviceForm.EC2_CloudSync.IncludeKeypairs.getValue() == "Yes")

    inclusions = inclusions + "SSHK:";

if (serviceForm.EC2_CloudSync.FilterImagesByOwner.getValue() == "Amazon")

   filters = filters + "ImageOwner=amazon:";

else {filters = filters + "ImageOwner=self:";}

serviceForm.CloudSyncOptions.Inclusions.setValue([inclusions]);

serviceForm.CloudSyncOptions.Options.setValue([options]);

serviceForm.CloudSyncOptions.Filters.setValue([filters]);

}

}