我在这里读到: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)