Skip to content

Commit

Permalink
VM launched automatically (V1) as part of service instance should
Browse files Browse the repository at this point in the history
be owned by tenant. Otherwise RBAC would prevent user access to the
VM.

Change-Id: I7645dde6c1b1dc53e9b3577bbfdead127dfc1b2f
Closes-Bug: #1625874
  • Loading branch information
Deepinder Setia committed Sep 21, 2016
1 parent a6cf59d commit a6f8b65
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
Original file line number Diff line number Diff line change
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 a6f8b65

Please sign in to comment.