samdejoux1 opened a new issue, #6648:
URL: https://github.com/apache/cloudstack/issues/6648
<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and main 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.
-->
~~~
Physical network > Guest Network > Adding VLAN Pool
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main
branch.
-->
~~~
CloudStack 4.16.1.0
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network,
advanced networking, etc. N/A otherwise
-->
Advanced networking configuration with VLANs used on the management, guest
and public networks. Using VMWare DVS for guest and public traffic. Public
traffic vlan has provisioned in vmware correctly, this issue is limited to
guest.
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
VMware ESXi, 6.7.0, 19898906
VCenter Version 6.7.0 Build 19832280
##### SUMMARY
<!-- Explain the problem/feature briefly -->
When adding a pool of VLANs to the guest network under 'Dedicated VLAN/VNI
Ranges' we receive the following error:
Error: (HTTP 530, error code 9999) Index 0 out of bounds for length 0
This is seen when creating through the GUI and also when using Cloud Monkey
API Push.
Management server log shows :
2022-08-17 10:43:17,515 ERROR [c.c.a.ApiServer]
(qtp1747352992-77024:ctx-db233219 ctx-fc39cbd8) (logid:bb7bd18a) unhandled
exception executing api command: [Ljava.lang.String;@21acc147
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
If you refresh the screen, the VLAN pool has been added however when
creating an instance the process fails because a VLAN cannot be allocated from
the pool. It feels like the VLAN pool is not being fully provisioned on the
system.
##### 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.
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
- Configure a physical network for mgmt using vSwitch0
- Configure a physical network for guest using dvSwitch0 (distributed
virtual switch)
- Configure traffic labels
- Create isolated guest network
- Configure VLAN pool
- Create Instance
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
VLAN allocated from the pool for isolated guest network
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
-Error received when adding VLAN range = Error: (HTTP 530, error code 9999)
Index 0 out of bounds for length 0
-Error received when creating VM Instance =
2022-08-17 11:41:26,323 DEBUG [c.c.c.CapacityManagerImpl]
(Work-Job-Executor-21:ctx-a2fc1cdc job-1327/job-1328 ctx-b0fa7bd2)
(logid:69e5d813) STATS: Failed to alloc resource from host: 4 reservedCpu: 0,
requested cpu: 1000, reservedMem: (0 bytes) 0, requested mem: (1.00 GB)
1073741824
2022-08-17 11:41:26,386 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(Work-Job-Executor-21:ctx-a2fc1cdc job-1327/job-1328 ctx-b0fa7bd2)
(logid:69e5d813) Cleaning up because we're unable to implement the network
Ntwk[227|Guest|8]
com.cloud.exception.InsufficientVirtualNetworkCapacityException: Unable to
allocate vnet as a part of network Ntwk[227|Guest|8] implement Scope=interface
com.cloud.dc.DataCenter; id=5
2022-08-17 11:41:26,777 DEBUG [c.c.c.CapacityManagerImpl]
(Work-Job-Executor-21:ctx-a2fc1cdc job-1327/job-1328 ctx-b0fa7bd2)
(logid:69e5d813) VM instance {id: "363", name: "i-2-363-VM", uuid:
"d3691fe9-7067-4b1c-a40e-ca8d10707d59", type="User"} state transited from
[Starting] to [Stopped] with event [OperationFailed]. VM's original host: null,
new host: null, host before state transition: Host {"id": "4", "name":
"xxxxxxx.xxxxxxx.xxxxxxx", "uuid": "7dfd437b-a8bd-42a5-88df-c76bbc15150d",
"type"="Routing"}
2022-08-17 11:41:26,832 ERROR [c.c.v.VmWorkJobHandlerProxy]
(Work-Job-Executor-21:ctx-a2fc1cdc job-1327/job-1328 ctx-b0fa7bd2)
(logid:69e5d813) Invocation exception, caused by:
com.cloud.exception.InsufficientServerCapacityException: Unable to create a
deployment for VM instance {id: "363", name: "i-2-363-VM", uuid:
"d3691fe9-7067-4b1c-a40e-ca8d10707d59", type="User"}Scope=interface
com.cloud.dc.DataCenter; id=5
2022-08-17 11:41:26,832 INFO [c.c.v.VmWorkJobHandlerProxy]
(Work-Job-Executor-21:ctx-a2fc1cdc job-1327/job-1328 ctx-b0fa7bd2)
(logid:69e5d813) Rethrow exception
com.cloud.exceptio.InsufficientServerCapacityException: Unable to create a
deployment for VM instance {id: "363", name: "i-2-363-VM", uuid:
"d3691fe9-7067-4b1c-a40e-ca8d10707d59", type="User"}Scope=interface
com.cloud.dc.DataCenter; id=5
2022-08-17 11:41:27,057 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-48:ctx-e6681fe2 job-1327) (logid:69e5d813) Complete async
job-1327, jobStatus: FAILED, resultCode: 530, result:
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Unable
to start a VM due to insufficient capacity"}
~~~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]