Gandi / gandi.cli

⚠ ARCHIVED - Command line interface to Gandi.net products using the public API
http://cli.gandi.net/
GNU General Public License v3.0
347 stars 62 forks source link

vm_max_memory only accept 3 values #152

Open whitone opened 9 years ago

whitone commented 9 years ago

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.

sayoun commented 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.

whitone commented 9 years ago

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.

sayoun commented 9 years ago

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.

sayoun commented 9 years ago

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

whitone commented 9 years ago

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.

sayoun commented 9 years ago

Ok but this is beyond the CLI scope, I'll open a internal ticket for the website.