Skip to content

Commit 1e24892

Browse files
ustcweizhousudison
authored andcommitted
If filesystem in virtual router is in read-only state, reports error to
commands send to virtual router, instead of keeping silence. Test: Before change: (1) Acquire IP. always in "Allocating" state. (2) EnableStaticNat, the result is success(it is incorrect). (3) DisableStaticNat, will get error message.. This is correct. (4) Add Firewalls. always in "Adding" state. (5) The AgentManager report statistics every 60 minutes(normally it should be router.stats.interval=5 minutes). After change: (1) Acquire IP, will get error message. (2) EnableStaticNat, will get error message. (3) DisableStaticNat, will get error message. (4) Add Firewalls, will get error message. But the firewall rules are saved in database. (5) The AgentManager report statistics every 5 minutes, except the network with read-only FS virtual router.
1 parent 03b8181 commit 1e24892

File tree

1 file changed

+5
-1
lines changed
  • patches/systemvm/debian/config/root

1 file changed

+5
-1
lines changed

patches/systemvm/debian/config/root/func.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ getLockFile() {
4242

4343
psline=`ps u $$`
4444
echo $psline > $__LOCKFILE
45-
45+
if [ ! -e $__LOCKFILE ]
46+
then
47+
return
48+
fi
49+
4650
for i in `seq 1 $(($__TIMEOUT * 10))`
4751
do
4852
currlock=`ls -tr /tmp/$1-*.lock | head -n1`

0 commit comments

Comments
 (0)