Skip to content

Commit

Permalink
LBaaS scheduler should not use hardcoded tenant name
Browse files Browse the repository at this point in the history
This fix removes the hardcoded 'admin' tenant name from
lbaas scheduler and reads the tenant from config.
It also fixes the default admin_tenant_name in svc_monitor.py
to 'admin'.

Closes-Bug: #1543296
Change-Id: If5e558e27ef6fd81d81cf56a317f39dbac2854ce
  • Loading branch information
varun_lodaya committed Feb 19, 2016
1 parent 3c0e649 commit cb279b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -65,7 +65,8 @@ def _get_candidates(self, si_uuid, vm_uuid):
vr_list = []
if self._args.netns_availability_zone:
az_list = self._nc.oper('availability_zones', 'list',
'admin', detailed=True)
self._args.admin_tenant_name,
detailed=True)
for az in az_list:
if self._args.netns_availability_zone in str(az):
for host in az.hosts:
Expand Down
2 changes: 1 addition & 1 deletion src/config/svc-monitor/svc_monitor/svc_monitor.py
Expand Up @@ -1012,7 +1012,7 @@ def parse_args(args_str):
'auth_insecure': True,
'admin_user': 'user1',
'admin_password': 'password1',
'admin_tenant_name': 'default-domain',
'admin_tenant_name': 'admin',
'certfile': '',
'keyfile': '',
'cafile': ''
Expand Down

0 comments on commit cb279b2

Please sign in to comment.