If I try to change PXE network vi bootstrap_admin_node.sh IP address is changed, but I have problem with iptables rules:
The first IP address Fuel node was 10.0.10.2. I want to change it on 10.0.20.2.After the script finishes I get the following:
[root@fuel ~]# iptables-save | grep 10.
:FORWARD ACCEPT [13938957:12454071083]
-A FORWARD -d 172.17.0.10/32 ! -i docker0 -o docker0 -p tcp -m tcp --dport 80 -j ACCEPT
-A FORWARD -d 172.17.0.10/32 ! -i docker0 -o docker0 -p udp -m udp --dport 69 -j ACCEPT
-A FORWARD -d 172.17.0.10/32 ! -i docker0 -o docker0 -p udp -m udp --dport 53 -j ACCEPT
-A FORWARD -d 172.17.0.10/32 ! -i docker0 -o docker0 -p tcp -m tcp --dport 443 -j ACCEPT
:POSTROUTING ACCEPT [18:1080]
-A POSTROUTING -s 10.0.20.0/24 -j MASQUERADE
-A POSTROUTING -s 10.0.10.0/24 -p tcp -m tcp --dport 8080 -j ACCEPT
-A POSTROUTING -s 10.0.10.0/24 -p tcp -m tcp --dport 8000 -j ACCEPT
-A POSTROUTING -s 10.0.10.0/24 -p udp -m udp --dport 514 -j ACCEPT
-A POSTROUTING -s 10.0.10.0/24 -p tcp -m tcp --dport 514 -j ACCEPT
-A POSTROUTING -s 10.0.10.0/24 -j MASQUERADE
-A DOCKER -p tcp -m tcp --dport 443 -j DNAT --to-destination 172.17.0.10:443
-A DOCKER -p udp -m udp --dport 53 -j DNAT --to-destination 172.17.0.10:53
-A DOCKER -p udp -m udp --dport 69 -j DNAT --to-destination 172.17.0.10:69
-A DOCKER -p tcp -m tcp --dport 80 -j DNAT --to-destination 172.17.0.10:80
[root@fuel ~]# ip a| grep 10.
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
inet 10.0.20.2/24 brd 10.0.20.255 scope global eth0
Denis, modifying admin network after deployment is a bit more complex. It looks like the best way to manage this is via Puppet and using a comment identifier to manage these rules. It shouldn't be so difficult to modify these rules manually for a current deployment, but to do it automatically is a little more tricky. I will try to submit a proper patch next week.