def configure_vm_first_boot(**kwargs): # Using Mingtao's First Boot Function to configure spawned VM in KVM helpers.bigrobot_topology("/tmp/temp.topo") helpers.bigrobot_params("none") # t = test.Test() # n = t.node("c1") # n_console = n.console() helpers.log("Success Initializing Test Object!") helpers.log("Success Initializing Test Object!!") t5_platform = T5Platform() t5_platform.first_boot_controller_initial_node_setup("c1", dhcp = "yes", hostname = vm_name) t5_platform.first_boot_controller_initial_cluster_setup("c1") new_ip_address = t5_platform.first_boot_controller_menu_apply("c1") print "3. Success configuring first boot Controller IP : %s" % str(new_ip_address) pass
def _configure_vm_first_boot(self, cluster_ip=None, ip_address=None, netmask='18', vm_host_name=None, gateway=DEFAULT_GATEWAY): # Using Mingtao's First Boot Function to configure spawned VM in KVM helpers.log("Sleeping 60 sec while waiting for VM to boot up") time.sleep(120) helpers.log("Success setting up gobot Env!") t5_platform = T5Platform() # configure firstboot till IP address if ip_address is not None: helpers.summary_log( "Static IP is given using ip: %s netmask: %s, gateway: %s for VM" % (ip_address, netmask, gateway)) t5_platform.first_boot_controller_initial_node_setup( "c1", ip_address=ip_address, netmask=netmask, hostname=vm_host_name, gateway=gateway) else: t5_platform.first_boot_controller_initial_node_setup( "c1", dhcp="yes", hostname=vm_host_name) # Apply setting and add cluster Ip if provided if cluster_ip is not None: t5_platform.first_boot_controller_initial_cluster_setup( "c1", join_cluster="yes", cluster_ip=cluster_ip) helpers.summary_log("Success Adding BVS VM to Cluster!") else: t5_platform.first_boot_controller_initial_cluster_setup("c1") new_ip_address = t5_platform.first_boot_controller_menu_apply("c1") helpers.summary_log( "3. Success configuring first boot Controller IP : %s" % str(new_ip_address)) return new_ip_address
def run(): test.Test() t5 = T5Platform() result = t5.cli_upgrade_launch_HA(**kwargs) return result
def run(): test.Test() t5 = T5Platform() result = t5.cli_upgrade_stage(**kwargs) return result
def run(): helpers.log("Task: cli_copy_upgrade_pkg") test.Test() t5 = T5Platform() result = t5.copy_pkg_from_server(**kwargs) return result