cocoon opened a new issue #2698: "Add VPC" Button does nothing if no Advanced 
Zone with securitygroupsenabled=false
URL: https://github.com/apache/cloudstack/issues/2698
 
 
   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete 
the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   UI
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master 
branch.
   -->
   
   ~~~
   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
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   Zone 1 = Basic
   Zone 2 = Advanced + securitygroupsenabled = true
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   N/A
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   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
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal 
test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   Have no advanced Zone with securitygroupsenabled = no
   
   CloudStack UI --> Network --> Switch View to VPC
   Click Button "Add VPC"
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   Expected: error that there is no compatiple Zone + requirements that are 
needed
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   nothing happens visually (JavaScript error)
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   TypeError: advZones[0] is undefined
   ~~~
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to