Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Workflow kicked off by script fails to obtain passed securestring parameter

$
0
0

Hi,

 

I am using a (linux) script to kick off a workflow (thanks to Defined by Software for the script;-) This mechanism works very well.

However, yesterday we removed an input parameter from a certain workflow (and also removed it from the script) and now it fails.

 

Before the change, the input parameters were: vmName (string), vmUser (string), vmPassword (SecureString)

After the change, the input parameters are: vmName (string), vmPassword (SecureString)

 

In the script I can add statements to prove that the password has a value and is being passed.

In the workflow I added a scriptable task that is executed first and shows that the value of the vmPassword input parameter is empty.

 

The xml output from the calling script also shows that the value setting is 'lost'...

See the correct parameter definition for vmName on lines 11 and 12.

See an incorrect parameter definition for vmPassword on line 13 - it is missing the "<SecureString>secret<\SecureString>" part...

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workflow-execution  href="https://ehc3-vco2.ehc.ssev.local:8281/vco/api/workflows/fe59b484-ec21-4028-8a32-5e434b4139c2/executions/ff8080814e0272b6014eadc7c37424fb/"><relations><link href="https://ehc3-vco2.ehc.ssev.local:8281/vco/api/workflows/fe59b484-ec21-4028-8a32-5e434b4139c2/executions/" rel="up"/><link href="https://ehc3-vco2.ehc.ssev.local:8281/vco/api/workflows/fe59b484-ec21-4028-8a32-5e434b4139c2/executions/ff8080814e0272b6014eadc7c37424fb/" rel="remove"/><link href="https://ehc3-vco2.ehc.ssev.local:8281/vco/api/workflows/fe59b484-ec21-4028-8a32-5e434b4139c2/executions/ff8080814e0272b6014eadc7c37424fb/logs/" rel="logs"/><link href="https://ehc3-vco2.ehc.ssev.local:8281/vco/api/workflows/fe59b484-ec21-4028-8a32-5e434b4139c2/executions/ff8080814e0272b6014eadc7c37424fb/state/" rel="state"/></relations><id>ff8080814e0272b6014eadc7c37424fb</id><state>failed</state><input-parameters><parameter type="string" name="vmName" scope="local"><string>vm093</string></parameter><parameter type="SecureString" name="vmPassword" scope="local"/></input-parameters><output-parameters/><start-date>2015-07-20T19:23:46.932-04:00</start-date><end-date>2015-07-20T19:23:48.070-04:00</end-date><started-by>app_vmw_vco_adbind@domain.local</started-by><name>Add Agent</name><content-exception>; nested exception is:        java.io.IOException: java.io.IOException: Non nillable element 'password' is null. (Dynamic Script Module name : addAgent#32)</content-exception><current-item-display-name>Add Agent</current-item-display-name></workflow-execution>

 

Anybody seen this and -more importantly- able to fix it? :-)

 

Thanks,

Ed


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>