e78fdb3e483936d6f63afa18e1c02669bdf68bed,perfkitbenchmarker/providers/gcp/gce_placement_group.py,GcePlacementGroup,_Create,#GcePlacementGroup#,99
Before Change
cmd.flags.update(placement_policy)
cmd.Issue()
def _Exists(self):
See base class.
cmd = gcp_util.GcloudCommand(self, "compute", "resource-policies",
After Change
cmd.flags.update(placement_policy)
_, stderr, retcode = cmd.Issue(raise_on_failure=False)
if retcode and "Quota "RESOURCE_POLICIES" exceeded" in stderr:
raise errors.Benchmarks.QuotaFailure(stderr)
elif retcode:
raise errors.Resource.CreationError(
"Failed to create placement group: %s return code: %s" %
(stderr, retcode))
def _Exists(self):
See base class.
cmd = gcp_util.GcloudCommand(self, "compute", "resource-policies",
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: e78fdb3e483936d6f63afa18e1c02669bdf68bed
Time: 2020-09-29
Author: ssabhaya@google.com
File Name: perfkitbenchmarker/providers/gcp/gce_placement_group.py
Class Name: GcePlacementGroup
Method Name: _Create
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: a2fddd6b3c2cefcd3ec7e232b3cb0b998fee3ac8
Time: 2020-09-10
Author: pclay@google.com
File Name: perfkitbenchmarker/providers/gcp/gcp_dpb_dataproc.py
Class Name: GcpDpbDataproc
Method Name: _Create
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: e78fdb3e483936d6f63afa18e1c02669bdf68bed
Time: 2020-09-29
Author: ssabhaya@google.com
File Name: perfkitbenchmarker/providers/gcp/gce_placement_group.py
Class Name: GcePlacementGroup
Method Name: _Create
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 1297093cb5799948c5834e77f92f59f020575adb
Time: 2019-10-16
Author: spencerkim@google.com
File Name: perfkitbenchmarker/providers/gcp/gce_network.py
Class Name: GceFirewallRule
Method Name: _Create