From issues-return-73157-apmail-cloudstack-issues-archive=cloudstack.apache.org@cloudstack.apache.org Thu Sep 1 09:14:22 2016 Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 302AE19E12 for ; Thu, 1 Sep 2016 09:14:22 +0000 (UTC) Received: (qmail 97566 invoked by uid 500); 1 Sep 2016 09:14:22 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 97533 invoked by uid 500); 1 Sep 2016 09:14:21 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 97515 invoked by uid 500); 1 Sep 2016 09:14:21 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 97510 invoked by uid 99); 1 Sep 2016 09:14:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2016 09:14:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AC8EE2C1B7B for ; Thu, 1 Sep 2016 09:14:21 +0000 (UTC) Date: Thu, 1 Sep 2016 09:14:21 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-8676) Deploy user instance from vm snapshot for VMware hypervisor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-8676?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D15454852#comment-15454852 ]=20 ASF GitHub Bot commented on CLOUDSTACK-8676: -------------------------------------------- Github user rhtyd commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1664#discussion_r77139536 =20 --- Diff: api/src/org/apache/cloudstack/api/command/admin/template/Seed= TemplateFromVmSnapshotCmd.java --- @@ -0,0 +1,145 @@ +/* +=C2=A0* Licensed to the Apache Software Foundation (ASF) under one +=C2=A0* or more contributor license agreements.=C2=A0 See the NOTICE f= ile +=C2=A0* distributed with this work for additional information +=C2=A0* regarding copyright ownership.=C2=A0 The ASF licenses this fil= e +=C2=A0* to you under the Apache License, Version 2.0 (the +=C2=A0* "License"); you may not use this file except in compliance +=C2=A0* with the License.=C2=A0 You may obtain a copy of the License a= t +=C2=A0* +=C2=A0* =C2=A0 http://www.apache.org/licenses/LICENSE-2.0 +=C2=A0* +=C2=A0* Unless required by applicable law or agreed to in writing, +=C2=A0* software distributed under the License is distributed on an +=C2=A0* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +=C2=A0* KIND, either express or implied.=C2=A0 See the License for the +=C2=A0* specific language governing permissions and limitations +=C2=A0* under the License. +=C2=A0*/ + +package org.apache.cloudstack.api.command.admin.template; + +import org.apache.log4j.Logger; + +import org.apache.cloudstack.acl.SecurityChecker.AccessType; +import org.apache.cloudstack.api.ACL; +import org.apache.cloudstack.api.APICommand; +import org.apache.cloudstack.api.ApiCommandJobType; +import org.apache.cloudstack.api.ApiConstants; +import org.apache.cloudstack.api.ApiErrorCode; +import org.apache.cloudstack.api.BaseAsyncCmd; +import org.apache.cloudstack.api.Parameter; +import org.apache.cloudstack.api.ServerApiException; +import org.apache.cloudstack.api.response.StoragePoolResponse; +import org.apache.cloudstack.api.response.VMSnapshotResponse; +import org.apache.cloudstack.api.response.VmSnapshotTemplateResponse; +import org.apache.cloudstack.api.response.ZoneResponse; + +import com.cloud.event.EventTypes; +import com.cloud.user.Account; + +@APICommand(name =3D "seedTemplateFromVmSnapshot", responseObject =3D = VmSnapshotTemplateResponse.class, description =3D "seed template from vm sn= apshot on primary storage", + requestHasSensitiveInfo =3D false, responseHasSensitiveInfo = =3D false) --- End diff -- =20 Add `since` and `authorized` fields to annotate when the API was added = (4.10) and who are the default authorized roles. > Deploy user instance from vm snapshot for VMware hypervisor > ----------------------------------------------------------- > > Key: CLOUDSTACK-8676 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-867= 6 > Project: CloudStack > Issue Type: New Feature > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: Management Server, VMware > Reporter: Sateesh Chodapuneedi > Assignee: Sateesh Chodapuneedi > Fix For: Future > > > Currently, ACS provides the ability to deploy a VM from a template or ISO= . However, ACS does not provide the ability to deploy a VM(s) directly from= a VM snapshot.=20 > VM snapshots are stored in the primary storage and have a hierarchical or= parent/child relationship. The requirement would be to provide the ability= to deploy user instances from selected VM snapshots. Additionally, any VM = snapshot in the hierarchy can be deployed concurrently. =20 > Even though this can be supported and applicable to all hypervisors, to = start with this feature is supported only for VMware hypervisor. > Feature specification is at https://cwiki.apache.org/confluence/display/C= LOUDSTACK/Deploy+instance+from+VM+snapshot -- This message was sent by Atlassian JIRA (v6.3.4#6332)