Bug #5204

Restricted Attributes in Vectors are not handled correctly when instantiated a

Added by Tino Vázquez about 4 years ago. Updated almost 4 years ago.

Status:ClosedStart date:06/27/2017
Priority:HighDue date:
Assignee:Juan Jose Montiel Cano% Done:

0%

Category:Core & System
Target version:Release 5.4.1
Resolution:fixed Pull request:
Affected Versions:OpenNebula 5.2

Description

If a vcenter imported VM Template is instantiated by a regular user, it fails due to the following RESTRICTED ATTRIBUTES:

VM_RESTRICTED_ATTR = "NIC/OPENNEBULA_MANAGED"
VM_RESTRICTED_ATTR = "NIC/VCENTER_INSTANCE_ID"
VM_RESTRICTED_ATTR = "NIC/VCENTER_NET_REF"
VM_RESTRICTED_ATTR = "NIC/VCENTER_PORTGROUP_TYPE"
VM_RESTRICTED_ATTR = "DISK/OPENNEBULA_MANAGED"
VM_RESTRICTED_ATTR = "DISK/VCENTER_DS_REF"
VM_RESTRICTED_ATTR = "DISK/VCENTER_INSTANCE_ID"

The above has been disabled for 5.4 Beta 2

Associated revisions

Revision 9698ea46
Added by Tino Vázquez about 4 years ago

B #5204: Disable restricted attributes for NIC and DISK vCenter VMs

Revision 37740d4c
Added by Ruben S. Montero about 4 years ago

B #5204: Wrong restricted attribute for VMs after a resize+chown
operation

Revision 89c5ae46
Added by Ruben S. Montero about 4 years ago

B #5204: Wrong restricted attribute for VMs after a resize+chown
operation

Revision c5f70a4d
Added by Juan Jose Montiel Cano almost 4 years ago

F #5204: Work on restrictred attributes

(cherry picked from commit 6c1c618093a379b2b52608a146d1c79160cac43d)

Revision 4c8b82e2
Added by Ruben S. Montero almost 4 years ago

F #5204: Work to deal with restricted attributes (vector)

Revision a11524ac
Added by Ruben S. Montero almost 4 years ago

F #5204: Enable default restricted attributes

Revision 329652e3
Added by Juan Jose Montiel Cano almost 4 years ago

F #5204 Changed append template for restricted attributes (#453)

Revision cbdf06c7
Added by Juan Jose Montiel Cano almost 4 years ago

F #5204 removed test functions (#457)

Revision aa446f5a
Added by Ruben S. Montero almost 4 years ago

F #5204: Get rid of unnneeded remove_restricted.
VirtualMachine::append_template needs to be update

Revision ae1dff79
Added by Juan Jose Montiel Cano almost 4 years ago

F #5204 Changed append template (#459)

Revision c9d22b8b
Added by Ruben S. Montero almost 4 years ago

F #5204: Support for restricted attributes of type Vector

(cherry picked from commit 59b5ee8dd1ccb91161ce1ee83e99f11cbe9f1b95)

Revision 360fe6a8
Added by Ruben S. Montero almost 4 years ago

F #5204: Support for restricted attributes of type Vector. It does not
include update to default values to oned.conf

(cherry picked from commit 59b5ee8dd1ccb91161ce1ee83e99f11cbe9f1b95)

Revision 107ee183
Added by Juan Jose Montiel Cano almost 4 years ago

F #5204 Show Simple restricted attribute (#464)

Revision 27bde4a6
Added by Juan Jose Montiel Cano almost 4 years ago

F #5204 Show Simple restricted attribute (#464)

(cherry picked from commit 107ee18380023feb58542fda427e06a2ecfd22bd)

History

#1 Updated by Ruben S. Montero about 4 years ago

  • Subject changed from Restricted Attributes for vCenter causes normal users not to be able to instantiate VM Templates to Restricted Attributes in Vectors are not handled correctly when instantiated a
  • Priority changed from Normal to High
  • Target version changed from Release 5.4 to Release 5.6
  • Affected Versions OpenNebula 5.2 added

Currently VM_RESTICTED attributes prevents the instantiation of VMs handed over to a regular user by oneadmin. The vector/restricted attributes have been disbaled by default in 5.4. This feature is to make template-aware merge methods that are able to cherry-pick the right attributes from a vector (i.e. DISK, NIC, AR...)

#2 Updated by Ruben S. Montero almost 4 years ago

  • Target version changed from Release 5.6 to Release 5.4.1

#3 Updated by Ruben S. Montero almost 4 years ago

  • Status changed from Pending to New
  • Assignee set to Juan Jose Montiel Cano

#4 Updated by Ruben S. Montero almost 4 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Also available in: Atom PDF