Hi,
I found that HA feature in opencontrail 2.20 can't be installed successfully.
can't find the VIP.
in further research, I found 'virtual_router_id' of vrrp instance in
/etc/keepalived/keepalived.conf is set to be "None",
then find the code in contrail-2.01:
contrail_provisioning/common/keepalived_setup.py
if vip_name == 'INTERNAL':
router_id = 101
if 'openstack' in self._args.role:
router_id = 100
external_device = internal_device
else:
router_id = 201
if 'openstack' in self._args.role:
router_id = 200
but in the new version
if vip_name == 'INTERNAL':
router_id = self._args.internal_virtual_router_id
external_device = internal_device
else:
router_id = self._args.external_virtual_router_id
it needs to be identify in fabfile/tasks/ha.py:
with cd(INSTALLER_DIR):
cmd = "setup-vnc-keepalived\
--self_ip %s --internal_vip %s --mgmt_self_ip %s\
--self_index %d --num_nodes %d --role %s" % ( self_ip,
internal_vip, mgmt_ip, (keepalived_host_list.index(self_host) +
1),
len(env.roledefs[role]), role)
if external_vip:
cmd += ' --external_vip %s' % external_vip
sudo(cmd)
but there is no "--internal_virtual_router_id" or
"--external_virtual_router_id" in param ,
so "vrouter_id" should be defined in testbed.py ?
CertusNet
赛特斯信息科技股份有限公司
龚瑞涛 | 高级软件工程师
上海市杨浦区国泰路11号复旦科技园大厦20层
电话:021 6109 6070 �C8004
手机:156 1895 8005
公司网址:www.certusnet.com
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org