summaryrefslogtreecommitdiffstats
BranchCommit messageAuthorAge
stable/iruyaadd yardstick iruya 9.0.0 release notesrexlee87765 years
masteradd yardstick iruya 9.0.0 release notesrexlee87765 years
stable/hunterYardstick Hunter 8.0.0 release notesrexlee87766 years
stable/gambiaYardsitck Gambia Release 7.2.0 release notes.rexlee87766 years
stable/frasertc046 kill keystone process condition incorrect - dovetailrexlee87766 years
stable/euphratesBugfix: failed to generete gui files in stable/euphrates in CIchenjiankun7 years
stable/danubeUpdate release note for Danube.3.2JingLu57 years
stable/coloradoMerge "arm64: Using wily kernel since the vivid is gone" into stable/coloradoJing Lu8 years
stable/brahmaputraRelease notes for 3.0Ana C9 years
 
TagDownloadAuthorAge
opnfv-8.0.0commit 9bd54d7914...jenkins-ci6 years
opnfv-7.2.0commit eb6d97898b...jenkins-ci6 years
opnfv-7.1.0commit a1e5634d35...jenkins-ci6 years
opnfv-7.0.0commit b9fa3eac6c...jenkins-ci6 years
ovp-2.0.0commit 6c10a2d9cc...rexlee87766 years
opnfv-6.2.1commit a99613376d...jenkins-ci6 years
opnfv-6.2.0commit b07610535f...jenkins-ci6 years
opnfv-6.1.0commit 7dc30d54a7...Aric Gardner7 years
opnfv-6.0.0commit a4c8f2a99f...Trevor Bramwell7 years
opnfv-5.1.0commit 22c3213246...Ross Brattain7 years
opnfv-5.0.0commit 269c070a51...JingLu57 years
opnfv-5.0.RC1commit 1f04604b78...JingLu57 years
danube.3.2commit e9338f29a7...JingLu57 years
danube.3.1commit 795438d076...Ross Brattain7 years
danube.3.0commit 5bdc049447...Ross Brattain7 years
danube.2.0commit 1b267df543...JingLu58 years
danube.2.RC1commit 1b267df543...JingLu58 years
danube.1.0commit f990f63a40...kubi8 years
colorado.3.0commit 5315d784b0...Aric Gardner8 years
colorado.2.0commit ec0e69dd20...Aric Gardner8 years
colorado.1.0commit 42b98f2da7...kubi8 years
brahmaputra.3.0commit 654e1479f4...Ana C9 years
brahmaputra.2.0commit 2e0401b13b...Ana C9 years
brahmaputra.1.0commit bc63c492a8...Ana C9 years
quot;example.example_private_subnet_name") SUBNET_CIDR = ft_utils.get_parameter_from_yaml( "example.example_private_subnet_cidr") ROUTER_NAME = ft_utils.get_parameter_from_yaml( "example.example_router_name") SECGROUP_NAME = ft_utils.get_parameter_from_yaml( "example.example_sg_name") SECGROUP_DESCR = ft_utils.get_parameter_from_yaml( "example.example_sg_descr") TEST_DB = ft_utils.get_parameter_from_yaml("results.test_db_url") def main(): nova_client = os_utils.get_nova_client() neutron_client = os_utils.get_neutron_client() glance_client = os_utils.get_glance_client() image_id = os_utils.create_glance_image(glance_client, IMAGE_NAME, IMAGE_PATH, disk=IMAGE_FORMAT, container="bare", public=True, logger=logger) network_dic = os_utils.create_network_full(logger, neutron_client, NET_NAME, SUBNET_NAME, ROUTER_NAME, SUBNET_CIDR) if not network_dic: logger.error( "There has been a problem when creating the neutron network") sys.exit(-1) network_id = network_dic["net_id"] sg_id = os_utils.create_security_group_full(logger, neutron_client, SECGROUP_NAME, SECGROUP_DESCR) # boot INTANCE logger.info("Creating instance '%s'..." % INSTANCE_NAME) logger.debug( "Configuration:\n name=%s \n flavor=%s \n image=%s \n " "network=%s \n" % (INSTANCE_NAME, FLAVOR, image_id, network_id)) instance = os_utils.create_instance_and_wait_for_active(FLAVOR, image_id, network_id, INSTANCE_NAME) if instance is None: logger.error("Error while booting instance.") sys.exit(-1) # Retrieve IP of INSTANCE instance_ip = instance.networks.get(NET_NAME)[0] logger.debug("Instance '%s' got private ip '%s'." % (INSTANCE_NAME, instance_ip)) logger.info("Adding '%s' to security group '%s'..." % (INSTANCE_NAME, SECGROUP_NAME)) os_utils.add_secgroup_to_instance(nova_client, instance.id, sg_id) logger.info("Creating floating IP for VM '%s'..." % INSTANCE_NAME) floatip_dic = os_utils.create_floating_ip(neutron_client) floatip = floatip_dic['fip_addr'] # floatip_id = floatip_dic['fip_id'] if floatip is None: logger.error("Cannot create floating IP.") sys.exit(-1) logger.info("Floating IP created: '%s'" % floatip) logger.info("Associating floating ip: '%s' to VM '%s' " % (floatip, INSTANCE_NAME)) if not os_utils.add_floating_ip(nova_client, instance.id, floatip): logger.error("Cannot associate floating IP to VM.") sys.exit(-1) sys.exit(0) if __name__ == '__main__': main()