<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><br class="Apple-interchange-newline">
</div>
<br><div><div>On Mar 29, 2012, at 12:00 PM, Scott Moser wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Wed, 28 Mar 2012, Lorin Hochstein wrote:<br><br><blockquote type="cite">All:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Given that I have a qcow2 image from somewhere (e.g., downloaded it from a <a href="http://uec-images.ubuntu.com">uec-images.ubuntu.com</a>, created one from a raw image using qemu-img) that i want to add to glance:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1. How can I tell whether it's an "ovf" or "bare" container format?<br></blockquote><blockquote type="cite">2. Why does it matter?<br></blockquote><br>I dont know either, but I do know what you want, taken from stack.sh in<br>devstack, which should probably be updated to not use '-A'<br>glance add -A "$TOKEN" \<br>   name="${IMAGE_NAME%.img}" is_public=true<br>   container_format=ami disk_format=ami <${IMAGE}<br><br>You can also add "ramdisk_id=...." and "kernel_id=...." tags in the upload<br>if you want that.<br><br>Note, you can do this with the Ubuntu cloud-images, and that is the best<br>way to put images for openstack into glance.<br> $ url=<a href="https://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img">https://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img</a><br> $ wget "$url" -O "${url##*/}"<br> $ glance add name=${url##*/} is_public=true container_format=ami \<br>      disk_format=ami < "${url##*/}"<br><br></div></blockquote><div><br></div><div>Isn't that a qcow2 image? Why does devstack use "container_format=ami disk_format=ami" and not "container_format=bare disk_format=qcow2"?</div><div><br></div><div><br></div><div><br></div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Take care,</div><div><br></div><div>Lorin</div><div>--</div><div>Lorin Hochstein</div><div>Lead Architect - Cloud Services</div><div>Nimbis Services, Inc.</div><div><a href="https://www.nimbisservices.com/">www.nimbisservices.com</a></div><div><br></div></div></span></div></div></div><br></body></html>