title: Failed to add image. Got error: openstack glance
body: <p>Following glance command to add image is failing </p>
  
  <pre><code>glance  add name="CirrOS 0.3.1" disk-format=qcow2 container-format=bare is-public=true &lt; cirros-0.3.1-x86_64-disk.img
  </code></pre>
  
  <p>and the error recieved</p>
  
  <pre><code>Uploading image 'CirrOS 0.3.1'
  =============================================================[100%] 5.68M/s, ETA  0h  0m  0s
  Failed to add image. Got error:
  Data supplied was not valid.
  Details: 400 Bad Request
  
  The server could not comply with the request since it is either malformed or otherwise incorrect.
  
   Failed to activate image. Got error: Data supplied was not valid. Details: 400 Bad Request  The server could not comply with the request since it is either malformed or otherwise incorrect.   Failed to update image metadata. Got error: Data supplied was not valid. Details: Invalid disk format 'None' for image.    
  Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'.
  </code></pre>
  
  <p>Not sure which argument went wrong any help appreciated</p>
  
  <p>this is my file</p>
  
  <pre><code>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
  </code></pre>