无法添加图像。出现错误:openstack glan

2024-03-29 09:19:00 发布

您现在位置:Python中文网/ 问答频道 /正文

以下glance命令添加图像失败

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

错误被接收到了

^{pr2}$

不知道哪一个论点错了,有人感激吗

这是我的档案

ubuntu@ubuntu:~/images$ file cirros-0.3.1-x86_64-disk.img 
cirros-0.3.1-x86_64-disk.img: QEMU QCOW Image (v2), 41126400 bytes

Tags: name图像命令addformatimgubuntucontainer
1条回答
网友
1楼 · 发布于 2024-03-29 09:19:00

其中一个选项应该有效:

命令参数名称应使用下划线(_)而不是短划线(-):

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

或者,命令参数可能需要以作为前缀:

^{pr2}$

相关问题 更多 >