WJPConway
Contributor
Contributor

vRA8 API - How to access specific vRA/vRO node through Load Balancer - for using the workflow to import a file

Jump to solution

We are assessing what work is required to make sure our vRA/vRO 7.6 workflows will port to vRA/vRO8

We have hit a snagging point on one workflow which imports an ssh key to the vRO appliance to allow it to connect to another vm to run a command.

We are using the internal vRO on the vRA Appliances and the workflow is the inbuilt workflow (Copy file from guest to vCO)

This ssh key needs to be copied to all nodes in the cluster -

In vRA7.X

We could access the API directly through each individual vRA Appliance node - we didnt need to go to the API through the Load Balancer - when we ran the workflow then it would import the ssh key into the desired vRA appliance

So basically we would

1) Use rest api to trigger workflow in vRA node 1 which would import a file into the OS (ssh key) which could be used by the embedded vRO

2) We would then do the same for node 2

3) If present then also for node 3

After this the ssh key would be present in all 3 vRA nodes - and in turn all embedded vRO nodes would be able to run the command on the remote machine as they would have that remote machines ssh key.

In vRA8

We only seem to be able to access the api through the VIP which means we cant control which node the ssh.key is being imported into. It is down to the LB and which node it balances to

My questions are

1) Is there anyway to contact the api directly on an individual appliance rather than having to go through load balancer in 8 - like there was in 7.

2) If the VIP has to be used is there anyway (other than disabling nodes) to ensure that a workflow being ran is being ran on the desired node in the vRA/vRO cluster

Any other help or guidance would be gratefully received.

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
gradinka
VMware Employee
VMware Employee

it's a tricky problem.

I'll circle back with vmware folks to see for a workaround.
One thing you might try to do is add each of the vRA VAs as an "ssh host" to vRO and try to copy the files (e.g. some different workflow has to be created)

View solution in original post

0 Kudos
4 Replies
WJPConway
Contributor
Contributor

Anyone know how you could do this in 8?

0 Kudos
gradinka
VMware Employee
VMware Employee

it's a tricky problem.

I'll circle back with vmware folks to see for a workaround.
One thing you might try to do is add each of the vRA VAs as an "ssh host" to vRO and try to copy the files (e.g. some different workflow has to be created)

View solution in original post

0 Kudos
vmitov
VMware Employee
VMware Employee

In vRO/vRA 8.x direct access to a node FQDN in HA deployments is not allowed, so you have to go through the configured LB FQDN.

Would it be an option to store the guest OS file as vRO resource element and then load the file in the beginning of the workflows that depend on it?

0 Kudos
WJPConway
Contributor
Contributor

Apologies for the delay - we went with the copy file option in the end

0 Kudos