Juno Glance does not like iso image

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

RedCricket gravatar image

Hi,

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 
#!/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

... I get this error message:

<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)
edit retag flag offensive close merge delete