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()) {