Description of problem: We are missing the ability to set :number_of_vms on vendor based service catalog items. We need this ability to minimize the need to maintain custom "build request" methods utilizing the built-in method "create_provision_request". Version-Release number of selected component (if applicable): 5.5.3 How reproducible: 100% Actual results: when setting option_1_number_of_vms in a service dialog the parameter is always hard-coded to 1. Expected results: We need the ability for catalog items to utilize :number_of_vms parameter Additional info:
Madhu - Let's discuss the approach here more. In the last triage meeting PM agreed that this should be a priority.
https://github.com/ManageIQ/manageiq/pull/8515
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/da2afe52377446b0dcfb4b661a1392c99b94d1dc commit da2afe52377446b0dcfb4b661a1392c99b94d1dc Author: Madhu Kanoor <mkanoor> AuthorDate: Mon May 2 09:32:07 2016 -0400 Commit: Madhu Kanoor <mkanoor> CommitDate: Thu Jul 28 16:38:21 2016 -0400 Allow for service templates to have multiple VM's https://bugzilla.redhat.com/show_bug.cgi?id=1331867 Expose the number_of_vms when building the provision request for a service. The number_of_vms can be set it multiple places (1) In the Provision Request (2) In the Single Service Item Dialog (3) In the Service Bundle Dialog (4) Default, allow a single vm under a service app/models/miq_provision_request_template.rb | 29 ++++++++- .../__methods__/catalogiteminitialization.rb | 24 +++---- .../catalog_item_initialization_spec.rb | 2 +- spec/models/miq_provision_request_template_spec.rb | 74 +++++++++++++++++++++- spec/support/service_template_helper.rb | 9 ++- 5 files changed, 120 insertions(+), 18 deletions(-)
A separate git issue has been opened to handle quota issues. https://github.com/ManageIQ/manageiq/issues/10145
Yes, I do want to back-port this to darga. I'll change the label. Thanks.
New commit detected on ManageIQ/manageiq/darga: https://github.com/ManageIQ/manageiq/commit/72fa039dfa5a7ee37ffc2d5e736ffad745731c4f commit 72fa039dfa5a7ee37ffc2d5e736ffad745731c4f Author: Madhu Kanoor <mkanoor> AuthorDate: Mon May 2 09:32:07 2016 -0400 Commit: Lucy Fu <lufu> CommitDate: Thu Sep 8 10:59:22 2016 -0400 Allow for service templates to have multiple VM's https://bugzilla.redhat.com/show_bug.cgi?id=1331867 Expose the number_of_vms when building the provision request for a service. The number_of_vms can be set it multiple places (1) In the Provision Request (2) In the Single Service Item Dialog (3) In the Service Bundle Dialog (4) Default, allow a single vm under a service app/models/miq_provision_request_template.rb | 29 ++++++++- .../__methods__/catalogiteminitialization.rb | 24 +++---- .../catalog_item_initialization_spec.rb | 2 +- spec/models/miq_provision_request_template_spec.rb | 74 +++++++++++++++++++++- spec/support/service_template_helper.rb | 9 ++- 5 files changed, 120 insertions(+), 18 deletions(-)
Verified in 5.7.0.0 I tried to have a dialog with number_of_vms field and I tried it on a service item and service bundle and the number of vms specified in there was honoured.