fab setup_all depends on connection between build_host and control_data ip of db node
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R2.20 |
Fix Committed
|
Critical
|
Ignatious Johnson Christopher | |||
Trunk |
Fix Committed
|
Critical
|
Ignatious Johnson Christopher |
Bug Description
Image : R2.20 #18 (Juno) 14.04.1
fab setp_all fails with below trace. Possible suspect is the fab trying to connect to the internal vIP (172.16.80.25), which is not reachable from the build_host. The setup_all should provision the cluster using external vIP.
2015-05-14 00:24:28:645918: [root@172.16.70.10] out: /usr/bin/
2015-05-14 00:24:28:654366: [root@172.16.70.10] out: [localhost] local: chkconfig nova-compute on
2015-05-14 00:24:28:819291: [root@172.16.70.10] out: [localhost] local: service nova-compute restart
2015-05-14 00:24:28:819945: [root@172.16.70.10] out: nova-compute stop/waiting
2015-05-14 00:24:28:820476: [root@172.16.70.10] out: nova-compute start/running, process 15468
2015-05-14 00:24:28:853088: [root@172.16.70.10] out: [localhost] local: chkconfig supervisor-vrouter on
2015-05-14 00:24:28:853736: [root@172.16.70.10] out: [localhost] local: python /opt/contrail/
2015-05-14 00:24:28:854327: [root@172.16.70.10] out: Traceback (most recent call last):
2015-05-14 00:24:31:977413: [root@172.16.70.10] out: File "/opt/contrail/
2015-05-14 00:24:31:978173: [root@172.16.70.10] out: main()
2015-05-14 00:24:31:978756: [root@172.16.70.10] out: File "/opt/contrail/
2015-05-14 00:24:31:979354: [root@172.16.70.10] out: VrouterProvisio
2015-05-14 00:24:31:979891: [root@172.16.70.10] out: File "/opt/contrail/
2015-05-14 00:24:31:980416: [root@172.16.70.10] out: auth_host=
2015-05-14 00:24:31:980994: [root@172.16.70.10] out: File "/usr/lib/
2015-05-14 00:24:31:981620: [root@172.16.70.10] out: retry_on_
2015-05-14 00:24:31:982209: [root@172.16.70.10] out: File "/usr/lib/
2015-05-14 00:24:31:982753: [root@172.16.70.10] out: raise ConnectionError
2015-05-14 00:24:31:983288: [root@172.16.70.10] out: requests.
2015-05-14 00:24:31:983825: [root@172.16.70.10] out:
2015-05-14 00:24:31:984369: [root@172.16.70.10] out: Fatal error: local() encountered an error (return code 1) while executing 'python /opt/contrail/
2015-05-14 00:24:31:984868: [root@172.16.70.10] out:
2015-05-14 00:24:31:985114: [root@172.16.70.10] out: Aborting.
2015-05-14 00:24:31:985325: [root@172.16.70.10] out:
2015-05-14 00:24:31:987654:
2015-05-14 00:24:31:995849: Fatal error: sudo() received nonzero return code 1 while executing!
2015-05-14 00:24:31:995849:
2015-05-14 00:24:31:995849: Requested: setup-vnc-compute --self_ip 172.16.80.10 --cfgm_ip 172.16.80.25 --cfgm_user root --cfgm_passwd c0ntrail123 --ncontrols 3 --amqp_server_ip 172.16.80.25 --service_token aefc2944c765806
2015-05-14 00:24:31:995849: Executed: sudo -S -p 'sudo password:' /bin/bash -l -c "cd /opt/contrail/bin && setup-vnc-compute --self_ip 172.16.80.10 --cfgm_ip 172.16.80.25 --cfgm_user root --cfgm_passwd c0ntrail123 --ncontrols 3 --amqp_server_ip 172.16.80.25 --service_token aefc2944c765806
2015-05-14 00:24:31:995849:
2015-05-14 00:24:31:995970: Aborting.
tags: | added: provisioning |
From below logs the Fab have connected to [root@172.16.70.10] -- External network and executing "local: python /opt/contrail/ utils/provision _vrouter. py" locally in node [root@172. 16.70.10] .
logs: utils/provision _vrouter. py --host_name csol1-node10 --host_ip 172.16.80.10 --api_server_ip 172.16.80.25 --oper add --admin_user admin --admin_password c0ntrail123 --admin_tenant_name admin --openstack_ip 172.16.80.25
---------
2015-05-14 00:24:28:853736: [root@172.16.70.10] out: [localhost] local: python /opt/contrail/
provision_ vrouter. py will connect to api server thought internal network( --api_server_ ip 172.16.80.25) and add the vrouter node to the config. Looks like connection from compute node(root@ 172.16. 70.10) to api-server is not established from the below logs,
logs: python2. 7/dist- packages/ vnc_api/ vnc_api. py", line 391, in _request exceptions. ConnectionError
---------
2015-05-14 00:24:31:982209: [root@172.16.70.10] out: File "/usr/lib/
2015-05-14 00:24:31:982753: [root@172.16.70.10] out: raise ConnectionError
2015-05-14 00:24:31:983288: [root@172.16.70.10] out: requests.