On Sat, May 19, 2018 at 08:05:06AM +0200, Markus Armbruster wrote: > Eduardo Habkost <ehabk...@redhat.com> writes: > > [...] > > About being more expressive than just a single list of key,value > > pairs, I don't see any evidence of that being necessary for the > > problems we're trying to address. > > Short history of a configuration format you might have encountered: > > 1. A couple of (key, value) is all we ne need for the problems we're > trying to address. (v0.4, 2003) > > 2.1. I got this one special snowflake problem where I actually need a few > related values. Fortunately, this little ad hoc parser can take apart > the key's single value easily. (ca. v0.8, 2005) > > ... > > 2.n. Snowflakes are surprisingly common, but fortunately one more little > ad hoc parser can't hurt. > > 3. Umm, this is getting messy. Let's have proper infrastructure for > two-level keys. Surely two levels are all we ne need for the problems > we're trying to address. Fortunately, we can bolt them on without too > much trouble. (v0.12, 2009) > > 4. Err, trees, I'm afraid we actually need trees. Fortunately, we can > hack them into the existing two-level infrastructure without too much > trouble. (v1.3, 2013) > > 5. You are in a maze of twisting little passages, all different. > (today) > > > How confident are we a single list of (key, value) is really all we're > going to need? > > Even if we think it is, would it be possible to provide for a future > extension to trees at next to no cost?
I'm confident that a list of key,values is all we need for the current problem. I also agree that being possible to represent trees is a good idea, and it would probably have next to no cost. But I disagree if the point here is "we will eventually need much more complex data in the future, so let's require users to move to OVF instead". The point here is to allow users to simply copy an existing disk image, and it will contain enough hints for a cloud stack to choose reasonable defaults for machine-type and disk type automatically. Requiring the user to perform a separate step to encapsulate the disk image in another file format defeats the whole purpose of the proposal. -- Eduardo