<commit_before>from fabric.api import env

hypervisor_type = 'XenServer'
controller_type = 'Cloudstack'

controller = 'root@10.204.216.60'
xenserver1 = 'root@10.204.216.47'
builder = 'vjoshi@10.204.216.56'

# Password used while loging into all hosts.
#All xen servers need to have same password
env.password = '<PASSWORD>'

env.ostypes = {
    controller: 'centos',
    xenserver1 : 'xenserver',
}

env.passwords = {
    controller: '<PASSWORD>',
    xenserver1: env.password,
    builder: 'secret',
}

env.roledefs = {
    'control': [controller],
    'compute': [xenserver1],
    'build': [builder],
    'cfgm': [controller],
    'orchestrator': [controller],
    'all' : [ controller, xenserver1],
}

env.hostnames = {
    'all': ['nodec3', 'nodea9']
}

# Cloudstack specific config
config = {
    # Repos, NFS, etc.
    'nfs_share_path': '10.204.216.49:/cs-attic',
    'yum_repo_host': '10.204.216.51',
    'cobbler_server_ip': '10.204.216.51',
    'vm_template_url': 'http://10.204.216.51/cloudstack/vm_templates/centos56-x86_64-xen.vhd.bz2',
    'vm_template_name': 'CentOS',
    'vsrx_template_url': 'http://10.204.216.51/cloudstack/vm_templates/juniper-vsrx-nat.vhd.bz2',
    'vsrx_template_name': 'Juniper vSRX',
    'mx_ip' : '10.204.216.253',
    'route_target' : '10003',

    # Cloud configuration
    'cloud': {
        'username': 'admin',
        'password': 'password',
        'host_password': env.password,

        'external_dns': '8.8.8.8',
        'internal_dns': '10.204.208.221',

        'pods': {
            'a6': {
                'startip': '10.204.216.230',
                'endip'  : '10.204.216.240',
                'gateway': '10.204.216.254',
                'netmask': '255.255.255.0',

                'clusters': {
                    'a6-xen1': {
                        'hypervisor_type': 'XenServer',

                        'hosts': {
                            'xen1': '10.204.216.47'
                        }
                    }
                }
            }
        },

        'public_net': {
            'startip': '10.204.219.121',
            'endip': '10.204.219.126',
            'gateway': '10.204.219.254',
            'netmask': '255.255.255.0'
        }
    }
}
env.config = config

env.test_repo_dir='/home/stack/cloudstack_sanity/test'
env.mail_to='<EMAIL>'
env.log_scenario='Cloudstack Sanity'<commit_msg>testbed.py changes for combined mode cloudstack on github<commit_after>from fabric.api import env

hypervisor_type = 'XenServer'
controller_type = 'Cloudstack'

controller = 'root@10.204.216.60'
xenserver1 = 'root@10.204.216.47'
builder = 'vjoshi@10.204.216.56'

# Password used while loging into all hosts.
#All xen servers need to have same password
env.password = '<PASSWORD>'
env.cs_version = '4.3.0'
env.xen_ver = '6.2SP1'
env.xen62sp1_repo = 'http://10.204.216.51/xen62sp1/'
env.systemvm_template = 'http://10.204.216.51/cloudstack/vm_templates/systemvm64template-2014-01-14-master-xen.vhd.bz2'

env.ostypes = {
    controller: 'centos',
    xenserver1 : 'xenserver',
}

env.passwords = {
    controller: '<PASSWORD>',
    xenserver1: env.password,
    builder: 'secret',
}

env.roledefs = {
    'control': [controller],
    'compute': [xenserver1],
    'build': [builder],
    'cfgm': [controller],
    'orchestrator': [controller],
    'all' : [ controller, xenserver1],
}

env.hostnames = {
    'all': ['nodec3', 'nodea9']
}

# Cloudstack specific config
config = {
    # Repos, NFS, etc.
    'nfs_share_path': '10.204.216.49:/cs-attic',
    'yum_repo_host': '10.204.216.51',
    'vm_template_url': 'http://10.204.216.51/cloudstack/vm_templates/centos56-x86_64-xen.vhd.bz2',
    'vm_template_name': 'CentOS',
    'vsrx_template_url': 'http://10.204.216.51/cloudstack/vm_templates/juniper-vsrx-nat.vhd.bz2',
    'vsrx_template_name': 'Juniper vSRX',
    'mx_ip' : '10.204.216.253',
    'route_target' : '10003',

    # Cloud configuration
    'cloud': {
        'username': 'admin',
        'password': 'password',
        'host_password': env.password,

        'external_dns': '8.8.8.8',
        'internal_dns': '10.204.208.221',

        'pods': {
            'a6': {
                'startip': '10.204.216.230',
                'endip'  : '10.204.216.240',
                'gateway': '10.204.216.254',
                'netmask': '255.255.255.0',

                'clusters': {
                    'a6-xen1': {
                        'hypervisor_type': 'XenServer',
                        'hosts': {
                            'xen1': '10.204.216.47'
                        }
                    }
                }
            }
        },

        'public_net': {
            'startip': '10.204.219.121',
            'endip': '10.204.219.126',
            'gateway': '10.204.219.254',
            'netmask': '255.255.255.0'
        }
    }
}
env.config = config

env.test_repo_dir='/home/stack/cloudstack_sanity/test'
env.mail_to='<EMAIL>'
env.log_scenario='Cloudstack 4.3 Sanity - Combined mode'
{'fraction_non_alphanumeric': 0.1699438202247191, 'fraction_numerical': 0.09771268057784911, 'mean_word_length': 2.1352201257861636, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 41, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1877314', 'n_tokens_mistral': 2134, 'n_tokens_neox': 1822, 'n_words': 279}