cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Unable to add NIC to VM - Insufficient capacity when adding NIC to VM

Open mdesaive opened this issue 8 years ago • 3 comments

ISSUE TYPE
  • Bug Report
COMPONENT NAME
UI
CLOUDSTACK VERSION
4.11.0.0
CONFIGURATION
OS / ENVIRONMENT

Advanced Networking, Cloudstack 4.11.0.0 on Ubuntu 14.04 LTS, MySQL 5.5.59-0ubuntu0.14.04.1

SUMMARY

On one of our two CloudStack instances we have an issue adding NICs to VMs through the Web-UI after upgrading to 4.11.0.0. On another instance the problem does not occur after the upgrade. I already asked on users@cloudstack to reproduce the issue, but got no response. So this might be an individual problem.

Adding a NIC with CloudMonkey through a command like the following ist working perfectly:

create network displaytext=deleteme-cloudmonkey name=deleteme-cloudmonkey networkofferingid= zoneid= projectid= gateway=172.17.1.1 netmask=255.255.252.0 networkdomain=deleteme-cloudmonkey.heinlein-intern.de

This issue maybe is close to #2533 "Web-UI creates all isolated Nets with IP range 10.1.1.0/24" - in both cases the API call through CloudMonkey works fine, but using the web-UI leads to an error. Maybe it could make sense to investigate those two issues together.

STEPS TO REPRODUCE
Create a new isolated network
Wait until network is "implemented"
Add NIC on this new network to a VM
EXPECTED RESULTS
To have the NIC added to VM and network. ;)
ACTUAL RESULTS
=> Textbox: Insufficient capacity when adding NIC to VM[User|i-<id>-VM]:
com.cloud.exception.InsufficientAddressCapacityException: Insufficient
address capacityScope=interface com.cloud.dc.DataCenter; id=1
=> No new NIC is added to the VM

mdesaive avatar Apr 22 '18 11:04 mdesaive

Hi @mdesaive which version of CloudStack were you upgrading from?

PaulAngus avatar Apr 23 '18 15:04 PaulAngus

Hi @PaulAngus, it was 4.9.2.

mdesaive avatar Apr 23 '18 19:04 mdesaive

I could not reproduce this issue on latest 4.11 branch. I did this:

  • I added a new isolated network, it went into "Allocated" state
  • On an already deployed/running VM, I add a nic on the newly created network to it
  • This kicked a new VR for that new network and a nic was successfully added, no errors see.

screenshot from 2018-05-09 16-20-11 screenshot from 2018-05-09 16-20-21

Closing this issue as I could not reproduce it.

yadvr avatar May 09 '18 10:05 yadvr