Move v2 os-net-config call to where it is actually available
Until the undercloud is installed os-net-config isn't there.
This commit is contained in:
parent
44878a7079
commit
8e175252d6
@ -22,18 +22,6 @@ echo 'git-tripleo-ci/scripts/tripleo.sh $@' >> tripleo.sh
|
|||||||
chmod +x tripleo.sh
|
chmod +x tripleo.sh
|
||||||
git clone https://github.com/cybertron/openstack-virtual-baremetal
|
git clone https://github.com/cybertron/openstack-virtual-baremetal
|
||||||
|
|
||||||
cat >> /tmp/eth2.cfg <<EOF_CAT
|
|
||||||
network_config:
|
|
||||||
- type: interface
|
|
||||||
name: eth2
|
|
||||||
use_dhcp: false
|
|
||||||
addresses:
|
|
||||||
- ip_netmask: 10.0.0.1/24
|
|
||||||
- ip_netmask: 2001:db8:fd00:1000::1/64
|
|
||||||
EOF_CAT
|
|
||||||
sudo os-net-config -c /tmp/eth2.cfg -v
|
|
||||||
sudo iptables -A POSTROUTING -s 10.0.0.0/24 ! -d 10.0.0.0/24 -j MASQUERADE -t nat
|
|
||||||
|
|
||||||
export OVERCLOUD_PINGTEST_OLD_HEATCLIENT=0
|
export OVERCLOUD_PINGTEST_OLD_HEATCLIENT=0
|
||||||
export TRIPLEOSH=/home/centos/tripleo.sh
|
export TRIPLEOSH=/home/centos/tripleo.sh
|
||||||
|
|
||||||
@ -54,6 +42,19 @@ EOF
|
|||||||
# Workaround until https://review.openstack.org/#/c/475533 merges
|
# Workaround until https://review.openstack.org/#/c/475533 merges
|
||||||
export OVB=0
|
export OVB=0
|
||||||
$TRIPLEOSH --undercloud
|
$TRIPLEOSH --undercloud
|
||||||
|
|
||||||
|
cat >> /tmp/eth2.cfg <<EOF_CAT
|
||||||
|
network_config:
|
||||||
|
- type: interface
|
||||||
|
name: eth2
|
||||||
|
use_dhcp: false
|
||||||
|
addresses:
|
||||||
|
- ip_netmask: 10.0.0.1/24
|
||||||
|
- ip_netmask: 2001:db8:fd00:1000::1/64
|
||||||
|
EOF_CAT
|
||||||
|
sudo os-net-config -c /tmp/eth2.cfg -v
|
||||||
|
sudo iptables -A POSTROUTING -s 10.0.0.0/24 ! -d 10.0.0.0/24 -j MASQUERADE -t nat
|
||||||
|
|
||||||
$TRIPLEOSH --overcloud-images
|
$TRIPLEOSH --overcloud-images
|
||||||
$TRIPLEOSH --register-nodes --introspect-nodes
|
$TRIPLEOSH --register-nodes --introspect-nodes
|
||||||
sleep 60
|
sleep 60
|
||||||
|
Loading…
Reference in New Issue
Block a user