Skip to content

Commit

Permalink
Merge "Adds configurable nova endpoint type in svc monitor" into R2.21.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jun 23, 2016
2 parents c1e141f + 9de8997 commit 246d7b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/config/svc-monitor/contrail-svc-monitor.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ log_level=SYS_NOTICE
#disc_server_port=5998
#region_name=None
cassandra_server_list=127.0.0.1:9160
#nova_endpoint_type=publicURL

[SECURITY]
#use_certs=False
Expand Down
2 changes: 1 addition & 1 deletion src/config/svc-monitor/svc_monitor/nova_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def _novaclient_get(self, proj_name, reauthenticate=False):
api_key=self._args.admin_password,
region_name=self._args.region_name, service_type='compute',
auth_url=auth_url, insecure=self._args.auth_insecure, cacert=self._kscert,
endpoint_type='internalURL')
endpoint_type=self._args.nova_endpoint_type)
return self._nova[proj_name]

def _novaclient_exec(self, resource, oper, proj_name,
Expand Down
3 changes: 2 additions & 1 deletion src/config/svc-monitor/svc_monitor/svc_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,8 @@ def parse_args(args_str):
'cluster_id': '',
'check_service_interval': '60',
'sandesh_send_rate_limit' : SandeshSystem.get_sandesh_send_rate_limit(),
}
'nova_endpoint_type': 'internalURL',
}
secopts = {
'use_certs': False,
'keyfile': '',
Expand Down

0 comments on commit 246d7b8

Please sign in to comment.