This is a bug. Likely something I missed when adopting the simulator to the storage refactor in 4.2. You'd want to look at the SimulatorImageStoreDriverImpl.java#createTemplate() and see how the template gets registered with 0 size.
On Tue, Nov 05, 2013 at 02:54:00AM -0500, Sebastien Goasguen wrote: > Pinging Prasanna on this, > > > On Oct 31, 2013, at 5:07 PM, David Grizzanti <david.grizza...@sungard.com> > wrote: > > > Hi All, > > > > I have been seeing an issue with the Simulator that I was hoping someone > > could provide some insight into. > > > > Some background. I'm running from the 4.2.0 tag on rhel 6.3, building from > > source/enabling the simulator. > > > > Overall, most operations seem to work fine, however, I noticed that when > > creating a template from the ROOT volume on a VM, the template can't then > > be used to create a subsequent VM. The reason for this seems to be that > > the "size" of the template is set to 0. After digging through the database > > a bit, I discovered that the size and physical_size columns in > > the template_store_ref table are set to 0 for these templates. If I > > correct those values for my entry after the fact, everything appears to > > work. > > > > I dug around in the code a bit as well, but nothing obvious was jumping out > > at me as to why this was happening. > > > > Any thoughts? > > > > Thanks! > > > > -- > > David Grizzanti > > Software Engineer > > Sungard Availability Services > > > > e: david.grizza...@sungard.com > > w: 215.446.1431 > > c: 570.575.0315 -- Prasanna., ------------------------ Powered by BigRock.com