diff --git a/compute/src/main/java/org/zstack/compute/host/HostBase.java b/compute/src/main/java/org/zstack/compute/host/HostBase.java index 919d92631fc..2f105c947e6 100755 --- a/compute/src/main/java/org/zstack/compute/host/HostBase.java +++ b/compute/src/main/java/org/zstack/compute/host/HostBase.java @@ -1099,6 +1099,7 @@ private void updateHostConnectedTime(HostStatus hostStatus) { creator.setTagByTokens(Collections.singletonMap(token, connectedTime)); creator.inherent = false; creator.recreate = false; + creator.ignoreIfExisting = true; creator.create(); return; } diff --git a/conf/errorElaborations/Elaboration.json b/conf/errorElaborations/Elaboration.json index ec236629bbe..c89e48e713d 100644 --- a/conf/errorElaborations/Elaboration.json +++ b/conf/errorElaborations/Elaboration.json @@ -803,7 +803,7 @@ "category": "PS", "code": "1000", "method": "distance", - "regex": "failed to detach data volume[uuid:%s, installPath:%s] from vm[uuid:%s, name:%s] on kvm host[uuid:%s, ip:%s], because unable to detach the volume from the vm;it's still attached after 5 seconds", + "regex": "failed to detach data volume[uuid:%s, installPath:%s] from vm[uuid:%s, name:%s] on kvm host[uuid:%s, ip:%s], because unable to detach the volume from the vm;it's still attached after \\d+ seconds", "message_cn": "由于云主机操作系统限制可能会导致卸载云盘失败,请尝试对云主机关机后再次卸载。", "message_en": "Detaching volume may fail due to limitations of the VM operating system. Please try again after VM shutdown." },