diff --git a/managed/src/main/java/com/yugabyte/yw/commissioner/tasks/CreateSupportBundle.java b/managed/src/main/java/com/yugabyte/yw/commissioner/tasks/CreateSupportBundle.java index 9b4970b39fe..63f51bf19a1 100644 --- a/managed/src/main/java/com/yugabyte/yw/commissioner/tasks/CreateSupportBundle.java +++ b/managed/src/main/java/com/yugabyte/yw/commissioner/tasks/CreateSupportBundle.java @@ -1,5 +1,7 @@ package com.yugabyte.yw.commissioner.tasks; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.node.ObjectNode; import com.google.common.base.Throwables; import com.google.inject.Inject; import com.typesafe.config.Config; @@ -121,11 +123,11 @@ public Path generateBundle(SupportBundle supportBundle) // add the supportBundle metadata into the bundle try { + JsonNode sbJson = Json.toJson(supportBundle); + ((ObjectNode) sbJson).remove("status"); + ((ObjectNode) sbJson).remove("sizeInBytes"); supportBundleUtil.saveMetadata( - customer, - bundlePath.toAbsolutePath().toString(), - Json.toJson(supportBundle), - "manifest.json"); + customer, bundlePath.toAbsolutePath().toString(), sbJson, "manifest.json"); } catch (Exception e) { // Log the error and continue with the rest of support bundle collection. log.error("Error occurred while collecting support bundle manifest json", e);