Beispiel #1
0
 def __init__(self):
     self.ec2_cfg = ec2_config.EC2Config(aws_section)
     self.ec2_conn = plivo_utils.get_ec2_connection()
     
     self.current_count = len(self.ec2_conn.get_all_instance_status())
     self.new_count = 0
     self.refresh_flag = False
     
     v_list = self.ec2_conn.get_all_instance_status()
     self.global_vm_list = []
     for vm in v_list:
         self.global_vm_list.append(vm.id)
Beispiel #2
0
 def __init__(self):
     # Getting EC2 credentials
     print "Into WebsiteSanity class init"
     self.ec2_cfg = ec2_config.EC2Config(aws_section)
     self.ec2_conn = plivo_utils.get_ec2_connection()
     
     # Getting the key file
     self.private_key_file = os.path.join(os.path.abspath("../"),"data","key_file.pem")
     
     # Getting server IP's
     self.web_srvr_ip = plivo_utils.read_config(website_section, "WEB_SRVR_IP")
     self.app_srvr_ip = plivo_utils.read_config(website_section, "APP_SRVR_IP")
     self.dbase_srvr_ip = plivo_utils.read_config(website_section, "DBASE_SRVR_IP")
     
     #Getting server ID's
     self.web_srvr_id = plivo_utils.read_config(website_section, "WEB_SRVR_ID")
     self.app_srvr_id = plivo_utils.read_config(website_section, "APP_SRVR_ID")
     self.dbase_srvr_id = plivo_utils.read_config(website_section, "DBASE_SRVR_ID")
     print "Out of WebsiteSanity init"