Skip to content
Snippets Groups Projects
Commit 5d6b1f15 authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

feat: Create multi homed proxy with fixed internal IP

We wanted to create a multi-homed instance connected to proxy-net and
internal-net because the nfs-mounts are shared via internal net by the server.
However, the NIC on internal-net wasn’t getting an IP assigned automatically
and this was creating an issue for NFS server to communicate with the clients.
So we created a port and assigned that port during instance creation
parent 238c7159
No related branches found
No related tags found
2 merge requests!117This MR merges the feat-hpc-factory branch, which was focused on building and deploying proxy images for the COD cluster.,!111Create multi homed proxy
...@@ -155,10 +155,17 @@ deploy_http_proxy_node: ...@@ -155,10 +155,17 @@ deploy_http_proxy_node:
ansible-playbook -c local -i 127.0.0.1, ansible/cheaha.yml | tee -a /tmp/ansible.log ansible-playbook -c local -i 127.0.0.1, ansible/cheaha.yml | tee -a /tmp/ansible.log
rm -rf /tmp/${CI_PROJECT_NAME} rm -rf /tmp/${CI_PROJECT_NAME}
EOF EOF
- >
export HTTP_PROXY_INSTANCE_PORT=$(openstack port create
-c id -f value --network $INTERNALNET
--fixed-ip subnet=$INTERNALNET_SN,ip-address=$INTERNALNET_IP
--disable-port-security
${HTTP_PROXY_INSTANCE_NAME}_internal_port)
- > - >
export HTTP_PROXY_INSTANCE_ID=$(openstack server create export HTTP_PROXY_INSTANCE_ID=$(openstack server create
-c id -f value --image $HTTP_PROXY_IMAGE_ID -c id -f value --image $HTTP_PROXY_IMAGE_ID
--network $PROXY_NETWORK --network $PROXY_NETWORK
--port $HTTP_PROXY_INSTANCE_PORT
--security-group webserver_sec_group --security-group webserver_sec_group
--security-group allow-ssh --security-group allow-ssh
--user-data user_data.txt --user-data user_data.txt
...@@ -196,10 +203,17 @@ deploy_ssh_proxy_node: ...@@ -196,10 +203,17 @@ deploy_ssh_proxy_node:
ansible-playbook -c local -i 127.0.0.1, ansible/cheaha.yml | tee -a /tmp/ansible.log ansible-playbook -c local -i 127.0.0.1, ansible/cheaha.yml | tee -a /tmp/ansible.log
rm -rf /tmp/${CI_PROJECT_NAME} rm -rf /tmp/${CI_PROJECT_NAME}
EOF EOF
- >
export SSH_PROXY_INSTANCE_PORT=$(openstack port create
-c id -f value --network $INTERNALNET
--fixed-ip subnet=$INTERNALNET_SN,ip-address=$INTERNALNET_IP
--disable-port-security
${SSH_PROXY_INSTANCE_NAME}_internal_port)
- > - >
export SSH_PROXY_INSTANCE_ID=$(openstack server create export SSH_PROXY_INSTANCE_ID=$(openstack server create
-c id -f value --image $SSH_PROXY_IMAGE_ID -c id -f value --image $SSH_PROXY_IMAGE_ID
--network $PROXY_NETWORK --network $PROXY_NETWORK
--port $SSH_PROXY_INSTANCE_PORT
--security-group allow-ssh --security-group allow-ssh
--user-data user_data.txt --user-data user_data.txt
--flavor $INSTANCE_FLAVOR --flavor $INSTANCE_FLAVOR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment