Skip to content

Commit be597c3

Browse files
committed
[PLAT-18819] Create YBA backup task with platform hostname/ip
Summary: Replace placeholder `platform_ip` string with actual platform hostname/ip. Test Plan: Create continuous backup config and check the YBA backup task. Verify the actual platform ip is shown under `Performed on` in the task table. Before and after the change: {F409460} Reviewers: muthu, hzare, nsingh Reviewed By: hzare, nsingh Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D47864
1 parent 68654d4 commit be597c3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

managed/src/main/java/com/yugabyte/yw/commissioner/tasks/CreateContinuousBackup.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
package com.yugabyte.yw.commissioner.tasks;
1212

13-
import static com.yugabyte.yw.common.Util.NULL_UUID;
1413
import static play.mvc.Http.Status.INTERNAL_SERVER_ERROR;
1514

1615
import com.google.inject.Inject;
@@ -23,6 +22,7 @@
2322
import com.yugabyte.yw.common.ShellResponse;
2423
import com.yugabyte.yw.common.StorageUtil;
2524
import com.yugabyte.yw.common.StorageUtilFactory;
25+
import com.yugabyte.yw.common.Util;
2626
import com.yugabyte.yw.common.ha.PlatformReplicationHelper;
2727
import com.yugabyte.yw.common.ha.PlatformReplicationManager;
2828
import com.yugabyte.yw.forms.AbstractTaskParams;
@@ -103,12 +103,11 @@ public void runScheduledBackup(
103103
ScheduleTask.create(taskUUID, schedule.getScheduleUUID());
104104
CustomerTask.create(
105105
customer,
106-
NULL_UUID,
106+
Util.NULL_UUID,
107107
taskUUID,
108108
CustomerTask.TargetType.Yba,
109109
CustomerTask.TaskType.CreateYbaBackup,
110-
// TODO: Actually get platform IP
111-
"platform_ip");
110+
Util.getYwHostnameOrIP());
112111
log.info("Submitted continuous yba backup creation with task uuid = {}.", taskUUID);
113112
}
114113

0 commit comments

Comments
 (0)