]> xenbits.xensource.com Git - xenrt-citrix/xenrt.git/commitdiff
Merge branch 'CA-183734' into 'master'
authorDaniel Lamping <daniel.lamping@citrix.com>
Fri, 16 Oct 2015 09:20:51 +0000 (02:20 -0700)
committerDaniel Lamping <daniel.lamping@citrix.com>
Fri, 16 Oct 2015 09:20:51 +0000 (02:20 -0700)
Fixing SR free space calculation

In getSRsFreeSpace() method, SR Free space was calculated as ' Utilization - Actual SR size'. This was resulting in negative value.

size = int(self.host.genParamGet("sr", sr, "physical-size"))
            utilisation = int(self.host.genParamGet("sr",
                                                    sr,
                                                    "physical-utilisation"))
            reply[sr] = size - utilisation

Also, This was masking a product issue(Free Space after leaf coalesce is less than the sree space before snapshot).

With my change, job 1199803 is failing because of the above mentioned product issue.

See merge request !31


Trivial merge