You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "winterhazel (via GitHub)" <gi...@apache.org> on 2025/04/14 19:39:40 UTC

[PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

winterhazel opened a new pull request, #10712:
URL: https://github.com/apache/cloudstack/pull/10712

   ### Description
   
   This PR backports #9888 to 4.19, fixing the issue described in #10687 and some other ones.
   
   - Duplicated entries in the networks helper table, resulting in duplicated usage record generation;
   - Port forwarding helper entries are never removed, resulting in removed port forwarding rules generating usage records;
   - Load balancer helper entries are never removed, resulting in removed load balancer rules generating usage records;
   - VM snapshot helper entries are never removed, resulting in removed VM snapshots generating usage records;
   - Helper entries for volumes in the secondary storage are never removed after the volume gets attached to a VM, resulting in secondary storage usage records being generated for volumes that are not in the secondary storage anymore.
   
   I still intend to work on a normalization script before closing #10687, but it can be merged separately from this PR.
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [X] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   - [ ] build/CI
   - [ ] test (unit or integration test code)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [X] Major
   - [ ] Minor
   - [ ] Trivial
   
   ### How Has This Been Tested?
   
   I reproduced the tests described in #9888.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2844861446

   Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13234


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "winterhazel (via GitHub)" <gi...@apache.org>.
winterhazel commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2802812026

   @blueorangutan package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2846529841

   @rajujith , can you have a look at this, please?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "winterhazel (via GitHub)" <gi...@apache.org>.
winterhazel commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2846127341

   @blueorangutan package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2802827404

   ## [Codecov](https://app.codecov.io/gh/apache/cloudstack/pull/10712?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   All modified and coverable lines are covered by tests :white_check_mark:
   > Project coverage is 4.28%. Comparing base [(`f13cf59`)](https://app.codecov.io/gh/apache/cloudstack/commit/f13cf597a2e00054033ab5851db628680a64f8dc?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`dd2ac31`)](https://app.codecov.io/gh/apache/cloudstack/commit/dd2ac31f5f797c119a471f396adc1913ea8e1d71?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   
   > :exclamation:  There is a different number of reports uploaded between BASE (f13cf59) and HEAD (dd2ac31). Click for more details.
   > 
   > <details><summary>HEAD has 1 upload less than BASE</summary>
   >
   >| Flag | BASE (f13cf59) | HEAD (dd2ac31) |
   >|------|------|------|
   >|unittests|1|0|
   ></details>
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@              Coverage Diff              @@
   ##               4.19   #10712       +/-   ##
   =============================================
   - Coverage     15.17%    4.28%   -10.89%     
   =============================================
     Files          5415      369     -5046     
     Lines        474893    29672   -445221     
     Branches      57920     5208    -52712     
   =============================================
   - Hits          72046     1272    -70774     
   + Misses       394792    28255   -366537     
   + Partials       8055      145     -7910     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/cloudstack/pull/10712/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [uitests](https://app.codecov.io/gh/apache/cloudstack/pull/10712/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `4.28% <ø> (ø)` | |
   | [unittests](https://app.codecov.io/gh/apache/cloudstack/pull/10712/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/cloudstack/pull/10712?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2844866116

   @blueorangutan test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2849738299

   @winterhazel a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2844869331

   @DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2846199599

   Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13235


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on code in PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#discussion_r2071197800


##########
usage/src/main/java/com/cloud/usage/UsageManagerImpl.java:
##########
@@ -2162,6 +2177,13 @@ private void handleVpcEvent(UsageEventVO event) {
         if (EventTypes.EVENT_VPC_DELETE.equals(event.getType())) {
             usageVpcDao.remove(event.getResourceId(), event.getCreateDate());
         } else if (EventTypes.EVENT_VPC_CREATE.equals(event.getType())) {
+            List<UsageVpcVO> entries = usageVpcDao.listAll(event.getResourceId());
+            if (!entries.isEmpty()) {
+                s_logger.warn(String.format("Active helper entries already exist for VPC [%s]; therefore, we will not create a new one.",
+                        event.getResourceId()));
+                return;
+            }
+            s_logger.debug(String.format("Creating a helper entry for VPC [%s].", event.getResourceId()));
             UsageVpcVO usageVPCVO = new UsageVpcVO(event.getResourceId(), event.getZoneId(), event.getAccountId(), domainId, Vpc.State.Enabled.name(), event.getCreateDate(), null);

Review Comment:
   could be a new method (again, return needs to be handled with a checked exception)



##########
usage/src/main/java/com/cloud/usage/UsageManagerImpl.java:
##########
@@ -2142,15 +2143,29 @@ private void createBackupEvent(final UsageEventVO event) {
     }
 
     private void handleNetworkEvent(UsageEventVO event) {
+        long networkId = event.getResourceId();
         Account account = _accountDao.findByIdIncludingRemoved(event.getAccountId());
         long domainId = account.getDomainId();
         if (EventTypes.EVENT_NETWORK_DELETE.equals(event.getType())) {
-            usageNetworksDao.remove(event.getResourceId(), event.getCreateDate());
+            usageNetworksDao.remove(networkId, event.getCreateDate());
         } else if (EventTypes.EVENT_NETWORK_CREATE.equals(event.getType())) {
-            UsageNetworksVO usageNetworksVO = new UsageNetworksVO(event.getResourceId(), event.getOfferingId(), event.getZoneId(), event.getAccountId(), domainId, Network.State.Allocated.name(), event.getCreateDate(), null);
+            List<UsageNetworksVO> entries = usageNetworksDao.listAll(networkId);
+            if (!entries.isEmpty()) {
+                s_logger.warn(String.format("Received a NETWORK.CREATE event for a network [%s] that already has helper entries; " +
+                                "therefore, we will not create a new one.", networkId));
+                return;
+            }
+            s_logger.debug(String.format("Creating a helper entry for network [%s].", networkId));
+            UsageNetworksVO usageNetworksVO = new UsageNetworksVO(networkId, event.getOfferingId(), event.getZoneId(),
+                    event.getAccountId(), domainId, Network.State.Allocated.name(), event.getCreateDate(), null);
             usageNetworksDao.persist(usageNetworksVO);

Review Comment:
   could be a new method (if the return is handled with a checked exception)



##########
usage/src/main/java/com/cloud/usage/UsageManagerImpl.java:
##########
@@ -2142,15 +2143,29 @@ private void createBackupEvent(final UsageEventVO event) {
     }
 
     private void handleNetworkEvent(UsageEventVO event) {
+        long networkId = event.getResourceId();
         Account account = _accountDao.findByIdIncludingRemoved(event.getAccountId());
         long domainId = account.getDomainId();
         if (EventTypes.EVENT_NETWORK_DELETE.equals(event.getType())) {
-            usageNetworksDao.remove(event.getResourceId(), event.getCreateDate());
+            usageNetworksDao.remove(networkId, event.getCreateDate());
         } else if (EventTypes.EVENT_NETWORK_CREATE.equals(event.getType())) {
-            UsageNetworksVO usageNetworksVO = new UsageNetworksVO(event.getResourceId(), event.getOfferingId(), event.getZoneId(), event.getAccountId(), domainId, Network.State.Allocated.name(), event.getCreateDate(), null);
+            List<UsageNetworksVO> entries = usageNetworksDao.listAll(networkId);
+            if (!entries.isEmpty()) {
+                s_logger.warn(String.format("Received a NETWORK.CREATE event for a network [%s] that already has helper entries; " +
+                                "therefore, we will not create a new one.", networkId));
+                return;
+            }
+            s_logger.debug(String.format("Creating a helper entry for network [%s].", networkId));
+            UsageNetworksVO usageNetworksVO = new UsageNetworksVO(networkId, event.getOfferingId(), event.getZoneId(),
+                    event.getAccountId(), domainId, Network.State.Allocated.name(), event.getCreateDate(), null);
             usageNetworksDao.persist(usageNetworksVO);
         } else if (EventTypes.EVENT_NETWORK_UPDATE.equals(event.getType())) {
-            usageNetworksDao.update(event.getResourceId(), event.getOfferingId(), event.getResourceType());
+            s_logger.debug(String.format("Marking previous helper entries of network [%s] as removed.", networkId));
+            usageNetworksDao.remove(networkId, event.getCreateDate());
+            s_logger.debug(String.format("Creating an updated helper entry for network [%s].", networkId));
+            UsageNetworksVO usageNetworksVO = new UsageNetworksVO(networkId, event.getOfferingId(), event.getZoneId(),
+                    event.getAccountId(), domainId, event.getResourceType(), event.getCreateDate(), null);
+            usageNetworksDao.persist(usageNetworksVO);

Review Comment:
   could be a new method



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2849790537

   Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13252


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "winterhazel (via GitHub)" <gi...@apache.org>.
winterhazel commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2864940630

   @rajujith thanks for testing. These usage records are not duplicated. I think you just misinterpreted the `start_date` and `end_date` values. 
   
   When Usage runs, it splits the total time it has to generate records for into periods defined by the global setting `usage.stats.job.aggregation.range` (by default, this period is of 24 hours). The `start_date` and `end_date` values represent this period.
   
   To interpret the usage records, you also need to check the other columns. I will show some records I got in my environment as an example.
   
   1. First, I performed the same procedure as you of creating a network, implementing it, stopping it and deleting it.
   
   ```sql
   MariaDB [cloud_usage]> select * from usage_event where resource_id=205 and type in ('NETWORK.CREATE','NETWORK.DELETE','NETWORK.UPDATE');
   +----+----------------+------------+---------------------+---------+-------------+---------------+-------------+-------------+------+---------------+-----------+--------------+
   | id | type           | account_id | created             | zone_id | resource_id | resource_name | offering_id | template_id | size | resource_type | processed | virtual_size |
   +----+----------------+------------+---------------------+---------+-------------+---------------+-------------+-------------+------+---------------+-----------+--------------+
   | 18 | NETWORK.CREATE |          2 | 2025-05-09 02:01:40 |       1 |         205 | test-net      |          10 |        NULL | NULL | NULL          |         1 |         NULL |
   | 23 | NETWORK.UPDATE |          2 | 2025-05-09 02:02:49 |       1 |         205 | test-net      |          10 |        NULL | NULL | Implemented   |         1 |         NULL |
   | 28 | NETWORK.UPDATE |          2 | 2025-05-09 02:05:40 |       1 |         205 | test-net      |          10 |        NULL | NULL | Allocated     |         1 |         NULL |
   | 32 | NETWORK.DELETE |          2 | 2025-05-09 02:06:24 |       1 |         205 | test-net      |          10 |        NULL | NULL | NULL          |         1 |         NULL |
   +----+----------------+------------+---------------------+---------+-------------+---------------+-------------+-------------+------+---------------+-----------+--------------+
   4 rows in set (0.000 sec)
   ```
   
   2. Then, I ran the Usage job and got the following usage records for that network. Please see the `raw_usage`, `state`, `start_date` and `end_date` values.
   
   ```sql
   MariaDB [cloud_usage]> select id,usage_type,usage_id,description,raw_usage,state,start_date,end_date from cloud_usage where usage_id = 205;
   +------+------------+----------+---------------------------------------------------------+----------------------+-------------+---------------------+---------------------+
   | id   | usage_type | usage_id | description                                             | raw_usage            | state       | start_date          | end_date            |
   +------+------------+----------+---------------------------------------------------------+----------------------+-------------+---------------------+---------------------+
   | 1293 |         30 |      205 | Network usage for network ID: 205, network offering: 10 | 0.019166944548487663 | Allocated   | 2025-05-09 00:00:00 | 2025-05-09 23:59:59 |
   | 1295 |         30 |      205 | Network usage for network ID: 205, network offering: 10 |  0.04750027880072594 | Implemented | 2025-05-09 00:00:00 | 2025-05-09 23:59:59 |
   | 1296 |         30 |      205 | Network usage for network ID: 205, network offering: 10 | 0.012222499586641788 | Allocated   | 2025-05-09 00:00:00 | 2025-05-09 23:59:59 |
   +------+------------+----------+---------------------------------------------------------+----------------------+-------------+---------------------+---------------------+
   ```
   
   So, the first record does not represent that the network's state was `Allocated` for the full period between `2025-05-09 00:00:00` and `2025-05-09 23:59:59`. Instead, it represents that the network's state was `Allocated` for `0.019166944548487663` hours between `2025-05-09 00:00:00` and `2025-05-09 23:59:59`. We do not know when it transitioned into and out of `Allocated` in the usage record.
   
   Likewise, the second record represents that the network's state was `Implemented` for `0.04750027880072594` hours between `2025-05-09 00:00:00` and `2025-05-09 23:59:59`; the third represents that it was `Allocated` for `0.012222499586641788` more hours during that period.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
rohityadavcloud commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2865105540

   Is this ready for merging @DaanHoogland ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2844761953

   @blueorangutan package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2846254549

   <b>[SF] Trillian test result (tid-13192)</b>
   Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
   Total time taken: 48497 seconds
   Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10712-t13192-kvm-ol8.zip
   Smoke tests completed. 132 look OK, 1 have errors, 0 did not run
   Only failed and skipped tests results shown below:
   
   
   Test | Result | Time (s) | Test File
   --- | --- | --- | ---
   test_01_redundant_vpc_site2site_vpn | `Failure` | 426.09 | test_vpc_vpn.py
   test_01_vpc_site2site_vpn | `Failure` | 298.38 | test_vpc_vpn.py
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland merged PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2844761613

   @winterhazel do we need more work on this? I think we discussed extra work on other issues/PRs


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2804187192

   @winterhazel , can you have a look at https://github.com/apache/cloudstack/issues/10687#issuecomment-2804174489 ?
   
   This backport is fine, but I have my doubt on the overall event model for networks. In short, making the usage server robust is fine, but we also need to fix the event flow.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2844765934

   @DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "winterhazel (via GitHub)" <gi...@apache.org>.
winterhazel commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2849737095

   @blueorangutan package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "winterhazel (via GitHub)" <gi...@apache.org>.
winterhazel commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2846126525

   > @winterhazel do we need more work on this? I think we discussed extra work on other issues/PRs
   
   @DaanHoogland this should be ready now. I made some adjustments here based on the previous discussions:
   
   - when processing a duplicated `NETWORK.CREATE`, ignore it. Previously, we were marking the existing helper entry as removed and creating a new one
   - when processing a `NETWORK,UPDATE`, mark the previous entry as removed and create a new one with the updated information. Previously, the existing entry would have its information overridden, which would result in incorrect usage records (the usage records generated for the period before the network was updated would contain the updated information instead of the real information for that period)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Backport #9888 to 4.19: Fix Usage inconsistencies [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #10712:
URL: https://github.com/apache/cloudstack/pull/10712#issuecomment-2846127887

   @winterhazel a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org