Hello!
Iām trying to create VM or VM template with several disks using pyone lib, but it looks like there is an issue or something.
Here is a code sample I use:
#!/usr/bin/python
import pyone
one = pyone.OneServer("http://10.10.10.100:2633/RPC2", session="oneadmin:oneadmin")
one.template.allocate(
{
'TEMPLATE': {
'NAME': 'test100',
'MEMORY': '1024',
'DISK': { 'IMAGE_ID': '314'},
'DISK': { 'IMAGE_ID': '310'},
'CPU' : '1',
'VCPU' : '2'
}
})
When I run it, ONE creates the template with only one disk - the last one I specified.
Here is the result template:
CPU = ā1ā
DISK = [
IMAGE_ID = ā310ā ]
MEMORY = ā1024ā
VCPU = ā2ā
Any ideas why is that? Maybe I made a mistake in template description?
Thanks a lot!