def main(): # load vars from parser args = parse_args() # Determine local or remote environment = get_environment(args.BIGIQ_ADDR, username=args.DCD_USERNAME, pwd=args.DCD_PWD) # Test authentication? util.poll_for_services_available(environment['address'], auth=environment['auth']) util.complete() # Wait for DCD available and assume basic auth is enabled util.poll_for_system_setup(args.DCD_IP_ADDRESS, auth=requests.auth.HTTPBasicAuth( args.DCD_USERNAME, args.DCD_PWD), timeout=args.TIMEOUT_SEC) util.complete() # Verify that device is not added already util.print_partial("Checking that device is not already registered...") check_that_device_not_already_registered(environment, args.DCD_IP_ADDRESS) util.complete() # post to add node util.print_partial("Adding node...") node_uuid = add_node(environment, args.DCD_IP_ADDRESS, args.DCD_TRANSPORT_ADDRESS, args.DCD_USERNAME, args.DCD_PWD) util.complete() # poll add until success or failure util.print_partial("Waiting for result...") poll_for_result(environment, node_uuid) util.complete()
def main(): args = parse_args() util.print_partial("Waiting for SSG to be present...") poll_for_ssg_present() util.complete() util.print_partial("Getting SSG reference...") ssgs = get_ssg_reference() util.complete() # Let this reference be unsafe and tacky so that this fails loudly if the SSG is not present ssg_id = ssgs["items"][0]["id"] util.print_partial("Waiting for SSG to be ready...") poll_for_ssg_ready(ssg_id) util.complete() time.sleep(180) # Three minute wait for SSG to settle down util.print_partial("Getting ALB DNS Name reference...") alb_dns_name = getDnsName(args) util.complete() #TODO: can delete file here azureutils.deleteLockFile() util.print_partial("Deploying application...") deploy_application(ssg_id, args.NODE_IP, alb_dns_name) util.complete()
def main(): util.kill_ssl_warnings(logging, urllib3) args = parse_args() verify_services_are_valid(args.SERVICES) if args.LIST_SERVICES: print_service_name_translation() sys.exit(0) return if not args.SERVICES: print("No services specified") sys.exit(0) return env = util.get_environment(args.BIGIQ_ADDR, username=args.BIGIQ_USERNAME, pwd=args.BIGIQ_PWD) util.poll_for_services_available(env["address"], auth=env["auth"], timeout=360) util.complete() util.print_partial("Retrieving DCD identifier...") dcd_self_link = get_dcd_device_reference(env, args.DCD_IP_ADDRESS) util.complete() util.print_partial("Activating services: " + string.join(args.SERVICES, ", ") + "...") activate_services(env, args.DCD_IP_ADDRESS, dcd_self_link, args.SERVICES) util.complete()
def main(): args = parse_args() util.print_partial("Waiting for SSG to be present...") poll_for_ssg_present() util.complete() util.print_partial("Getting SSG reference...") ssgs = get_ssg_reference() util.complete() # Let this reference be unsafe and tacky so that this fails loudly if the SSG is not present ssg_id = ssgs["items"][0]["id"] util.print_partial("Waiting for SSG to be ready...") poll_for_ssg_ready(ssg_id) util.complete() time.sleep(180) # Three minute wait for SSG to settle down util.print_partial("Deploying application...") deploy_application(ssg_id, args.NODE_IP, args.ELB_NAME, args.ELB_DNS_NAME) util.complete()
def main(): if not poll_for_services_available(): print(" Timed out") sys.exit(1) else: complete() print_partial("Verifying authentication information...") test_auth() complete() if not SKIP_LICENSING: print_partial("Adding license key...") enter_license_info(LICENSE_KEY) complete() poll_for_licensing_complete() complete() print_partial("Configuring role...") configure_big_iq_type(dcd=(NODE_TYPE == "DCD")) complete() print_partial("Setting management address...") set_management_address() complete() poll_for_services_available() complete() print_partial("Setting masterkey...") set_master_key() complete() if not poll_for_services_available(): print(" Timed out") sys.exit(1) else: complete() print_partial("Setting password status to updated...") set_passwords() complete() print_partial("Configuration complete, restarting services") # Wait for toku to flush everything to disk? Maybe? time.sleep(10) do_restart() complete() util.poll_for_system_down(BIGIQ_ADDR, timeout=TIMEOUT_SEC) complete() poll_for_services_available() set_system_setup() complete()