fix bug 1644: network config does not take effect
bug 1667: meta db is not updated if any vm provision failed