Problem Statement

The OpenStack management APIs for the VLAD cluster are on a private subnet, accessible only from the vlad-mgmt node.  This prevents development and deployment of the NDS Web Services application on any machine other than the vlad-mgmt node.

Considerations

We cannot simply change the OS_AUTH_URL string, because the compute (nova) API URL is dynamically retrieved from the OpenStack management server and is not visible to the application.

Solution

Use an iptables rule to redirect traffic with a destination address of 10.10.236.1 (the VLAD management network) generated by the NDS application to localhost.

That traffic is then forwarded via a ssh tunnel from localhost (for the specific OpenStack ports) to the real VLAD management network.

The commands to do this are:

# iptables -A OUTPUT -t nat -p tcp -d 10.10.236.1 -j DNAT --to 127.0.0.1
# ssh -L localhost:5000:localhost:5000 -L localhost:8774:localhost:8774 -4 -nNT vlad-mgmt &

Benefits