2014-12-27 3 views
0

После команды взгляда, чтобы добавить изображение не удаетсяОшибка добавлена. Есть ошибка: OpenStack взгляд

glance add name="CirrOS 0.3.1" disk-format=qcow2 container-format=bare is-public=true < cirros-0.3.1-x86_64-disk.img 

и ошибка получила

Uploading image 'CirrOS 0.3.1' 
=============================================================[100%] 5.68M/s, ETA 0h 0m 0s 
Failed to add image. Got error: 
Data supplied was not valid. 
Details: 400 Bad Request 

The server could not comply with the request since it is either malformed or otherwise incorrect. 

Failed to activate image. Got error: Data supplied was not valid. Details: 400 Bad Request The server could not comply with the request since it is either malformed or otherwise incorrect. Failed to update image metadata. Got error: Data supplied was not valid. Details: Invalid disk format 'None' for image.  
Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'. 

Не уверен, какой аргумент заладилось любая помощь оценили

это мой файл

[email protected]:~/images$ file cirros-0.3.1-x86_64-disk.img 
cirros-0.3.1-x86_64-disk.img: QEMU QCOW Image (v2), 41126400 bytes 

ответ

2

Один из эти варианты должны работать: имена

аргумента команды должны использовать подчеркивание (_) вместо черточек (-):

glance add name="CirrOS 0.3.1" disk_format=qcow2 container_format=bare is_public=true < cirros-0.3.1-x86_64-disk.img 

В качестве альтернативы может быть, что аргументы команды должны начинаться с префиксом --:

glance add --name="CirrOS 0.3.1" --disk-format=qcow2 --container-format=bare --is-public=true < cirros-0.3.1-x86_64-disk.img 
+0

взгляд добавить имя = "cirrOS 0.3.1" disk_format = qcow2 container_format = босые is_public = True anish

Смежные вопросы