2015-10-14 47 views
1

我試圖用beeswithmachineguns進行loadtesting網站,但收效甚微。有一個similar post但我收到的錯誤稍有不同。與機槍使用蜜蜂時出錯

我使用以下來啓動蜜蜂。

bees up -s 1 -k Bees-West -g SWARM 

我正的錯誤是有關的groupId是空的,但我傳遞的是價值與-g羣......我這樣想着。我的設置使用us-west-2區域,在鏈接文章中提到的我的.boto文件中。

Connecting to the hive. 
Attempting to call up 1 bees. 
Traceback (most recent call last): 
    File "/usr/local/bin/bees", line 5, in <module> 
    main.main() 
    File "/Library/Python/2.7/site-packages/beeswithmachineguns/main.py", line 127, in main parse_options() 
    File "/Library/Python/2.7/site-packages/beeswithmachineguns/main.py", line 111, in parse_options 
    bees.up(options.servers, options.group, options.zone, options.instance, options.login, options.key) 
    File "/Library/Python/2.7/site-packages/beeswithmachineguns/bees.py", line 104, in up 
    placement=zone) 
    File "/Library/Python/2.7/site-packages/boto/ec2/connection.py", line 618, in run_instances 
    return self.get_object('RunInstances', params, Reservation, verb='POST') 
    File "/Library/Python/2.7/site-packages/boto/connection.py", line 699, in get_object 
    raise self.ResponseError(response.status, response.reason, body) 
boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request 
<?xml version="1.0" encoding="UTF-8"?> 
<Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value() for parameter groupId is invalid. The value cannot be empty</Message></Error></Errors><RequestID>bd1c6bcb-875f-4294-af64-84853b5b258a</RequestID></Response> 
+0

您需要確保使用子網(-v)和安全組(-g)的正確組合。 – jarmod

+0

實例蜜蜂是否利用我已經安裝的蜜蜂,或者它們是動態創建的? –

+0

我有一個實例在我們西-2a,但我試圖運行蜜蜂時得到的錯誤是「無效可用區:[us-west-2a]」 –

回答

0

能否請您確保小組「一窩蜂」是目前在AWS在左邊副作用點擊Ec2->安全組>檢查組名。