Notifications

16 views

Description

When changing the User Group field, the quota information on the form is recalculated, as there is a "Reload Quota" catalog rule on UserGroup catalog property.

However when changing Compute Profile field, the quota information on the form is not recalculated.

As a result, the Form Quota information is based on the compute profile CPU requirement when the UserGroup is loaded / changed.

This case issues in below two scenarios:
1> Current quota is 10 CPU, Current Compute profile requires 20 CPUs, submit button won't work.
Now change Compute profile to one that requires 5 CPUs, the submit button is supposed to work, however the form quota is still based on 20 CPUs, the submit button still doesn't work.

2> Current quota is 10 CPU, Current Compute profile requires 5 CPUs, submit button will work.
Now change Compute profile to one that requires 20 CPUs, the submit button is not supposed to work. However since the form quota requires 5 CPUs, the submit button still works.

Steps to Reproduce

1> In Cloud Admin Portal > Govern > Quota > Quota Configuration, set Per User Limit for a testing group to 10

2> Under Manage > Resource Profiles > select Compute Profile > create two profiles that one uses a hardware template of 2 CPUs, and the other uses 16 CPUs.

3> Launch a stack, confirm user Quota is 10, change compute profile to the one that requires 16 CPUs,
then change User Group to 'Select One', and change User group back (this way quota is recalculated),
fill in all form fields, click on Submit, it doesn't work, which is expected.
However changing compute profile to the one requiring 2 CPUs, submit button still doesn't work.

4> Now change compute profile to the one that requires 2 CPUs, then change User Group to "Select One', and change User group back.
Now change compute profile to the one that requires 16 CPUs, fill in all fields, click on Submit, it still works, even though it shouldn't

Workaround

Cloud Admin Portal > Blueprint > open the blueprint > under "Catalog" tab, click on the catalog > click on Form > Under "Form Parameters", click on Virtual_Server_ComputeProfile
> under Rules, click on "New" > put in "Reload Quota ComputeProfile" as Name and Description, right click on top pane, click on "save"
> under Actions tab of the new Rule, click on "New" > put in "Reload Quota ComputeProfile" as Name, select Action Type "Reload", DataSource "Check Quota", right click on top pane, click on "save"
> under KeyValues of the the new action, create below:
key / value
CloudAccount CloudAccount
Location Location

> click on Submit
> now on the Rule form, under Actions, change "Target Field" value to "Quota"


Related Problem: PRB1338558

Seen In

There is no data to report.

Intended Fix Version

New York

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 17:53:03
Published:2019-05-22