def __init__(self, args_str = None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)

        setup_args_str = "--role collector"
        setup_args_str = setup_args_str + " --cassandra_ip_list %s" \
                             %(' '.join(self._args.cassandra_ip_list)) 
        if self._args.num_nodes:
            setup_args_str = setup_args_str + " --num_collector_nodes %d" \
                                 % (self._args.num_nodes)

        if self._args.cfgm_ip:
            setup_args_str = setup_args_str + " --cfgm_ip %s" \
                                 % (self._args.cfgm_ip)                                                   
        if self._args.self_collector_ip:
            setup_args_str = setup_args_str + " --self_collector_ip %s" \
                                 % (self._args.self_collector_ip)                                                   
        if self._args.analytics_data_ttl is not None:
            setup_args_str = setup_args_str + " --analytics_data_ttl %d" \
                                 % (self._args.analytics_data_ttl)                                                   
        if self._args.analytics_syslog_port is not None:
            setup_args_str = setup_args_str + " --analytics_syslog_port %d" \
                                 % (self._args.analytics_syslog_port)                                                   
        if self._args.internal_vip:
            setup_args_str = setup_args_str + " --internal_vip %s " % self._args.internal_vip

        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
    def __init__(self, args_str = None):
        #print sys.argv[1:]
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)
        storage_master = self._args.storage_master

        setup_args_str = "--role storage"
        if self._args.add_storage_node:
            setup_args_str = setup_args_str + " --add-storage-node %s" % (self._args.add_storage_node)   
        setup_args_str = setup_args_str + " --storage-setup-mode %s" % (self._args.storage_setup_mode)   
        setup_args_str = setup_args_str + " --storage-master %s" % (storage_master) 
        setup_args_str = setup_args_str + " --storage-hostnames %s" %(' '.join(self._args.storage_hostnames))    
        setup_args_str = setup_args_str + " --storage-hosts %s" %(' '.join(self._args.storage_hosts))    
        setup_args_str = setup_args_str + " --storage-host-tokens %s" %(' '.join(self._args.storage_host_tokens))    
        live_migration_status = self._args.live_migration
        setup_args_str = setup_args_str + " --live-migration %s" % (live_migration_status) 
        setup_args_str = setup_args_str + " --storage-disk-config %s" %(' '.join(self._args.storage_disk_config))    
        setup_args_str = setup_args_str + " --storage-ssd-disk-config %s" %(' '.join(self._args.storage_ssd_disk_config))    
        setup_args_str = setup_args_str + " --storage-local-disk-config %s" %(' '.join(self._args.storage_local_disk_config))    
        setup_args_str = setup_args_str + " --storage-local-ssd-disk-config %s" %(' '.join(self._args.storage_local_ssd_disk_config))    
        setup_args_str = setup_args_str + " --storage-nfs-disk-config %s" %(' '.join(self._args.storage_nfs_disk_config))    
        setup_args_str = setup_args_str + " --storage-journal-config %s" %(' '.join(self._args.storage_journal_config))    
        setup_args_str = setup_args_str + " --storage-directory-config %s" %(' '.join(self._args.storage_directory_config))    

        #Setup storage if storage is defined in testbed.py
        if self._args.storage_disk_config[0] != 'none' or self._args.storage_directory_config[0] != 'none' or self._args.storage_local_disk_config[0] != 'none' or self._args.storage_nfs_disk_config[0] != 'none' or self._args.storage_local_ssd_disk_config[0] != 'none' or self._args.storage_ssd_disk_config[0] != 'none':
            setup_obj = Setup(setup_args_str)
            setup_obj.do_setup()
            setup_obj.run_services()
    def __init__(self, args_str = None):
        #print sys.argv[1:]
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)
        storage_master = self._args.storage_master

        setup_args_str = "--role storage"
        setup_args_str = setup_args_str + " --storage-master %s" % (storage_master) 
        setup_args_str = setup_args_str + " --storage-setup-mode %s" % (self._args.storage_setup_mode)    
        setup_args_str = setup_args_str + " --storage-hostnames %s" %(' '.join(self._args.storage_hostnames))    
        setup_args_str = setup_args_str + " --storage-hosts %s" %(' '.join(self._args.storage_hosts))    
        setup_args_str = setup_args_str + " --storage-host-tokens %s" %(' '.join(self._args.storage_host_tokens))    
        live_migration_status = self._args.live_migration
        setup_args_str = setup_args_str + " --live-migration %s" % (live_migration_status) 
        nfs_live_migration_option = self._args.nfs_live_migration
        setup_args_str = setup_args_str + " --nfs-live-migration %s" % (nfs_live_migration_option) 
        setup_args_str = setup_args_str + " --nfs-livem-subnet %s" % (' '.join(self._args.nfs_livem_subnet))
        setup_args_str = setup_args_str + " --nfs-livem-image %s" % (' '.join(self._args.nfs_livem_image))
        setup_args_str = setup_args_str + " --nfs-livem-host %s" % (' '.join(self._args.nfs_livem_host))


        #Setup storage if storage is defined in testbed.py
        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
    def __init__(self, args_str = None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)
        cfgm_ip = self._args.cfgm_ip
        openstack_ip = self._args.openstack_ip
        keystone_ip = self._args.keystone_ip
        collector_ip = self._args.collector_ip
        internal_vip = self._args.internal_vip
        contrail_internal_vip = self._args.contrail_internal_vip

        setup_args_str = "--role webui"
        setup_args_str = setup_args_str + " --cfgm_ip %s" % (cfgm_ip)
        setup_args_str = setup_args_str + " --keystone_ip %s" % (keystone_ip)
        setup_args_str = setup_args_str + " --openstack_ip %s" % (openstack_ip)
        if collector_ip:
            setup_args_str = setup_args_str + " --collector_ip %s" \
                                 % (collector_ip)
        if self._args.cassandra_ip_list:                         
            setup_args_str = setup_args_str + " --cassandra_ip_list %s" \
                             %(' '.join(self._args.cassandra_ip_list))                          
        if internal_vip:
            setup_args_str = setup_args_str + " --internal_vip %s " %(internal_vip)
        if contrail_internal_vip:
            setup_args_str = setup_args_str + " --contrail_internal_vip %s " %(contrail_internal_vip)

        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
    def __init__(self, args_str = None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)
        self_ip = self._args.self_ip
        cfgm_ip = self._args.cfgm_ip
        keystone_ip = self._args.keystone_ip
        internal_vip = self._args.internal_vip
        openstack_index = self._args.openstack_index
        service_token = self._args.service_token
        ks_auth_protocol = self._args.keystone_auth_protocol
        amqp_server_ip = self._args.amqp_server_ip
        quantum_service_protocol = self._args.quantum_service_protocol

        setup_args_str = "--role openstack "
        setup_args_str = setup_args_str + " --cfgm_ip %s " %(cfgm_ip)
        setup_args_str = setup_args_str + " --keystone_ip %s " %(keystone_ip)
        setup_args_str = setup_args_str + " --ks_auth_protocol %s" %(ks_auth_protocol)
        setup_args_str = setup_args_str + " --amqp_server_ip %s" %(amqp_server_ip)
        setup_args_str = setup_args_str + " --quantum_service_protocol %s" %(quantum_service_protocol)
        if internal_vip:
            setup_args_str = setup_args_str + " --internal_vip %s " %(internal_vip)
        if service_token:
            setup_args_str = setup_args_str + " --service_token %s " %(service_token)
        if self._args.haproxy:
            setup_args_str = setup_args_str + " --haproxy"
        if openstack_index:
            setup_args_str = setup_args_str + " --openstack_index %s" \
                                 %(self._args.openstack_index)
        
        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
    def __init__(self, args_str = None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)
        self_ip = self._args.self_ip
        keystone_ip = self._args.keystone_ip
        internal_vip = self._args.internal_vip
        collector_ip = self._args.collector_ip
        quantum_port = self._args.quantum_port
        nworkers = self._args.nworkers
        service_token = self._args.service_token
        region_name = self._args.region_name
        ks_auth_protocol = self._args.keystone_auth_protocol
        ks_auth_port = self._args.keystone_auth_port
        ks_admin_token = self._args.keystone_admin_token
        ks_insecure = self._args.keystone_insecure
        amqp_server_ip = self._args.amqp_server_ip

        setup_args_str = "--role config "
        setup_args_str = setup_args_str + " --cfgm_ip %s --keystone_ip %s --collector_ip %s " \
                                                      %(self_ip, keystone_ip, collector_ip)
        setup_args_str = setup_args_str + " --quantum_port %s" %(quantum_port)
        setup_args_str = setup_args_str + " --n_api_workers %s" %(nworkers)
        setup_args_str = setup_args_str + " --ks_auth_protocol %s" %(ks_auth_protocol)
        setup_args_str = setup_args_str + " --ks_auth_port %s" %(ks_auth_port)
        setup_args_str = setup_args_str + " --ks_admin_token %s" %(ks_admin_token)
        setup_args_str = setup_args_str + " --ks_insecure %s" %(ks_insecure)
        setup_args_str = setup_args_str + " --amqp_server_ip %s" %(amqp_server_ip)

        if service_token:
            setup_args_str = setup_args_str + " --service_token %s " %(service_token)
        if region_name:
            setup_args_str = setup_args_str + " --region_name %s " %(region_name)
        if self._args.use_certs:
            setup_args_str = setup_args_str + " --use_certs"
        if self._args.multi_tenancy:
            setup_args_str = setup_args_str + " --multi_tenancy"
        setup_args_str = setup_args_str + " --cassandra_ip_list %s" \
                             %(' '.join(self._args.cassandra_ip_list))    
        setup_args_str = setup_args_str + " --zookeeper_ip_list %s" \
                             %(' '.join(self._args.zookeeper_ip_list))    
        if self._args.haproxy:
            setup_args_str = setup_args_str + " --haproxy"
        if internal_vip:
            setup_args_str = setup_args_str + " --internal_vip %s " %(internal_vip)
        if self._args.manage_neutron == 'yes':
            setup_args_str = setup_args_str + " --manage_neutron"
        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
    def __init__(self, args_str = None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)
       
        self_ip = self._args.self_ip
        dir = self._args.dir
        data_dir = self._args.data_dir
        initial_token = self._args.initial_token
        seed_list = self._args.seed_list
        analytics_data_dir = self._args.analytics_data_dir
        ssd_data_dir = self._args.ssd_data_dir
        
        setup_args_str = "--role database"
        setup_args_str = setup_args_str + " --database_listen_ip %s" \
                             % (self_ip)
        if dir:                     
            setup_args_str = setup_args_str + " --database_dir %s" \
                                 % (dir)
        if data_dir:                     
            setup_args_str = setup_args_str + " --data_dir %s" \
                                 % (data_dir)
        if analytics_data_dir:                     
            setup_args_str = setup_args_str + " --analytics_data_dir %s" \
                                 % (analytics_data_dir)
        if ssd_data_dir:                     
            setup_args_str = setup_args_str + " --ssd_data_dir %s" \
                                 % (ssd_data_dir)
        if initial_token:
            setup_args_str = setup_args_str + " --database_initial_token %s" \
                                 % (initial_token)
        if seed_list:
            setup_args_str = setup_args_str + " --database_seed_list %s" % (' '.join(seed_list))                                                                       
	if self._args.cfgm_ip:
            setup_args_str = setup_args_str + " --cfgm_ip %s" \
                                 % (self._args.cfgm_ip)
        setup_args_str = setup_args_str + " --zookeeper_ip_list %s" \
                             %(' '.join(self._args.zookeeper_ip_list))
        setup_args_str = setup_args_str + " --database_index %s" \
                             %(self._args.database_index)

        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
예제 #8
0
    def __init__(self, args_str = None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)
        self_ip = self._args.self_ip
        collector_ip = self._args.collector_ip

        setup_args_str = "--role config "
        setup_args_str = setup_args_str + " --cfgm_ip %s --collector_ip %s " \
                                                      %(self_ip, collector_ip)
        if self._args.use_certs:
            setup_args_str = setup_args_str + " --use_certs"
        if self._args.aaa_mode is not None:
            setup_args_str = setup_args_str + " --aaa_mode %s" % self._args.aaa_mode
        
        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
    def __init__(self, args_str = None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)
        cfgm_ip = self._args.cfgm_ip
        collector_ip = self._args.collector_ip
        self_ip = self._args.self_ip

        setup_args_str = "--role control"
        setup_args_str = setup_args_str + " --cfgm_ip %s --collector_ip %s --discovery_ip %s --control_ip %s" \
                                                      %(cfgm_ip, collector_ip, cfgm_ip, self_ip)
        if self._args.use_certs:
            setup_args_str = setup_args_str + " --use_certs"
            if self._args.puppet_server:
                setup_args_str = setup_args_str + " --puppet_server %s" %(self._args.puppet_server)

        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
    def __init__(self, args_str=None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)

        setup_args_str = "--role collector"
        setup_args_str = setup_args_str + " --cassandra_ip_list %s" \
                             %(' '.join(self._args.cassandra_ip_list))
        if self._args.num_nodes:
            setup_args_str = setup_args_str + " --num_collector_nodes %d" \
                                 % (self._args.num_nodes)

        if self._args.cfgm_ip:
            setup_args_str = setup_args_str + " --cfgm_ip %s" \
                                 % (self._args.cfgm_ip)
        if self._args.self_collector_ip:
            setup_args_str = setup_args_str + " --self_collector_ip %s" \
                                 % (self._args.self_collector_ip)
        if self._args.analytics_data_ttl is not None:
            setup_args_str = setup_args_str + " --analytics_data_ttl %d" \
                                 % (self._args.analytics_data_ttl)
        if self._args.analytics_syslog_port is not None:
            setup_args_str = setup_args_str + " --analytics_syslog_port %d" \
                                 % (self._args.analytics_syslog_port)

        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
예제 #11
0
    def __init__(self, args_str = None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)
        cfgm_ip = self._args.cfgm_ip
        openstack_ip = self._args.openstack_ip
        keystone_ip = self._args.keystone_ip
        collector_ip = self._args.collector_ip
        internal_vip = self._args.internal_vip

        setup_args_str = "--role webui"
        setup_args_str = setup_args_str + " --cfgm_ip %s" % (cfgm_ip)
        setup_args_str = setup_args_str + " --keystone_ip %s" % (keystone_ip)
        setup_args_str = setup_args_str + " --openstack_ip %s" % (openstack_ip)
        if collector_ip:
            setup_args_str = setup_args_str + " --collector_ip %s" \
                                 % (collector_ip)
        if self._args.cassandra_ip_list:                         
            setup_args_str = setup_args_str + " --cassandra_ip_list %s" \
                             %(' '.join(self._args.cassandra_ip_list))                          
        if internal_vip:
            setup_args_str = setup_args_str + " --internal_vip %s " %(internal_vip)

        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
예제 #12
0
    def __init__(self, args_str=None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)
        self_ip = self._args.self_ip
        keystone_ip = self._args.keystone_ip
        internal_vip = self._args.internal_vip
        collector_ip = self._args.collector_ip
        quantum_port = self._args.quantum_port
        nworkers = self._args.nworkers
        service_token = self._args.service_token
        region_name = self._args.region_name
        ks_auth_protocol = self._args.keystone_auth_protocol
        ks_auth_port = self._args.keystone_auth_port
        ks_admin_token = self._args.keystone_admin_token
        ks_insecure = self._args.keystone_insecure
        amqp_server_ip = self._args.amqp_server_ip

        setup_args_str = "--role config "
        setup_args_str = setup_args_str + " --cfgm_ip %s --keystone_ip %s --collector_ip %s " \
                                                      %(self_ip, keystone_ip, collector_ip)
        setup_args_str = setup_args_str + " --quantum_port %s" % (quantum_port)
        setup_args_str = setup_args_str + " --n_api_workers %s" % (nworkers)
        setup_args_str = setup_args_str + " --ks_auth_protocol %s" % (
            ks_auth_protocol)
        setup_args_str = setup_args_str + " --ks_auth_port %s" % (ks_auth_port)
        setup_args_str = setup_args_str + " --ks_admin_token %s" % (
            ks_admin_token)
        setup_args_str = setup_args_str + " --ks_insecure %s" % (ks_insecure)
        setup_args_str = setup_args_str + " --amqp_server_ip %s" % (
            amqp_server_ip)

        if service_token:
            setup_args_str = setup_args_str + " --service_token %s " % (
                service_token)
        if region_name:
            setup_args_str = setup_args_str + " --region_name %s " % (
                region_name)
        if self._args.use_certs:
            setup_args_str = setup_args_str + " --use_certs"
        if self._args.multi_tenancy:
            setup_args_str = setup_args_str + " --multi_tenancy"
        setup_args_str = setup_args_str + " --cassandra_ip_list %s" \
                             %(' '.join(self._args.cassandra_ip_list))
        setup_args_str = setup_args_str + " --zookeeper_ip_list %s" \
                             %(' '.join(self._args.zookeeper_ip_list))
        if self._args.haproxy:
            setup_args_str = setup_args_str + " --haproxy"
        if internal_vip:
            setup_args_str = setup_args_str + " --internal_vip %s " % (
                internal_vip)
        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
예제 #13
0
    def __init__(self, args_str=None):
        #print sys.argv[1:]
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)
        storage_master = self._args.storage_master

        setup_args_str = "--role storage"
        if self._args.add_storage_node:
            setup_args_str = setup_args_str + " --add-storage-node %s" % (
                self._args.add_storage_node)
        setup_args_str = setup_args_str + " --storage-setup-mode %s" % (
            self._args.storage_setup_mode)
        setup_args_str = setup_args_str + " --storage-master %s" % (
            storage_master)
        setup_args_str = setup_args_str + " --storage-hostnames %s" % (
            ' '.join(self._args.storage_hostnames))
        setup_args_str = setup_args_str + " --storage-hosts %s" % (' '.join(
            self._args.storage_hosts))
        setup_args_str = setup_args_str + " --storage-host-tokens %s" % (
            ' '.join(self._args.storage_host_tokens))
        live_migration_status = self._args.live_migration
        setup_args_str = setup_args_str + " --live-migration %s" % (
            live_migration_status)
        setup_args_str = setup_args_str + " --storage-disk-config %s" % (
            ' '.join(self._args.storage_disk_config))
        setup_args_str = setup_args_str + " --storage-ssd-disk-config %s" % (
            ' '.join(self._args.storage_ssd_disk_config))
        setup_args_str = setup_args_str + " --storage-local-disk-config %s" % (
            ' '.join(self._args.storage_local_disk_config))
        setup_args_str = setup_args_str + " --storage-local-ssd-disk-config %s" % (
            ' '.join(self._args.storage_local_ssd_disk_config))
        setup_args_str = setup_args_str + " --storage-nfs-disk-config %s" % (
            ' '.join(self._args.storage_nfs_disk_config))
        setup_args_str = setup_args_str + " --storage-journal-config %s" % (
            ' '.join(self._args.storage_journal_config))
        setup_args_str = setup_args_str + " --storage-directory-config %s" % (
            ' '.join(self._args.storage_directory_config))

        #Setup storage if storage is defined in testbed.py
        if self._args.storage_disk_config[
                0] != 'none' or self._args.storage_directory_config[
                    0] != 'none' or self._args.storage_local_disk_config[
                        0] != 'none' or self._args.storage_nfs_disk_config[
                            0] != 'none' or self._args.storage_local_ssd_disk_config[
                                0] != 'none' or self._args.storage_ssd_disk_config[
                                    0] != 'none':
            setup_obj = Setup(setup_args_str)
            setup_obj.do_setup()
            setup_obj.run_services()
예제 #14
0
    def __init__(self, args_str=None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)

        self_ip = self._args.self_ip
        dir = self._args.dir
        data_dir = self._args.data_dir
        initial_token = self._args.initial_token
        seed_list = self._args.seed_list
        analytics_data_dir = self._args.analytics_data_dir
        ssd_data_dir = self._args.ssd_data_dir

        setup_args_str = "--role database"
        setup_args_str = setup_args_str + " --database_listen_ip %s" \
                             % (self_ip)
        if dir:
            setup_args_str = setup_args_str + " --database_dir %s" \
                                 % (dir)
        if data_dir:
            setup_args_str = setup_args_str + " --data_dir %s" \
                                 % (data_dir)
        if analytics_data_dir:
            setup_args_str = setup_args_str + " --analytics_data_dir %s" \
                                 % (analytics_data_dir)
        if ssd_data_dir:
            setup_args_str = setup_args_str + " --ssd_data_dir %s" \
                                 % (ssd_data_dir)
        if initial_token:
            setup_args_str = setup_args_str + " --database_initial_token %s" \
                                 % (initial_token)
        if seed_list:
            setup_args_str = setup_args_str + " --database_seed_list %s" % (
                ' '.join(seed_list))
        if self._args.cfgm_ip:
            setup_args_str = setup_args_str + " --cfgm_ip %s" \
                                 % (self._args.cfgm_ip)
        setup_args_str = setup_args_str + " --zookeeper_ip_list %s" \
                             %(' '.join(self._args.zookeeper_ip_list))
        setup_args_str = setup_args_str + " --database_index %s" \
                             %(self._args.database_index)

        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
예제 #15
0
    def __init__(self, args_str=None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)
        self_ip = self._args.self_ip
        cfgm_ip = self._args.cfgm_ip
        keystone_ip = self._args.keystone_ip
        internal_vip = self._args.internal_vip
        openstack_index = self._args.openstack_index
        openstack_ip_list = self._args.openstack_ip_list
        service_token = self._args.service_token
        ks_auth_protocol = self._args.keystone_auth_protocol
        amqp_server_ip = self._args.amqp_server_ip
        quantum_service_protocol = self._args.quantum_service_protocol

        setup_args_str = "--role openstack "
        setup_args_str = setup_args_str + " --openstack_ip %s " % (self_ip)
        setup_args_str = setup_args_str + " --cfgm_ip %s " % (cfgm_ip)
        setup_args_str = setup_args_str + " --keystone_ip %s " % (keystone_ip)
        setup_args_str = setup_args_str + " --ks_auth_protocol %s" % (
            ks_auth_protocol)
        setup_args_str = setup_args_str + " --amqp_server_ip %s" % (
            amqp_server_ip)
        setup_args_str = setup_args_str + " --quantum_service_protocol %s" % (
            quantum_service_protocol)
        if internal_vip:
            setup_args_str = setup_args_str + " --internal_vip %s " % (
                internal_vip)
        if service_token:
            setup_args_str = setup_args_str + " --service_token %s " % (
                service_token)
        if self._args.haproxy:
            setup_args_str = setup_args_str + " --haproxy"
        if openstack_index:
            setup_args_str = setup_args_str + " --openstack_index %s" \
                                 %(self._args.openstack_index)
        if openstack_ip_list:
            setup_args_str = setup_args_str + " --openstack_ip_list %s" % (
                ' '.join(openstack_ip_list))

        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
예제 #16
0
    def __init__(self, args_str=None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)
        self_ip = self._args.self_ip
        collector_ip = self._args.collector_ip

        setup_args_str = "--role config "
        setup_args_str = setup_args_str + " --cfgm_ip %s --collector_ip %s " \
                                                      %(self_ip, collector_ip)
        if self._args.use_certs:
            setup_args_str = setup_args_str + " --use_certs"
        if self._args.aaa_mode is not None:
            setup_args_str = setup_args_str + " --aaa_mode %s" % self._args.aaa_mode

        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
예제 #17
0
    def __init__(self, args_str=None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)
        cfgm_ip = self._args.cfgm_ip
        collector_ip = self._args.collector_ip
        self_ip = self._args.self_ip

        setup_args_str = "--role control"
        setup_args_str = setup_args_str + " --cfgm_ip %s --collector_ip %s --discovery_ip %s --control_ip %s" \
                                                      %(cfgm_ip, collector_ip, cfgm_ip, self_ip)
        if self._args.use_certs:
            setup_args_str = setup_args_str + " --use_certs"
            if self._args.puppet_server:
                setup_args_str = setup_args_str + " --puppet_server %s" % (
                    self._args.puppet_server)

        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
예제 #18
0
    def __init__(self, args_str=None):
        #print sys.argv[1:]
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)
        storage_master = self._args.storage_master

        setup_args_str = "--role storage"
        setup_args_str = setup_args_str + " --storage-master %s" % (
            storage_master)
        setup_args_str = setup_args_str + " --storage-setup-mode %s" % (
            self._args.storage_setup_mode)
        setup_args_str = setup_args_str + " --storage-hostnames %s" % (
            ' '.join(self._args.storage_hostnames))
        setup_args_str = setup_args_str + " --storage-hosts %s" % (' '.join(
            self._args.storage_hosts))
        setup_args_str = setup_args_str + " --storage-host-tokens %s" % (
            ' '.join(self._args.storage_host_tokens))
        live_migration_status = self._args.live_migration
        setup_args_str = setup_args_str + " --live-migration %s" % (
            live_migration_status)
        nfs_live_migration_option = self._args.nfs_live_migration
        setup_args_str = setup_args_str + " --nfs-live-migration %s" % (
            nfs_live_migration_option)
        setup_args_str = setup_args_str + " --nfs-livem-subnet %s" % (' '.join(
            self._args.nfs_livem_subnet))
        setup_args_str = setup_args_str + " --nfs-livem-image %s" % (' '.join(
            self._args.nfs_livem_image))
        setup_args_str = setup_args_str + " --nfs-livem-host %s" % (' '.join(
            self._args.nfs_livem_host))

        #Setup storage if storage is defined in testbed.py
        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
    def __init__(self, args_str=None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)

        cfgm_ip = self._args.cfgm_ip
        keystone_ip = self._args.keystone_ip
        internal_vip = self._args.internal_vip
        external_vip = self._args.external_vip
        contrail_internal_vip = self._args.contrail_internal_vip
        service_token = self._args.service_token
        ncontrols = self._args.ncontrols
        non_mgmt_ip = self._args.non_mgmt_ip
        non_mgmt_gw = self._args.non_mgmt_gw
        vgw_public_subnet = self._args.public_subnet
        vgw_public_vn_name = self._args.public_vn_name
        vgw_intf_list = self._args.vgw_intf
        vgw_gateway_routes = self._args.gateway_routes
        ks_auth_protocol = self._args.keystone_auth_protocol
        ks_insecure = self._args.keystone_insecure
        ks_auth_port = self._args.keystone_auth_port
        amqp_server_ip = self._args.amqp_server_ip
        amqp_server_ip_list = self._args.amqp_server_ip_list
        quantum_service_protocol = self._args.quantum_service_protocol
        if not self._args.openstack_mgmt_ip:
            openstack_mgmt_ip = keystone_ip
        else:
            openstack_mgmt_ip = self._args.openstack_mgmt_ip
        if self._args.vmware:
            vmware_ip = self._args.vmware
            vmware_username = self._args.vmware_username
            vmware_passwd = self._args.vmware_passwd
            vmware_vmpg_vswitch = self._args.vmware_vmpg_vswitch

        setup_args_str = "--role compute --compute_ip %s " % (
            self._args.self_ip)
        if self._args.mgmt_self_ip:
            setup_args_str = setup_args_str + " --mgmt_self_ip %s " % (
                self._args.mgmt_self_ip)
        setup_args_str = setup_args_str + " --cfgm_ip %s " % (cfgm_ip)
        setup_args_str = setup_args_str + " --keystone_ip %s " % (keystone_ip)
        setup_args_str = setup_args_str + " --openstack_mgmt_ip %s " % (
            openstack_mgmt_ip)
        setup_args_str = setup_args_str + " --ks_auth_protocol %s" % (
            ks_auth_protocol)
        setup_args_str = setup_args_str + " --ks_insecure %s" % (ks_insecure)
        setup_args_str = setup_args_str + " --ks_auth_port %s" % (ks_auth_port)
        setup_args_str = setup_args_str + " --amqp_server_ip %s" % (
            amqp_server_ip)
        if amqp_server_ip_list:
            setup_args_str = setup_args_str + " --amqp_server_ip_list %s" % (
                ' '.join(amqp_server_ip_list))
        setup_args_str = setup_args_str + " --quantum_service_protocol %s" % (
            quantum_service_protocol)

        if service_token:
            setup_args_str = setup_args_str + " --service_token %s " % (
                service_token)
        # Customized for Workday
        # This needs to accepted as the input not hardcoded.
        # currenty there is no check to determine the actual number of controllers
        # please pass the exact number of controllers that are available and need to be peered
        #ncontrols = 2
        setup_args_str = setup_args_str + " --ncontrols %s " % (ncontrols)
        if non_mgmt_ip:
            setup_args_str = setup_args_str + " --non_mgmt_ip %s " % (
                non_mgmt_ip)
            setup_args_str = setup_args_str + " --non_mgmt_gw %s " % (
                non_mgmt_gw)
        if vgw_public_subnet and vgw_public_vn_name:
            setup_args_str = setup_args_str + " --vgw_public_subnet %s " % (
                vgw_public_subnet)
            setup_args_str = setup_args_str + " --vgw_public_vn_name %s " % (
                vgw_public_vn_name)
            setup_args_str = setup_args_str + " --vgw_intf_list %s " % (
                vgw_intf_list)
            if vgw_gateway_routes:
                setup_args_str = setup_args_str + " --vgw_gateway_routes %s " % (
                    vgw_gateway_routes)
        if self._args.haproxy:
            setup_args_str = setup_args_str + " --haproxy"
        if self._args.vmware:
            setup_args_str = setup_args_str + " --vmware %s --vmware_username %s --vmware_passwd %s --vmware_vmpg_vswitch %s" % (
                vmware_ip, vmware_username, vmware_passwd, vmware_vmpg_vswitch)

        if internal_vip:
            setup_args_str = setup_args_str + " --internal_vip %s " % (
                internal_vip)
        if external_vip:
            setup_args_str = setup_args_str + " --external_vip %s " % (
                external_vip)
        if contrail_internal_vip:
            setup_args_str = setup_args_str + " --contrail_internal_vip %s " % (
                contrail_internal_vip)
        if self._args.no_contrail_openstack:
            setup_args_str = setup_args_str + " --no_contrail_openstack"

        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
    def __init__(self, args_str = None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)

        cfgm_ip = self._args.cfgm_ip
        keystone_ip = self._args.keystone_ip
        internal_vip = self._args.internal_vip
        external_vip = self._args.external_vip
        contrail_internal_vip = self._args.contrail_internal_vip
        service_token = self._args.service_token
        ncontrols = self._args.ncontrols
        non_mgmt_ip = self._args.non_mgmt_ip
        non_mgmt_gw = self._args.non_mgmt_gw
        vgw_public_subnet = self._args.public_subnet
        vgw_public_vn_name = self._args.public_vn_name
        vgw_intf_list = self._args.vgw_intf
        vgw_gateway_routes = self._args.gateway_routes
        ks_auth_protocol = self._args.keystone_auth_protocol
	ks_insecure = self._args.keystone_insecure
        ks_auth_port = self._args.keystone_auth_port
        amqp_server_ip = self._args.amqp_server_ip
        amqp_server_ip_list = self._args.amqp_server_ip_list
        quantum_service_protocol = self._args.quantum_service_protocol
        if not self._args.openstack_mgmt_ip :
            openstack_mgmt_ip = keystone_ip
        else:
            openstack_mgmt_ip = self._args.openstack_mgmt_ip
        if self._args.vmware :
            vmware_ip = self._args.vmware
            vmware_username = self._args.vmware_username
            vmware_passwd = self._args.vmware_passwd
            vmware_vmpg_vswitch = self._args.vmware_vmpg_vswitch


        setup_args_str = "--role compute --compute_ip %s " %(self._args.self_ip)
        if self._args.mgmt_self_ip:
            setup_args_str = setup_args_str + " --mgmt_self_ip %s " % (self._args.mgmt_self_ip)
        setup_args_str = setup_args_str + " --cfgm_ip %s " %(cfgm_ip)
        setup_args_str = setup_args_str + " --keystone_ip %s " %(keystone_ip)
        setup_args_str = setup_args_str + " --openstack_mgmt_ip %s " %(openstack_mgmt_ip)
        setup_args_str = setup_args_str + " --ks_auth_protocol %s" %(ks_auth_protocol)
	setup_args_str = setup_args_str + " --ks_insecure %s" %(ks_insecure)
        setup_args_str = setup_args_str + " --ks_auth_port %s" %(ks_auth_port)
        setup_args_str = setup_args_str + " --amqp_server_ip %s" %(amqp_server_ip)
        if amqp_server_ip_list:
            setup_args_str = setup_args_str + " --amqp_server_ip_list %s" %(' '. join(amqp_server_ip_list))
        setup_args_str = setup_args_str + " --quantum_service_protocol %s" %(quantum_service_protocol)
        
        if service_token:
            setup_args_str = setup_args_str + " --service_token %s " %(service_token)
        # Customized for Workday
        # This needs to accepted as the input not hardcoded. 
        # currenty there is no check to determine the actual number of controllers
        # please pass the exact number of controllers that are available and need to be peered
        #ncontrols = 2
        setup_args_str = setup_args_str + " --ncontrols %s " %(ncontrols)
        if non_mgmt_ip: 
            setup_args_str = setup_args_str + " --non_mgmt_ip %s " %(non_mgmt_ip)
            setup_args_str = setup_args_str + " --non_mgmt_gw %s " %(non_mgmt_gw)
        if vgw_public_subnet and  vgw_public_vn_name:
            setup_args_str = setup_args_str + " --vgw_public_subnet %s " %(vgw_public_subnet)
            setup_args_str = setup_args_str + " --vgw_public_vn_name %s " %(vgw_public_vn_name)
            setup_args_str = setup_args_str + " --vgw_intf_list %s " %(vgw_intf_list)
            if vgw_gateway_routes:
                setup_args_str = setup_args_str + " --vgw_gateway_routes %s " %(vgw_gateway_routes)
        if self._args.haproxy:
            setup_args_str = setup_args_str + " --haproxy"
        if self._args.vmware:
            setup_args_str = setup_args_str + " --vmware %s --vmware_username %s --vmware_passwd %s --vmware_vmpg_vswitch %s" %(vmware_ip, vmware_username, vmware_passwd, vmware_vmpg_vswitch)

        if internal_vip:
            setup_args_str = setup_args_str + " --internal_vip %s " %(internal_vip)
        if external_vip:
            setup_args_str = setup_args_str + " --external_vip %s " %(external_vip)
        if contrail_internal_vip:
            setup_args_str = setup_args_str + " --contrail_internal_vip %s " %(contrail_internal_vip)
        if self._args.no_contrail_openstack:
            setup_args_str = setup_args_str + " --no_contrail_openstack"

        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
    def __init__(self, args_str=None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)

        cfgm_ip = self._args.cfgm_ip
        keystone_ip = self._args.keystone_ip
        internal_vip = self._args.internal_vip
        external_vip = self._args.external_vip
        contrail_internal_vip = self._args.contrail_internal_vip
        service_token = self._args.service_token
        ncontrols = self._args.ncontrols
        non_mgmt_ip = self._args.non_mgmt_ip
        non_mgmt_gw = self._args.non_mgmt_gw
        vgw_public_subnet = self._args.public_subnet
        vgw_public_vn_name = self._args.public_vn_name
        vgw_intf_list = self._args.vgw_intf
        vgw_gateway_routes = self._args.gateway_routes
        ks_auth_protocol = self._args.keystone_auth_protocol
        ks_auth_port = self._args.keystone_auth_port
        amqp_server_ip = self._args.amqp_server_ip
        amqp_server_ip_list = self._args.amqp_server_ip_list
        quantum_service_protocol = self._args.quantum_service_protocol
        if not self._args.openstack_mgmt_ip:
            openstack_mgmt_ip = keystone_ip
        else:
            openstack_mgmt_ip = self._args.openstack_mgmt_ip
        if self._args.vmware:
            vmware_ip = self._args.vmware
            vmware_username = self._args.vmware_username
            vmware_passwd = self._args.vmware_passwd
            vmware_vmpg_vswitch = self._args.vmware_vmpg_vswitch

        setup_args_str = "--role compute --compute_ip %s " % (
            self._args.self_ip)
        if self._args.mgmt_self_ip:
            setup_args_str = setup_args_str + " --mgmt_self_ip %s " % (
                self._args.mgmt_self_ip)
        setup_args_str = setup_args_str + " --cfgm_ip %s " % (cfgm_ip)
        setup_args_str = setup_args_str + " --keystone_ip %s " % (keystone_ip)
        setup_args_str = setup_args_str + " --openstack_mgmt_ip %s " % (
            openstack_mgmt_ip)
        setup_args_str = setup_args_str + " --ks_auth_protocol %s" % (
            ks_auth_protocol)
        setup_args_str = setup_args_str + " --ks_auth_port %s" % (ks_auth_port)
        setup_args_str = setup_args_str + " --amqp_server_ip %s" % (
            amqp_server_ip)
        if amqp_server_ip_list:
            setup_args_str = setup_args_str + " --amqp_server_ip_list %s" % (
                ' '.join(amqp_server_ip_list))
        setup_args_str = setup_args_str + " --quantum_service_protocol %s" % (
            quantum_service_protocol)

        if service_token:
            setup_args_str = setup_args_str + " --service_token %s " % (
                service_token)
        ncontrols = 2
        setup_args_str = setup_args_str + " --ncontrols %s " % (ncontrols)
        if non_mgmt_ip:
            setup_args_str = setup_args_str + " --non_mgmt_ip %s " % (
                non_mgmt_ip)
            setup_args_str = setup_args_str + " --non_mgmt_gw %s " % (
                non_mgmt_gw)
        if vgw_public_subnet and vgw_public_vn_name:
            setup_args_str = setup_args_str + " --vgw_public_subnet %s " % (
                vgw_public_subnet)
            setup_args_str = setup_args_str + " --vgw_public_vn_name %s " % (
                vgw_public_vn_name)
            setup_args_str = setup_args_str + " --vgw_intf_list %s " % (
                vgw_intf_list)
            if vgw_gateway_routes:
                setup_args_str = setup_args_str + " --vgw_gateway_routes %s " % (
                    vgw_gateway_routes)
        if self._args.haproxy:
            setup_args_str = setup_args_str + " --haproxy"
        if self._args.vmware:
            setup_args_str = setup_args_str + " --vmware %s --vmware_username %s --vmware_passwd %s --vmware_vmpg_vswitch %s" % (
                vmware_ip, vmware_username, vmware_passwd, vmware_vmpg_vswitch)

        if internal_vip:
            setup_args_str = setup_args_str + " --internal_vip %s " % (
                internal_vip)
        if external_vip:
            setup_args_str = setup_args_str + " --external_vip %s " % (
                external_vip)
        if contrail_internal_vip:
            setup_args_str = setup_args_str + " --contrail_internal_vip %s " % (
                contrail_internal_vip)
        if self._args.no_contrail_openstack:
            setup_args_str = setup_args_str + " --no_contrail_openstack"

        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()
    def __init__(self, args_str = None):
        self._args = None
        if not args_str:
            args_str = ' '.join(sys.argv[1:])
        self._parse_args(args_str)

        cfgm_ip = self._args.cfgm_ip
        keystone_ip = self._args.keystone_ip
        internal_vip = self._args.internal_vip
        external_vip = self._args.external_vip
        contrail_internal_vip = self._args.contrail_internal_vip
        service_token = self._args.service_token
        ncontrols = self._args.ncontrols
        non_mgmt_ip = self._args.non_mgmt_ip
        non_mgmt_gw = self._args.non_mgmt_gw
        vgw_public_subnet = self._args.public_subnet
        vgw_public_vn_name = self._args.public_vn_name
        vgw_intf_list = self._args.vgw_intf
        vgw_gateway_routes = self._args.gateway_routes
        ks_auth_protocol = self._args.keystone_auth_protocol
        ks_auth_port = self._args.keystone_auth_port
        amqp_server_ip = self._args.amqp_server_ip
        amqp_server_ip_list = self._args.amqp_server_ip_list
        quantum_service_protocol = self._args.quantum_service_protocol
        if not self._args.openstack_mgmt_ip :
            openstack_mgmt_ip = keystone_ip
        else:
            openstack_mgmt_ip = self._args.openstack_mgmt_ip
        if self._args.vmware :
            vmware_ip = self._args.vmware
            vmware_username = self._args.vmware_username
            vmware_passwd = self._args.vmware_passwd
            vmware_vmpg_vswitch = self._args.vmware_vmpg_vswitch


        setup_args_str = "--role compute --compute_ip %s " %(self._args.self_ip)
        if self._args.mgmt_self_ip:
            setup_args_str = setup_args_str + " --mgmt_self_ip %s " % (self._args.mgmt_self_ip)
        setup_args_str = setup_args_str + " --cfgm_ip %s " %(cfgm_ip)
        setup_args_str = setup_args_str + " --keystone_ip %s " %(keystone_ip)
        setup_args_str = setup_args_str + " --openstack_mgmt_ip %s " %(openstack_mgmt_ip)
        setup_args_str = setup_args_str + " --ks_auth_protocol %s" %(ks_auth_protocol)
        setup_args_str = setup_args_str + " --ks_auth_port %s" %(ks_auth_port)
        setup_args_str = setup_args_str + " --amqp_server_ip %s" %(amqp_server_ip)
        if amqp_server_ip_list:
            setup_args_str = setup_args_str + " --amqp_server_ip_list %s" %(' '. join(amqp_server_ip_list))
        setup_args_str = setup_args_str + " --quantum_service_protocol %s" %(quantum_service_protocol)
        
        if service_token:
            setup_args_str = setup_args_str + " --service_token %s " %(service_token)
        ncontrols = 2
        setup_args_str = setup_args_str + " --ncontrols %s " %(ncontrols)
        if non_mgmt_ip: 
            setup_args_str = setup_args_str + " --non_mgmt_ip %s " %(non_mgmt_ip)
            setup_args_str = setup_args_str + " --non_mgmt_gw %s " %(non_mgmt_gw)
        if vgw_public_subnet and  vgw_public_vn_name:
            setup_args_str = setup_args_str + " --vgw_public_subnet %s " %(vgw_public_subnet)
            setup_args_str = setup_args_str + " --vgw_public_vn_name %s " %(vgw_public_vn_name)
            setup_args_str = setup_args_str + " --vgw_intf_list %s " %(vgw_intf_list)
            if vgw_gateway_routes:
                setup_args_str = setup_args_str + " --vgw_gateway_routes %s " %(vgw_gateway_routes)
        if self._args.haproxy:
            setup_args_str = setup_args_str + " --haproxy"
        if self._args.vmware:
            setup_args_str = setup_args_str + " --vmware %s --vmware_username %s --vmware_passwd %s --vmware_vmpg_vswitch %s" %(vmware_ip, vmware_username, vmware_passwd, vmware_vmpg_vswitch)

        if internal_vip:
            setup_args_str = setup_args_str + " --internal_vip %s " %(internal_vip)
        if external_vip:
            setup_args_str = setup_args_str + " --external_vip %s " %(external_vip)
        if contrail_internal_vip:
            setup_args_str = setup_args_str + " --contrail_internal_vip %s " %(contrail_internal_vip)
        if self._args.no_contrail_openstack:
            setup_args_str = setup_args_str + " --no_contrail_openstack"

        setup_obj = Setup(setup_args_str)
        setup_obj.do_setup()
        setup_obj.run_services()