gandi.cli
gandi.cli copied to clipboard
Need to change the kernel cmdline as long as the kernel when migrating hypervisor
When trying to change my VM from one platform (Xen) to the new platform (KVM), I tried to change the kernel on the main disk of my VM. For the change to be accepted, the user needs to change the kernel and the boot command line at the same time (from 3.2-xenU to 3.12-guest).
$ gandi disk update --kernel "3.12-x86_64 (hvm)" chaussette
Usage: gandi disk [OPTIONS] RESOURCE
Error: Gandi API has returned an error: <Fault 530402: 'Error on object : OBJECT_DISK (CAUSE_CMDLINE_OPT) [Option root is invalid]'>
$ gandi disk update --kernel "3.12-x86_64 (hvm)" --cmdline "console=ttyS0 loglevel=8 nosep root=/dev/sda" chaussette
Updating your disk.
Progress: [#######################################################################] 100.00% 00:00:21
This has been fixed with the release of gandi's api 3.3.33
I replay to quickly, it's not exactly the same error, as the one fixed in the 3.3.33
will try do see if we can fix it, but this error is the 'expected' behavior, indeed when changing kernel the api check if the current cmdline will be valid for the new one.