Skip to content

Commit

Permalink
Merge "VM launched automatically (V1) as part of service instance sho…
Browse files Browse the repository at this point in the history
…uld be owned by tenant. Otherwise RBAC would prevent user access to the VM." into R3.0
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Sep 21, 2016
2 parents 8a9cdc8 + a6f8b65 commit 8ad5932
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config/svc-monitor/svc_monitor/instance_manager.py
Expand Up @@ -242,6 +242,10 @@ def link_si_to_vm(self, si, st, instance_index, vm_uuid):
VirtualMachineSM.locate(vm_obj.uuid)
self.logger.info("Info: VM %s updated SI %s" %
(vm_obj.get_fq_name_str(), si_obj.get_fq_name_str()))

# vm should be owned by tenant
proj_obj = self._get_project_obj(si.fq_name[:-1])
self._vnc_lib.chown(vm_uuid, proj_obj.uuid)
return vm_obj

def create_port_tuple(self, si, st, instance_index, pt_uuid):
Expand Down

0 comments on commit 8ad5932

Please sign in to comment.