GoogleCloudPlatform / PerfKitBenchmarker

PerfKit Benchmarker (PKB) contains a set of benchmarks to measure and compare cloud offerings. The benchmarks use default settings to reflect what most users will see. PerfKit Benchmarker is licensed under the Apache 2 license terms. Please make sure to read, understand and agree to the terms of the LICENSE and CONTRIBUTING files before proceeding.
https://googlecloudplatform.github.io/PerfKitBenchmarker/
Apache License 2.0
1.89k stars 480 forks source link

alicloud: resource type is not supported #1557

Open ellerbrock opened 6 years ago

ellerbrock commented 6 years ago

Hi,

i tried now too long to get it fixed. even updating

https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/providers/alicloud/ali_virtual_machine.py#L72

DEFAULT_IMAGE = "ubuntu_16_0402_64_20G_alibase_20171227.vhd",

https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/providers/alicloud/ali_virtual_machine.py#L81

IMAGE_NAME_FILTER = 'ubuntu_16_0402_64_40G_alibase*'

to the latest version did not help.

any idea whats the problem here?

./pkb.py --cloud=AliCloud --benchmarks=iperf,ping --zones=eu-central-1a

2018-01-12 17:45:50,269 1c0f77fa Thread-11 iperf(1/2) INFO     Ran aliyuncli ecs CreateInstance --InstanceName perfkit-1c0f77fa --RegionId eu-central-1 --ZoneId eu-central-1a --ImageId ubuntu_14_0405_64_40G_alibase_20170711.vhd --InstanceType ecs.s2.large --SecurityGroupId sg-gw81w3dek0o8yjzwdtb3 --Password GoZfscYCzD3054726918 --VpcId vpc-gw8c9uah05xo3lzk24uvx --VSwitchId vsw-gw8wb2d5ysclm7upmdbvk. Got return code (1).
STDOUT: {
    "Message": "This resource type is not supported; please try other resource types.",
    "Code": "InvalidResourceType.NotSupported"
}
Detail of Server Exception:

HTTP Status: 403 Error:InvalidResourceType.NotSupported This resource type is not supported; please try other resource types. RequestID: C4977D18-9F3C-4DAF-B1CA-F891A925F982
gareth-ferneyhough commented 6 years ago

Not sure what is going on here, and we do not have access to alicloud in order to test. However, that error message is from the alicloud cli, not PKB, so I would try to run the aliyuncli ecs CreateInstance command manually until you get it to work. It might not like this image you're trying to use?