From 12dac071a5ca9d788299a60b24213d1b9cea5deb Mon Sep 17 00:00:00 2001 From: bayuzhen Date: Fri, 24 May 2024 12:04:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ims/service/transporter/vendor/VmwareTransporter.java | 1 + .../java/com/bocloud/ims/service/utils/SyncVmwareUtils.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/bocloud.ims.service/src/main/java/com/bocloud/ims/service/transporter/vendor/VmwareTransporter.java b/bocloud.ims.service/src/main/java/com/bocloud/ims/service/transporter/vendor/VmwareTransporter.java index 612cfae..098631c 100644 --- a/bocloud.ims.service/src/main/java/com/bocloud/ims/service/transporter/vendor/VmwareTransporter.java +++ b/bocloud.ims.service/src/main/java/com/bocloud/ims/service/transporter/vendor/VmwareTransporter.java @@ -706,6 +706,7 @@ public class VmwareTransporter implements ResourceTransporter { for (CloudServer cloudServer : cloudServers) { CloudServer server = cloudServerRepository.getByInstanceId(cloudServer.getInstanceId()); VmResourcePool vmResourcePool = resourcePoolRepository.queryByPoolVal(cloudServer.getResPoolVal(), vdcId); + log.info("虚拟机信息:" + JSONObject.toJSONString(server)); if (null != vmResourcePool && null != server) { server.setResPoolId(vmResourcePool.getId()); cloudServerRepository.update(server); diff --git a/bocloud.ims.service/src/main/java/com/bocloud/ims/service/utils/SyncVmwareUtils.java b/bocloud.ims.service/src/main/java/com/bocloud/ims/service/utils/SyncVmwareUtils.java index 4dffe8a..0334e7e 100644 --- a/bocloud.ims.service/src/main/java/com/bocloud/ims/service/utils/SyncVmwareUtils.java +++ b/bocloud.ims.service/src/main/java/com/bocloud/ims/service/utils/SyncVmwareUtils.java @@ -406,6 +406,7 @@ public class SyncVmwareUtils { } log.info("更新旧虚拟机:{}", oldServer.getId()); + log.info("虚拟机信息:" + JSONObject.toJSONString(oldServer)); cloudServerRepository.update(oldServer); log.info("更新旧虚拟机完成:{}", oldServer.getId()); Long serverId = oldServer.getId(); @@ -694,6 +695,7 @@ public class SyncVmwareUtils { cloudServer.setResourceId(IDFactory.instance().uuid()); cloudServer.setRecycle(false); cloudServer.setCatalog(Catalog.Manager); + log.info("虚拟机信息:" + JSONObject.toJSONString(cloudServer)); cloudServerRepository.save(cloudServer); Long serverId = cloudServer.getId(); if (cloudServer.getIsTemplate()) {