Tomas Jelinek has posted comments on this change. Change subject: restapi: copy vm/template permissions REST part ......................................................................
Patch Set 5: (3 inline comments) .................................................... File backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml Line 124: vm.high_availability.enabled: xs:boolean Line 125: vm.domain.name: xs:string Line 126: vm.description: xs:string Line 127: vm.stateless: xs:boolean Line 128: vm.permissions.clone: xs:boolean it should not go under the add from snapshot - please see my comment in the BackendVmsResource Line 129: vm.delete_protected: xs:boolean Line 130: vm.cpu.mode: xs:string Line 131: vm.cpu.topology.sockets: xs:int Line 132: vm.placement_policy.affinity: xs:string .................................................... File backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmsResource.java Line 229: if (vm.isSetMemoryPolicy() && vm.getMemoryPolicy().isSetBallooning()) { Line 230: params.setBalloonEnabled(vm.getMemoryPolicy().isBallooning()); Line 231: } Line 232: params.setMakeCreatorExplicitOwner(shouldMakeCreatorExplicitOwner()); Line 233: setupCloneTemplatePermissions(vm, params); this RFE is only about clone VM < - > template permission. Since when you clone the snapshot you got disconnected from the template, this would not apply. It could be changed to copy the VM's permissions to VM but it is something slightly different and the backend does not do it right now so it makes no sense to put it into REST. Line 234: return performCreate(VdcActionType.AddVmFromTemplate, Line 235: params, Line 236: new QueryIdResolver<Guid>(VdcQueryType.GetVmByVmId, IdQueryParameters.class)); Line 237: } .................................................... Commit Message Line 10: it is possible to specify the template.copy_permissions or Line 11: vm.copy_permissions boolean parameter Line 12: to copy the template (VM) permissions to the newly created Line 13: VM (template). Line 14: Done Line 15: Change-Id: I64a0bc3d30cf5ccfb08efe1d02e1c9466d01fe66 -- To view, visit http://gerrit.ovirt.org/16199 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I64a0bc3d30cf5ccfb08efe1d02e1c9466d01fe66 Gerrit-PatchSet: 5 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Tomas Jelinek <tjeli...@redhat.com> Gerrit-Reviewer: Michael Pasternak <mpast...@redhat.com> Gerrit-Reviewer: Tomas Jelinek <tjeli...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches