Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

"Add VPC" Button does nothing if no Advanced Zone with securitygroupsenabled=false #2698

Copy link
Copy link
@cocoon

Description

@cocoon
Issue body actions
ISSUE TYPE
  • Bug Report
COMPONENT NAME
UI
CLOUDSTACK VERSION
4.11.1.0-rc1

From: http://packages.shapeblue.com/testing/4111rc1/centos7/4.11/
But should be the same in previous versions (like 4.11)

CONFIGURATION

Zone 1 = Basic
Zone 2 = Advanced + securitygroupsenabled = true

OS / ENVIRONMENT

N/A

SUMMARY

CloudStack UI --> Network --> Switch View to VPC
Click Button "Add VPC"

Problem: nothing happens
Tested in browsers: FireFox, Edge

Error happens here: TypeError: advZones[0] is undefined
https://github.com/apache/cloudstack/blob/master/ui/scripts/network.js#L5202
(https://github.com/apache/cloudstack/blob/4.11/ui/scripts/network.js#L5202)

Cause:

When there is no Zone with networktype Advanced + securitygroupsenabled = false
https://github.com/apache/cloudstack/blob/master/ui/scripts/network.js#L5163

STEPS TO REPRODUCE

Have no advanced Zone with securitygroupsenabled = no

CloudStack UI --> Network --> Switch View to VPC
Click Button "Add VPC"


EXPECTED RESULTS
Expected: error that there is no compatiple Zone + requirements that are needed
ACTUAL RESULTS

nothing happens visually (JavaScript error)

TypeError: advZones[0] is undefined
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.