You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "cdfgallo (via GitHub)" <gi...@apache.org> on 2023/06/01 09:28:20 UTC
[GitHub] [cloudstack] cdfgallo opened a new issue, #7578: Import Unamanged VM fails due to no matching network found
cdfgallo opened a new issue, #7578:
URL: https://github.com/apache/cloudstack/issues/7578
<!--
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.
-->
~~~
UI
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main branch.
-->
~~~
4.17.2.0
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise
-->
advanced networing
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
##### SUMMARY
<!-- Explain the problem/feature briefly -->
When I try to import an unmanaged VM from a VMware cluster already present in Cloudstack, despite the fact that I have a corresponding L2 network available in the cluster, I can't import the VM via GUI as I can't select any network.
If I try to press OK button error "Request failed. Please select a network for NIC: Network adapter 1" appears.
If I import the VM via API importUnmanagedInstance it works just fine even without selecting any network.
##### 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 -->
~~~
In Import-Export instances tool try to import a VM with a tagged VSS. It doesn't show any matching network in CS.
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
The corresponding network with same L2 tag can be selected and the import can be completed.
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
No network are shown and the import cannot be completed.
~~~
--
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] shwstppr commented on issue #7578: Import Unamanged VM fails due to no matching network found
Posted by "shwstppr (via GitHub)" <gi...@apache.org>.
shwstppr commented on issue #7578:
URL: https://github.com/apache/cloudstack/issues/7578#issuecomment-1590761557
@mwaag your issue seems to be a different one as you are facing the issue with API as well.
For network to match VLAN of the nic for the unmanaged instance must match the VLAN of the network. I'm not sure what VLAN your unmanaged VM/instance has. There are 5 networks for your project and it must match with one of them.
For using nicnetworklist param you may pass,
`nicnetworklist[0].nic=<NIC_ID> nicnetworklist[0].network=<NETWORK_ID>
nicipaddresslist is similarly explained here, http://docs.cloudstack.apache.org/en/latest/adminguide/virtual_machines.html?highlight=importing#ip-addresses
--
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] rohityadavcloud closed issue #7578: Import Unamanged VM fails due to no matching network found
Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
rohityadavcloud closed issue #7578: Import Unamanged VM fails due to no matching network found
URL: https://github.com/apache/cloudstack/issues/7578
--
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] cdfgallo commented on issue #7578: Import Unamanged VM fails due to no matching network found
Posted by "cdfgallo (via GitHub)" <gi...@apache.org>.
cdfgallo commented on issue #7578:
URL: https://github.com/apache/cloudstack/issues/7578#issuecomment-1571923296
@shwstppr this is how it looks in the UI

--
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] mwaag commented on issue #7578: Import Unamanged VM fails due to no matching network found
Posted by "mwaag (via GitHub)" <gi...@apache.org>.
mwaag commented on issue #7578:
URL: https://github.com/apache/cloudstack/issues/7578#issuecomment-1588941114
Hi,
i experienced the same issue just now and found this issue by google-search.
We are working with projects as billable units and vmware only as hypervisor. I unmanaged one VM from project x and are trying to import this unmanaged vm into project y using the ui and do not see any "matching networks" either.
Trying to finalize this action results in the same errormessage.
Here are our network-details:
[Source-Network (pastebin)](https://pastebin.com/CjaLN9EU)
[Networks of Destination-Project (pastebin)](https://pastebin.com/4T4hKeBa)
In my opinion the network 'atim-services-network' in the destination-project should match. Can you see, why this is not the case?
--
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] rohityadavcloud commented on issue #7578: Import Unamanged VM fails due to no matching network found
Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
rohityadavcloud commented on issue #7578:
URL: https://github.com/apache/cloudstack/issues/7578#issuecomment-1609128245
Fixed by https://github.com/apache/cloudstack/pull/7628
--
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] shwstppr commented on issue #7578: Import Unamanged VM fails due to no matching network found
Posted by "shwstppr (via GitHub)" <gi...@apache.org>.
shwstppr commented on issue #7578:
URL: https://github.com/apache/cloudstack/issues/7578#issuecomment-1573469523
@cdfgallo I tried to reproduce this but can't. For me, UI matches NIC to the correct network. Can you please share details of your network, like cmk output for listNetwork API
--
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] shwstppr commented on issue #7578: Import Unamanged VM fails due to no matching network found
Posted by "shwstppr (via GitHub)" <gi...@apache.org>.
shwstppr commented on issue #7578:
URL: https://github.com/apache/cloudstack/issues/7578#issuecomment-1590736961
@cdfgallo can please check #7628 . It may be related to problem you are facing with the UI
--
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] cdfgallo commented on issue #7578: Import Unamanged VM fails due to no matching network found
Posted by "cdfgallo (via GitHub)" <gi...@apache.org>.
cdfgallo commented on issue #7578:
URL: https://github.com/apache/cloudstack/issues/7578#issuecomment-1590768480
Hi @shwstppr, yes my L2 networks are in setup state.
Thank you!
--
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] shwstppr commented on issue #7578: Import Unamanged VM fails due to no matching network found
Posted by "shwstppr (via GitHub)" <gi...@apache.org>.
shwstppr commented on issue #7578:
URL: https://github.com/apache/cloudstack/issues/7578#issuecomment-1571879724
@cdfgallo can you please share what you get in network/nics section in import form in the UI?
--
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] mwaag commented on issue #7578: Import Unamanged VM fails due to no matching network found
Posted by "mwaag (via GitHub)" <gi...@apache.org>.
mwaag commented on issue #7578:
URL: https://github.com/apache/cloudstack/issues/7578#issuecomment-1588963133
This shows the result, when trying to import the VM with cloudmonkey:
import unmanagedinstance clusterid=55b7ee5e-22db-494c-93c0-3b46cacd0624 name=i-97-174834-VM serviceofferingid=c233ef58-24c0-4d05-882e-8345e279e844 displayname=webost-imported projectid=4a2d488d-7b11-486a-8ab0-7b6111ceb704 templateid=fe1b6a83-8c8d-462a-86e0-88614b688745
{
"accountid": "36c623ce-74f7-491c-b8a8-e0eb3af6d3e2",
"cmd": "org.apache.cloudstack.api.command.admin.vm.ImportUnmanagedInstanceCmd",
"completed": "2023-06-13T11:52:32+0200",
"created": "2023-06-13T11:52:22+0200",
"jobid": "81af23c1-d70b-49d1-bc3f-760d2d8c1539",
"jobprocstatus": 0,
"jobresult": {
"errorcode": 530,
"errortext": "Suitable network for nic(ID: Network adapter 1) not found during VM import"
},
"jobresultcode": 530,
"jobresulttype": "object",
"jobstatus": 2,
"userid": "e63be6d6-cf03-4be5-b45d-8bf42da7369a"
}
How does the parameters nicipaddresslist and nicnetworklist work? Can you give an example, please?
--
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