Hi,

I am currently configuring a PoC of Contrail 2.21 on Ubuntu 14.04. This is
my PoC version 2 - the first version nearly worked but not quite! My
topology mixed management/data planes and I think that might be why it
wasn't working correctly.

For that reason I just wondered if anyone can help me clarify a couple of
points regarding the testbed.py below to make sure I am interpreting the
documentation correctly:

   - Do the *management* IP addresses just need to be able to route between
   each other, or does DNS/NTP also need to be reachable via this IP?
   - I assume there should only be a default gateway on the *control/data*
   interface, not on the management IP address?
   - In the *env.hostnames* section, should these name resolve to the
   management, or the control/data?
   - Is it correct that the 'control' node does not also hold the 'compute'
   role

Example testbed.py:

#Management ip addresses of hosts in the cluster
host1 = '[email protected]'
host2 = '[email protected]'
host3 = '[email protected]'
host4 = '[email protected]'
host5 = '[email protected]'

#External routers if any
#for eg.
#ext_routers = [('mx1', '10.204.216.253')]
ext_routers = [('mx1','5.5.5.1')]

public_vn_rtgt = 20000
public_vn_subnet = "10.102.53.16/28"

#Autonomous system number
router_asn = 64512

#Host from which the fab commands are triggered to install and provision
host_build = '[email protected]'

#Role definition of the hosts.
env.roledefs = {
    'all': [host1, host2, host3, host4, host5],
    'cfgm': [host1, host2, host3],
    'openstack': [host1, host2, host3],
    'control': [host2, host3 ],
    'compute': [host4, host5 ],
    'collector': [host1, host2, host3],
    'webui': [host1,host2,host3],
    'database': [host1,host2,host3],
    'build': [host_build],
}

env.hostnames = {
    'all': ['vse2100-2', 'vse2100-3', 'vse2100-4','vse2100-5','vse2100-6']
}

#Openstack admin password
env.openstack_admin_password = 'c0ntrail123'

env.password = 'c0ntrail123'
#Passwords of each host
env.passwords = {
    host1: 'c0ntrail123',
    host2: 'c0ntrail123',
    host3: 'c0ntrail123',
    host4: 'c0ntrail123',
    host5: 'c0ntrail123',
    host_build: 'c0ntrail123',
}

#For reimage purpose
env.ostypes = {
    host1: 'ubuntu',
    host2: 'ubuntu',
    host3: 'ubuntu',
    host4: 'ubuntu',
    host5: 'ubuntu',
}

#OPTIONAL BONDING CONFIGURATION
#==============================
#Inferface Bonding
#OPTIONAL BONDING CONFIGURATION
#==============================
#Inferface Bonding
bond= {
    host1 : { 'name': 'bond0', 'member': ['eth1','eth2'], 'mode':'802.3ad' },
    host2 : { 'name': 'bond0', 'member': ['eth1','eth2'], 'mode':'802.3ad' },
    host3 : { 'name': 'bond0', 'member': ['eth1','eth2'], 'mode':'802.3ad' },
    host4 : { 'name': 'bond0', 'member': ['eth1','eth2'], 'mode':'802.3ad' },
    host5 : { 'name': 'bond0', 'member': ['eth1','eth2'], 'mode':'802.3ad' },
}

#OPTIONAL SEPARATION OF MANAGEMENT AND CONTROL + DATA
#====================================================
#Control Interface
control_data = {
    host1 : { 'ip': '5.5.5.12/24', 'gw' : '5.5.5.1', 'device':'bond0' },
    host2 : { 'ip': '5.5.5.13/24', 'gw' : '5.5.5.1', 'device':'bond0' },
    host3 : { 'ip': '5.5.5.14/24', 'gw' : '5.5.5.1', 'device':'bond0' },
    host4 : { 'ip': '5.5.5.15/24', 'gw' : '5.5.5.1', 'device':'bond0' },
    host5 : { 'ip': '5.5.5.16/24', 'gw' : '5.5.5.1', 'device':'bond0' },
}


Thanks in advance for any help,

Chris
_______________________________________________
Users mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/users_lists.opencontrail.org

Reply via email to