VMware Cloud Community
rkuechler
Enthusiast
Enthusiast
Jump to solution

Running a Workflow against one specific vCenter (out of several in the vRO invetory)?

Hello

We have overall 6 vCenter Servers registered in our vRO inventory. If I choose one of them, to run a workflow against, the workflow will nevertheless executed againt all 6 vCenters:

30-06-2023_UDE0994-Clipboard-07-50-40.png

I have absolutely no idea where and how to start to solve this issue?
Has anybody made some times the same experience?

Kind regards

Reply
0 Kudos
1 Solution

Accepted Solutions
eoinbyrne
Expert
Expert
Jump to solution

Hi

Can you post some code / logs to show the problem in action? It sounds like a bug unless there's some part of the workflow iterating over VcPlugin.allSdkConnections without filtering?

If you take a look here - http://grzegorzkulikowski.info/2020/05/08/vrealize-orchestrator-sdkconnection-list-vcenters/ - for a good example of how to filter that array

View solution in original post

2 Replies
eoinbyrne
Expert
Expert
Jump to solution

Hi

Can you post some code / logs to show the problem in action? It sounds like a bug unless there's some part of the workflow iterating over VcPlugin.allSdkConnections without filtering?

If you take a look here - http://grzegorzkulikowski.info/2020/05/08/vrealize-orchestrator-sdkconnection-list-vcenters/ - for a good example of how to filter that array

rkuechler
Enthusiast
Enthusiast
Jump to solution

>>


@eoinbyrne wrote:

... unless there's some part of the workflow iterating over VcPlugin.allSdkConnections without filtering?

Your suspicion that I could erroneously iterate over all vCenters unsettled me.
And indeed, after I examined my code again and very carefully, I found exactly this error in the code. It was still a "leftover" from the previous code when we only registered one vCenter.

I thank you a thousand times for your note. At the same time, I sincerely apologize for the trouble I caused.

Best regards

Reply
0 Kudos