Ensures NetApp iSCSI driver correctly compares int values for size
authorAndrew Kerr <andrew.kerr@netapp.com>
Tue, 18 Feb 2014 22:38:12 +0000 (17:38 -0500)
committerAndrew Kerr <andrew.kerr@netapp.com>
Tue, 18 Feb 2014 22:49:47 +0000 (17:49 -0500)
commita1d78df1b7c95dbb5024023662932cd94313dd58
tree0138bcf7cdc97e8e5223605dd183af4737ac2c7b
parente96f3b513302cf2ddd362c39bf1b1e9680a1bc7e
Ensures NetApp iSCSI driver correctly compares int values for size

The NetApp iSCSI driver needs to verify that the new size requested
during an extend operation does not exceed the max_resize of the
lun.  However, the driver was doing a >= compare against str values
of the sizes rather than the int values.  This caused the incorrect
code path to be used in certain situations.

Change-Id: I8bc66c71db6b469c7adf00ce8b5091513fccb740
Closes-Bug: 1281279
cinder/volume/drivers/netapp/iscsi.py