Status: New
Owner: ----

New issue 112 by [email protected]: Continuing issue 111. Could not create disk
http://code.google.com/p/ganeti/issues/detail?id=112

What software version are you running? Please provide the output of "gnt-
cluster --version" and "gnt-cluster version".
2.1.6
What distribution are you using?

What steps will reproduce the problem?
1.
I try to create new instance programatically by Ganeti Remote API 2/instances, method POST. I pass the following JSON structure:
{"pnode":"x3400","disk_template":"plain",
"disks":[0],"disk.sizes":[4096],"beparams":{"memory":512},
"os":"altbootstrap+kvm","name":"s210"}
This structure is received by ganeti-rapi. But job fall down with following message:
---------
"Can't create block device <LogicalVolume(/dev/local/3713ad6f-692d-4e8e-82c2-dc0092ece633.disk0, visible as /dev/disk/0, size=0m)> on node x3400.office.altlinux.ru for instance s210.office.altlinux.ru: Can't create block device: LV create failed (exited with exit code 5): Redundant stripes argument: default is 1\n Unable to create new logical volume with no extents\n"
--------------
2. I'd like to add that command from command-line
gnt-instance add -n x3400 -t plain --disk 0:size=4g -B memory=512 -o altbootstrap+kvm s210
run succesfully, instance is created without any errors.
3. If I replace in JSON structure "disks":[0] on "disks":[1], then instance is created programmatically, but with errors and it can not run. When I run 2/instances GET with bulk=1, I see disk.sizes=[4] instead of expected disk.sizes=[4096] and memory:208 instead of 512. So,instance is down, because no left space on device. I can see that also in log files in /var/log/ganeti/os.

What is the expected output? What do you see instead?
What I do wrong in JSON structure? Why creating instance from command line works, but from API does not?
Please provide any additional information below.


Reply via email to