6a3988c73af1b0fc8c9a880eb26f8606ebd32ad2,perfkitbenchmarker/rackspace/rackspace_virtual_machine.py,RackspaceVirtualMachine,_Exists,#RackspaceVirtualMachine#,186
Before Change
if stdout.strip() == "":
return False
else:
attrs = stdout.split("\n")
for attr in attrs[3:-2]:
pv = [v.strip() for v in attr.split("|")
if v != "|" and v != ""]
if pv[0] == "OS-EXT-STS:task_state" and pv[1] == "deleting":
time.sleep(10)
self._Exists()
else:
return True
return True
def CreateScratchDisk(self, disk_spec):
Create a VM"s scratch disk.
After Change
def _Exists(self):
Returns true if the VM exists.
env = os.environ.copy()
env.update(util.GetDefaultRackspaceNovaEnv(self.zone))
getinstance_cmd = [FLAGS.nova_path, "show", self.name]
stdout, stderr, _ = vm_util.IssueCommand(getinstance_cmd, env=env)
if stdout.strip() == "":
return False
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 6a3988c73af1b0fc8c9a880eb26f8606ebd32ad2
Time: 2015-07-01
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/rackspace/rackspace_virtual_machine.py
Class Name: RackspaceVirtualMachine
Method Name: _Exists
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 6a3988c73af1b0fc8c9a880eb26f8606ebd32ad2
Time: 2015-07-01
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/rackspace/rackspace_virtual_machine.py
Class Name: RackspaceVirtualMachine
Method Name: _Exists
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 204147309d829f5a1d4ac499acfd7941dad21523
Time: 2016-03-17
Author: wonderfly@google.com
File Name: perfkitbenchmarker/publisher.py
Class Name: DefaultMetadataProvider
Method Name: AddMetadata
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: f8d8b3f1a9d8c315977cfbf53785cbbeaf8be94c
Time: 2016-03-10
Author: wonderfly@google.com
File Name: perfkitbenchmarker/publisher.py
Class Name: DefaultMetadataProvider
Method Name: AddMetadata