diff --git a/nodepool/scripts/configure_mirror.sh b/nodepool/scripts/configure_mirror.sh index 004d6d99f0..2c22bba814 100755 --- a/nodepool/scripts/configure_mirror.sh +++ b/nodepool/scripts/configure_mirror.sh @@ -16,13 +16,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Ensure that we can talk to ourselves over any of our known IPs -# and that our related nodes can talk to use from all of their -# known IPs -for ip in $(cat /etc/nodepool/primary_node /etc/nodepool/sub_nodes /etc/nodepool/primary_node_private /etc/nodepool/sub_nodes_private | sort -u); do - sudo iptables -I openstack-INPUT 1 -s $ip -j ACCEPT -done - source /etc/nodepool/provider # Generate the AFS Slug from the host system. diff --git a/nodepool/scripts/multinode_setup.sh b/nodepool/scripts/multinode_setup.sh index e0d654ce7b..704351140a 100755 --- a/nodepool/scripts/multinode_setup.sh +++ b/nodepool/scripts/multinode_setup.sh @@ -18,6 +18,10 @@ export PATH=$PATH:/usr/local/sbin:/usr/sbin +for ip in $(cat /etc/nodepool/primary_node /etc/nodepool/sub_nodes /etc/nodepool/primary_node_private /etc/nodepool/sub_nodes_private | sort -u); do + sudo iptables -I openstack-INPUT 1 -s $ip -j ACCEPT +done + echo "" >> /home/jenkins/.ssh/authorized_keys cat /etc/nodepool/id_rsa.pub >> /home/jenkins/.ssh/authorized_keys echo "" >> /home/jenkins/.ssh/authorized_keys