<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:40 PM, Daniel P. Berrange wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Wed, Mar 28, 2012 at 04:41:28PM -0400, Lorin Hochstein wrote:<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<br></blockquote><blockquote type="cite">it from a <a href="http://uec-images.ubuntu.com">uec-images.ubuntu.com</a>, created one from a raw image using<br></blockquote><blockquote type="cite">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><br>You are mixing up terminology here. Disk image formats are things like<br>raw, qcow2, vmdk, etc.<br><br>OVF refers to the format of a metadata file provided alongside the<br>disk image, which describes various requirements for running the<br>image.<br><br>The two are not tied together at all, merely complementary to<br>each other.<br><br></div></blockquote><div><br></div><div>Thanks, that clears things up. I was confused by this language, which sounded to me like the metadata was embedded in the disk image file:</div><div><br></div><div><a href="http://glance.openstack.org/formats.html">http://glance.openstack.org/formats.html</a></div><div><br></div><div>"The container format refers to whether the virtual machine image is in a file format that also contains metadata about the actual virtual machine."</div><div><br></div><div>In addition, the docs have examples like this, which clearly aren't meaningful:</div><div><a href="http://glance.openstack.org/glance.html#important-information-about-uploading-images">http://glance.openstack.org/glance.html#important-information-about-uploading-images</a></div><div><br></div><div><br></div><div><pre style="overflow: auto; font-family: Consolas, 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace; font-size: 0.95em; letter-spacing: normal; line-height: 15px; padding: 0.5em; border: 1px solid rgb(204, 204, 204); background-color: rgb(248, 248, 248); color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">$> glance add name="My Image" is_public=true \
     container_format=ovf disk_format=raw < /tmp/images/myimage.iso</pre><div><br></div></div><div>I'll propose a change to the docs for that.</div><div><br></div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font><blockquote type="cite">Whenever I add a qcow2 image to glance, I always choose "ovf",<br></blockquote><blockquote type="cite">even though it's probably "bare", because I saw an example<br></blockquote><blockquote type="cite">somewhere, and it just works, so I keep doing it. But I don't<br></blockquote><blockquote type="cite">know how to inspect a binary file to determine what its container<br></blockquote><blockquote type="cite">is (if "file image.qcow2" says it's a QEMU QCOW2 Image (v2), does<br></blockquote><blockquote type="cite">that mean it's "bare"?). In particular, why does the user need to<br></blockquote><blockquote type="cite">specify this information?<br></blockquote><br>If you simply have a single  someimage.qcow2 file, then you simply<br>have a disk image. Thus there is no OVF metadata involved at all.<br><br>eg, this is the (qcow2) disk image:<br><br>  <a href="http://uec-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img">http://uec-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img</a><br><br>While this is an OVF metadata file that optionally accompanies the disk image<br><br>  <a href="http://uec-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64.ovf">http://uec-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64.ovf</a><br><br></div></blockquote><div><br></div><div>Gotcha.</div><div><br></div><div><br></div><div>It's not clear to me how you would specify the OVF metadata file when adding an image file to glance.</div><div><br></div></div><div><br></div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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><br class="Apple-interchange-newline"></div></div></body></html>