Hello,
Thanks for your time reviewing and responding. I’m new to OpenNebula and I’m currently preforming and evaluation using minione with v6.10.0 for about 2 weeks now. Its been going very well so far. However, I’m having trouble testing one use-case where I select the specific host placement to launch the VM.
I’ve noticed two issues. Issue #1 I’ve worked around, but thought to mention it as possible bug. (as a new user it took me many hours to find the issue/workaround.)
6.10.0 Env to Create a NEW VM and Placement on a specific host.
- Sunstone web UI.
- 2 physical host (OnPrem) with Ubuntu22.04
- New setup, no other VMs on hosts
- If placement isn’t used then VMs are properly places across the 2 hosts. (so host memory, cpu, datastores all seem fine. (even testing with 3 VMs in one launch spreads them across the two host as expected.)
- Using Placement for “cluster” works fine too.
- The issues are only seen with selecting a specific HOST placement
Issue#1 - using AppStore Ubuntu 20.04 template & selecting 1 HOST
Web interface creates "host requirement expression" automatically as " & (HOST_ID = 20)"
This causes the following failure on launch:
Wed Oct 23 22:15:53 2024: Error in SCHED_REQUIREMENTS: ‘(CLUSTER_ID = 117) & !(PUBLIC_CLOUD = YES) & !(PIN_POLICY = PINNED) & ( & (HOST_ID = 20) )’, error: syntax error, unexpected ‘&’, expecting ‘!’ or STRING or ‘(’ at line 1948281953, columns 73:74
The WORKAROUND is to change webUI “host requirement expression” to only “HOST_ID = 20”
I then get further, but stuck at Issue#2
Issue#2 using AppStore Ubuntu 20.04 template & selecting 1 HOST with workaround to issue#1
Always fails with:
Wed Oct 23 22:19:24 2024: Cannot dispatch VM: No host meets capacity and SCHED_REQUIREMENTS: (CLUSTER_ID = 117) & !(PUBLIC_CLOUD = YES) & !(PIN_POLICY = PINNED) & ( HOST_ID = 20 )
I’ve spent better part of a day trying to find what I have setup wrong or doing wrong but can’t find it.
The 2 host are ON state. Zero VMs on both. In cluster 117. OnPrem KVM. No Pinning.
By default my host didn’t have attributes PUBLIC_CLOUD or PIN_POLICY. I assume not present would satisfy the “NOT”. I did explicitly add it to host 20, but that didn’t help. I have set scheduler logs to level 5 highest debug level. Still not explicit statement as to what is not matching the criteria to schedule on host.
I tried adding also sorts of other policy statements etc, none helped.
I’ll tried to attached the scheduler log, but as new user to forum I’m blocked per upload error., but here is a clip. I can paste more if needed.
I’ve listed onehost show 19 & 20 below too. (removing only ssh key info and full host name)
Wed Oct 23 21:50:12 2024 [Z0][VM][D]: Pending/rescheduling VM and capacity requirements:
ACTION VM CPU Memory PCI System DS Image DS
------------------------------------------------------------
DEPLOY 58 8 33554432 0 40960 DS 126: 0
Wed Oct 23 21:50:12 2024 [Z0][HOST][D]: Discovered Hosts (enabled):
ID : 19
CLUSTER_ID : 117
PUBLIC : 0
MEM_USAGE : 0
CPU_USAGE : 0
MAX_MEM : 527984072
MAX_CPU : 9600
FREE_DISK : 80973
RUNNING_VMS : 0
DSID FREE_MB
------------------------------
1 80973
125 80973
126 80973
127 80973
133 80973
Wed Oct 23 21:50:22 2024 [Z0][HOST][D]: Discovered Hosts (enabled):
ID : 19
CLUSTER_ID : 117
PUBLIC : 0
MEM_USAGE : 0
CPU_USAGE : 0
MAX_MEM : 527984072
MAX_CPU : 9600
FREE_DISK : 80973
RUNNING_VMS : 0
DSID FREE_MB
------------------------------
1 80973
125 80973
126 80973
127 80973
133 80973
Wed Oct 23 21:50:22 2024 [Z0][SCHED][DD]: Setting VM groups placement constraints. Total time: 0.00s
Wed Oct 23 21:50:22 2024 [Z0][SCHED][DD]: Host 19 discarded for VM 58. It does not fulfill SCHED_REQUIREMENTS: (CLUSTER_ID = 117) & !(PUBLIC_CLOUD = YES) & !(PIN_POLICY = PINNED) & ( (HYPERVISOR=undefined) & (HOST_ID = 20) )
Wed Oct 23 21:50:22 2024 [Z0][SCHED][DD]: Host 20 discarded for VM 58. It does not fulfill SCHED_REQUIREMENTS: (CLUSTER_ID = 117) & !(PUBLIC_CLOUD = YES) & !(PIN_POLICY = PINNED) & ( (HYPERVISOR=undefined) & (HOST_ID = 20) )
Wed Oct 23 21:50:22 2024 [Z0][SCHED][D]: Match-making results for VM 58:
Cannot schedule VM, there is no suitable host.
Wed Oct 23 21:50:22 2024 [Z0][SCHED][DD]: Match Making statistics:
Number of VMs: 1
Total time: 0s
Total Cluster Match time: 0s
Total Host Match time: 0.00s
Total Host Ranking time: 0s
Total DS Match time: 0s
Total DS Ranking time: 0s
Total Network Match time: 0s
Total Network Ranking time:0s
Wed Oct 23 21:50:22 2024 [Z0][SCHED][DDD]: Scheduling Results:
Wed Oct 23 21:50:22 2024 [Z0][SCHED][DD]: Match scheduled resources, sort by priorities. Total time: 0.01s
Wed Oct 23 21:50:22 2024 [Z0][SCHED][DD]: Call external Scheduler. Total time: 0.00s
Wed Oct 23 21:50:22 2024 [Z0][SCHED][D]: Dispatching VMs to hosts:
VMID Priority Host System DS
--------------------------------------------------------------
root@opennebular-1:/etc/one# onevm list
ID USER GROUP NAME STAT CPU MEM HOST TIME
60 oneadmin oneadmin test-placement-AppVM pend 1 768M 0d 00h06
root@opennebular-1:/etc/one# onehost list
ID NAME CLUSTER TVM ALLOCATED_CPU ALLOCATED_MEM STAT
20 s002-m5-40g-kvm27.mitg-bxb300.cisco.com onprem-clu 0 0 / 9600 (0%) 0K / 503.5G (0%) on
19 s002-m5-40g-kvm38.mitg-bxb300.cisco.com onprem-clu 0 0 / 9600 (0%) 0K / 503.5G (0%) on
root@opennebular-1:/etc/one#
root@opennebular-1:/etc/one# onehost show 20
HOST 20 INFORMATION
ID : 20
NAME : s002-m5-40g-kvm27
CLUSTER : onprem-cluster-laas-1a
STATE : MONITORED
IM_MAD : kvm
VM_MAD : kvm
LAST MONITORING TIME : 10/23 22:30:04
HOST SHARES
RUNNING VMS : 0
MEMORY
TOTAL : 503.5G
TOTAL +/- RESERVED : 503.5G
USED (REAL) : 3.3G
USED (ALLOCATED) : 0K
CPU
TOTAL : 9600
TOTAL +/- RESERVED : 9600
USED (REAL) : 0
USED (ALLOCATED) : 0
LOCAL SYSTEM DATASTORE #133 CAPACITY
TOTAL: : 97.9G
USED: : 11.9G
FREE: : 81G
MONITORING INFORMATION
ARCH=“x86_64”
CGROUPS_VERSION=“2”
CONTEXT=[
SSH_PUBLIC_KEY=“”
CPUSPEED=“0”
HOSTNAME=“s002-m5-40g-kvm27”
HYPERVISOR=“kvm”
IM_MAD=“kvm”
KVM_CPU_FEATURES=“3dnowprefetch,abm,acpi,adx,aes,apic,arat,arch-capabilities,avx,avx2,avx512-bf16,avx512bw,avx512cd,avx512dq,avx512f,avx512vl,avx512vnni,bmi1,bmi2,clflush,clflushopt,clwb,cmov,cx16,cx8,dca,de,ds,ds_cpl,dtes64,erms,est,f16c,fma,fpu,fsgsbase,fxsr,hle,ht,ibrs-all,intel-pt,invpcid,invtsc,lahf_lm,lm,mca,mce,md-clear,mds-no,mmx,monitor,movbe,mpx,msr,mtrr,nx,pae,pat,pbe,pcid,pclmuldq,pdcm,pdpe1gb,pge,pku,pni,popcnt,pschange-mc-no,pse,pse36,rdctl-no,rdrand,rdseed,rdtscp,rtm,sep,skip-l1dfl-vmentry,smap,smep,smx,spec-ctrl,ss,ssbd,sse,sse2,sse4.1,sse4.2,ssse3,stibp,syscall,taa-no,tm,tm2,tsc,tsc-deadline,tsc_adjust,tsx-ctrl,vme,vmx,x2apic,xgetbv1,xsave,xsavec,xsaveopt,xsaves,xtpr”
KVM_CPU_MODEL=“Cascadelake-Server-noTSX”
KVM_CPU_MODELS=“486 pentium pentium2 pentium3 pentiumpro coreduo n270 core2duo qemu32 kvm32 cpu64-rhel5 cpu64-rhel6 kvm64 Conroe Penryn Nehalem Nehalem-IBRS Westmere Westmere-IBRS SandyBridge SandyBridge-IBRS IvyBridge IvyBridge-IBRS Haswell-noTSX Haswell-noTSX-IBRS Broadwell-noTSX Broadwell-noTSX-IBRS Skylake-Client-noTSX-IBRS Skylake-Server-noTSX-IBRS Cascadelake-Server-noTSX SapphireRapids SapphireRapids-noTSX Opteron_G1”
KVM_MACHINES=“pc-i440fx-jammy ubuntu pc-i440fx-impish-hpb pc-q35-5.2 pc-i440fx-2.12 pc-i440fx-2.0 pc-i440fx-xenial pc-i440fx-6.2 pc pc-q35-4.2 pc-i440fx-2.5 pc-i440fx-4.2 pc-i440fx-focal pc-i440fx-hirsute pc-q35-xenial pc-i440fx-jammy-hpb pc-i440fx-5.2 pc-i440fx-1.5 pc-q35-2.7 pc-q35-eoan-hpb pc-i440fx-zesty pc-i440fx-disco-hpb pc-q35-groovy pc-i440fx-groovy pc-q35-artful pc-i440fx-2.2 pc-i440fx-trusty pc-i440fx-eoan-hpb pc-q35-focal-hpb pc-q35-jammy-maxcpus pc-q35-bionic-hpb pc-i440fx-artful pc-i440fx-2.7 pc-q35-6.1 pc-i440fx-jammy-maxcpus pc-i440fx-yakkety pc-q35-2.4 pc-q35-cosmic-hpb pc-q35-2.10 x-remote pc-i440fx-1.7 pc-q35-5.1 pc-q35-2.9 pc-i440fx-2.11 pc-i440fx-jammy-hpb-maxcpus pc-q35-3.1 pc-i440fx-6.1 pc-q35-4.1 pc-q35-jammy ubuntu-q35 pc-i440fx-2.4 pc-i440fx-4.1 pc-q35-eoan pc-q35-jammy-hpb pc-i440fx-5.1 pc-i440fx-2.9 pc-i440fx-bionic-hpb isapc pc-i440fx-1.4 pc-q35-cosmic pc-q35-2.6 pc-i440fx-3.1 pc-q35-bionic pc-q35-disco-hpb pc-i440fx-cosmic pc-q35-2.12 pc-i440fx-bionic pc-q35-groovy-hpb pc-q35-disco pc-i440fx-cosmic-hpb pc-i440fx-2.1 pc-i440fx-wily pc-q35-impish pc-q35-6.0 pc-i440fx-impish pc-i440fx-2.6 pc-q35-impish-hpb pc-q35-hirsute pc-q35-4.0.1 pc-q35-hirsute-hpb pc-i440fx-1.6 pc-q35-5.0 pc-q35-2.8 pc-i440fx-2.10 pc-q35-3.0 pc-i440fx-6.0 pc-q35-zesty pc-q35-4.0 pc-q35-focal microvm pc-i440fx-2.3 pc-q35-jammy-hpb-maxcpus pc-i440fx-focal-hpb pc-i440fx-disco pc-i440fx-4.0 pc-i440fx-groovy-hpb pc-i440fx-hirsute-hpb pc-i440fx-5.0 pc-i440fx-2.8 pc-q35-6.2 q35 pc-i440fx-eoan pc-q35-2.5 pc-i440fx-3.0 pc-q35-yakkety pc-q35-2.11”
MODELNAME=“Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz”
PIN_POLICY=“NONE”
PROVISION=[
ANSIBLE_PLAYBOOK=“onprem”,
COUNT=“1”,
HOSTNAME=“s002-m5-40g-kvm27
ID=“20”,
INDEX=“1”,
PROVIDER_NAME=“onprem” ]
PROVISION_CONFIGURATION_BASE64=“LS0tCm9uZXByb3Zpc2lvbl9oeXBlcnZpc29yOiBrdm0Kb3Blbm5lYnVsYV9zc2hfZGVwbG95X3ByaXZhdGVfa2V5OiB0cnVlCm9uZXByb3Zpc2lvbl9wcml2YXRlX3BoeWRldjogZW5wOTRzMGYxCg==”
PROVISION_CONNECTION=[
PRIVATE_KEY=”/var/lib/one/.ssh-oneprovision/id_rsa",
PUBLIC_KEY=“/var/lib/one/.ssh-oneprovision/id_rsa.pub”,
REMOTE_PORT=“22”,
REMOTE_USER=“root” ]
PUBLIC_CLOUD=“NO”
VERSION=“6.10.0”
VM_MAD=“kvm”
NUMA NODES
ID CORES USED FREE
0 – – – – – – – – – – – – – – – – – – – – – – – – 0 48
1 – – – – – – – – – – – – – – – – – – – – – – – – 0 48
NUMA MEMORY
NODE_ID TOTAL USED_REAL USED_ALLOCATED FREE
0 251.6G 1.7G 0K 249.9G
1 251.9G 3.7G 0K 248.2G
NUMA HUGEPAGES
NODE_ID SIZE TOTAL FREE USED
0 2M 0 0 0
0 1024M 0 0 0
1 2M 0 0 0
1 1024M 0 0 0
WILD VIRTUAL MACHINES
NAME IMPORT_ID CPU MEMORY
VIRTUAL MACHINES
ID USER GROUP NAME STAT CPU MEM HOST TIME
root@opennebular-1:/etc/one#
opennebular-1:/etc/one# onehost show 19
HOST 19 INFORMATION
ID : 19
NAME : s002-m5-40g-kvm38
CLUSTER : onprem-cluster-laas-1a
STATE : MONITORED
IM_MAD : kvm
VM_MAD : kvm
LAST MONITORING TIME : 10/23 22:32:26
HOST SHARES
RUNNING VMS : 0
MEMORY
TOTAL : 503.5G
TOTAL +/- RESERVED : 503.5G
USED (REAL) : 3.3G
USED (ALLOCATED) : 0K
CPU
TOTAL : 9600
TOTAL +/- RESERVED : 9600
USED (REAL) : 0
USED (ALLOCATED) : 0
LOCAL SYSTEM DATASTORE #1 CAPACITY
TOTAL: : 97.9G
USED: : 13.8G
FREE: : 79.1G
LOCAL SYSTEM DATASTORE #125 CAPACITY
TOTAL: : 97.9G
USED: : 13.8G
FREE: : 79.1G
LOCAL SYSTEM DATASTORE #126 CAPACITY
TOTAL: : 97.9G
USED: : 13.8G
FREE: : 79.1G
LOCAL SYSTEM DATASTORE #127 CAPACITY
TOTAL: : 97.9G
USED: : 13.8G
FREE: : 79.1G
LOCAL SYSTEM DATASTORE #133 CAPACITY
TOTAL: : 97.9G
USED: : 13.8G
FREE: : 79.1G
MONITORING INFORMATION
ARCH=“x86_64”
CGROUPS_VERSION=“2”
CONTEXT=[
SSH_PUBLIC_KEY=“removed by me”
CPUSPEED=“0”
HOSTNAME=“s002-m5-40g-kvm38”
HYPERVISOR=“kvm”
IM_MAD=“kvm”
KVM_CPU_FEATURES=“3dnowprefetch,abm,acpi,adx,aes,apic,arat,arch-capabilities,avx,avx2,avx512-bf16,avx512bw,avx512cd,avx512dq,avx512f,avx512vl,avx512vnni,bmi1,bmi2,clflush,clflushopt,clwb,cmov,cx16,cx8,dca,de,ds,ds_cpl,dtes64,erms,est,f16c,fma,fpu,fsgsbase,fxsr,hle,ht,ibrs-all,intel-pt,invpcid,invtsc,lahf_lm,lm,mca,mce,md-clear,mds-no,mmx,monitor,movbe,mpx,msr,mtrr,nx,pae,pat,pbe,pcid,pclmuldq,pdcm,pdpe1gb,pge,pku,pni,popcnt,pschange-mc-no,pse,pse36,rdctl-no,rdrand,rdseed,rdtscp,rtm,sep,skip-l1dfl-vmentry,smap,smep,smx,spec-ctrl,ss,ssbd,sse,sse2,sse4.1,sse4.2,ssse3,stibp,syscall,taa-no,tm,tm2,tsc,tsc-deadline,tsc_adjust,tsx-ctrl,vme,vmx,x2apic,xgetbv1,xsave,xsavec,xsaveopt,xsaves,xtpr”
KVM_CPU_MODEL=“Cascadelake-Server-noTSX”
KVM_CPU_MODELS=“486 pentium pentium2 pentium3 pentiumpro coreduo n270 core2duo qemu32 kvm32 cpu64-rhel5 cpu64-rhel6 kvm64 Conroe Penryn Nehalem Nehalem-IBRS Westmere Westmere-IBRS SandyBridge SandyBridge-IBRS IvyBridge IvyBridge-IBRS Haswell-noTSX Haswell-noTSX-IBRS Broadwell-noTSX Broadwell-noTSX-IBRS Skylake-Client-noTSX-IBRS Skylake-Server-noTSX-IBRS Cascadelake-Server-noTSX SapphireRapids SapphireRapids-noTSX Opteron_G1”
KVM_MACHINES=“pc-i440fx-jammy ubuntu pc-i440fx-impish-hpb pc-q35-5.2 pc-i440fx-2.12 pc-i440fx-2.0 pc-i440fx-xenial pc-i440fx-6.2 pc pc-q35-4.2 pc-i440fx-2.5 pc-i440fx-4.2 pc-i440fx-focal pc-i440fx-hirsute pc-q35-xenial pc-i440fx-jammy-hpb pc-i440fx-5.2 pc-i440fx-1.5 pc-q35-2.7 pc-q35-eoan-hpb pc-i440fx-zesty pc-i440fx-disco-hpb pc-q35-groovy pc-i440fx-groovy pc-q35-artful pc-i440fx-2.2 pc-i440fx-trusty pc-i440fx-eoan-hpb pc-q35-focal-hpb pc-q35-jammy-maxcpus pc-q35-bionic-hpb pc-i440fx-artful pc-i440fx-2.7 pc-q35-6.1 pc-i440fx-jammy-maxcpus pc-i440fx-yakkety pc-q35-2.4 pc-q35-cosmic-hpb pc-q35-2.10 x-remote pc-i440fx-1.7 pc-q35-5.1 pc-q35-2.9 pc-i440fx-2.11 pc-i440fx-jammy-hpb-maxcpus pc-q35-3.1 pc-i440fx-6.1 pc-q35-4.1 pc-q35-jammy ubuntu-q35 pc-i440fx-2.4 pc-i440fx-4.1 pc-q35-eoan pc-q35-jammy-hpb pc-i440fx-5.1 pc-i440fx-2.9 pc-i440fx-bionic-hpb isapc pc-i440fx-1.4 pc-q35-cosmic pc-q35-2.6 pc-i440fx-3.1 pc-q35-bionic pc-q35-disco-hpb pc-i440fx-cosmic pc-q35-2.12 pc-i440fx-bionic pc-q35-groovy-hpb pc-q35-disco pc-i440fx-cosmic-hpb pc-i440fx-2.1 pc-i440fx-wily pc-q35-impish pc-q35-6.0 pc-i440fx-impish pc-i440fx-2.6 pc-q35-impish-hpb pc-q35-hirsute pc-q35-4.0.1 pc-q35-hirsute-hpb pc-i440fx-1.6 pc-q35-5.0 pc-q35-2.8 pc-i440fx-2.10 pc-q35-3.0 pc-i440fx-6.0 pc-q35-zesty pc-q35-4.0 pc-q35-focal microvm pc-i440fx-2.3 pc-q35-jammy-hpb-maxcpus pc-i440fx-focal-hpb pc-i440fx-disco pc-i440fx-4.0 pc-i440fx-groovy-hpb pc-i440fx-hirsute-hpb pc-i440fx-5.0 pc-i440fx-2.8 pc-q35-6.2 q35 pc-i440fx-eoan pc-q35-2.5 pc-i440fx-3.0 pc-q35-yakkety pc-q35-2.11”
MODELNAME=“Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz”
PROVISION=[
ANSIBLE_PLAYBOOK=“onprem”,
COUNT=“1”,
HOSTNAME=“s002-m5-40g-kvm38.mitg-bxb300.cisco.com”,
ID=“20”,
INDEX=“0”,
PROVIDER_NAME=“onprem” ]
PROVISION_CONFIGURATION_BASE64=“LS0tCm9uZXByb3Zpc2lvbl9oeXBlcnZpc29yOiBrdm0Kb3Blbm5lYnVsYV9zc2hfZGVwbG95X3ByaXZhdGVfa2V5OiB0cnVlCm9uZXByb3Zpc2lvbl9wcml2YXRlX3BoeWRldjogZW5wOTRzMGYxCg==”
PROVISION_CONNECTION=[
PRIVATE_KEY=“/var/lib/one/.ssh-oneprovision/id_rsa”,
PUBLIC_KEY=“/var/lib/one/.ssh-oneprovision/id_rsa.pub”,
REMOTE_PORT=“22”,
REMOTE_USER=“root” ]
RESERVED_CPU=“”
RESERVED_MEM=“”
VERSION=“6.10.0”
VM_MAD=“kvm”
NUMA NODES
ID CORES USED FREE
0 – – – – – – – – – – – – – – – – – – – – – – – – 0 48
1 – – – – – – – – – – – – – – – – – – – – – – – – 0 48
NUMA MEMORY
NODE_ID TOTAL USED_REAL USED_ALLOCATED FREE
0 251.6G 4.2G 0K 247.4G
1 251.9G 1.6G 0K 250.3G
NUMA HUGEPAGES
NODE_ID SIZE TOTAL FREE USED
0 2M 0 0 0
0 1024M 0 0 0
1 2M 0 0 0
1 1024M 0 0 0
WILD VIRTUAL MACHINES
NAME IMPORT_ID CPU MEMORY
VIRTUAL MACHINES
ID USER GROUP NAME STAT CPU MEM HOST TIME
root@opennebular-1:/etc/one#