我在这里阅读:http ://docs.openstack.org/juno/config-reference/content/iso-support.html 从 Juno 开始的一瞥支持 ISO 映像文件,但是当我这样做时......
[root@mgmt-el7-001 ~]# source openrc
[root@mgmt-el7-001 ~]# file win-2k8r2-prod-20150416.iso
win-2k8r2-prod-20150416.iso: # ISO 9660 CD-ROM filesystem data 'CDROM
[root@mgmt-el7-001 ~]# cat glance_iso.sh
#!/bin/sh
iso=$1
if [ -z $iso ]
then
echo "usage: $0 <iso file>"
exit 1
fi
glance image-create --name $iso \
--is-public True --container-format bare \
--disk-format iso < $iso
'
[root@mgmt-el7-001 ~]# ./glance_iso.sh win-2k8r2-prod-20150416.iso
...我收到此错误消息:
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
Invalid disk format 'iso' for image.<br /><br />
</body>
</html> (HTTP 400)