You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/12/27 11:40:06 UTC

[GitHub] [cloudstack] shwstppr opened a new issue, #7025: vm-import,vmware: unable to import VM with IP in a shared network

shwstppr opened a new issue, #7025:
URL: https://github.com/apache/cloudstack/issues/7025

   ##### ISSUE TYPE
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   server
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   
   ~~~
   4.14.0 and above
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   4.14.0.0 and 4.17.2.0 based two separate advanced zones tested
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   NA
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   When a VM is imported into a shared network with a wider subnet (more than 255 IPs) while specifying an IP address outseide of first 255 IPs, import fails with the message,
   IP address IP_ADDRESS for NIC(ID: NIC_ID) is not available in network(ID: NETWORK_ID)
   
   The problem is with `NetUtils::getAllIpsFromCidr` method which returns only 255 IP addresses
   
   ##### 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 -->
   ~~~
   Create a shared network with a wide subnet, eg: 10.20.0.0/21
   Deploy a VM into this network
   Unmanage this VM
   Try to import the same VM while specifying IP outside of first 255 IPs of the subnet, eg: 10.20.4.22
   Observe the error, IP address 10.20.4.22 for NIC(ID: Network adapter 1) is not available in network(ID: dc4e5aa7-aa3c-40a2-8bb3-bd73d3427dbc)
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   VM imported successfully
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   VM fails to import with error - IP address 10.20.4.22 for NIC(ID: Network adapter 1) is not available in network(ID: dc4e5aa7-aa3c-40a2-8bb3-bd73d3427dbc)
   ~~~
   ![Screenshot from 2022-12-27 17-08-42](https://user-images.githubusercontent.com/153340/209661226-ea108834-ae50-4702-aae3-7aba1fde3d84.png)
   


-- 
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: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] DaanHoogland commented on issue #7025: vm-import,vmware: unable to import VM with IP in a shared network

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #7025:
URL: https://github.com/apache/cloudstack/issues/7025#issuecomment-1367860390

   fixed by #7026 


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] DaanHoogland closed issue #7025: vm-import,vmware: unable to import VM with IP in a shared network

Posted by GitBox <gi...@apache.org>.
DaanHoogland closed issue #7025: vm-import,vmware: unable to import VM with IP in a shared network
URL: https://github.com/apache/cloudstack/issues/7025


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org