Skip to content

CLOUDSTACK-9235: Autoscale button is missing in VPC#1337

Merged
asfgit merged 1 commit into
apache:4.7from
nitin-maharana:CloudStack-Nitin20_4.7
Jan 20, 2016
Merged

CLOUDSTACK-9235: Autoscale button is missing in VPC#1337
asfgit merged 1 commit into
apache:4.7from
nitin-maharana:CloudStack-Nitin20_4.7

Conversation

@nitin-maharana
Copy link
Copy Markdown
Contributor

Autoscale button is missing. This should not be the case since we are able to add NS as the external LB provider in VPC.

Steps:

  1. Create a VPC offering with NS as the external LB provider
  2. Create a VPC and configure the public tier with the above offering
  3. Acquire an IP address and try to configure Load Balancing rule

Result:

Autoscale option is not visible at all for the LB.

Expected Result:

Autoscale option should be available and should work exactly like the way it works for a normal isolated network with NS. If we choose NS as service provider for LB, autoscale should also be visible. If VR is chosen, only then we should not display autoscale.

Fix:

In case of VPC, it checks the services available.
If LB is there, It checks the provider is Netscaler then it shows the button or hides it.

@rafaelweingartner
Copy link
Copy Markdown
Member

Hi @nitin-maharana,
What about a little change in your code?

The complexity of that if/else structure that you are working on is too big.

I believe that you can extract the code from lines 3673-3686 to a method that returns a Boolean indicating if there is a provider named “NetScaler”. Then you could do something like :
var lbProviderIsNetscaler = checkIfNetscalerProviderIsEnabled (services);

In case of VPC, it checks the services available.
If LB is there, It checks the provider is Netscaler then it shows the button or hides it.
Comment thread ui/scripts/network.js
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could remove the condition here, it is unnecessary

@pdube
Copy link
Copy Markdown
Contributor

pdube commented Jan 19, 2016

Code LGTM

@asfgit asfgit merged commit b02e9f0 into apache:4.7 Jan 20, 2016
asfgit pushed a commit that referenced this pull request Jan 20, 2016
CLOUDSTACK-9235: Autoscale button is missing in VPCAutoscale button is missing. This should not be the case since we are able to add NS as the external LB provider in VPC.

Steps:
=====
1. Create a VPC offering with NS as the external LB provider
2. Create a VPC and configure the public tier with the above offering
3. Acquire an IP address and try to configure Load Balancing rule

Result:
======
Autoscale option is not visible at all for the LB.

Expected Result:
=============
Autoscale option should be available and should work exactly like the way it works for a normal isolated network with NS. If we choose NS as service provider for LB, autoscale should also be visible. If VR is chosen, only then we should not display autoscale.

Fix:
===
In case of VPC, it checks the services available.
If LB is there, It checks the provider is Netscaler then it shows the button or hides it.

* pr/1337:
  CLOUDSTACK-9235: Autoscale button is missing in VPC

Signed-off-by: Remi Bergsma <github@remi.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants