Open whitone opened 9 years ago
Hello @whitone,
did you have a problem with the gandi vm update
command ? if so with what value/parameters ? If you can provide a full command used it can help solve the issue faster.
Yes, the following command
gandi vm update vm_name --memory 16384
set the correct memory but it did not set the max memory to 24576.
Can you provide your VM id ? To check the update process logs and current settings value.
But if the command did not raise an error, then the value is correct and the API documentation may need to be updated with possible values.
Ok so I checked and tested and I can confirm that the API documentation need to be updated, the 16384 value is valid and accepted by the API. Documentation should be: 2048, 4096, 8192, 16384, 24576
Ok, but also in the popup Modify the RAM limit from https://www.gandi.net/admin/iaas/vm/XXXXX you get only the previous 3 values.
Ok but this is beyond the CLI scope, I'll open a internal ticket for the website.
As described in Gandi API documentation (http://doc.rpc.gandi.net/hosting/usage.html#update-a-vm) _vm_maxmemory accept only 2048, 4096, and 24576 as values.
The function _required_maxmemory returns the memory value if it's different from the current _vm_maxmemory (only if it's higher than 2048), but the problem is that only the previous values are supported.