create disk --vm-identifier '339857a2-642c-4d0b-b4d5-02bda1c7ac66' --storage_domains-storage_domain-id 'd2c04ba8-1e64-4f87-b3e7-acf27888335f' --format 'cow' --sparse true --interface 'virtio' --size 214748364 error: syntax error "%s", see help on collection based arguments for more details.
Storage domain is required for vm first disk creation
error: syntax error at "--storage_domains-storage_domain-id", see help on collection based arguments for more details. this bug caused by incorrect parameter representation in RSDL, storage_domains [1] implemented as collection while RSDL reporting it as Type [1] public List<StorageDomain> getStorageDomains() { if (storageDomains == null) { storageDomains = new ArrayList<StorageDomain>(); } return this.storageDomains; }
my bad, - (was on old branch), current RSDL impl is correct (see cli help [1]), usage is not, Elena please always review /help/ to determinate correct option format. [1] Overload 1: * --size: int * --type: string * --interface: string * --format: string * [--sparse: boolean] * [--bootable: boolean] * [--shareable: boolean] * [--allow_snapshot: boolean] * [--propagate_errors: boolean] * [--wipe_after_delete: boolean] * [--storage_domains: collection] { [storage_domain.id|name: string] }