newsapps / beeswithmachineguns

A utility for arming (creating) many bees (micro EC2 instances) to attack (load test) targets (web applications).
http://apps.chicagotribune.com/
MIT License
6.45k stars 633 forks source link

Trouble setting up bees with machineguns #96

Open henk-scheepers opened 10 years ago

henk-scheepers commented 10 years ago

I'm trying to setup bees with machine guns to load test a server. I've followed all the steps explained in the Readme.

As far as I can tell, it is finding my .pem file and my boto config, but when I try the following command: $ bees up -s 1 -g public -k loadtest

I get the following error: The security group 'public' does not exist in default VPC 'vpc-934dc8f6'

The strange thing is that my security group does not have any group with a vpc-id of 'vpc-934dc8f6' Am I missing something? Any help would be much appreciated.

lcc2207 commented 10 years ago

Having the same issue.

lcc2207 commented 10 years ago

My issue was the pip/easy_install repos appear to have an older version of bees that does not support subnets.

apaladino commented 9 years ago

I'm having the same issue. I admit that i'm fairly new to AWS. I created a public security group and a ssh rule to open port 22. I created a keypair and copied it to my ~/.ssh directory. Then when I try to run the command to start up bees, it keeps telling me that the public does not exist. Any help for a NOOB?

$ bees up -s 4 -g public -k dev-bees Connecting to the hive. Attempting to call up 4 bees. Traceback (most recent call last): File "/usr/local/bin/bees", line 5, in pkg_resources.run_script('beeswithmachineguns==0.1.4', 'bees') File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 489, in run_script self.require(requires)[0].run_script(script_name, ns) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1214, in run_script exec script_code in namespace, namespace File "/Library/Python/2.7/site-packages/beeswithmachineguns-0.1.4-py2.7.egg/EGG-INFO/scripts/bees", line 6, in

File "build/bdist.macosx-10.8-intel/egg/beeswithmachineguns/main.py", line 170, in main File "build/bdist.macosx-10.8-intel/egg/beeswithmachineguns/main.py", line 137, in parse_options File "build/bdist.macosx-10.8-intel/egg/beeswithmachineguns/bees.py", line 131, in up File "/Library/Python/2.7/site-packages/boto-2.27.0-py2.7.egg/boto/ec2/connection.py", line 935, in run_instances verb='POST') File "/Library/Python/2.7/site-packages/boto-2.27.0-py2.7.egg/boto/connection.py", line 1177, 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"?>

InvalidGroup.NotFoundThe security group 'public' does not exist1e1419a5-06ae-4577-8bf4-250020802b33