Hi,
I need to change value “AUTOMATIC_DS_REQUIREMENTS” in VM body because I have changed TM_MAD from “ssh” to “qcow2” in my datastaores and, now, some VMs don’t start. I have manually modified that value with "onedb update-body vm --id VM_ID
" but, after VM starts OK and run an “undeploy”, VM body shows again <AUTOMATIC_DS_REQUIREMENTS><![CDATA[("CLUSTERS/ID" @> 0) & (TM_MAD = "ssh")]]></AUTOMATIC_DS_REQUIREMENTS>
and, then, my VMs don’t start again…
Now, after some tests, I get this error when I start/run a VM:
Wed Mar 1 09:08:48 2023: Cannot dispatch VM: No system datastore meets capacity and SCHED_DS_REQUIREMENTS: ("CLUSTERS/ID" @> 0) & (TM_MAD = "ssh")
and, when I run “onedb update-body vm --id VM_ID”, AUTOMATIC_DS_REQUIREMENTS show TM_MAD=qcow2 (I had modified it), but scheduler doesn’t run VM because SCHED_DS_REQUIREMENTS stills shows “TM_MAD=ssh”.
I have noticed that if I delete three lines “AUTOMATIC” inside VM body when VM is “undeployed”, when I restart VM, these lines automatically appear again, so VM doesn’t start.
<TEMPLATE>
<AUTOMATIC_DS_REQUIREMENTS><![CDATA[("CLUSTERS/ID" @> 0) & (TM_MAD = "qcow2")]]></AUTOMATIC_DS_REQUIREMENTS>
<AUTOMATIC_NIC_REQUIREMENTS><![CDATA[("CLUSTERS/ID" @> 0)]]></AUTOMATIC_NIC_REQUIREMENTS>
<AUTOMATIC_REQUIREMENTS><![CDATA[(CLUSTER_ID = 0) & !(PUBLIC_CLOUD = YES) & !(PIN_POLICY = PINNED)]]></AUTOMATIC_REQUIREMENTS>
So, I need to know if there is a way to delete forever or, maybe, avoid that restarting VM adds theses lines automatically…
Whan can I do? It’s a big problem now for me.
I hope someone could help me today.
Thanks.