Juno Glance does not like iso image

asked 2015-04-27 15:03:15 -0600

RedCricket gravatar image


I was reading here: http://docs.openstack.org/juno/config... that glance as of Juno supports ISO image files, but when I do this ...

[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 

if [ -z $iso ]
    echo "usage: $0 <iso file>"
    exit 1

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

... I get this error message:

  <title>400 Bad Request</title>
  <h1>400 Bad Request</h1>
  Invalid disk format 'iso' for image.<br /><br />

</html> (HTTP 400)
edit retag flag offensive close merge delete