2009/7/28 Iustin Pop <[email protected]>: > I think that we should aim to keep the listing without custom > parameters, but via a generic ID. For each storage type, we have this > 'id' which is unique for storage units of that type: > - the file storage directory > - the volume group name > - the PV physical device name > > As such, the listing can either auto-discover these (pvs, vgs, but not > for files storage directories; for this I would leave in 2.1 a single > file storage directory) or configure them in ganeti (like enable VG for > ganeti use or not).
Unfortunately the file storage dir is no longer a constant, it's a cluster parameter in 2.1 (maybe also 2.0, didn't check). The class will have to take a parameter with the path to the constructor. Otherwise it can't automatically discover all (well, only one in 2.1) directories when no name is passed to the list method. I have some rough code, just need to clean it up. Regards, Michael
