Skip to content

Commit c361e24

Browse files
jacklacey11copybara-github
authored andcommitted
Add VM Create Operation Name to resource metadata instead of cluster_boot sample metadata.
PiperOrigin-RevId: 720214327
1 parent b1e40f3 commit c361e24

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

perfkitbenchmarker/linux_benchmarks/cluster_boot_benchmark.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,6 @@ def GetTimeToBoot(vms):
271271
'num_vms': len(vms),
272272
'os_type': vm.OS_TYPE,
273273
'create_delay_sec': '%0.1f' % create_delay_sec,
274-
'create_operation_name': (
275-
vm.create_operation_name if vm.create_operation_name else 'N/A'
276-
),
277274
}
278275

279276
# TIME TO CREATE ASYNC RETURN

perfkitbenchmarker/virtual_machine.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,8 @@ def GetResourceMetadata(self):
878878
result['ip_address'] = self.ip_address
879879
if pkb_flags.RECORD_PROCCPU.value and self.cpu_version:
880880
result['cpu_version'] = self.cpu_version
881+
if self.create_operation_name is not None:
882+
result['create_operation_name'] = self.create_operation_name
881883
return result
882884

883885
def SimulateMaintenanceEvent(self):

tests/linux_benchmarks/cluster_boot_benchmark_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ def testGetTimeToBoot(self):
212212
'num_vms': 1,
213213
'os_type': 'ubuntu2204',
214214
'create_delay_sec': '0.0',
215-
'create_operation_name': 'N/A',
216215
},
217216
timestamp=1678147200.0,
218217
)

0 commit comments

Comments
 (0)