I am trying to start opencontrail using the steps mentioned @ https://github.com/Juniper/contrail-installer
But I am getting the below mentioned error while starting contrail-api 2015-07-05 11:37:47 ++ screen -S contrail -p apiSrv -X stuff 'python /usr/local/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py --conf_file /etc/contrail/contrail-api.conf --reset_config --rabbit_user guest --rabbit_password contrail123 & echo $! >/home/dev001/contrail-installer/sta'us/contrail/apiSrv.pid; fg || echo "apiSrv failed to start" | tee "/home/dev001/contrail-installer/status/contrail/apiSrv.failure" 2015-07-05 11:37:47 ++ [[ apiSrv == \a\g\e\n\t ]] 2015-07-05 11:37:47 ++ echo 'Waiting for api-server to start...' 2015-07-05 11:37:47 ++ timeout 180 sh -c 'while ! http_proxy= wget -q -O- http://localhost:8082; do sleep 1; done' root@Aeverie-ub14:/home/dev001/contrail-installer# 2015-07-05 11:40:47 api-server did not start 2015-07-05 11:40:47 ++ echo 'api-server did not start' 2015-07-05 11:40:47 exited with status :1 2015-07-05 11:40:47 ++ exit 1 2015-07-05 11:40:47 ++ clean 2015-07-05 11:40:47 ++ local r=1 2015-07-05 11:40:47 ++ echo 'exited with status :1' 2015-07-05 11:40:47 ++ exit 1 *Output of running command :* $python /usr/local/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py --conf_file /etc/contrail/contrail-api.conf --reset_config --rabbit_user guest --rabbit_password contrail123 WARNING:vnc_api.vnc_api:Exception: Service unavailable time out due to: Service Unavailable Timeout 503 WARNING:vnc_api.vnc_api:Exception: Service unavailable time out due to: Service Unavailable Timeout 503 WARNING:vnc_api.vnc_api:Exception: Service unavailable time out due to: Service Unavailable Timeout 503 WARNING:vnc_api.vnc_api:Exception: Service unavailable time out due to: Service Unavailable Timeout 503 WARNING:vnc_api.vnc_api:Exception: Service unavailable time out due to: Service Unavailable Timeout 503 WARNING:vnc_api.vnc_api:Exception: Service unavailable time out due to: Service Unavailable Timeout 503 WARNING:vnc_api.vnc_api:Exception: Service unavailable time out due to: Service Unavailable Timeout 503 WARNING:vnc_api.vnc_api:Exception: Service unavailable time out due to: Service Unavailable Timeout 503 WARNING:vnc_api.vnc_api:Exception: Service unavailable time out due to: Service Unavailable Timeout 503 WARNING:vnc_api.vnc_api:Exception: Service unavailable time out due to: Service Unavailable Timeout 503 WARNING:vnc_api.vnc_api:Exception: Service unavailable time out due to: Service Unavailable Timeout 503 WARNING:vnc_api.vnc_api:Exception: Service unavailable time out due to: Service Unavailable Timeout 503 Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run result = self._run(*self.args, **self.kwargs) File "/usr/local/lib/python2.7/dist-packages/vnc_openstack/__init__.py", line 671, in _get_api_connection 'domain', ['default-domain']) File "/usr/local/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 465, in fq_name_to_id uri = self._action_uri['name-to-id'] File "/usr/local/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 66, in __getitem__ retry_on_error=False) File "/usr/local/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 428, in _request raise ServiceUnavailableError('Service Unavailable Timeout %d' % status) ServiceUnavailableError: Service unavailable time out due to: Service Unavailable Timeout 503 <Greenlet at 0x7f240549ac30: <bound method ResourceApiDriver._get_api_connection of <vnc_openstack.ResourceApiDriver object at 0x7f2405459190>>> failed with ServiceUnavailableError ERROR:vnc_openstack:<class 'cfgm_common.exceptions.ServiceUnavailableError'> Python 2.7.6: /usr/bin/python Sun Jul 5 11:45:41 2015 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /usr/local/lib/python2.7/dist-packages/vnc_openstack/__init__.py in _resync_domains_projects_forever(self=<vnc_openstack.OpenstackDriver object>) 549 gevent.sleep(1) 550 551 vnc_domains = self._vnc_lib.domains_list()['domains'] 552 for dom in vnc_domains: 553 self._vnc_domain_ids.add(dom['uuid']) vnc_domains undefined self = <vnc_openstack.OpenstackDriver object> self._vnc_lib = <vnc_api.vnc_api.VncApi object> self._vnc_lib.domains_list = <bound method VncApi.domains_list of <vnc_api.vnc_api.VncApi object>> /usr/local/lib/python2.7/dist-packages/vnc_api/gen/vnc_api_client_gen.py in domains_list(self=<vnc_api.vnc_api.VncApi object>, parent_id=None, parent_fq_name=None, obj_uuids=None, fields=None, detail=False, count=False, filters=None) 205 206 """ 207 return self.resource_list('domain', parent_id = parent_id, parent_fq_name = parent_fq_name, obj_uuids=obj_uuids, fields=fields, detail=detail, count=count, filters=filters) 208 #end domains_list 209 self = <vnc_api.vnc_api.VncApi object> self.resource_list = <bound method VncApi.resource_list of <vnc_api.vnc_api.VncApi object>> parent_id = None parent_fq_name = None obj_uuids = None fields = None detail = False count = False filters = None /usr/local/lib/python2.7/dist-packages/vnc_api/vnc_api.py in resource_list(self=<vnc_api.vnc_api.VncApi object>, obj_type='domain', parent_id=None, parent_fq_name=None, back_ref_id=None, obj_uuids=None, fields=None, detail=False, count=False, filters=None) 665 content = self._request_server(rest.OP_GET, 666 obj_class.create_uri, 667 data = query_params) 668 669 if not detail: data undefined query_params = {'count': False, 'detail': False} /usr/local/lib/python2.7/dist-packages/vnc_api/vnc_api.py in _request_server(self=<vnc_api.vnc_api.VncApi object>, op=2, url='', data={'count': False, 'detail': False}, retry_on_error=True, retry_after_authn=False, retry_count=30) 367 if not hasattr(self, '_cfg_root_url'): 368 homepage = self._request(rest.OP_GET, self._base_url, 369 retry_on_error=False) 370 self._cfg_root_url = self._parse_homepage(homepage) 371 retry_on_error = True builtinFalse = False /usr/local/lib/python2.7/dist-packages/vnc_api/vnc_api.py in _request(self=<vnc_api.vnc_api.VncApi object>, op=2, url='/', data=None, retry_on_error=False, retry_after_authn=False, retry_count=30) 426 retried += 1 427 if retried >= retry_count: 428 raise ServiceUnavailableError('Service Unavailable Timeout %d' % status) 429 430 time.sleep(1) global ServiceUnavailableError = <class 'cfgm_common.exceptions.ServiceUnavailableError'> status = 503 <class 'cfgm_common.exceptions.ServiceUnavailableError'>: Service unavailable time out due to: Service Unavailable Timeout 503 __class__ = <class 'cfgm_common.exceptions.ServiceUnavailableError'> __delattr__ = <method-wrapper '__delattr__' of ServiceUnavailableError object> __dict__ = {'_reason_code': 'Service Unavailable Timeout 503'} __doc__ = None __format__ = <built-in method __format__ of ServiceUnavailableError object> __getattribute__ = <method-wrapper '__getattribute__' of ServiceUnavailableError object> __getitem__ = <method-wrapper '__getitem__' of ServiceUnavailableError object> __getslice__ = <method-wrapper '__getslice__' of ServiceUnavailableError object> __hash__ = <method-wrapper '__hash__' of ServiceUnavailableError object> __init__ = <bound method ServiceUnavailableError.__init__ of ServiceUnavailableError()> __module__ = 'cfgm_common.exceptions' __new__ = <built-in method __new__ of type object> __reduce__ = <built-in method __reduce__ of ServiceUnavailableError object> __reduce_ex__ = <built-in method __reduce_ex__ of ServiceUnavailableError object> __repr__ = <method-wrapper '__repr__' of ServiceUnavailableError object> __setattr__ = <method-wrapper '__setattr__' of ServiceUnavailableError object> __setstate__ = <built-in method __setstate__ of ServiceUnavailableError object> __sizeof__ = <built-in method __sizeof__ of ServiceUnavailableError object> __str__ = <bound method ServiceUnavailableError.__str__ of ServiceUnavailableError()> __subclasshook__ = <built-in method __subclasshook__ of type object> __unicode__ = <built-in method __unicode__ of ServiceUnavailableError object> __weakref__ = None _reason_code = 'Service Unavailable Timeout 503' args = () message = '' The above is a description of an error in a Python program. Here is the original traceback: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/vnc_openstack/__init__.py", line 551, in _resync_domains_projects_forever vnc_domains = self._vnc_lib.domains_list()['domains'] File "/usr/local/lib/python2.7/dist-packages/vnc_api/gen/vnc_api_client_gen.py", line 207, in domains_list return self.resource_list('domain', parent_id = parent_id, parent_fq_name = parent_fq_name, obj_uuids=obj_uuids, fields=fields, detail=detail, count=count, filters=filters) File "/usr/local/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 667, in resource_list data = query_params) File "/usr/local/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 369, in _request_server retry_on_error=False) File "/usr/local/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 428, in _request raise ServiceUnavailableError('Service Unavailable Timeout %d' % status) ServiceUnavailableError: Service unavailable time out due to: Service Unavailable Timeout 503 ERROR:Aeverie-ub14:contrail-api:Config:0:Connection to API server failed: Service unavailable time out due to: Service Unavailable Timeout 503 ERROR:vnc_openstack:<class 'keystoneclient.apiclient.exceptions.Unauthorized'> Python 2.7.6: /usr/bin/python Sun Jul 5 11:45:41 2015 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /usr/local/lib/python2.7/dist-packages/vnc_openstack/__init__.py in _resync_domains_projects_forever(self=<vnc_openstack.OpenstackDriver object>) 579 580 try: 581 retry = self._resync_all_projects() 582 if retry: 583 continue retry = False self = <vnc_openstack.OpenstackDriver object> self._resync_all_projects = <bound method OpenstackDriver._resync_all_projects of <vnc_openstack.OpenstackDriver object>> /usr/local/lib/python2.7/dist-packages/vnc_openstack/__init__.py in _resync_all_projects(self=<vnc_openstack.OpenstackDriver object>) 504 505 def _resync_all_projects(self): 506 self._get_keystone_conn() 507 # compare new and old set, 508 # optimize for common case where nothing has changed, self = <vnc_openstack.OpenstackDriver object> self._get_keystone_conn = <bound method OpenstackDriver._ksv2_get_conn of <vnc_openstack.OpenstackDriver object>> /usr/local/lib/python2.7/dist-packages/vnc_openstack/__init__.py in _ksv2_get_conn(self=<vnc_openstack.OpenstackDriver object>) 241 tenant_name=self._admin_tenant, 242 auth_url=self._auth_url, 243 insecure=self._insecure) 244 # end _ksv2_get_conn 245 insecure undefined self = <vnc_openstack.OpenstackDriver object> self._insecure = True /usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py in __init__(self=<keystoneclient.v2_0.client.Client object>, **kwargs={'auth_url': 'http://127.0.0.1:5000/v2.0', 'insecure': True, 'password': 'contrail123', 'tenant_name': 'admin', 'username': 'admin'}) 142 # authenticating on the first required call. 143 if not kwargs.get('session') and self.management_url is None: 144 self.authenticate() 145 146 def get_raw_token_from_identity_service(self, auth_url, username=None, self = <keystoneclient.v2_0.client.Client object> self.authenticate = <bound method Client.authenticate of <keystoneclient.v2_0.client.Client object>> /usr/lib/python2.7/dist-packages/keystoneclient/utils.py in inner(*args=(<keystoneclient.v2_0.client.Client object>,), **kwargs={}) 316 logger.warn(message) 317 318 return func(*args, **kwargs) 319 320 return inner func = <function authenticate> args = (<keystoneclient.v2_0.client.Client object>,) kwargs = {} /usr/lib/python2.7/dist-packages/keystoneclient/httpclient.py in authenticate(self=<keystoneclient.v2_0.client.Client object>, username='admin', password='contrail123', tenant_name=None, tenant_id=None, auth_url='http://127.0.0.1:5000/v2.0', token=None, user_id=None, domain_name=None, domain_id=None, project_name='admin', project_id=None, user_domain_id='default', user_domain_name=None, project_domain_id='default', project_domain_name=None, trust_id=None, region_name=None) 390 new_token_needed = True 391 kwargs['password'] = password 392 resp = self.get_raw_token_from_identity_service(**kwargs) 393 394 if isinstance(resp, access.AccessInfo): resp undefined self = <keystoneclient.v2_0.client.Client object> self.get_raw_token_from_identity_service = <bound method Client.get_raw_token_from_identity...ce of <keystoneclient.v2_0.client.Client object>> kwargs = {'auth_url': 'http://127.0.0.1:5000/v2.0', 'domain_id': None, 'domain_name': None, 'password': 'contrail123', 'project_domain_id': 'default', 'project_domain_name': None, 'project_id': None, 'project_name': 'admin', 'token': None, 'trust_id': None, ...} /usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py in get_raw_token_from_identity_service(self=<keystoneclient.v2_0.client.Client object>, auth_url='http://127.0.0.1:5000/v2.0', username='admin', password='contrail123', tenant_name=None, tenant_id=None, token=None, project_name='admin', project_id=None, trust_id=None, **kwargs={'domain_id': None, 'domain_name': None, 'project_domain_id': 'default', 'project_domain_name': None, 'user_domain_id': 'default', 'user_domain_name': None, 'user_id': None}) 168 tenant_name=project_name or tenant_name) 169 170 return a.get_auth_ref(self.session) 171 except (exceptions.AuthorizationFailure, exceptions.Unauthorized): 172 _logger.debug("Authorization Failed.") a = <keystoneclient.auth.identity.v2.Password object> a.get_auth_ref = <bound method Password.get_auth_ref of <keystoneclient.auth.identity.v2.Password object>> self = <keystoneclient.v2_0.client.Client object> self.session = <keystoneclient.session.Session object> /usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/v2.py in get_auth_ref(self=<keystoneclient.auth.identity.v2.Password object>, session=<keystoneclient.session.Session object>, **kwargs={}) 84 85 resp = session.post(url, json=params, headers=headers, 86 authenticated=False) 87 return access.AccessInfoV2(**resp.json()['access']) 88 authenticated undefined builtinFalse = False /usr/lib/python2.7/dist-packages/keystoneclient/session.py in post(self=<keystoneclient.session.Session object>, url=' http://127.0.0.1:5000/v2.0/tokens', **kwargs={'authenticated': False, 'headers': {'Content-Type': 'application/json', 'User-Agent': 'python-keystoneclient'}, 'json': {'auth': {'passwordCredentials': {'password': 'contrail123', 'username': 'admin'}, 'tenantName': 'admin'}}}) 308 309 def post(self, url, **kwargs): 310 return self.request(url, 'POST', **kwargs) 311 312 def put(self, url, **kwargs): self = <keystoneclient.session.Session object> self.request = <bound method Session.request of <keystoneclient.session.Session object>> url = 'http://127.0.0.1:5000/v2.0/tokens' kwargs = {'authenticated': False, 'headers': {'Content-Type': 'application/json', 'User-Agent': 'python-keystoneclient'}, 'json': {'auth': {'passwordCredentials': {'password': 'contrail123', 'username': 'admin'}, 'tenantName': 'admin'}}} /usr/lib/python2.7/dist-packages/keystoneclient/utils.py in inner(*args=(<keystoneclient.session.Session object>, ' http://127.0.0.1:5000/v2.0/tokens', 'POST'), **kwargs={'authenticated': False, 'headers': {'Content-Type': 'application/json', 'User-Agent': 'python-keystoneclient'}, 'json': {'auth': {'passwordCredentials': {'password': 'contrail123', 'username': 'admin'}, 'tenantName': 'admin'}}}) 316 logger.warn(message) 317 318 return func(*args, **kwargs) 319 320 return inner func = <function request> args = (<keystoneclient.session.Session object>, ' http://127.0.0.1:5000/v2.0/tokens', 'POST') kwargs = {'authenticated': False, 'headers': {'Content-Type': 'application/json', 'User-Agent': 'python-keystoneclient'}, 'json': {'auth': {'passwordCredentials': {'password': 'contrail123', 'username': 'admin'}, 'tenantName': 'admin'}}} /usr/lib/python2.7/dist-packages/keystoneclient/session.py in request(self=<keystoneclient.session.Session object>, url=' http://127.0.0.1:5000/v2.0/tokens', method='POST', json={'auth': {'passwordCredentials': {'password': 'contrail123', 'username': 'admin'}, 'tenantName': 'admin'}}, original_ip=None, user_agent='python-keystoneclient', redirect=30, authenticated=False, endpoint_filter=None, **kwargs={'allow_redirects': False, 'data': '{"auth": {"tenantName": "admin", "passwordCreden..."username": "admin", "password": "contrail123"}}}', 'headers': {'Content-Type': 'application/json', 'User-Agent': 'python-keystoneclient'}, 'verify': False}) 249 _logger.debug('Request returned failure status: %s', 250 resp.status_code) 251 raise exceptions.from_response(resp, method, url) 252 253 return resp global exceptions = <module 'keystoneclient.exceptions' from '/usr/l...2.7/dist-packages/keystoneclient/exceptions.pyc'> exceptions.from_response = <function from_response> resp = <Response [401]> method = 'POST' url = 'http://127.0.0.1:5000/v2.0/tokens' <class 'keystoneclient.apiclient.exceptions.Unauthorized'>: The request you have made requires authentication. (HTTP 401) __class__ = <class 'keystoneclient.apiclient.exceptions.Unauthorized'> __delattr__ = <method-wrapper '__delattr__' of Unauthorized object> __dict__ = {'details': None, 'http_status': 401, 'message': u'The request you have made requires authentication.', 'method': 'POST', 'request_id': None, 'response': <Response [401]>, 'url': ' http://127.0.0.1:5000/v2.0/tokens'} __doc__ = 'HTTP 401 - Unauthorized.\n\n Similar to 403 For...and has failed or has not yet been provided.\n ' __format__ = <built-in method __format__ of Unauthorized object> __getattribute__ = <method-wrapper '__getattribute__' of Unauthorized object> __getitem__ = <method-wrapper '__getitem__' of Unauthorized object> __getslice__ = <method-wrapper '__getslice__' of Unauthorized object> __hash__ = <method-wrapper '__hash__' of Unauthorized object> __init__ = <bound method Unauthorized.__init__ of Unauthori...have made requires authentication. (HTTP 401)',)> __module__ = 'keystoneclient.apiclient.exceptions' __new__ = <built-in method __new__ of type object> __reduce__ = <built-in method __reduce__ of Unauthorized object> __reduce_ex__ = <built-in method __reduce_ex__ of Unauthorized object> __repr__ = <method-wrapper '__repr__' of Unauthorized object> __setattr__ = <method-wrapper '__setattr__' of Unauthorized object> __setstate__ = <built-in method __setstate__ of Unauthorized object> __sizeof__ = <built-in method __sizeof__ of Unauthorized object> __str__ = <method-wrapper '__str__' of Unauthorized object> __subclasshook__ = <built-in method __subclasshook__ of type object> __unicode__ = <built-in method __unicode__ of Unauthorized object> __weakref__ = None args = (u'The request you have made requires authentication. (HTTP 401)',) details = None http_status = 401 message = u'The request you have made requires authentication.' method = 'POST' request_id = None response = <Response [401]> url = 'http://127.0.0.1:5000/v2.0/tokens' The above is a description of an error in a Python program. Here is the original traceback: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/vnc_openstack/__init__.py", line 581, in _resync_domains_projects_forever retry = self._resync_all_projects() File "/usr/local/lib/python2.7/dist-packages/vnc_openstack/__init__.py", line 506, in _resync_all_projects self._get_keystone_conn() File "/usr/local/lib/python2.7/dist-packages/vnc_openstack/__init__.py", line 243, in _ksv2_get_conn insecure=self._insecure) File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 144, in __init__ self.authenticate() File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 318, in inner return func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/keystoneclient/httpclient.py", line 392, in authenticate resp = self.get_raw_token_from_identity_service(**kwargs) File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 170, in get_raw_token_from_identity_service return a.get_auth_ref(self.session) File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/v2.py", line 86, in get_auth_ref authenticated=False) File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 310, in post return self.request(url, 'POST', **kwargs) File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 318, in inner return func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 251, in request raise exceptions.from_response(resp, method, url) Unauthorized: The request you have made requires authentication. (HTTP 401) ERROR:Aeverie-ub14:contrail-api:Config:0:Failed to resync projects: The request you have made requires authentication. (HTTP 401) Kindly help me in resolving this issue. I am clueless on what could be wrong. Thanks and Regards, Parul
_______________________________________________ Users mailing list [email protected] http://lists.opencontrail.org/mailman/listinfo/users_lists.opencontrail.org
