3d95ae5cd11987e4c963baf4da374b1fa139b807,perfkitbenchmarker/providers/openstack/os_virtual_machine.py,OpenStackVirtualMachine,_GetSchedulerHints,#OpenStackVirtualMachine#,148
Before Change
if FLAGS.openstack_scheduler_policy != NONE:
group_name = "perfkit_%s" % FLAGS.run_uri
try:
group = self.client.server_groups.findall(name=group_name)[0]
except IndexError:
group = self.client.server_groups.create(
policies=[FLAGS.openstack_scheduler_policy],
name=group_name)
After Change
if FLAGS.openstack_scheduler_policy == NONE:
return None
with self._lock:
group_name = "perfkit_server_group_%s" % FLAGS.run_uri
hint_temp = "group=%s"
if self.zone in self.created_server_group_dict:
hint = hint_temp % self.created_server_group_dict[self.zone]["id"]
return hint
server_group = self._CreateServerGroup(group_name)
self.server_group_id = server_group["id"]
self.created_server_group_dict[self.zone] = server_group
if self.zone in self.deleted_server_group_set:
self.deleted_server_group_set.remove(self.zone)
return hint_temp % server_group["id"]
def _CreateServerGroup(self, group_name):
nova_cmd = [FLAGS.openstack_nova_path, "server-group-create",
group_name, FLAGS.openstack_scheduler_policy]
stdout, _, _ = vm_util.IssueCommand(nova_cmd, suppress_warning=True)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 3d95ae5cd11987e4c963baf4da374b1fa139b807
Time: 2016-06-29
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Class Name: OpenStackVirtualMachine
Method Name: _GetSchedulerHints
Project Name: osmr/imgclsmob
Commit Name: d9f6e28568406c162b79f582ae037a89a3118d26
Time: 2021-02-16
Author: osemery@gmail.com
File Name: prep_model.py
Class Name:
Method Name: post_process
Project Name: Microsoft/MMdnn
Commit Name: e3dbf30b449033ee584159dc0e462741d4e0e15b
Time: 2020-07-31
Author: 50827462+XiaoXYe@users.noreply.github.com
File Name: mmdnn/conversion/pytorch/pytorch_graph.py
Class Name: PytorchGraph151
Method Name: extractgraph