0d646d103590b367c28d1e9588edca610b361e1f,perfkitbenchmarker/providers/rackspace/rackspace_disk.py,RackspaceRemoteDisk,_Create,#RackspaceRemoteDisk#,103
Before Change
str(self.disk_size)]
stdout, _, _ = vm_util.IssueCommand(create_cmd, env=nova_env)
volume = util.ParseNovaTable(stdout)
if "id" in volume and volume["id"]:
self.id = volume["id"]
else:
raise errors.Error("There was a problem when creating a volume.")
def _Delete(self):
Deletes the volume.
nova_env = os.environ.copy()
nova_env.update(util.GetDefaultRackspaceNovaEnv(self.zone))
After Change
self.id = None
def _Create(self):
cmd = util.RackCLICommand(self, "block-storage", "volume", "create")
cmd.flags["size"] = self.disk_size
cmd.flags["name"] = self.name
cmd.flags["volume-type"] = REMOTE_TYPES_TRANSLATION[self.media]
stdout, stderr, _ = cmd.Issue()
resp = json.loads(stdout)
self.id = resp["ID"]
def _Delete(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 0d646d103590b367c28d1e9588edca610b361e1f
Time: 2016-02-12
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/providers/rackspace/rackspace_disk.py
Class Name: RackspaceRemoteDisk
Method Name: _Create
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 0d646d103590b367c28d1e9588edca610b361e1f
Time: 2016-02-12
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/providers/rackspace/rackspace_disk.py
Class Name: RackspaceRemoteDisk
Method Name: _Create
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 00f9f416594b404c02f87cec85d405cad341d4ad
Time: 2016-06-29
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/os_network.py
Class Name: OpenStackFirewall
Method Name: AllowICMP
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 00f9f416594b404c02f87cec85d405cad341d4ad
Time: 2016-06-29
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/os_network.py
Class Name: OpenStackFirewall
Method Name: AllowPort