apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
2.11k stars 1.11k forks source link

VR: fix wrong check when compare two configuration files #9822

Closed weizhouapache closed 2 weeks ago

weizhouapache commented 1 month ago

Description

in some configuration files, the value can be set in multiple times and order matters. For example there are two haproxy configurations

listen 10_0_xx_yy-22
    bind 10.0.xx.yy:22
    balance roundrobin

listen 10_0_xx_yy-23
    bind 10.0.xx.yy:23
    balance source
listen 10_0_xx_yy-22
    bind 10.0.xx.yy:22
    balance source

listen 10_0_xx_yy-23
    bind 10.0.xx.yy:23
    balance roundrobin

without this change, they are considered as same configuration, which is obviously wrong.

Types of changes

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

Bug Severity

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

weizhouapache commented 1 month ago

@blueorangutan package

blueorangutan commented 1 month ago

@weizhouapache 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.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 12.27%. Comparing base (1af4158) to head (cbfa59d). Report is 2 commits behind head on 4.18.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## 4.18 #9822 +/- ## =========================================== Coverage 12.27% 12.27% - Complexity 9335 9336 +1 =========================================== Files 4699 4699 Lines 414691 414691 Branches 53409 51957 -1452 =========================================== + Hits 50891 50896 +5 + Misses 357475 357469 -6 - Partials 6325 6326 +1 ``` | [Flag](https://app.codecov.io/gh/apache/cloudstack/pull/9822/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/apache/cloudstack/pull/9822/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `12.27% <ø> (+<0.01%)` | :arrow_up: | 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.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

blueorangutan commented 1 month ago

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

weizhouapache commented 1 month ago

@blueorangutan test

blueorangutan commented 1 month ago

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

blueorangutan commented 1 month ago

[SF] Trillian test result (tid-11683) Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8 Total time taken: 45826 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9822-t11683-kvm-ol8.zip Smoke tests completed. 110 look OK, 1 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File
ContextSuite context=TestISOUsage>:setup Error 0.00 test_usage.py