Repository navigation
Conversation
|
Code LGTM |
|
Test LGTM In my observation when we give the global configuration (usage.snapshot.virtualsize.select) value as true virtual size of the snapshot is considered(10th row in table1, 4th row in table2). mysql> select * from cloud_usage.usage_event where id in (10,11); mysql> select * from usage_storage where id in (4,6); |
|
tag:MergeReady |
| String sanityCheckInterval = configs.get("usage.sanity.check.interval"); | ||
| String quotaEnable = configs.get("quota.enable.service"); | ||
| _runQuota = Boolean.valueOf(quotaEnable == null ? "false" : quotaEnable ); | ||
| usageSnapshotSelection = Boolean.valueOf(configs.get("usage.snapshot.virtualsize.select")); |
There was a problem hiding this comment.
Use usageSnapshotSelection.value() instead of configs.get
There was a problem hiding this comment.
@jayapalu It is effecting existing implementations.
|
LGTM |
|
BVT results are required |
ACS CI BVT RunSumarry: Link to logs Folder (search by build_no): https://www.dropbox.com/sh/r2si930m8xxzavs/AAAzNrnoF1fC3auFrvsKo_8-a?dl=0 Failed tests:
Skipped tests: Passed test suits: |
|
failures aren't related. merging. |
Physical size of the snapshot is considered for the usage generation. This will have a huge impact on customer billiing after the FIX(https://issues.apache.org/jira/browse/CLOUDSTACK-7825).
As part of the above fix size column now has the physical size of the snapshot and the virtual_size column has the virtual size of the volume.
Now when the usage is processed it is taking the size ( which is physical size of the snapshot). But It should take Virtual size for existing customers.
So as part of fix providing option for customers to choose between virtual and physical size.