servicecatalog / development

An Enterprise-ready Cloud Services Management Software
http://openservicecatalogmanager.org
Apache License 2.0
39 stars 27 forks source link

APP: UDA values are not propagated to service parameter in method createInstance #888

Closed uhu133 closed 5 years ago

uhu133 commented 6 years ago

When using an UDA for a APP provisioned service parameter, the UDA value is not propagated to service parameter when the Java method createInstance is called. This happens later when the APP state machine triggers later activities.

As a result "createInstance" gets the wrong service parameters value.

OSCM 17.4

kowalczyka commented 6 years ago

Could you please give more details?

I have just investigate propagation of UDAs when creating new subscription both sync and async one and when createInstance (or asyncCreateInstance) is called the uda is there on InstanceRequest -> attributeValue list.

Are you using synchronous or asynchronous provisioning? Could you share your technicalservice xml which is used? Which Java method (which class) you meant ("the Java method createInstance")?

uhu133 commented 6 years ago

We are using asynchronous provisioning. I'll attach the source and the technical service. PowerShell.zip

public class PowershellController implements APPlatformController { @Override public InstanceDescription createInstance(ProvisioningSettings settings) throws APPlatformException { } }

GoebelL commented 6 years ago

@uhu133 Attributes are not copied to InstanceDescription in your PowershellController. Add setChangedAttributes around line 117. [...] InstanceDescription id = new InstanceDescription(); id.setInstanceId(UUID.randomUUID().toString()); id.setChangedParameters(settings.getParameters()); id.setChangedAttributes(settings.getAttributes());

GoebelL commented 6 years ago

@uhu133 Do you have an update on this issue? Have you resolved it?