[jira] [Commented] (CLOUDSTACK-9700) Allow user to Register/Copy templates to multiple zones at the same time
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16038578#comment-16038578 ] ASF subversion and git services commented on CLOUDSTACK-9700: - Commit 7ee751e7477b0834763c8c8ba20ee12206074d1a in cloudstack's branch refs/heads/master from [~rajanik] [ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=7ee751e ] Merge pull request #1894 from Accelerite/CLOUDSTACK-9700 CLOUDSTACK-9700 Allow user to Register/Copy templates to multiple zones at the same time > Allow user to Register/Copy templates to multiple zones at the same time > > > Key: CLOUDSTACK-9700 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9700 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template, UI >Affects Versions: 4.7.0, 4.8.0, 4.9.0 >Reporter: Rashmi Dixit >Assignee: Rashmi Dixit > Fix For: 4.10.0.0 > > Attachments: CopyTemplate-multiplezones.PNG, > CopyTemplate-WithSearchZone.PNG, RegisterTemplate-multiselect-error.PNG, > RegisterTemplate-multiselect.PNG > > > A user can currently copy or register a template with only one zone at a > time. > The idea of this feature is to allow the user to allow copying or registering > of one template to multiple zones at the same time. > Both the UI and API need changes in this case. The UI for the destination > zone is currently a drop down. It can be a multi-select box. > The APIs need to accept destination zone as an array instead of a single ID. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CLOUDSTACK-9700) Allow user to Register/Copy templates to multiple zones at the same time
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16038574#comment-16038574 ] ASF subversion and git services commented on CLOUDSTACK-9700: - Commit 7ee751e7477b0834763c8c8ba20ee12206074d1a in cloudstack's branch refs/heads/master from [~rajanik] [ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=7ee751e ] Merge pull request #1894 from Accelerite/CLOUDSTACK-9700 CLOUDSTACK-9700 Allow user to Register/Copy templates to multiple zones at the same time > Allow user to Register/Copy templates to multiple zones at the same time > > > Key: CLOUDSTACK-9700 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9700 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template, UI >Affects Versions: 4.7.0, 4.8.0, 4.9.0 >Reporter: Rashmi Dixit >Assignee: Rashmi Dixit > Fix For: 4.10.0.0 > > Attachments: CopyTemplate-multiplezones.PNG, > CopyTemplate-WithSearchZone.PNG, RegisterTemplate-multiselect-error.PNG, > RegisterTemplate-multiselect.PNG > > > A user can currently copy or register a template with only one zone at a > time. > The idea of this feature is to allow the user to allow copying or registering > of one template to multiple zones at the same time. > Both the UI and API need changes in this case. The UI for the destination > zone is currently a drop down. It can be a multi-select box. > The APIs need to accept destination zone as an array instead of a single ID. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CLOUDSTACK-9700) Allow user to Register/Copy templates to multiple zones at the same time
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16038568#comment-16038568 ] ASF subversion and git services commented on CLOUDSTACK-9700: - Commit 49a862b223ea4bf41b793ef5a4a9da95ad1b1d59 in cloudstack's branch refs/heads/master from [~g...@git.apache.org] [ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=49a862b ] CLOUDSTACK-9700: Allow user to Register/Copy templates to multiple zones at the same time > Allow user to Register/Copy templates to multiple zones at the same time > > > Key: CLOUDSTACK-9700 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9700 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template, UI >Affects Versions: 4.7.0, 4.8.0, 4.9.0 >Reporter: Rashmi Dixit >Assignee: Rashmi Dixit > Fix For: 4.10.0.0 > > Attachments: CopyTemplate-multiplezones.PNG, > CopyTemplate-WithSearchZone.PNG, RegisterTemplate-multiselect-error.PNG, > RegisterTemplate-multiselect.PNG > > > A user can currently copy or register a template with only one zone at a > time. > The idea of this feature is to allow the user to allow copying or registering > of one template to multiple zones at the same time. > Both the UI and API need changes in this case. The UI for the destination > zone is currently a drop down. It can be a multi-select box. > The APIs need to accept destination zone as an array instead of a single ID. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CLOUDSTACK-9700) Allow user to Register/Copy templates to multiple zones at the same time
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15893962#comment-15893962 ] ASF GitHub Bot commented on CLOUDSTACK-9700: Github user priyankparihar commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1894#discussion_r104114043 --- Diff: api/src/org/apache/cloudstack/api/command/user/template/CopyTemplateCmd.java --- @@ -51,25 +52,46 @@ @Parameter(name = ApiConstants.DESTINATION_ZONE_ID, type = CommandType.UUID, entityType = ZoneResponse.class, - required = true, + required = false, description = "ID of the zone the template is being copied to.") -private Long destZoneId; +protected Long destZoneId; -@Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = TemplateResponse.class, required = true, description = "Template ID.") +@Parameter(name = ApiConstants.ID, type = CommandType.UUID, +entityType = TemplateResponse.class, required = true, description = "Template ID.") private Long id; @Parameter(name = ApiConstants.SOURCE_ZONE_ID, type = CommandType.UUID, entityType = ZoneResponse.class, -description = "ID of the zone the template is currently hosted on. If not specified and template is cross-zone, then we will sync this template to region wide image store.") +description = "ID of the zone the template is currently hosted on. " + +"If not specified and template is cross-zone, " + +"then we will sync this template to region wide image store.") --- End diff -- This change is not required. > Allow user to Register/Copy templates to multiple zones at the same time > > > Key: CLOUDSTACK-9700 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9700 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template, UI >Affects Versions: 4.7.0, 4.8.0, 4.9.0 >Reporter: Rashmi Dixit >Assignee: Rashmi Dixit > Fix For: 4.10.0.0 > > Attachments: CopyTemplate-multiplezones.PNG, > CopyTemplate-WithSearchZone.PNG, RegisterTemplate-multiselect-error.PNG, > RegisterTemplate-multiselect.PNG > > > A user can currently copy or register a template with only one zone at a > time. > The idea of this feature is to allow the user to allow copying or registering > of one template to multiple zones at the same time. > Both the UI and API need changes in this case. The UI for the destination > zone is currently a drop down. It can be a multi-select box. > The APIs need to accept destination zone as an array instead of a single ID. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CLOUDSTACK-9700) Allow user to Register/Copy templates to multiple zones at the same time
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15893956#comment-15893956 ] ASF GitHub Bot commented on CLOUDSTACK-9700: Github user priyankparihar commented on the issue: https://github.com/apache/cloudstack/pull/1894 @rashmidixit can you run internal CI and post @cloudmonger test results? > Allow user to Register/Copy templates to multiple zones at the same time > > > Key: CLOUDSTACK-9700 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9700 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template, UI >Affects Versions: 4.7.0, 4.8.0, 4.9.0 >Reporter: Rashmi Dixit >Assignee: Rashmi Dixit > Fix For: 4.10.0.0 > > Attachments: CopyTemplate-multiplezones.PNG, > CopyTemplate-WithSearchZone.PNG, RegisterTemplate-multiselect-error.PNG, > RegisterTemplate-multiselect.PNG > > > A user can currently copy or register a template with only one zone at a > time. > The idea of this feature is to allow the user to allow copying or registering > of one template to multiple zones at the same time. > Both the UI and API need changes in this case. The UI for the destination > zone is currently a drop down. It can be a multi-select box. > The APIs need to accept destination zone as an array instead of a single ID. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CLOUDSTACK-9700) Allow user to Register/Copy templates to multiple zones at the same time
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15893903#comment-15893903 ] ASF GitHub Bot commented on CLOUDSTACK-9700: Github user priyankparihar commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1894#discussion_r104106536 --- Diff: api/src/org/apache/cloudstack/api/command/admin/template/RegisterTemplateCmdByAdmin.java --- @@ -40,10 +40,23 @@ @Override public void execute() throws ResourceAllocationException{ try { +if ((zoneId != null) && (zoneIds != null && !zoneIds.isEmpty())) --- End diff -- Unnecessary brackets should be removed. > Allow user to Register/Copy templates to multiple zones at the same time > > > Key: CLOUDSTACK-9700 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9700 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template, UI >Affects Versions: 4.7.0, 4.8.0, 4.9.0 >Reporter: Rashmi Dixit >Assignee: Rashmi Dixit > Fix For: 4.10.0.0 > > Attachments: CopyTemplate-multiplezones.PNG, > CopyTemplate-WithSearchZone.PNG, RegisterTemplate-multiselect-error.PNG, > RegisterTemplate-multiselect.PNG > > > A user can currently copy or register a template with only one zone at a > time. > The idea of this feature is to allow the user to allow copying or registering > of one template to multiple zones at the same time. > Both the UI and API need changes in this case. The UI for the destination > zone is currently a drop down. It can be a multi-select box. > The APIs need to accept destination zone as an array instead of a single ID. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CLOUDSTACK-9700) Allow user to Register/Copy templates to multiple zones at the same time
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15893894#comment-15893894 ] ASF GitHub Bot commented on CLOUDSTACK-9700: Github user priyankparihar commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1894#discussion_r104105564 --- Diff: api/src/org/apache/cloudstack/api/command/admin/template/CopyTemplateCmdByAdmin.java --- @@ -40,11 +40,20 @@ @Override public void execute() throws ResourceAllocationException{ try { +if (destZoneId == null && (destZoneIds == null || destZoneIds.size() == 0)) +throw new ServerApiException(ApiErrorCode.PARAM_ERROR, +"Either destzoneid or destzoneids parameters have to be specified."); + --- End diff -- Error statement and conditional statement logic are not conveying same message. Some correction is required. > Allow user to Register/Copy templates to multiple zones at the same time > > > Key: CLOUDSTACK-9700 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9700 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template, UI >Affects Versions: 4.7.0, 4.8.0, 4.9.0 >Reporter: Rashmi Dixit >Assignee: Rashmi Dixit > Fix For: 4.10.0.0 > > Attachments: CopyTemplate-multiplezones.PNG, > CopyTemplate-WithSearchZone.PNG, RegisterTemplate-multiselect-error.PNG, > RegisterTemplate-multiselect.PNG > > > A user can currently copy or register a template with only one zone at a > time. > The idea of this feature is to allow the user to allow copying or registering > of one template to multiple zones at the same time. > Both the UI and API need changes in this case. The UI for the destination > zone is currently a drop down. It can be a multi-select box. > The APIs need to accept destination zone as an array instead of a single ID. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CLOUDSTACK-9700) Allow user to Register/Copy templates to multiple zones at the same time
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15893890#comment-15893890 ] ASF GitHub Bot commented on CLOUDSTACK-9700: Github user priyankparihar commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1894#discussion_r104105003 --- Diff: api/src/org/apache/cloudstack/api/ResponseGenerator.java --- @@ -307,7 +307,11 @@ TemplateResponse createTemplateUpdateResponse(ResponseView view, VirtualMachineTemplate result); -List createTemplateResponses(ResponseView view, VirtualMachineTemplate result, Long zoneId, boolean readyOnly); +List createTemplateResponses(ResponseView view, VirtualMachineTemplate result, + Long zoneId, boolean readyOnly); --- End diff -- what is difference between line 310 and 311 ? > Allow user to Register/Copy templates to multiple zones at the same time > > > Key: CLOUDSTACK-9700 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9700 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template, UI >Affects Versions: 4.7.0, 4.8.0, 4.9.0 >Reporter: Rashmi Dixit >Assignee: Rashmi Dixit > Fix For: 4.10.0.0 > > Attachments: CopyTemplate-multiplezones.PNG, > CopyTemplate-WithSearchZone.PNG, RegisterTemplate-multiselect-error.PNG, > RegisterTemplate-multiselect.PNG > > > A user can currently copy or register a template with only one zone at a > time. > The idea of this feature is to allow the user to allow copying or registering > of one template to multiple zones at the same time. > Both the UI and API need changes in this case. The UI for the destination > zone is currently a drop down. It can be a multi-select box. > The APIs need to accept destination zone as an array instead of a single ID. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CLOUDSTACK-9700) Allow user to Register/Copy templates to multiple zones at the same time
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15889454#comment-15889454 ] ASF GitHub Bot commented on CLOUDSTACK-9700: Github user rashmidixit commented on the issue: https://github.com/apache/cloudstack/pull/1894 @karuturi requesting your review on this one. > Allow user to Register/Copy templates to multiple zones at the same time > > > Key: CLOUDSTACK-9700 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9700 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template, UI >Affects Versions: 4.7.0, 4.8.0, 4.9.0 >Reporter: Rashmi Dixit >Assignee: Rashmi Dixit > Fix For: 4.10.0.0 > > Attachments: CopyTemplate-multiplezones.PNG, > CopyTemplate-WithSearchZone.PNG, RegisterTemplate-multiselect-error.PNG, > RegisterTemplate-multiselect.PNG > > > A user can currently copy or register a template with only one zone at a > time. > The idea of this feature is to allow the user to allow copying or registering > of one template to multiple zones at the same time. > Both the UI and API need changes in this case. The UI for the destination > zone is currently a drop down. It can be a multi-select box. > The APIs need to accept destination zone as an array instead of a single ID. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CLOUDSTACK-9700) Allow user to Register/Copy templates to multiple zones at the same time
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15887773#comment-15887773 ] ASF GitHub Bot commented on CLOUDSTACK-9700: GitHub user rashmidixit reopened a pull request: https://github.com/apache/cloudstack/pull/1894 CLOUDSTACK-9700 Allow user to Register/Copy templates to multiple zones at the same time A user can currently copy or register a template with only one zone at a time. The idea of this feature is to allow the user to allow copying or registering of one template to multiple zones at the same time. For RegisterTemplate and CopyTemplate APIs have been modified to add a new parameter called zoneIds. This is not compulsory to keep backward compatibility. The UIs have been changes - When you add, the earlier select control for zones now is a multi select and you can choose multiple zones at the same time. For CopyTemplate a new dialog has been added - this shows all the zones you can copy to and allows you to select multiple at a time. Please see [CLOUDSTACK-9700](https://issues.apache.org/jira/browse/CLOUDSTACK-9700) for more details. Snapshots of the UI have been attached there. You can merge this pull request into a Git repository by running: $ git pull https://github.com/Accelerite/cloudstack CLOUDSTACK-9700 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/1894.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1894 commit 95bf9f0f5b640f6673606e7f56fce39654e16fff Author: rashmidixitDate: 2017-02-28T06:33:07Z CLOUDSTACK-9700: Allow user to Register/Copy templates to multiple zones at the same time > Allow user to Register/Copy templates to multiple zones at the same time > > > Key: CLOUDSTACK-9700 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9700 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template, UI >Affects Versions: 4.7.0, 4.8.0, 4.9.0 >Reporter: Rashmi Dixit >Assignee: Rashmi Dixit > Fix For: 4.10.0.0 > > Attachments: CopyTemplate-multiplezones.PNG, > CopyTemplate-WithSearchZone.PNG, RegisterTemplate-multiselect-error.PNG, > RegisterTemplate-multiselect.PNG > > > A user can currently copy or register a template with only one zone at a > time. > The idea of this feature is to allow the user to allow copying or registering > of one template to multiple zones at the same time. > Both the UI and API need changes in this case. The UI for the destination > zone is currently a drop down. It can be a multi-select box. > The APIs need to accept destination zone as an array instead of a single ID. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CLOUDSTACK-9700) Allow user to Register/Copy templates to multiple zones at the same time
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15887772#comment-15887772 ] ASF GitHub Bot commented on CLOUDSTACK-9700: Github user rashmidixit closed the pull request at: https://github.com/apache/cloudstack/pull/1894 > Allow user to Register/Copy templates to multiple zones at the same time > > > Key: CLOUDSTACK-9700 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9700 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template, UI >Affects Versions: 4.7.0, 4.8.0, 4.9.0 >Reporter: Rashmi Dixit >Assignee: Rashmi Dixit > Fix For: 4.10.0.0 > > Attachments: CopyTemplate-multiplezones.PNG, > CopyTemplate-WithSearchZone.PNG, RegisterTemplate-multiselect-error.PNG, > RegisterTemplate-multiselect.PNG > > > A user can currently copy or register a template with only one zone at a > time. > The idea of this feature is to allow the user to allow copying or registering > of one template to multiple zones at the same time. > Both the UI and API need changes in this case. The UI for the destination > zone is currently a drop down. It can be a multi-select box. > The APIs need to accept destination zone as an array instead of a single ID. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CLOUDSTACK-9700) Allow user to Register/Copy templates to multiple zones at the same time
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15834451#comment-15834451 ] rashmidixit commented on CLOUDSTACK-9700: - Github user rashmidixit commented on the issue: https://github.com/apache/cloudstack/pull/1894 Attaching new screens for the changes made here. ![copytemplate-withsearchzone](https://cloud.githubusercontent.com/assets/13415006/22205048/27f14e6a-e19b-11e6-8ba3-e0d4d8e7993a.PNG) ![registertemplate-multiselect](https://cloud.githubusercontent.com/assets/13415006/22205050/27f24ac2-e19b-11e6-9a38-a1fc7cc62b92.PNG) ![registertemplate-multiselect-error](https://cloud.githubusercontent.com/assets/13415006/22205049/27f20738-e19b-11e6-8741-864d7a66691b.PNG) ![copytemplate-multiplezones](https://cloud.githubusercontent.com/assets/13415006/22205051/27f2761e-e19b-11e6-931a-55aba29ef0ad.PNG) --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- > Allow user to Register/Copy templates to multiple zones at the same time > > > Key: CLOUDSTACK-9700 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9700 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template, UI >Affects Versions: 4.7.0, 4.8.0, 4.9.0 >Reporter: Rashmi Dixit >Assignee: Rashmi Dixit > Fix For: 4.10.0.0 > > Attachments: CopyTemplate-multiplezones.PNG, > CopyTemplate-WithSearchZone.PNG, RegisterTemplate-multiselect-error.PNG, > RegisterTemplate-multiselect.PNG > > > A user can currently copy or register a template with only one zone at a > time. > The idea of this feature is to allow the user to allow copying or registering > of one template to multiple zones at the same time. > Both the UI and API need changes in this case. The UI for the destination > zone is currently a drop down. It can be a multi-select box. > The APIs need to accept destination zone as an array instead of a single ID. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CLOUDSTACK-9700) Allow user to Register/Copy templates to multiple zones at the same time
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15834448#comment-15834448 ] ASF GitHub Bot commented on CLOUDSTACK-9700: Github user rashmidixit commented on the issue: https://github.com/apache/cloudstack/pull/1894 Attaching new screens for the changes made here. ![copytemplate-withsearchzone](https://cloud.githubusercontent.com/assets/13415006/22205048/27f14e6a-e19b-11e6-8ba3-e0d4d8e7993a.PNG) ![registertemplate-multiselect](https://cloud.githubusercontent.com/assets/13415006/22205050/27f24ac2-e19b-11e6-9a38-a1fc7cc62b92.PNG) ![registertemplate-multiselect-error](https://cloud.githubusercontent.com/assets/13415006/22205049/27f20738-e19b-11e6-8741-864d7a66691b.PNG) ![copytemplate-multiplezones](https://cloud.githubusercontent.com/assets/13415006/22205051/27f2761e-e19b-11e6-931a-55aba29ef0ad.PNG) > Allow user to Register/Copy templates to multiple zones at the same time > > > Key: CLOUDSTACK-9700 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9700 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template, UI >Affects Versions: 4.7.0, 4.8.0, 4.9.0 >Reporter: Rashmi Dixit >Assignee: Rashmi Dixit > Fix For: 4.10.0.0 > > Attachments: CopyTemplate-multiplezones.PNG, > CopyTemplate-WithSearchZone.PNG, RegisterTemplate-multiselect-error.PNG, > RegisterTemplate-multiselect.PNG > > > A user can currently copy or register a template with only one zone at a > time. > The idea of this feature is to allow the user to allow copying or registering > of one template to multiple zones at the same time. > Both the UI and API need changes in this case. The UI for the destination > zone is currently a drop down. It can be a multi-select box. > The APIs need to accept destination zone as an array instead of a single ID. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CLOUDSTACK-9700) Allow user to Register/Copy templates to multiple zones at the same time
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15804454#comment-15804454 ] ASF GitHub Bot commented on CLOUDSTACK-9700: GitHub user rashmidixit opened a pull request: https://github.com/apache/cloudstack/pull/1894 CLOUDSTACK-9700 Allow user to Register/Copy templates to multiple zones at the same time A user can currently copy or register a template with only one zone at a time. The idea of this feature is to allow the user to allow copying or registering of one template to multiple zones at the same time. For RegisterTemplate and CopyTemplate APIs have been modified to add a new parameter called zoneIds. This is not compulsory to keep backward compatibility. The UIs have been changes - When you add, the earlier select control for zones now is a multi select and you can choose multiple zones at the same time. For CopyTemplate a new dialog has been added - this shows all the zones you can copy to and allows you to select multiple at a time. Please see [CLOUDSTACK-9700](https://issues.apache.org/jira/browse/CLOUDSTACK-9700) for more details. Snapshots of the UI have been attached there. You can merge this pull request into a Git repository by running: $ git pull https://github.com/Accelerite/cloudstack CLOUDSTACK-9700 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/1894.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1894 commit c4d97f366d0e79f97649b5574f734b3c14125281 Author: rashmidixitDate: 2016-07-06T12:05:47Z CLOUDSTACK-9700 RegisterTemplate API and Add Template UI changes to support template registration to multiple zones Reviewed-By Rajani K, Kaushik D, Hari P, Nitin M This change enabled to register a template to multiple zones in one go. The UI has been changed to allow this. RegisterTemplate API has also been updated for this. ~10 junit tests have been added to test the API. Conflicts: api/src/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java plugins/hypervisors/baremetal/src/com/cloud/baremetal/manager/BareMetalTemplateAdapter.java plugins/hypervisors/baremetal/src/com/cloud/wds/networkservice/WdsTemplateAdapter.java server/src/com/cloud/template/HypervisorTemplateAdapter.java server/src/com/cloud/template/TemplateAdapterBase.java ui/scripts/templates.js commit 4d5554401edfcf3da4d8b2bdf4eb458e0ac40dd4 Author: sanket_thite Date: 2016-09-01T05:25:42Z CLOUDSTACK-9700 Copy Template to multiple zones Instead of Single/All Zones Reviewed-By: Rashmi,Rajani,Harikrishna,Nitin. Conflicts: client/WEB-INF/classes/resources/messages.properties server/src/com/cloud/template/TemplateManagerImpl.java ui/css/cloudstack3.css ui/dictionary2.jsp ui/index.html commit d92b1e4a151b60aa4440f1c741f23b275d0a6951 Author: rashmidixit Date: 2017-01-06T12:25:32Z CLOUDSTACK-9700 Added missing License information to the new files. > Allow user to Register/Copy templates to multiple zones at the same time > > > Key: CLOUDSTACK-9700 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9700 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template, UI >Affects Versions: 4.7.0, 4.8.0, 4.9.0 >Reporter: Rashmi Dixit >Assignee: Rashmi Dixit > Fix For: 4.10.0.0 > > > A user can currently copy or register a template with only one zone at a > time. > The idea of this feature is to allow the user to allow copying or registering > of one template to multiple zones at the same time. > Both the UI and API need changes in this case. The UI for the destination > zone is currently a drop down. It can be a multi-select box. > The APIs need to accept destination zone as an array instead of a single ID. -- This message was sent by Atlassian JIRA (v6.3.4#6332)