Conclusion: it was due to incorrect java version. Mandatory: java version "1.7.0_65" OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-0ubuntu0.14.04.1) OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
Thanks, Joao From: Joao Prino Sent: 13 March 2015 15:00 To: 'Hampapur Ajay' Cc: [email protected] Subject: RE: [opencontrail-dev] KeyError: 'name-to-id' After using https://review.opencontrail.org/#/c/4974/1/src/api-lib/vnc_api.py ---------------------------------------------------------- contrail-status == Contrail Control == supervisor-control: active contrail-control initializing (Number of connections:4, Expected:5) contrail-control-nodemgr active contrail-dns active contrail-named active == Contrail Analytics == supervisor-analytics: active contrail-analytics-api active contrail-analytics-nodemgr active contrail-collector active contrail-query-engine active contrail-snmp-collector active contrail-topology active == Contrail Config == supervisor-config: inactive contrail-api:0 inactive contrail-config-nodemgr inactive contrail-device-manager inactive contrail-discovery:0 inactive contrail-schema STOPPING contrail-svc-monitor initializing ifmap failed == Contrail Web UI == supervisor-webui: active contrail-webui active contrail-webui-middleware active == Contrail Database == supervisor-database: active contrail-database active contrail-database-nodemgr active == Contrail Support Services == supervisor-support-service: active rabbitmq-server active ---------------------------------------------------------- No handlers could be found for logger "vnc_api.vnc_api" Traceback (most recent call last): File "provision_control.py", line 133, in <module> main() File "provision_control.py", line 129, in main ControlProvisioner(args_str) File "provision_control.py", line 29, in __init__ fq_name=['default-global-system-config']) File "/usr/lib/python2.7/dist-packages/vnc_api/gen/vnc_api_client_gen.py", line 2122, in global_system_config_read (args_ok, result) = self._read_args_to_id('global-system-config', fq_name, fq_name_str, id, ifmap_id) File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 338, in _read_args_to_id return (True, self.fq_name_to_id(obj_type, fq_name)) File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 198, in api_connection retry_on_error=False) File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 405, in _request raise ServiceUnavailableError('Service Unavailable Timeout 503') cfgm_common.exceptions.ServiceUnavailableError: Service unavailable time out due to: Service Unavailable Timeout 503 Fatal error: sudo() received nonzero return code 1 while executing! ---------------------------------------------------------- This seems to be the same behaviour for every provision task (prov_control_bgp prov_external_bgp prov_metadata_services prov_encap_type) Thanks, Joao From: Hampapur Ajay [mailto:[email protected]] Sent: 12 March 2015 21:14 To: Joao Prino Cc: [email protected]<mailto:[email protected]> Subject: Re: [opencontrail-dev] KeyError: 'name-to-id' can you send the output of contrail-status? how was the cluster setup - pre-build packages? fab or otherwise? and can you describe the testbed? thanks ajay On Mar 12, 2015, at 6:35 AM, Joao Prino wrote: Hi, Trying to deploy a 2.10 cluster and hitting this issue after verify_webui of the setup_all script. 2015-03-12 13:30:00:169081: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: No handlers could be found for logger "vnc_api.vnc_api" 2015-03-12 13:30:30:267772: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: Traceback (most recent call last): 2015-03-12 13:30:30:267980: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: File "/opt/contrail/utils/provision_vrouter.py", line 186, in <module> 2015-03-12 13:30:30:268091: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: main() 2015-03-12 13:30:30:268198: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: File "/opt/contrail/utils/provision_vrouter.py", line 182, in main 2015-03-12 13:30:30:268288: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: VrouterProvisioner(args_str) 2015-03-12 13:30:30:268376: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: File "/opt/contrail/utils/provision_vrouter.py", line 42, in __init__ 2015-03-12 13:30:30:268462: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: fq_name=['default-global-system-config']) 2015-03-12 13:30:30:268548: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: File "/usr/lib/python2.7/dist-packages/vnc_api/gen/vnc_api_client_gen.py", line 2122, in global_system_config_read 2015-03-12 13:30:30:268653: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: (args_ok, result) = self._read_args_to_id('global-system-config', fq_name, fq_name_str, id, ifmap_id) 2015-03-12 13:30:30:268773: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 329, in _read_args_to_id 2015-03-12 13:30:30:268863: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: return (True, self.fq_name_to_id(obj_type, fq_name)) 2015-03-12 13:30:30:268961: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 436, in fq_name_to_id 2015-03-12 13:30:30:269057: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: uri = self._action_uri['name-to-id'] 2015-03-12 13:30:30:269165: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: KeyError: 'name-to-id' 2015-03-12 13:30:30:269279: [[email protected]<mailto:[email protected]>] out: [[email protected]<mailto:[email protected]>] out: 2015-03-12 13:30:30:277638: [[email protected]<mailto:[email protected]>] out: 2015-03-12 13:30:30:277937: [[email protected]<mailto:[email protected]>] out: Fatal error: run() received nonzero return code 1 while executing! All remaining operations fail with the same error when manually invoked. Let me know if further logs are required. Can anyone please assist? Thanks in advance. Cheers, Joao _______________________________________________ Dev mailing list [email protected]<mailto:[email protected]> http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org
_______________________________________________ Dev mailing list [email protected] http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org
