You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reapply the same TF file : a change is requested, current RAM value is equal to Prism info
Again, reapply the TF, it works as expected.
On Analysis, seems GET API /v3/vms/<vm_uuid> shows updated value of RAM which is different from TF config. This results a change requested in the current TF config.
The text was updated successfully, but these errors were encountered:
As per discussion with Prism team, If VM is powered ON then adding memory to VMs can only be done in 1GB increments else rounding up happens automatically. A ticket is tracked to mention this behaviour in API reference doc.
The solution does not seem to be good, I entered multiple values of 1024 for my machines, but nutanix modified them:
Value in code predicted on nutanix actually allocated by nutanix
memory_size_mib : 2048mib # =1024 x 2 2Gib 2.95Gib
memory_size_mib : 16384mib # = 1024 x 16 16Gib 16.625 Gib
TEST 1
I created a VM with TF, then updated memory values with these ones : 2000 -> 2048 -> 3072 -> 4096
Result was : 2000 -> 3024 -> 4048 -> 5072
TEST 2
I created a VM with TF, then updated memory values with these ones : 2048 -> 3072 -> 4000 -> 4096
Result was : 2048 -> 3072 -> 4096 -> 4096
My understanding :
You enforce 1024 multiples values for memory update in a VM and it seems to be successful
However :
It works only if starting value is also a 1024 multiple value. If not, new value is incorrect
VM creation can still be done with no 1024 multiple values
Note : update VM creation feature to enforce 1024 multiple value for memory could be a kind of fix, but we will still have a problem for existing VM with a memory with a non 1024 multiple value for memory.
Affected Resource(s)
Steps to reproduce:
On Analysis, seems GET API
/v3/vms/<vm_uuid>
shows updated value of RAM which is different from TF config. This results a change requested in the current TF config.The text was updated successfully, but these errors were encountered: