| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Sorry, something went wrong.
Codecov ReportAttention: 18 lines in your changes are missing coverage. Please review.
@@ Coverage Diff @@
## main #8492 +/- ##
============================================
+ Coverage 30.79% 30.81% +0.02%
- Complexity 33990 34013 +23
============================================
Files 5341 5341
Lines 374961 374971 +10
Branches 54543 54546 +3
============================================
+ Hits 115452 115558 +106
+ Misses 244241 244148 -93
+ Partials 15268 15265 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Sorry, something went wrong.
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✖️ debian ✔️ suse15. SL-JID 8275 |
Sorry, something went wrong.
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8278 |
Sorry, something went wrong.
|
@nvazquez a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Sorry, something went wrong.
|
Lot many changes to core NIC import logic. This would need testing for both KVM and VMware for different scenarios - advanced/basic zone, with/without user provided IP, different network types. @nvazquez cc @DaanHoogland would it make sense to revert #8465 and document basic zone support as a limitation at this point? Common code for both KVM and VMware seems to be causing new regressions each day 😄 |
Sorry, something went wrong.
|
@shwstppr I think we can have this fix without reverting the basic zone support, I have already verified basic and advanced KVM import in automatic and manual cases, will need to double check Vmware imports |
Sorry, something went wrong.
|
Tested the following cases for VMware VM import in an advanced zone:
I guess we also allow VM deployment similar to case#9 (IP outside range) |
Sorry, something went wrong.
|
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
@nvazquez @DaanHoogland I retested case#9 from #8492 (comment) and it is failing as expected, therefore it all looks good on VMware side (localcloud) 🐱 > list vlanipranges id=3f69aecb-1aae-4f7e-b559-1e5c9eeac568
{
"count": 1,
"vlaniprange": [
{
"account": "system",
"cidr": "10.8.0.0/24",
"domain": "ROOT",
"domainid": "a2138f1e-af98-11ee-847d-1e0058000a5d",
"endip": "10.8.0.200",
"forsystemvms": false,
"forvirtualnetwork": false,
"gateway": "10.8.0.1",
"id": "3f69aecb-1aae-4f7e-b559-1e5c9eeac568",
"netmask": "255.255.255.0",
"networkid": "587d654e-fee0-49ab-a736-925e24d684c9",
"physicalnetworkid": "c654f1ef-6047-4cd8-882b-f407dc604c4c",
"startip": "10.8.0.101",
"vlan": "2121",
"zoneid": "b4a732bb-e837-4682-bbb9-b845b04a17dd"
}
]
}
(localcloud) 🐱 > list unmanagedinstances clusterid=e3087b2f-8be7-4832-b8ef-61d7e25b27cf name=i-2-30-VM
{
"count": 1,
"unmanagedinstance": [
{
"clusterid": "e3087b2f-8be7-4832-b8ef-61d7e25b27cf",
"clustername": "p1-c1",
"cpucorepersocket": 1,
"cpunumber": 1,
"cpuspeed": 0,
"disk": [
{
"capacity": 52428800,
"controller": "lsilogic",
"controllerunit": 0,
"datastorehost": "10.1.32.4",
"datastorename": "5b2964142196369d96d6b95b6ad5e170",
"datastorepath": "/acs/primary/ref-trl-5272-v-Mr8-abhishek-kumar/ref-trl-5272-v-Mr8-abhishek-kumar-esxi-pri1",
"datastoretype": "NFS",
"id": "15-2000",
"imagepath": "[5b2964142196369d96d6b95b6ad5e170] i-2-30-VM/ROOT-30.vmdk",
"label": "Hard disk 1",
"position": 0
}
],
"hostid": "d178e42e-1c2e-452b-a572-eac1fd2fb11c",
"hostname": "10.1.32.206",
"memory": 512,
"name": "i-2-30-VM",
"nic": [
{
"adaptertype": "E1000",
"id": "Network adapter 1",
"macaddress": "02:01:00:cc:00:0d",
"networkname": "cloud.guest.1747.200.1-vSwitch1",
"vlanid": 1747
}
],
"osdisplayname": "Other Linux (64-bit)",
"osid": "otherLinux64Guest",
"powerstate": "PowerOn"
}
]
}
(localcloud) 🐱 > import unmanagedinstance name=i-2-30-VM clusterid=e3087b2f-8be7-4832-b8ef-61d7e25b27cf displayname=erwewr zoneid=b4a732bb-e837-4682-bbb9-b845b04a17dd importsource=unmanaged hypervisor=vmware serviceofferingid=cec984be-1c57-468b-b1b1-94ea3cef705e nicnetworklist[0].nic=Network adapter 1 nicnetworklist[0].network=51978449-5557-41f7-8642-35739fcc90ae nicipaddresslist[0].nic="Network adapter 1" nicipaddresslist[0].ip4Address=10.8.0.52
{
"account": "admin",
"accountid": "c77ca2f3-af98-11ee-847d-1e0058000a5d",
"cmd": "org.apache.cloudstack.api.command.admin.vm.ImportUnmanagedInstanceCmd",
"completed": "2024-01-11T12:13:36+0000",
"created": "2024-01-11T12:13:36+0000",
"domainid": "a2138f1e-af98-11ee-847d-1e0058000a5d",
"domainpath": "ROOT",
"jobid": "2c50b7a2-fe40-4705-8fbd-be08eba1bf54",
"jobprocstatus": 0,
"jobresult": {
"errorcode": 530,
"errortext": "IP address 10.8.0.52 for NIC(ID: Network adapter 1) is not available in network(ID: 51978449-5557-41f7-8642-35739fcc90ae)"
},
"jobresultcode": 530,
"jobresulttype": "object",
"jobstatus": 2,
"userid": "c77dbaa7-af98-11ee-847d-1e0058000a5d"
}
🙈 Error: async API failed for job 2c50b7a2-fe40-4705-8fbd-be08eba1bf54
|
Sorry, something went wrong.
There was a problem hiding this comment.
Tested with advanced network with KVM and works with NFS/StorPool/Ceph.
code LGTM
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8289 |
Sorry, something went wrong.
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8291 |
Sorry, something went wrong.
|
[SF] Trillian test result (tid-8786)
|
Sorry, something went wrong.
|
@shwstppr a [SL] Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
|
Merging based on manual testing and trillain results from backend, [SF] Trillian test result (tid-8811) Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8 Total time taken: 48240 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8492-t8811-vmware-67u3.zip Smoke tests completed. 120 look OK, 1 have errors, 0 did not run Only failed and skipped tests results shown below: Test | Result | Time (s) | Test File --- | --- | --- | --- test_02_balanced_drs_algorithm | `Failure` | 138.23 | test_cluster_drs.py [SF] Trillian test result (tid-8810) Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7 Total time taken: 43357 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8492-t8810-xenserver-71.zip Smoke tests completed. 120 look OK, 1 have errors, 0 did not run Only failed and skipped tests results shown below: Test | Result | Time (s) | Test File --- | --- | --- | --- test_01_cancel_host_maintenace_with_no_migration_jobs | `Error` | 308.71 | test_host_maintenance.py |
Sorry, something went wrong.
…password (apache#8492) This PR fixes a regression caused by apache#8465 on advanced zones, import fails with: 2024-01-10 12:13:33,234 DEBUG [o.a.c.e.o.NetworkOrchestrator] (API-Job-Executor-3:ctx-991bbe9f job-128 ctx-f49517d4) (logid:d7b8e716) Allocating nic for vm 142272e8-9e2e-407b-9d7e-e9a03b81653c in network Network {"id": 204, "name": "Isolated", "uuid": "9679fac5-e3ac-4694-a57b-beb635340f39", "networkofferingid": 10} during import 2024-01-10 12:13:33,239 ERROR [o.a.c.v.UnmanagedVMsManagerImpl] (API-Job-Executor-3:ctx-991bbe9f job-128 ctx-f49517d4) (logid:d7b8e716) Failed to import NICs while importing vm: i-2-31-VM com.cloud.exception.InsufficientVirtualNetworkCapacityException: Unable to acquire Guest IP address for network Network {"id": 204, "name": "Isolated", "uuid": "9679fac5-e3ac-4694-a57b-beb635340f39", "networkofferingid": 10}Scope=interface com.cloud.dc.DataCenter; id=1 at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.importNic(NetworkOrchestrator.java:4582) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importNic(UnmanagedVMsManagerImpl.java:859) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importVirtualMachineInternal(UnmanagedVMsManagerImpl.java:1198) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importUnmanagedInstanceFromHypervisor(UnmanagedVMsManagerImpl.java:1511) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.baseImportInstance(UnmanagedVMsManagerImpl.java:1342) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importUnmanagedInstance(UnmanagedVMsManagerImpl.java:1282) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Also, addresses the VNC password field set instead of a fixed string
| Back | FazBrowse Home | New Git URL |
Description
This PR fixes a regression caused by #8465 on advanced zones, import fails with:
2024-01-10 12:13:33,234 DEBUG [o.a.c.e.o.NetworkOrchestrator] (API-Job-Executor-3:ctx-991bbe9f job-128 ctx-f49517d4) (logid:d7b8e716) Allocating nic for vm 142272e8-9e2e-407b-9d7e-e9a03b81653c in network Network {"id": 204, "name": "Isolated", "uuid": "9679fac5-e3ac-4694-a57b-beb635340f39", "networkofferingid": 10} during import 2024-01-10 12:13:33,239 ERROR [o.a.c.v.UnmanagedVMsManagerImpl] (API-Job-Executor-3:ctx-991bbe9f job-128 ctx-f49517d4) (logid:d7b8e716) Failed to import NICs while importing vm: i-2-31-VM com.cloud.exception.InsufficientVirtualNetworkCapacityException: Unable to acquire Guest IP address for network Network {"id": 204, "name": "Isolated", "uuid": "9679fac5-e3ac-4694-a57b-beb635340f39", "networkofferingid": 10}Scope=interface com.cloud.dc.DataCenter; id=1 at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.importNic(NetworkOrchestrator.java:4582) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importNic(UnmanagedVMsManagerImpl.java:859) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importVirtualMachineInternal(UnmanagedVMsManagerImpl.java:1198) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importUnmanagedInstanceFromHypervisor(UnmanagedVMsManagerImpl.java:1511) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.baseImportInstance(UnmanagedVMsManagerImpl.java:1342) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importUnmanagedInstance(UnmanagedVMsManagerImpl.java:1282) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)Also, addresses the VNC password field set instead of a fixed string
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?