HA provisioning with fab fails if config nodes in testbed.py are not is sequential order ( The chosen master node is not the first node)
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R2.20 |
Fix Committed
|
Critical
|
Ranjeet R | |||
Trunk |
Fix Committed
|
Critical
|
Ranjeet R |
Bug Description
testbed.py with failed configuration
-------
from fabric.api import env
import os
#Management ip addresses of hosts in the cluster
host1 = 'root@10.87.140.27'
host2 = 'root@10.87.140.48'
host3 = 'root@10.
host4 = 'root@10.87.129.59'
host5 = 'root@10.87.140.49'
#External routers if any
ext_routers = [('montreal', '10.87.140.140')]
#Autonomous system number
router_asn = 64512
public_vn_rtgt = 10000
public_vn_subnet = "10.87.129.224/27"
#Host from which the fab commands are triggered to install and provision
host_build = 'root@10.87.140.27'
#Role definition of the hosts.
env.roledefs = {
'all': [host1, host2, host3, host4, host5],
'cfgm': [host1,
'openstack': [host1,
'control': [host1,
'compute': [host4,host5],
'collector': [host1,
'webui': [host1,
'database': [host1,
'storage-
'storage-
'build': [host_build],
}
env.hostnames = {
'all': [ 'cmbu-vxa20-
}
-------
During fab setup_all, the IPs got sorted and master node was chosen to be host3 10.87.129.168 and the VIP were assigned to this node
This led to following error
2015-05-14 18:38:37:837959: [root@10.87.129.59] out: [localhost] local: chkconfig supervisor-vrouter on
2015-05-14 18:38:37:838152: [root@10.87.129.59] out: [localhost] local: python /opt/contrail/
2015-05-14 18:38:37:838274: [root@10.87.129.59] out: Traceback (most recent call last):
2015-05-14 18:38:38:171540: [root@10.87.129.59] out: File "/opt/contrail/
2015-05-14 18:38:38:171698: [root@10.87.129.59] out: main()
2015-05-14 18:38:38:171791: [root@10.87.129.59] out: File "/opt/contrail/
2015-05-14 18:38:38:171881: [root@10.87.129.59] out: VrouterProvisio
2015-05-14 18:38:38:171968: [root@10.87.129.59] out: File "/opt/contrail/
2015-05-14 18:38:38:172056: [root@10.87.129.59] out: auth_host=
2015-05-14 18:38:38:172143: [root@10.87.129.59] out: File "/usr/lib/
2015-05-14 18:38:38:172264: [root@10.87.129.59] out: retry_on_
2015-05-14 18:38:38:172361: [root@10.87.129.59] out: File "/usr/lib/
2015-05-14 18:38:38:172450: [root@10.87.129.59] out: content = self._request(op, url, data=data, retry_after_
2015-05-14 18:38:38:172564: [root@10.87.129.59] out: File "/usr/lib/
2015-05-14 18:38:38:172653: [root@10.87.129.59] out: raise HttpError(status, content)
2015-05-14 18:38:38:172741: [root@10.87.129.59] out: cfgm_common.
2015-05-14 18:38:38:172826: [root@10.87.129.59] out:
2015-05-14 18:38:38:189702: [root@10.87.129.59] out: Fatal error: local() encountered an error (return code 1) while executing 'python /opt/contrail/
2015-05-14 18:38:38:189806: [root@10.87.129.59] out:
2015-05-14 18:38:38:189889: [root@10.87.129.59] out: Aborting.
2015-05-14 18:38:38:189954: [root@10.87.129.59] out:
Review in progress for https:/ /review. opencontrail. org/10618
Submitter: Ranjeet R (<email address hidden>)