Skip to content

Commit 11d27a5

Browse files
systemvm: vpc router fix /etc/network/interfaces is misconfigured (#6435)
This PR fixes that the /etc/network/interfaces is misconfigured in VPC VR startup, which causes VPC VR to be stuck for 1 minute and continue working. The issue is because ifup eth0 and ifdown eth0 do not work when /etc/network/interfaces is not correct in VPC VR.
1 parent b7f845a commit 11d27a5

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

systemvm/debian/opt/cloud/bin/setup/init.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ setup_interface_sshd() {
188188
setup_sshd $ETH1_IP "eth1"
189189

190190
elif [ "$TYPE" == "vpcrouter" ]; then
191+
init_interfaces "eth0"
191192
setup_interface "0" $ETH0_IP $ETH0_MASK $GW
192193
setup_sshd $ETH0_IP "eth0"
193194

systemvm/debian/opt/cloud/bin/setup/vpcrouter.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ setup_vpcrouter() {
2525
grep -q $NAME /etc/hosts || echo "127.0.0.1 $NAME" >> /etc/hosts;
2626
fi
2727

28-
cat > /etc/network/interfaces << EOF
29-
auto lo eth0
30-
iface lo inet loopback
31-
EOF
32-
3328
echo $NAME > /etc/hostname
3429
echo 'AVAHI_DAEMON_DETECT_LOCAL=0' > /etc/default/avahi-daemon
3530
hostnamectl set-hostname $NAME

0 commit comments

Comments
 (0)